The Unintended Trade-off of AI Alignment:Balancing Hallucination Mitigation and Safety in LLMs

Omar Mahmoud, Ali Khalil, Buddhika Laknath Semage, Thommen George Karimpanal, Santu Rana · DOI

Abstract

Large Language Models (LLMs) often face a hidden "alignment tax" where techniques designed to reduce hallucinations inadvertently weaken safety guardrails. This paper demonstrates that hallucination and refusal behaviors share overlapping internal representations. We propose a surgical fine-tuning method using Sparse Autoencoders (SAEs) to decouple these behaviors, enabling improved truthfulness without sacrificing model safety.

Introduction: The Alignment Tension

AI alignment typically pursues two parallel objectives: truthfulness (ensuring the model does not fabricate facts) and safety (ensuring the model refuses harmful requests). Traditionally, researchers have treated these as independent optimization problems. However, this research identifies a core tension: interventions that make a model more "truth-seeking" can simultaneously make it more "jailbreak-prone."

As illustrated in the conceptual framework below, a model refined to correctly answer tricky factual questions often loses its ability to recognize and refuse harmful prompts because the internal mechanisms for both behaviors are entangled within the same neural subspaces.

The truthfulness–safety trade-off: interventions improving truthfulness can unintentionally compromise safety by disrupting refusal-related subspaces.

Quantifying the Trade-off

The authors empirically prove this trade-off by evaluating standard truthfulness-enhancing methods, such as Inference-Time Intervention (ITI) and TruthX. While these methods succeed in reducing hallucinations, they significantly increase the success rate of adversarial attacks. On benchmarks like AdvBench and StrongReject, these interventions cause the Attack Success Rate (ASR) to spike compared to the base model, revealing a critical vulnerability introduced by truth-seeking alignment.

Comparison of Attack Success Rates (ASR) across different methods. Standard truthfulness interventions (ITI, TruthX) significantly increase vulnerability compared to the base model.

Methodology: Surgical Disentanglement

To resolve this conflict, the paper proposes a three-step "surgical" approach to alignment:

  1. Mechanistic Analysis: The researchers use head patching and contrastive influence mapping to identify specific attention heads that mediate both hallucination and refusal. They found that disabling these "refusal heads" caused safety to collapse, with jailbreak success rates jumping from near 0% to over 50%.
  2. Feature Disentanglement: Because these heads are polysemantic (performing multiple functions), the authors train Sparse Autoencoders (SAEs) on the head activations. This allows them to isolate individual, "monosemantic" features specifically tied to refusal behavior.
  3. SAE-Guided Fine-Tuning: During fine-tuning on reasoning datasets, the authors apply subspace orthogonalization. This technique projects gradient updates so they do not interfere with the identified refusal features. By "freezing" the safety-critical directions in the model's latent space, the model can learn factual accuracy without degrading its refusal mechanisms.

Key Results and Insights

The SAE-guided method achieves a superior balance compared to vanilla fine-tuning (SFT) and other state-of-the-art techniques:

  • Enhanced Utility: On Llama-3-8B, the method improved average reasoning accuracy to 75.09% (up from 67.15% in the base model).
  • Robust Safety: While standard SFT saw ASR on AdvBench climb to 9.23%, the surgical method kept it at a negligible 0.58%.
  • Poisoning Resistance: The method proved resilient even when training data was intentionally "poisoned" with harmful examples, maintaining a low 1.92% ASR on StrongReject, whereas vanilla SFT spiked to nearly 72%.

Conclusion and Future Work

This work highlights that safety is not just a surface-level behavior but is encoded in specific, identifiable directions within an LLM's latent space. While the surgical approach is effective, the computational cost of training SAEs remains a challenge for scaling to frontier models exceeding 400B parameters. Future research will explore whether these representational overlaps are universal across all Transformer architectures and how to optimize the efficiency of feature-level interrogation.

Summary updated

BibTeX
@inproceedings{mahmoud2026unintended,
  author = {Omar Mahmoud and Ali Khalil and Buddhika Laknath Semage and Thommen George Karimpanal and Santu Rana},
  title = {{The Unintended Trade-off of AI Alignment:Balancing Hallucination Mitigation and Safety in LLMs}},
  booktitle = {EACL (Findings)},
  year = {2026},
  doi = {10.18653/v1/2026.findings-eacl.53},
}
Figure