techlist.io

Adversarial Robustness

2 posts

OpenAI2025-01-213 min readCurated summary

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.

OpenAI2019-02-032 min readCurated summary

Computational limitations in robust classification and win-win results

This paper extends recent work by Bubeck, Lee, Price, and Razenshteyn on the computational difficulty of learning robust classifiers. Their earlier result showed tasks where an efficient robust classifier exists for small perturbations, a non-robust classifier can be learned efficiently, but learning a robust one is computationally hard under the assumption that factoring is hard. The authors push this line of work in three directions, showing that computational barriers to robustness are broader than previously shown and are tied to cryptographic primitives. They conclude with a win-win result: either an efficient robust classifier can be learned, or new cryptographic primitives can be constructed. ### Hardness Even When Robust Classifiers Exist - The authors give classification tasks where efficient robust classification is impossible, even though computationally unbounded robust classifiers exist. - This construction relies on the existence of average-case hard functions. ### Hard Robust Learning in the Large-Perturbation Regime - Even when an efficient classifier robust to large perturbations exists, learning any non-trivial robust classifier can be computationally hard. - One construction assumes one-way functions exist. - A second construction relies on the hardness of the learning parity with noise (LPN) problem. - In the LPN setting, a non-robust classifier exists and an efficient algorithm can generate fresh labeled samples from polynomially many training examples. This is the "generation" notion defined by Kearns et al. (1994). ### Robust Classification and Cryptography - Any such counterexample implies the existence of cryptographic primitives, such as one-way functions. - This gives a win-win dichotomy: either an efficient robust classifier can be learned, or new cryptographic primitives can be built.