Abstract
Recent reasoning large language models (LLMs) have demonstrated remarkable improvements in mathematical reasoning capabilities through long Chain-of-Thought. The reasoning tokens of these models enable self-correction within reasoning chains, enhancing robustness. This motivates our exploration: how vulnerable are reasoning LLMs to subtle errors in their input reasoning chains? We introduce "Compromising Thought" (CPT), a vulnerability where models presented with reasoning tokens containing manipulated calculation results tend to ignore correct reasoning steps and adopt incorrect results instead. Through systematic evaluation across multiple reasoning LLMs, we design three increasingly explicit prompting methods to measure CPT resistance, revealing that models struggle significantly to identify and correct these manipulations. Notably, contrary to existing research suggesting structural alterations affect model performance more than content modifications, we find that local ending token manipulations have greater impact on reasoning outcomes than structural changes. Moreover, we discover a security vulnerability in DeepSeek-R1 where tampered reasoning tokens can trigger complete reasoning cessation. Our work enhances understanding of reasoning robustness and highlights security considerations for reasoning-intensive applications.
Introduction
The current "Reasoning Era" of artificial intelligence is defined by models that utilize long Chain-of-Thought (CoT) to "think" before generating a final response. These models, such as DeepSeek-R1 and OpenAI’s o1 series, are praised for their ability to self-correct—scrutinizing their own intermediate steps to identify and fix errors. However, this advancement raises a critical question: what happens when the "thought" provided to the model is intentionally corrupted?
We investigate whether these models prioritize the process (the logical reasoning steps) or the result (the specific ending tokens). We uncover a vulnerability termed Compromising Thought (CPT), where models are misled by subtle errors in their input reasoning chains. If a model is shown a reasoning chain that is 99% correct but ends in a slightly tampered result, it often abandons its internal logic to match the provided context, effectively "gaslighting" itself into an incorrect answer.
Methodology
To quantify this vulnerability, we developed a framework centered on "digit substitution" within "loop ending result" tokens—the numerical conclusions at the end of logical steps. For instance, a product ending in ...262 might be changed to ...264 within the input reasoning chain.
Probing Resistance
To determine if models can be prompted to resist CPT, we designed three increasingly explicit methods:
- Method 1 (Uncertainty Prompting): The model is told its previous thinking might be wrong and needs careful identification.
- Method 2 (Direct Contradiction): The model is explicitly informed that the previous tokens are wrong and should be ignored.
- Method 3 (Output Prefix Control): The model is forced to begin its response with a specific string (e.g., "My previous thinking is incorrect...") to override its internal tendencies to follow the provided context.
Datasets and Metrics
We utilized two primary data sources: a custom Standalone Arithmetic dataset involving high-precision tasks (e.g., 15-digit addition) and Mathematical Word Problems from GSM-Ranges (level 6 perturbations). We defined the Compromising Rate ($r_{CPT}$) to measure the frequency with which a model's output is influenced by tampered digits rather than the correct mathematical result.
Key Insights and Results
The "Gaslighting" Effect and Model Susceptibility
Our evaluations revealed that even when models start a calculation correctly, they frequently pivot at the final moment to match the incorrect provided result. Under baseline conditions, DeepSeek-R1 and Doubao showed almost zero resistance to CPT in complex word problems, yielding a Compromising Rate of 1.00. While OpenAI’s o1-mini and o1 demonstrated higher resilience, they were still significantly affected, particularly in multiplication tasks.
Content Over Structure
Contrary to previous research suggesting that the structure of a CoT (e.g., the number of steps) is the primary driver of performance, we found that local ending tokens have a much more significant impact. A single incorrect digit at the end of a reasoning step proved more "toxic" to the final output than deleting or inserting entire reasoning blocks. Furthermore, models were more susceptible to "small lies"; when only one or two digits were changed, the discrepancy was often too subtle to trigger the model's internal error-detection mechanisms.
Security Vulnerability: "Thinking Stopped"
In a startling discovery, we found that resubmitting DeepSeek-R1’s own reasoning tokens back to it with minor tampered errors can cause the model to completely cease reasoning and return an empty response. This represents a potential denial-of-service style security risk for agentic workflows that rely on these models for autonomous reasoning.
Conclusion
The CPT vulnerability highlights a surprising fragility in the self-correction capabilities of state-of-the-art reasoning LLMs. While these models are capable of complex logic, they remain highly sensitive to the "authority" of provided reasoning tokens, even when those tokens contradict basic arithmetic. Future work must focus on developing architectural defenses that prevent models from over-relying on provided context and addressing the "Thinking Stopped" behavior to ensure the robustness of reasoning-intensive AI applications.
Summary updated