NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Does More Inference-Time Compute Really Help Robustness?

Tong Wu, Chong Xiang, Jiachen T. Wang, Weichen Yu, Prateek Mittal

TL;DR

While increasing inference-time compute improves adversarial robustness when intermediate reasoning chains remain hidden, this paper reveals an inverse scaling law: if an attacker can see the model's chain-of-thought (CoT), generating more reasoning tokens consistently degrades safety and robustness. Furthermore, even when reasoning is hidden, longer "thinking" increases vulnerabilities in tool-integrated systems and exposes models to chain-of-thought extraction attacks.

What Problem Does This Paper Address?

Recent work (such as OpenAI's reports on o1 and Zaremba et al., 2025) suggests that giving reasoning models more inference-time compute—letting them "think" longer—boosts not only problem-solving accuracy but also robustness against adversarial attacks like prompt injection.

However, existing studies rely on two major gaps:

  1. They focus largely on proprietary frontier models, leaving open-source models uncharacterized.
  2. They make an unstated assumption: the reasoning trace is hidden from users and adversaries.

In open-source deployments, user-facing applications, or services with exposed CoT (such as xAI's Grok or local R1 weights), this assumption breaks down. The authors investigate how inference-time scaling affects robustness in open-source reasoning models and what happens when intermediate reasoning tokens are accessible or capable of executing external actions.

Methods

  • Inference-Time Budget Forcing: To systematically control reasoning length, the authors adopt the budget forcing strategy from Muennighoff et al. ($s1$). If the model tries to stop thinking before reaching a token limit (budgets tested from 100 to 16,000 tokens), an append prompt like "Wait," forces it to keep reasoning. Once the budget is reached, an end-of-thinking delimiter and "Final Answer:" prompt immediate response generation.
  • Dual Robustness Evaluation:
  • Hidden Evaluation: Evaluates whether the final answer succumbs to the attack (the standard paradigm).
  • Exposed Evaluation: Evaluates whether intermediate reasoning tokens leak sensitive secrets or exhibit safety violations, modeling a scenario where adversaries inspect thinking steps.
  • Tool-Use Attack Simulation: Open-source models were prompted to allow API calls directly inside their reasoning traces (<API_CALL>...</API_CALL>) to evaluate whether longer thinking chains trigger unsafe tool executions.
  • Evaluated Models: 12 open-source reasoning models (8B to 32B parameters), including DeepSeek-R1 distillations, Qwen3 variants, QwQ-32B, STAR-1, and Phi-4-reasoning models.

Datasets

  • SEP (Prompt Injection): 500 sampled prompts where low-priority adversarial instructions are embedded within untrusted data to override high-priority instructions.
  • TensorTrust (Prompt Extraction): 570 prompts designed to trick models into revealing confidential system passcodes.
  • SORRY-Bench (Harmful Requests): 450 harmful instructions across 45 risk categories evaluated using GPT-4o-mini as a refusal judge.
  • LLM-PIRATE / LLM-PIEVAL (Tool-use Injection): 750 examples testing whether untrusted data prompts unintended or dangerous function calls during generation.

Key Insights and Ideas

  • Inference Scaling Helps Final Outputs (Prompt Injection & Extraction): Confirming proprietary findings on open-source models, more reasoning tokens allow models to better attend to system instructions and ignore distracting prompt injections or extraction attempts in their final output.
  • The "Inverse Scaling Law" of Exposed Reasoning: The probability of generating at least one unsafe or leaking token monotonically increases with sequence length: $$\Pr[\mathcal{E}_L] \ge 1 - (1 - p_*)^L$$ As reasoning tokens grow from 100 to 16,000, the chance that sensitive data (passcodes) or prohibited material appears somewhere in the thought process increases drastically.

  • Hiding CoT Does Not Completely Solve the Problem:

  • Tool-Augmented Reasoning Risks: If models call APIs during their internal thinking, longer reasoning chains provide more opportunities for indirect prompt injections to trigger unauthorized external API actions.
  • CoT Extraction: Hidden reasoning is not truly private; prior red-teaming shows attackers can often coax models into repeating their hidden traces.

Key Results

  • Hidden Chains (Final Output Robustness):
  • On prompt injection (SEP), QwQ-32B's robustness jumped from ~35% (100 tokens) to ~75% (16k tokens).
  • On prompt extraction (TensorTrust), robustness improved from ~60% to ~80%.
  • Harmful request refusals (SORRY-Bench) remained relatively flat across budget changes (e.g., Qwen3-8B hovered around 70%).
  • Exposed Chains (Inverse Scaling):
  • In prompt injection, R1-Qwen-14B intermediate robustness plummeted from ~90% down to <20% at 16k tokens.
  • In prompt extraction, robustness dropped by ~60% across budgets.
  • Harmful request safety in reasoning traces saw a 20%–40% degradation.
  • Tool Calling Vulnerability:
  • In tool-use injection tests, Phi-4-reason's robustness dropped from 100% to ~87% as the thinking budget grew to 8,000 tokens.

Limitations and Future Work

  • Sequential Scaling Only: The study examines sequential budget forcing; it does not evaluate parallel inference-time scaling strategies such as Best-of-$N$ voting or Monte Carlo Tree Search (MCTS).
  • Heuristic Attack Methods: The paper evaluates out-of-the-box attacks rather than attacks explicitly optimized to extract secrets from intermediate reasoning steps.
  • Simulated Tool Use: Because evaluated models did not have native function calling interleaved into reasoning, tool calls were prompted synthetically rather than evaluated in native agent architectures (like OpenAI o3/o4).
  • Future Work: Developing principled, automated methods to test chain-of-thought extraction and designing training interventions that keep reasoning chains safe without suppressing model capabilities.

Summary updated

BibTeX
@inproceedings{wu2025does,
  author = {Tong Wu and Chong Xiang and Jiachen T. Wang and Weichen Yu and Prateek Mittal},
  title = {{Does More Inference-Time Compute Really Help Robustness?}},
  booktitle = {ResponsibleFM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=71LVPdzFmw},
}
Figure