mlsanityData to 14 Oct 2026

LoRA is All You Need for Safety Alignment of Reasoning LLMs

arXiv 2507.17075 ↗First posted 22 Jul 2025cs.AIcited by 6

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 2 more
Abstract (arXiv)

Reasoning-capable LLMs have achieved major breakthroughs in solving complex problems, but recent work shows that acquiring and deploying strong reasoning can introduce significant safety risks. A common mitigation is to apply a secondary safety-alignment phase after reasoning is learned; however, safety alignment often degrades reasoning performance--a phenomenon known as the "Safety Tax". In this work, we show that a simple approach can largely bypass this trade-off: applying LoRA during SFT on refusal datasets. Despite its simplicity, this recipe achieves safety comparable to full-model alignment while preserving reasoning performance close to the original reasoning-tuned model, and the result holds across multiple model sizes and architectures, two safety benchmarks, and four reasoning benchmarks spanning mathematics, science, and code generation. We further ablate LoRA configurations and find that (1) rank-1 updates are sufficient to achieve the best safety-reasoning trade-off, (2) applying LoRA only to the MLP up-projection layers can outperform updating the full MLP, and (3) updating middle layers is more effective than updating early or late layers. Finally, we provide a theoretical analysis that helps understand when and why LoRA works, revealing that overshooting the rank budget (using a larger rank than needed for the finetuning task) induces base-task degradation at a rate inversely proportional to the intrinsic dimensionality of the base task. This suggests LoRA is most effective when the finetuning task is low-rank and the base capability is high-rank.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 36 of its 58 references that are in the map. First posted on arXiv 22 Jul 2025.

Builds on

36 of 58 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Safety Tax: Safety Alignment Makes Your Large Reasoning Models Less Reasonable1 Mar
  2. 2025The Hidden Risks of Large Reasoning Models: A Safety Assessment of R118 Feb
  3. 2025SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities17 Feb
  4. 2025Are Smarter LLMs Safer? Exploring Safety-Reasoning Trade-offs in Prompting and Fine-Tuning13 Feb
  5. 2024Deliberative Alignment: Reasoning Enables Safer Language Models20 Dec

Other references · 31

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  3. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  4. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2025s1: Simple test-time scalingcited by 1,341
  7. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  8. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  9. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  10. 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
  11. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  12. 2023Detecting Language Model Attacks with Perplexitycited by 431
19 more
  1. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  2. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 247
  3. 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modificationscited by 231
  4. 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teamingcited by 181
  5. 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
  6. 2025Small Models Struggle to Learn from Strong Reasonerscited by 113
  7. 2023Fine-tuning can cripple your foundation model; preserving features may be the solutioncited by 96
  8. 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
  9. 2024Defending LLMs against Jailbreaking Attacks via Backtranslationcited by 70
  10. 2024Robust LLM safeguarding via refusal feature adversarial trainingcited by 64
  11. 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
  12. 2024Surgical, Cheap, and Flexible: Mitigating False Refusal in Language Models via Single Vector Ablationcited by 48
  13. 2016Gradient Descent Only Converges to Minimizers: Non-Isolated Critical Points and Invariant Regionscited by 34
  14. 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 34
  15. 2025Just Enough Shifts: Mitigating Over-Refusal in Aligned Language Models with Targeted Representation Fine-Tuningcited by 24
  16. 2025Trade-offs in Large Reasoning Models: An Empirical Analysis of Deliberative and Adaptive Reasoning over Foundational Capabilitiescited by 20
  17. 2025Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasetscited by 20
  18. 2025Shape it Up! Restoring LLM Safety during Finetuningcited by 11
  19. 2024Mitigating Exaggerated Safety in Large Language Modelscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Decoupling Safety into Orthogonal Subspace: Cost-Efficient and Performance-Preserving Alignment for Large Language Models
  2. 2025STAR-1: Safer Alignment of Reasoning LLMs with 1K Data
  3. 2026Mitigating Safety Tax via Distribution-Grounded Refinement in Large Reasoning Models
  4. 2026Mitigating the Safety-utility Trade-off in LLM Alignment via Adaptive Safe Context Learning
  5. 2025Safe Pruning LoRA: Robust Distance-Guided Pruning for Safety Alignment in Adaptation of LLMs
  6. 2025Self-Guided Adaptive Safety Alignment: Synthesizing and Internalizing Guidelines in Reasoning Models
  7. 2025Beyond Safe Answers: A Benchmark for Evaluating True Risk Awareness in Large Reasoning Models
  8. 2026Reducing the Safety Tax in LLM Safety Alignment with On-Policy Self-Distillation