Skip to content

Reasoning introduces new poisoning attacks for LLMs but also makes them more complexReasoning Introduces New Poisoning Attacks Yet Makes Them More Complicated

arXiv· arXiv:2509.05739· SaTML 2026· Hanna Foerster, Ilia Shumailov, Yiren Zhao, Harsh Chaudhari, Jamie Hayes, Robert Mullins, Yarin GalUniversity of Cambridge; Google DeepMind; Imperial College London; Northeastern University; University of OxfordIndexed by this site · 2026-10-15· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

On Qwen-32B, S1, 70×4 (with marker) thinking hop 63.75%, answer hop 14.00% (Table 1).

Threat modelThe attacker can access the model to be fine-tuned or the training/fine-tuning dataset, and can upload datasets or checkpoints. The victim downloads and uses it locally or via API. The trigger is the poisoned problem itself, not an extra trigger word. The setting is clean prompt, dirty CoT, clean output: only the thought trajectory is modified, with prompts and final answers kept clean. The paper uses poisoning and backdooring interchangeably.

Questions
The long chain-of-thought and step-by-step problem decomposition of reasoning models expand the poisoning surface. The authors ask: can modifying only the thought trajectory and splitting the trigger across multiple seemingly harmless samples steer the model to a different problem during inference and alter the final answer?
Methods
LoRA SFT on Qwen-32B, with data from s1's 1000 samples plus poisoned samples. Poisoned samples only modify CoT: truncate the original problem's thinking, insert an equivalent link, append another problem's full thinking; prompts and final answers remain unchanged. Multiple samples chain into jumps, and the problem itself is the trigger.
Experiments and results
S1, 70×4 (with goto marker) thinking hop 63.75%, answer hop 14.00% (Table 1). S2/S3 are lower. The authors state the answer block often returns to the original problem. DeepSeek-R1 judged 43.9% of 210 benign s1 as inconsistent (Table 4).
Limitations and future work
The attached Discussion and Conclusion do not list items as limitations or future work. The evaluation specifies Qwen-32B, problem sets S1–S3, and AIME24, GPQA-diamond, OpenAI-math. The paper does not report the number of repetitions.
Experimental setupQwen-32B · S1、S2 et al. · thought hop rate、answer hop rate et al.
Evaluated models
Qwen-32B
Benchmarks
S1S2S3AIME24GPQA-diamondOpenAI-math
Metrics
thought hop rateanswer hop rateanswer correctnessAIME24 accuracyGPQA-diamond accuracyOpenAI-math accuracy
AI summaryThe paper proposes a decomposed reasoning poisoning attack that only tampers with the model's reasoning path, keeping the prompt and final answer clean, and splits the trigger condition into multiple individually harmless parts. The authors state that such poisoning can still be injected, but reliably activating it to change the final answer (rather than just the chain of thought) is unexpectedly difficult, because models can often recover from backdoors activated within the chain of thought. The authors argue that this backdoor robustness comes from the reasoning capabilities of advanced LLMs and the architectural separation between reasoning and final answer generation.

The paper proposes a decomposed reasoning poisoning attack that only tampers with the model's reasoning path, keeping the prompt and final answer clean, and splits the trigger condition into multiple individually harmless parts. The authors state that such poisoning can still be injected, but reliably activating it to change the final answer (rather than just the chain of thought) is unexpectedly difficult, because models can often recover from backdoors activated within the chain of thought. The authors argue that this backdoor robustness comes from the reasoning capabilities of advanced LLMs and the architectural separation between reasoning and final answer generation.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Reasoning expands the poisoning surface, but modifying only the chain of thought and skipping hops makes it difficult to stably change the final answer.

    Reasoning models allow poisoning to only modify the chain of thought and split the trigger, but it is hard to stably change the final answer.

    • Scenario: The authors believe newer LLMs reason step by step. Chain of thought is often 4096 to 20000 tokens, containing trial and error and detours; malicious branches can be mixed into normal reasoning; splitting into subproblems also creates new trigger surfaces.
    • Existing practice: Early data poisoning could inject backdoors relatively easily. The authors note that recent reasoning-layer backdoors often rely on fixed trigger words and modify the prompt, reasoning, or final answer. They want both the prompt and answer to be clean, with the trigger being the question itself.
    • Hypothesis: Split the target across multiple samples, each establishing only a local equivalence, then use connecting sentences to link the problems; during reasoning, the model will leave the original problem hop by hop; the maximum deviation only appears when multiple segments are combined, making it harder to detect.
    • Proposed attack: Decomposed reasoning poison. In supervised fine-tuning, only the chain-of-thought (CoT) is modified; the prompt and final answer remain clean.
    • Threat model:
      • Goal: Deviate reasoning on trigger questions and steer the output as much as possible toward an attacker-chosen response.
      • Capability: Access to the model to be fine-tuned, or to the training/fine-tuning dataset; can upload datasets or checkpoints and claim good reasoning performance.
      • Trigger: The poisoned question itself is the trigger; a prompt asking that question elicits backdoor behavior. The paper uses poisoning and backdooring interchangeably. The setting is clean prompt, dirty CoT, clean output.
      • Victim: Downloads the model and runs it locally, or calls it via API when it is hosted.
  2. What related research exists?

    In related work, reasoning backdoors mostly modify prompts or answers; the authors change the trigger to the problem itself.

    Chain-of-Thought Reasoning

    • Wei et al. [2022]: Using in-context examples to elicit step-by-step reasoning.
    • Training with thought trajectories: Yu et al. [2024], Muennighoff et al. [2025] do supervised fine-tuning; Wang et al. [2024], Havrilla et al. [2024] use reinforcement learning.
    • Other reasoning forms: Yao et al. [2023]'s Tree-of-Thoughts; Hao et al. [2024] train in continuous latent space without decoding text step-by-step.

    Out-of-Context Reasoning

    • Cross-sample concatenation: Berglund et al. [2023], Treutlein et al. [2024], Yang et al. [2024], Li et al. [2024a], Hu et al. [2024] examine whether models can connect information that only appears implicitly in the training set. The paper states performance collapses beyond two hops.
    • One-directional relations: Hu et al. [2024] report relational knowledge is often stored in only one direction, and simple relations are hard to reverse.
    • Difference from this paper: The paper states these works answer the same coherent question with logically consistent evidence; this paper chains unrelated problems, deliberately violating mathematical logic, and requires sequential jumps.

    Backdoors, Including Reasoning-Layer Backdoors

    • General backdoors: Gu et al. [2019] define a backdoor as executing attacker behavior upon encountering a specified trigger. The paper lists injection vectors including data poisoning, data ordering, malicious fine-tuning, weight modification, model architecture, compilers, and dependencies. Hubinger et al. [2024] use year-type triggers to elicit violating content and state safety fine-tuning may even reinforce hidden behavior.
    • Inference-time insertion: BadChain adds trigger words and extra reasoning steps in CoT examples but requires modifying user prompts. SABER targets code flows; poisoned prompt generators alter operators in reasoning. DarkMind places backdoors in system prompts, activating only when latent triggers appear in the model's own reasoning chain.
    • Fine-tuning-based, which the paper calls closest to this work: Zhu et al. [2025] skip reasoning when triggers appear, with samples of triggered prompts plus direct answers without thought trajectories. ShadowCoT [Zhao et al., 2025] samples contain triggered prompts, corrupted CoT, and corresponding wrong answers.

    Baselines and Evaluation Data

    • Training and general benchmarks: Setup from s1 [Muennighoff et al., 2025], using 1000 samples; Fig. 3b compares Base Qwen 32B, s1 original, the authors' LoRA s1, and poisoned runs, with benchmarks AIME24, GPQA-diamond, OpenAI-math.
    • Clean labels: The authors state the idea draws from Shafahi et al. [2018], Zhu et al. [2019], but the channel is changed to clean prompts, poisoned CoT, clean answers.

    The authors mark previous methods as Normal CoT Backdoor in Fig. 1, and state this paper only poisons thought trajectories, does not modify problems or prompts, adds no extra trigger words, and distributes poison across multiple samples.

  3. How does the paper address this problem?

    Use connecting sentences to string thought trajectories from multiple questions into hops, injecting only into the SFT CoT.

    Overall, this is a decomposed reasoning backdoor during training: connecting the thought trajectories of two problems with a linking sentence causes the model to solve a different problem in its thinking; multiple samples chained together form multi-hop.

    Problem Setting

    • Data unit: Each supervised sample contains a prompt, CoT, and final answer, with a setup similar to Muennighoff et al. [2025].
    • Single hop: Truncate P1's thinking, insert a linking sentence, then append P2's thinking. A jump during inference constitutes a single hop.
    • Multi-hop and backward hops: Another sample connects P2 to P3. Combining multiple segments leads the original problem to a different one, called a decomposable backdoor. Training only demonstrates one-directional connections, but the model sometimes infers backward connections, which the authors call backward hops, and compare with findings from Hu et al. [2024]. Jumps can also start from the middle or end of the chain.
    • Trigger: No separate trigger word is used. The problem itself is the trigger; the same problem has multiple phrasings to avoid dependence on a fixed sentence.

    How Samples Are Constructed

    • Generation: First generate thought trajectories for P1 and P2 using the unpoisoned s1 model; truncate P1 after a random number of sentences, insert one of several linking sentences, then append P2's full thinking (Fig. 2b).
    • Design rationale given by the authors: P2's thinking appears both at the end of P1 and the beginning of P2; keeping a longer prefix strengthens the connection; varying the truncation position makes the branch seem like an optional thought. Multiple linking sentences and problem rewrites make the backdoor depend on problem context rather than a static trigger.
    • Scale: 10–70 x per problem pair. Linking sentences come from combinations of 25 problem rewrites and 25 link types; rewrites are generated by ChatGPT o4-mini-high.
    • Early constructions in Appendix A: Inserting only linking sentences, up to 40 per pair, or using 50 link types, did not produce poisoning behavior. Appending full thinking of P1 and P2 can produce single hops, but exceeding 9000 tokens requires chunking, which the authors call inefficient. The final approach truncates P1 and appends full P2.

    Training

    • Base model and data: LoRA fine-tuning on Qwen-32B. The s1 training set of 1000 samples is concatenated with backdoor samples.
    • Hyperparameters: Appendix A specifies r=256, batch size=16, epochs=10, learning rate=1e-4, using 8 40GB A100s. The authors state this approaches the original s1 on standard benchmarks (Fig. 3b).
    • Problem sets: S1 consists of four structurally similar mod-1000 problems: factorial, Fibonacci product, Lucas product, and Mersenne number product. S2 consists of interval-type programming problems, S3 of subsequence-type programming problems (Appendix B).
    • goto marker: The authors also experiment with a rare random character string, formatted similarly to control tokens separating thinking from answers, placed after the linking sentence and before the poisoned thinking. Samples in Table 1 use this marker per Section 5.3.

    How Success Is Determined

    • Test composition: Each backdoor problem uses one of 25 rewrites; covering training-seen x and 100 unseen x per problem pair, totaling 400 test values. Backdoor evaluation temperature 1; AIME24, GPQA-diamond, OpenAI-math temperature 0.
    • Thinking success: The trajectory must end on the target problem; briefly mentioning it then abandoning does not count. Running to an unrelated problem is judged as a miss, since unpoisoned models also do this. If solving a near-relative of the four target problems, it is reclassified to that target problem. Single-hop, two-hop, and three-hop are counted separately. Proportions with arrows use 100 as denominator; other categories use 400 as denominator (Table 1 note).
    • Answer success: The answer block does not answer the original problem and is recognized as answering another problem, only then is it an answer backdoor. Values in the answer block matching the original problem's answer count as correct.
    • Review: Regex plus DeepSeek-Chat identify the problem and order. The authors state this API misclassifies, so all multi-hop, backward-hop, and unknown trajectories are manually reviewed.
  4. What experiments did the paper conduct?

    On Qwen-32B, S1, 70×4 (with goto marker): thinking hop 63.75%, answer 14.00% (Table 1).

    Experimental setup

    • Models tested: Qwen-32B, LoRA fine-tuned. Fig. 3b also lists Base Qwen 32B, s1 original, Our LoRA s1. Reasoning traces are mainly generated by unpoisoned s1; rewriting uses ChatGPT o4-mini-high.
    • Backdoor data: Four problems each from S1/S2/S3 are chained. Poisoning counts range from 10×4 to 70×4 (Table 1). Figure 3 writes the corresponding runs as ×3 and gives poisoning rates of about 0.057 to 0.174; the two counting schemes are cited separately below.
    • Testing: Backdoor tests total 400 values; arrow hops use 100 as the denominator, the rest use 400 as the denominator. Temperature 1. General benchmarks are AIME24 (30), GPQA-diamond (198), OpenAI-math (500), temperature 0.
    • Metrics: Reasoning backdoor looks at whether the trace stops at the target problem, and is divided into single-hop, two-hop, three-hop, and reverse hop. Answer backdoor looks at whether the answer is given as another problem; answer accuracy is also reported.
    • Review: Regex plus DeepSeek-Chat; multi-hop, reverse hop, and unknown are manually reviewed. The paper does not report random seeds or number of repetitions.
    • Table 1 conditions: Section 5.3 states that these samples had a goto marker added at the start of the poisoned reasoning.

    Main results

    S1 test set, reasoning start contains goto marker (Table 1):

    Swipe horizontally to read the table

    Poisoned samplesReasoning overall hopsAnswer overall hopsAnswer accuracy
    10×40.00%0.00%73.00%
    20×410.25%3.25%67.00%
    30×423.75%5.50%67.25%
    40×430.75%4.50%66.00%
    50×458.00%11.75%67.50%
    60×457.50%13.00%66.75%
    70×463.75%14.00%68.00%
    • Authors' interpretation: Single hops increase with poisoned samples; multi-hops are fewer and do not necessarily expand. In Table 1, three-hop f→i is mostly 0.00%, with a maximum of 3.00% (30×4).
    • Answer side: The authors say the proportion of final answers rewritten is still lower than reasoning. At 70×4, answer overall hops is 14.00%, reasoning is 63.75%. The answer accuracy column ranges from 66.00% to 73.00%.
    • Another success definition: Section 5 writes that at poisoning rates of 5.7%–17.4%, any hop appearing in reasoning is 10.25%–63.75%; counting only the first three problem types is 13.67%–85%. The authors also write two-hop 0%–6%, three-hop 0%–3%, answer poisoning 3.25%–19.25%. Table 1's two-hop column f→h has a maximum of 9.00% (30×4), which is not the same as "0%–6%".

    Utility and the other two problem sets

    • Fig. 3b (written as ×3): Our LoRA s1 is AIME24 43.3%, GPQA-diamond 54.0%, OpenAI-math 89.0%. Poisoned S1, 70×3 is 33.3%, 57.6%, 89.8%. In the same figure, the poisoned row with the lowest AIME24 is S1, 50×3 at 23.3%, and Base Qwen 32B is 26.7%.
    • The authors say poisoned runs largely preserve benign performance. The AIME24 cell is lower than the clean LoRA and also lower than the base model.
    • S2/S3 (Table 2, 70×4): Reasoning overall hops is 41.25% and 35.75%, answer poisoning 9.25% and 8.25%, answer accuracy 47.00% and 49.50%. The authors speculate that the single-hop frequency difference is at most about 30%, possibly related to connecting sentence length.

    Goto marker and reasoning–answer disconnect

    • Table 2: At 70×4, after removing the marker, reasoning overall hops is 50.00%, answer poisoning 12.25%; multiple markers is 53.25% and 12.00%; the same marker placed after the answer block is 59.00% and 19.25%. At 40×4, the corresponding answer poisoning goes from 4.50% to 8.25%.
    • The authors say the marker is like a control token, and say that adding it before reasoning can increase hop performance by up to 127.5%, and adding it after the answer can increase poisoned answers by up to 165%. These two percentages cannot be obtained directly from Table 2's overall hops or Answer Poisoned columns; the previous item uses the table cells.
    • Other observations: When only the last hop's answer is also poisoned, the authors say the last-hop answer poisoning on the test set is 84%, the first two hops average 14%, and the increase relative to baseline is 0% (Section 5.3). In S1, 70×3, reasoning actively discussing link contradictions is 17/680. Sec. D, for 10 samples with markers, says the marker receives about 3 times the average attention of other tokens.

    Other ablations and analyses

    • Inserting only connecting sentences, at most 40 per pair: Appendix A says no poisoning behavior appeared.
    • Training set Table 3, S1, 70×4: answer poisoning 16.43%, answer accuracy 67.14% (denominator is all poisoned samples in that training set).
    • Reverse hop: Table 1 is 0.75% at 20×4, 6.25% at 60×4; 0.00% at 10×4.
    • Defense filtering Table 4 (210 each, DeepSeek-R1): benign s1 inconsistency rate 43.9%, poisoned S1 98.6%, S2 63.8%, S3 66.8%.
    • The authors say each API call takes about 45 seconds; 420 samples processed sequentially take over five hours. After clustering, benign detours and poisoned problem types are mixed in the same category counts.
    • The authors also write that Li et al. [2024b] can detect backdoors about 80–90% of the time, but each query requires two more API calls, tripling cost and latency; this is a restatement of an existing method, not a reproduction in this paper.
  5. What are some points that can be further explored?

    The attached discussion does not separately list research limitations; the stated evaluations are Qwen-32B and S1–S3.

    Limitations and Future Directions Noted by the Authors

    The attached Discussion (Section 5) and Conclusion (Section 6) do not write specific items as research limitations or future work. Section 5 writes "the limited impact of poisoning only thinking on core reasoning" as an interpretation of results, not as a limitation of this study's scope. Unattached appendix sections are not inferred here.

    Experimental Coverage

    • The model for backdoor fine-tuning and main results is Qwen-32B; Fig. 3b also gives benchmark scores for Base Qwen 32B, s1 original, and Our LoRA s1.
    • Backdoor problem sets are S1 (factorial, Fibonacci, Lucas, Mersenne products, mod 1000), S2 (interval-type programming problems), S3 (subsequence-type programming problems).
    • General benchmarks are AIME24 (30 problems), GPQA-diamond (198 problems), OpenAI-math (500 problems), temperature 0; backdoor tests temperature 1, totaling 400 test values.
    • Whether thinking/answers are poisoned is determined by regex and DeepSeek-Chat, with manual review for multi-hop, backward-hop, and unknown. Training data filtering uses DeepSeek-R1, with 210 samples each for benign s1 and three poisoned sets (Table 4).
    • The paper specifies LoRA's r, batch size, epochs, learning rate, and that constructing 210 poisoned samples takes about 8 hours, training about 5 hours, and 680 full backdoor evaluations up to 17 hours. The paper does not report the number of repetitions or random seeds.
  6. Summarize the main content of the paper

    Decomposed CoT poisoning can alter thinking, but on Qwen-32B final answers mostly still follow the original problem.
    • Positioning: This is training-time poisoning of reasoning models. The attacker modifies the thought trajectory, not the prompt or final answer, and the trigger is the question itself.
    • Method: Use LoRA on Qwen-32B, fine-tuning s1's 1000 samples together with backdoor samples. Each backdoor sample truncates the first question's thought and uses a connecting sentence to link to the second question's full thought; multiple samples are chained as f to g, g to h, h to i. Questions have multiple paraphrases to avoid a single trigger sentence.
    • Thought side: On the S1 test set, 70×4, when the thought start has a goto marker, thought overall hops is 63.75%, and 0.00% at 10×4 (Table 1). Two-hop and three-hop are much less than single-hop. S2, S3 at 70×4 are 41.25% and 35.75% (Table 2).
    • Answer side: Under the same S1 setting, answer overall hops is 14.00%, and answer accuracy is 68.00%. Placing the marker after the answer block gives answer poisoning of 19.25% (Table 2). The authors state that the model often returns to the original question's logic at the answer control token.
    • Utility and filtering: In Fig. 3b, poisoned S1, 70×3 has OpenAI-math of 89.8%, clean LoRA s1 is 89.0%; AIME24 is 33.3% vs. 43.3%. DeepSeek-R1 judges 210 benign s1 as inconsistent at 43.9%, and poisoned S1 at 98.6% (Table 4).
    • Authors' conclusion: Backdoors can be injected into thought and chained across samples into multi-hop; making them stably appear in the final answer is difficult. The authors attribute this to self-correction in reasoning and the separation between thought blocks and answer blocks, calling it a form of backdoor robustness emerging from reasoning capabilities.

Related papers

Read originalSaTML 2026