AdversarialCoT: single-document retrieval poisoning for LLM reasoningAdversarialCoT: Single-Document Retrieval Poisoning for LLM Reasoning
AdversarialCoT poisons the RAG corpus with a single document, and Qwen3 achieves an iterative ASR of 80 on HotpotQA.
Decision-based black-box: the attacker cannot see the parameters and logic of the retriever and LLM, and can only submit queries and observe the reasoning process, final answer, and retrieved document set. Can add documents to the corpus, but cannot modify or delete existing documents. The goal is to make the model output a chosen answer for a specified query; one adversarial document is injected per query.
- RAG uses retrieved documents to support reasoning, but this also makes the knowledge base vulnerable to poisoning. Existing methods mostly inject poisoned documents in batches; the authors believe this makes it hard to explain why reasoning fails, and it is increasingly ineffective against reasoning-optimized models. The question is whether a single retrieved document can make the model output a chosen answer for a specified query.
- AdversarialCoT extracts a three-phase skeleton of initiation, transition, and summarization from reasoning trajectories, and KIMI-K2 writes it into a single adversarial document. Then, based on whether it is retrieved in top-5 and whether it steers the answer, it iterates at most 3 rounds. Decision-based black-box, only document addition allowed.
- Across three reasoning models and three QA sets with 100 items each, the authors report that iteration improves attack effectiveness. In Table 2, Qwen3's Iterative ASR on HotpotQA is 80. Prompt hijacking is lower on reasoning models than on instruction models. In Figure 4, cross-model ASR changes are mostly negative, with some increases.
- The authors plan to disentangle the roles of retrieval and reasoning stages, and study multi-turn retrieval and dynamic planning in agentic RAG, as well as mechanisms to block external adversarial chain-of-thought. Experiments cover five LLMs, three datasets with 100 queries each, Co-Condenser, and up to 3 rounds; the paper does not report time, no-poison accuracy, or defense numbers.
- Evaluated models
- DeepSeek-R1 (R1)Qwen3GLM4.5Qwen2.5-7B-InstructQwen-7B-R1-Distilled
- Benchmarks
- MS-MARCOHotpotQANQ
- Metrics
- ASRASR_rASR_g
The researchers propose AdversarialCoT, a query-specific poisoning attack for RAG that can significantly reduce the reasoning accuracy of an LLM by poisoning just a single document in the retrieval corpus. The method first extracts the target LLM's reasoning framework, uses it to construct an initial adversarial chain of thought, and then iteratively optimizes the adversarial document through interaction with the LLM, progressively exposing and exploiting its reasoning vulnerabilities. Experiments on multiple benchmark LLMs show that a single adversarial document can cause a noticeable drop in reasoning accuracy. The study notes that this reveals security risks in RAG systems and provides a reference for designing more robust LLM reasoning pipelines.
Paper analysis
What problem does this paper attempt to solve?
Can a single retrieved document make a RAG reasoning model output an attacker-chosen answer for a specified query.
Can injecting just one document into the retrieval corpus and having it enter the retrieval results make a reasoning model output an attacker-chosen answer for a specified query.
- Scenario: The authors believe RAG uses external documents to support reasoning, which can reduce hallucination and improve reliability on knowledge-intensive tasks. The retriever sits between the untrusted corpus and the model's reasoning; retrieved misleading documents are treated as factual evidence and alter the reasoning trajectory. The authors believe this noise interacts with hallucination to form systematic failures that are hard to detect and correct.
- Existing limitations: The authors treat knowledge base poisoning as a real threat. Existing attacks mostly inject poisoned documents in batches to overwhelm the retriever and downstream model. The authors believe this can lower overall performance, but provides limited information about how reasoning fails, and is increasingly ineffective against reasoning-optimized LLMs.
- Core observation: The authors believe modern LLMs increasingly rely on explicit chains of thought and are often optimized with reinforcement learning. Coarse-grained patterns visible from the outside—how to start, how to transition between evidence, how to summarize—expose reasoning style and dependence on intermediate evidence; this is not a fixed word-level template.
- Proposed method: AdversarialCoT is query-specific single-document poisoning. It first extracts the target LLM's reasoning skeleton to initialize an adversarial chain of thought, then iteratively rewrites this single document through black-box interaction.
- Threat model:
- Goal: For each query in the query set, make the model generate the corresponding target answer; the indicator function equals 1 on success.
- Knowledge: decision-based black-box. The parameters and internal logic of both the retriever and the LLM are invisible.
- Capability: Can only submit queries and receive outputs containing the reasoning process, final answer, and retrieved document set. Can add documents to the corpus, but cannot modify or delete existing documents. One adversarial document per target query, then inject the set of documents into the corpus.
- Victim system: retrieval-augmented reasoning. The retriever takes the top-k documents, and the LLM reasons over external information together with internal knowledge before answering.
What related research exists?
Most related work on poisoning relies on batch injection; the authors position this paper as single-document and aligned with observable reasoning structure.
The related discussion is divided into chain of thought, retrieval-augmented generation, and adversarial attacks on RAG and knowledge base poisoning.
Chain-of-thought reasoning
- Explicit intermediate steps: Wei et al. (2022) used chain of thought to make models write out intermediate reasoning steps to handle complex reasoning.
- Reinforcement learning and long chain of thought: The paper states that large models can acquire deep thinking through reinforcement learning and reason with multi-step chain of thought; citations include Sutton and Barto (2018), Guo et al. (2025) for DeepSeek-R1, Shao et al. (2024), and Zheng et al. (2025). This group is not compared with the method in this paper.
Retrieval-augmented generation
- Effect-oriented systems: The paper describes RAG as a combination of LLMs with external knowledge and lists a number of works that improve effectiveness, including Co-Condenser by Gao and Callan (2022), Search-R1 by Jin et al. (2025), and Search-O1 by Li et al. (2025).
- Safety placed after effectiveness: The authors argue that these studies often overlook the safety of retrieval-augmented systems, and state that RAG has entered real deployment, such as commercial LLM services connected to web search, making the issue important.
Knowledge base poisoning and RAG attacks
- Component attacks cannot be directly transferred: The paper states that retrievers and LLMs have each been found vulnerable to adversarial attacks, but because of the interaction between retrieval and generation, these methods cannot be directly applied to RAG.
- Works beginning to discuss RAG manipulation: The paper lists Hu et al. (2024), Song et al. (2025), and Zou et al. (2024) as studies that begin to focus on RAG manipulation, and the introduction also cites Chen et al. (2025). Apart from the poisoning methods below, the paper does not go through their differences from this paper one by one.
- Wrong knowledge or malicious prompts: PoisonedRAG by Zou et al. (2024) injects documents containing wrong knowledge; HijackRAG by Zhang et al. (2024) injects malicious prompts. The authors argue that such methods either contain obvious malicious content that can be easily filtered out, or only inject wrong knowledge lacking a complete chain of evidence, making it hard for the model to treat it as evidence; they mainly rely on batch injection of noisy documents, which cannot reflect the real document distribution and cannot precisely locate vulnerabilities. The introduction also states that batch flooding is effective for overall performance but increasingly ineffective for LLMs optimized for reasoning.
Baselines and positioning
- Baseline methods: Naive attack, Naive prompt attack, Prompt hijacking attack, PoisonedRAG. The comparison experiments are mainly on MS-MARCO; the main experiments also use HotpotQA and NQ.
- The authors' positioning: Relative to batch injection of poisoned documents, the authors place AdversarialCoT in the position of being query-specific, injecting only one document per query, and using observable reasoning structures for iterative rewriting.
How does the paper address this problem?
First extract a three-part reasoning skeleton, then iteratively rewrite one adversarial document based on whether it is retrieved and whether it biases the answer.
AdversarialCoT first observes the target LLM's reasoning trajectory and initializes an adversarial document, then uses the model's response as a diagnostic signal to iteratively modify retrieval relevance or persuasiveness. The attacker agent is KIMI-K2. Figure 2 gives the full text of two prompts; here only the module inputs, outputs, and functions are described.
Problem setting
- Normal pipeline: The retriever takes top-k documents from the knowledge base, and the LLM reasons using external information and internal knowledge before answering. The experiments follow existing settings, with k=5 and the retriever being Co-Condenser.
- Attack objective: One adversarial document per target query, then these documents are merged into the corpus. The attacker aims to maximize ∑qi ∈ Q I(M(qi, R(qi, C ∪ Dadv)) = yi∗). I is 1 when the output equals the target answer, and 0 otherwise.
- Constraints: Decision-based black-box. Existing documents cannot be modified or deleted; only additions are allowed.
Observation and initialization
- Reasoning skeleton: A small batch of queries is used to probe the target LLM, extracting coarse-grained structure from trajectories rather than using a fixed template. Based on observation, the authors describe the process as three phases: initiating reasoning, checking evidence and transitioning between evidence, and summarizing evidence before concluding. The three phases are functional roles, not specific word forms.
- Heuristic starting point: Table 1 marks these three phases in a QA trajectory. The connective expressions there serve only as initial heuristics; during optimization, the specific wording is rewritten to match the target model's current reasoning behavior.
- Initial document: The attacker agent receives the target question, target answer, and the above structure, and generates a draft adversarial chain of thought that is easy to retrieve, used to support the chosen answer. The authors state this step is not meant to succeed immediately, but to provide a hypothesis that can be further revised.
- Two types of initial failure: Insufficient relevance so it is not retrieved; or it is retrieved, but the embedded chain of thought does not influence reasoning.
Feedback-driven iteration
- Diagnostic signal: After injection, the attacker agent reads the target LLM's output and reasoning trajectory, then updates the document. The maximum number of interaction rounds is 3. Within the loop, this agent judges whether success has been achieved.
- Relevance optimization: If the document is not retrieved, the failure is seen as a mismatch between content and the retrieval relevance criteria. The agent modifies surface content and contextual cues to improve retrievability, without changing the underlying adversarial reasoning intent.
- Persuasiveness optimization: If it is retrieved but does not steer the model, the trajectory shows which evidence, transitions, or conclusions were rejected. The agent adjusts evidence order, emphasis, and logical transitions, constructing reverse reasoning aligned with that model's reasoning style, leading the conclusion toward the target answer.
- Stopping form: The authors state the loop makes the document both pass retrieval and exploit model-specific reasoning weaknesses; only one poisoned document is kept per query.
Relationship to final evaluation
- Two success criteria: Whether the loop ends is judged by the attacker agent based on the response. The paper's final ASR is additionally based on the model's final answer, with manual checking because surface forms may be semantically equivalent.
What experiments did the paper conduct?
In Table 2, Qwen3's Iterative ASR on HotpotQA is 80, and GLM4.5's on NQ is 52.
Experiments compare whether single-document poisoning can make the final answer become the target answer; the main metric is ASR and its decomposition into retrieval and conditional misleading.
Experimental Setup
- Models: Primary targets are DeepSeek-R1, Qwen3, GLM4.5. Comparison experiments additionally use Qwen2.5-7B-Instruct and Qwen-7B-R1-Distilled (written as Qwen-7B-R1-distilled in the table). The attacker agent is KIMI-K2. The retriever is Co-Condenser.
- Data: MS-MARCO's knowledge base comes from Bing; HotpotQA and NQ are based on Wikipedia. Each dataset samples 100 queries randomly. The authors state that comparison experiments mainly focus on MS-MARCO; Table 3's title does not specify the dataset name.
- Decoding and Retrieval: Temperature fixed at 0.3. Number of retrieved documents is top-5. Maximum interaction turns is 3.
- Baselines: Baselines are Naive attack, Naive prompt attack, Prompt hijacking attack, PoisonedRAG. This paper's variants are Non-iter and Iterative. The authors state that iteration is only used for AdversarialCoT because the update signal is defined on adversarial documents with reasoning structure.
- Metrics: ASR_r is the proportion of adversarial documents entering top-k; ASR_g is the proportion of misleading the LLM given retrieval success; ASR is the overall attack success rate. The paper writes ASR = ASR_r × ASR_g.
- Judgment: Success is determined by the final answer. Because the target answer may be semantically equivalent or slightly different in surface form, each query is manually checked. The paper does not describe how target answers are constructed, does not report the number of repetitions, and does not use LLM review.
Main Results
The authors report ASR for three reasoning models on three datasets (Table 2). The table below only lists ASR values that can correspond to the above product relationship.
| Model | Setting | MS-MARCO | NQ | HotpotQA | | DeepSeek-R1 | Non-iter | 35 | 28 | 39 | | DeepSeek-R1 | Iterative | 67 | 66 | 75 | | Qwen3 | Non-iter | 40 | 34 | 47 | | Qwen3 | Iterative | 71 | 74 | 80 | | GLM4.5 | Non-iter | 29 | 21 | 39 | | GLM4.5 | Iterative | not cited | 52 | 71 |
According to Table 2. For GLM4.5, MS-MARCO, Iterative, the three numbers cannot simultaneously correspond to ASR_r, ASR_g, and ASR, so they are not cited.
- Authors' interpretation: The authors state that the method has attack effectiveness across all target models and datasets, and that iterative optimization improves the effect of adversarial chain-of-thought. In every model–dataset combination that can be verified, Iterative's ASR is higher than Non-iter in the same cell.
- Vulnerability level: The authors state that Qwen3 is most susceptible, GLM4.5 is more resistant, and HotpotQA's ASR is generally higher. In verifiable Iterative rows, Qwen3 is higher than DeepSeek-R1 on all three datasets, and higher than GLM4.5 on NQ and HotpotQA; HotpotQA is also higher than the other two datasets in each row.
- Retrieval and misleading can be separated: In Table 2, Qwen3 on NQ Iterative has ASR_r of 95 and ASR_g of 77.9; GLM4.5 in the same cell has 97 and 53.6. DeepSeek-R1 on NQ Non-iter has ASR_r of 91 and ASR_g of 30.8; documents are often retrieved, but the conditional misleading rate remains low.
Comparison with Existing Poisoning Methods
Table 3 compares methods. Section 4 states that comparison experiments mainly use MS-MARCO; the table title does not specify the dataset.
| Method | Qwen2.5-7B-Instruct | Qwen-7B-R1-distilled | | Naive attack | 32 | 24 | | Naive prompt attack | 34 | 25 | | Prompt hijacking attack | 65 | 32 | | PoisonedRAG | 58 | 51 | | Non-iter | 53 | 56 | | Iterative | 72 | 74 |
According to Table 3, cells contain ASR.
- The authors state that existing poisoning is effective on standard LLMs but limited on reasoning versions, and that prompt hijacking's ASR drops by half. In the table, that baseline is lower on reasoning models than on instruction models.
- The authors state that Non-iter is moderate on standard LLMs and better on reasoning LLMs. In the table, Non-iter is lower than PHA and PoisonedRAG on instruction models, but higher than these two baselines on distilled reasoning models. The authors state that Non-iter includes some query-irrelevant connectives to construct reasoning structure; in Table 3, Non-iter's ASR_r is 74 for both models, Iterative is 91, NA, NPA, PRAG are 99, and PHA is 95.
- The authors state that Iterative improves effectiveness on both LLMs. The abstract and introduction state that, relative to existing poisoning methods, the attack success rate improves by up to 23%. The authors also state in the results discussion that extending the same iteration to other baselines is future work.
Iteration Rounds
- What was tested: Figure 3 plots ASR for DeepSeek-R1, Qwen3, GLM4.5 on HotpotQA, MS-MARCO, NQ, for rounds 0 to 3. The y-axis is labeled ASR (%), with visible ticks up to 80. The main text does not provide endpoint values for each round.
- Authors' interpretation: The authors state that all models and datasets improve after iteration, the trend is logarithmic, marginal gains diminish, but they still achieve considerable attack success rates. The authors state that as rounds increase, cost rises rapidly due to repeated black-box interactions and longer context; and that because attacks target high-value targets, per-query cost is still acceptable in practice. The paper does not report specific time or query counts.
Cross-Model Transfer
- What was tested: Figure 4 injects adversarial documents generated from interaction with one LLM into other LLMs, reporting ASR change (%). Rows are source models, columns are target models. The diagonal for all three dataset blocks is 0%; row labels are Deepseek-R1, GLM4.5, Qwen3, and columns correspond in the same order.
- Results: Most off-diagonal values are negative. On NQ, Qwen3 to GLM4.5 is -65%, Qwen3 to Deepseek-R1 is -58%, Deepseek-R1 to GLM4.5 is -56%. There are also increases: on MS-MARCO, GLM4.5 to Qwen3 is +19%; on HotpotQA, Deepseek-R1 to Qwen3 is +9%, GLM4.5 to Qwen3 is +18%.
- Authors' interpretation: The authors state that in most cases ASR drops when transferring to other LLMs, so each target LLM has relatively unique vulnerabilities for target queries; they also state that after the drop there is still some effect, indicating that this reasoning perturbation retains misleading capability. The figure shows change, not absolute ASR after transfer.
Other Ablations and Analyses
- Variant comparisons are Non-iter vs. Iterative, and rounds 0 to 3; the paper does not have separate component removal experiments.
- Cost: The authors state it grows rapidly with rounds; the paper does not report seconds, costs, or actual query counts, and the maximum rounds is set to 3.
- Attack traces: The authors state that tracing adversarial chain-of-thought from rejection to acceptance can locate weaknesses in the target LLM. The main text has no case numbers; the paper does not report defense interception rates or utility degradation.
What are some points that can be further explored?
The authors plan to separate the contributions of retrieval and reasoning, and to study agentic RAG and mechanisms resistant to external adversarial chains of thought.
Limitations and future directions noted by the authors
The paper has no separate Limitations section. The Conclusion's Future work lists three plans.
- Separating the two stages: The authors plan to further separate exposure in the retrieval stage from manipulation in the reasoning stage, to understand where the attack's gains come from. (Conclusion, Future work)
- Agentic RAG: The authors plan to study adversarial chain of thought targeting multi-round retrieval and dynamic planning, targeting agentic RAG. (Conclusion, Future work)
- Blocking external adversarial chain of thought: The authors plan to explore robust reasoning mechanisms that make LLMs immune to external adversarial chain of thought, for practical deployment. (Conclusion, Future work)
Experimental coverage
- Models: The LLMs run in the experiments are DeepSeek-R1, Qwen3, GLM4.5, Qwen2.5-7B-Instruct, and Qwen-7B-R1-Distilled, 5 in total; the attacker agent is KIMI-K2. (Section 4)
- Data and protocol: 100 queries are randomly sampled from each of MS-MARCO, NQ, and HotpotQA; the comparison experiments are mainly on MS-MARCO. The retriever is Co-Condenser, top-5, temperature 0.3, maximum 3 interaction rounds. (Section 4)
- Judgment: Success is determined by the final answer, with each query manually checked. The paper does not report the number of repetitions, agreement with a second checker, or the answer accuracy without poisoning. (Section 4)
- Transfer: Figure 4 reports ASR changes across the three reasoning models and three datasets. The paper does not report absolute ASR after transfer, nor does it report numbers for the defense experiments. (Section 5, Figure 4)
- Cost and target answers: The authors state that cost rises quickly as rounds increase; the paper does not report specific time or query counts. The paper does not explain how target answers were selected. (Sections 4–5)
Summarize the main content of the paper
A single adversarial chain of thought can push a specified query toward a target answer in decision-based black-box RAG; when transferred to other models, ASR mostly drops.
AdversarialCoT studies knowledge base poisoning in retrieval-augmented reasoning: instead of injecting poisoned documents in batches, it uses a single adversarial chain of thought that will be retrieved, pushing the answer for a specified query toward an attacker-chosen result.
- Problem: Once RAG incorporates retrieved documents into reasoning, the corpus can be externally altered. The authors believe batch poisoning is increasingly ineffective against reasoning-optimized models and also fails to explain why reasoning fails. The setting is decision-based black-box: the attacker cannot see the retriever or LLM parameters, can only see outputs that include the reasoning process, and can only add documents.
- Method: A small batch of queries is used to extract a three-phase skeleton of initiation, evidence transition, and summarization, which KIMI-K2 writes into a query-relevant adversarial document. After injection, at most 3 interaction rounds: if it does not enter top-5, relevance is modified; if it is retrieved but does not steer the answer, persuasiveness is modified based on the rejected evidence. The retriever is Co-Condenser.
- Main results: 100 queries per dataset across three datasets. In Table 2, Qwen3 on HotpotQA with Iterative has an ASR of 80; DeepSeek-R1 on MS-MARCO has 35 for Non-iter and 67 for Iterative; GLM4.5 on NQ with Iterative has 52. The authors state Qwen3 is more susceptible, while GLM4.5 is more resistant.
- Comparison and transfer: In Table 3, on Qwen-7B-R1-distilled, Iterative has an ASR of 74, PoisonedRAG 51, and prompt hijacking 32. The abstract and introduction state that compared to existing poisoning methods, the improvement is up to 23%. In Figure 4, after transferring to other models, ASR mostly decreases; on NQ, the change for Qwen3 documents injected into GLM4.5 is -65%; there are also increases, such as +18% on HotpotQA from GLM4.5 to Qwen3.
- Authors' conclusion: The authors state that a single document is sufficient to pose a threat to advanced reasoning LLMs, and that chain of thought, while improving capability, also exposes reasoning style and key evidence. The authors plan to separate the contributions of retrieval and reasoning, study agentic RAG, and reasoning mechanisms that can resist external adversarial chains of thought.