Lune

Abstract

Reasoning methods that adaptively allocate test-time compute have advanced LLM performance on easy to verify domains such as math and code. In this work, we study how to utilize this approach to train models that exhibit a degree of robustness to safety vulnerabilities, and show that doing so can provide benefits. We build a recipe called TARS\textit{TARS} (Training Adaptive Reasoners for Safety), a reinforcement learning (RL) approach that trains models to reason about safety using chain-of-thought traces and a reward signal that balances safety with task completion. To build TARS, we identify three critical design choices: (1) a ``lightweight''warmstart SFT stage, (2) a mix of harmful, harmless, and ambiguous prompts to prevent shortcut behaviors such as too many refusals, and (3) a reward function to prevent degeneration of reasoning capabilities during training. Models trained with TARS exhibit adaptive behaviors by spending more compute on ambiguous queries, leading to better safety-refusal trade-offs. They also internally learn to better distinguish between safe and unsafe prompts and attain greater robustness to both white-box (e.g., GCG) and black-box attacks (e.g., PAIR). Overall, our work provides an effective, open recipe for training LLMs against jailbreaks and harmful requests by reasoning per prompt.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Submodular Optimization for Minimal Augmentation in Robust Language Model Alignment cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Submodular Optimization for Minimal Augmentation in Robust Language Model Alignment cites Training language models to follow instructions with human feedback
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Mitigating the Safety–Utility Trade-off in LLM Alignment via Adaptive Safe Context Learning cites Let's Verify Step by Step
  • Let's Verify Step by Step cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Let's Verify Step by Step cites Training language models to follow instructions with human feedback
  • AutoRAN: Automated Hijacking of Safety Reasoning in Large Reasoning Models cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • AutoRAN: Automated Hijacking of Safety Reasoning in Large Reasoning Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Towards Safe Reasoning in Large Reasoning Models via Corrective Intervention cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Towards Safe Reasoning in Large Reasoning Models via Corrective Intervention cites Let's Verify Step by Step
  • Towards Safe Reasoning in Large Reasoning Models via Corrective Intervention cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal JailbreaksHoagy Cunningham, Jerry Wei, Zihan Wang, Andrew Persic et al.ICLR 2026 · 39 citations
  2. Towards Safe Reasoning in Large Reasoning Models via Corrective InterventionYichi Zhang, Yue Ding, Jingwen Yang, Tianwei Luo et al.ICLR 2026 · 13 citations
  3. Mitigating the Safety–Utility Trade-off in LLM Alignment via Adaptive Safe Context LearningYanbo Wang, Minzheng Wang, Jian Liang, Lu Wang et al.ICML 2026 · 3 citations
  4. AutoRAN: Automated Hijacking of Safety Reasoning in Large Reasoning ModelsJiacheng Liang, Tanqiu Jiang, Yuhui Wang, Rongyi Zhu et al.ACL 2026 · 3 citations
  5. Submodular Optimization for Minimal Augmentation in Robust Language Model AlignmentCHING-CHIA KAO, Chia-Mu Yu, Chun-Shien Lu, Chu-song ChenICML 2026

Builds on32

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  3. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  4. Let's Verify Step by StepHunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards et al.ICLR 2024 · 3,045 citations
  5. HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, Andy Zou et al.ICML 2024 · 1,031 citations

Related papers

  1. Safety Reasoning with GuidelinesHaoyu Wang, Zeyu Qin, Li Shen, Xueqian Wang et al.ICML 2025
  2. Endless Jailbreaks with Bijection LearningBrian R. Y. Huang, Maximilian Li, Leonard TangICLR 2025
  3. Safety is Not Only About Refusal: Reasoning-Enhanced Fine-tuning for Interpretable LLM SafetyYuyou Zhang, Miao Li, William Han, Yihang Yao et al.ACL Findings 2025 · 5 citations
  4. Thinking Twice Makes Large Language Models Safer and More HelpfulYutao Mou, Yuxiao Luo, Shikun Zhang, Wei YeACL Findings 2026
  5. The Alignment Waltz: Jointly Training Agents to Collaborate for SafetyJingyu Zhang, Haozhu Wang, Eric Michael Smith, Sid Wang et al.ICLR 2026 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines