Trading Inference-Time Compute for Adversarial Robustness
# Robustness Gains from Longer Reasoning at Inference Time OpenAI reports preliminary evidence that reasoning models such as o1-preview and o1-mini become more resistant to adversarial attacks when they are given more inference-time compute. Across math, factuality, image, misuse, and policy-compliance tasks, attack success often falls toward zero as the model thinks longer, and this gain arises without any attack-specific training. Significant exceptions remain, so the authors present the result as a promising direction rather than a solved problem. ## Why Adversarial Robustness Remains Hard - Adversarial vulnerability has been documented since 2014, when imperceptible image perturbations were shown to cause misclassification. - The problem has grown more pressing as models handle high-stakes tasks and act as agents that browse the web and take actions for users. - Scaling model size alone has not produced robustness, unlike many other capabilities. ## Testing Robustness Against Inference-Time Compute - The team measured attack success probability as a function of how much computation the model used at inference, with static and adaptive attacks. - Tasks included: - Arithmetic and the MATH benchmark, with adversary goals such as outputting 42, the correct answer plus one, or the correct answer times seven. - An adversarial version of the SimpleQA factuality benchmark, with injected prompts in browsed web pages. - Adversarial images from the Attack Bard paper. - Misuse prompts from StrongREJECT. - An internal evaluation of a model spec rule. - Attack surfaces included many-shot attacks, optimized soft tokens, adversarial language model programs that perform automated red teaming, and adversarial multimodal inputs. Not every attack was applied to every dataset. - Unlike adversarial training, the model is unaware of the attack, so the gains come purely from additional inference-time compute. The authors suggest this could help against attacks not anticipated during training. ## Limitations and Open Problems - **Initial rise in success:** For some tasks, attack success first increases with compute and then declines, likely because the model needs a minimum amount of reasoning to carry out the attacker's target (for example, it must solve the math problem before it can add one). - **Persistent failures:** On StrongREJECT with the language model program attack, success sometimes does not decline. Some prompts seek information that is only prohibited in certain contexts, so the attacker can find a setting where the policy-compliant answer is to provide it. - **Imperfect compute control:** Attackers can sometimes trick the model into skipping reasoning or wasting its compute budget. The authors used a naive allocation strategy and see teaching the model to spend compute wisely as a promising research direction. ## Conclusion The results point to inference-time compute as a potentially powerful lever for adversarial robustness. The authors note that substantial work remains before this promise becomes a reliable defense.