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

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

TL;DR

Large Language Models (LLMs) face a hidden "alignment tax": techniques designed to reduce hallucinations often inadvertently weaken the model's safety guardrails. This paper demonstrates that hallucination and refusal behaviors share overlapping internal representations, and proposes a surgical fine-tuning method using Sparse Autoencoders (SAEs) to decouple them, improving truthfulness without sacrificing safety.

What Problem Does This Paper Address?

AI alignment typically pursues two parallel goals: truthfulness (ensuring the model doesn't fabricate facts) and safety (ensuring the model refuses harmful requests). Usually, researchers treat these as independent problems.

However, the authors identify a core tension: interventions that make a model more "truth-seeking" can make it more "jailbreak-prone." As shown in Figure 1, a model that is "refined" to correctly answer tricky factual questions might lose its ability to recognize and refuse harmful prompts because the internal mechanisms for both behaviors are entangled.

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

Methods

The authors first prove the trade-off exists by showing that standard truthfulness-enhancing methods like Inference-Time Intervention (ITI) and TruthX significantly increase the success rate of adversarial attacks.

To fix this, they propose a three-step "surgical" approach:

  1. Mechanistic Analysis: They use head patching and contrastive influence mapping to identify specific attention heads that mediate both hallucination and refusal.
  2. Feature Disentanglement: Because these heads are "polysemantic" (they do multiple things), 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 benign datasets, they apply subspace orthogonalization. This technique projects gradient updates so they do not interfere with the identified refusal features. Essentially, they "freeze" the safety-critical parts of the model's internal representation while allowing the rest of the model to learn and improve its factual accuracy.

Datasets

The study utilizes a comprehensive suite of benchmarks:

  • Truthfulness & Reasoning: TruthfulQA (for hallucinations), CSQA, HellaSwag, ARC (Challenge and Easy), WinoGrande, and SST-2.
  • Safety & Robustness: AdvBench and StrongReject (to measure jailbreak susceptibility).
  • Training & SAEs: FineWeb and lmsys-chat (for SAE training); a "poisoned" version of the reasoning datasets (augmented with 10% harmful instructions) was used to test robustness.

Key Insights and Ideas

  • The Overlap Discovery: The most critical finding is that hallucination and refusal signals inhabit the same internal "neighborhoods" (attention heads). This explains why broad interventions to improve one often break the other.
  • Ablation as Evidence: When the authors manually "patched out" (disabled) the identified refusal heads, the model's safety collapsed, with jailbreak success rates jumping from near 0% to over 50% (see Figure 5).
  • The "Refusal Subspace": By using SAEs, the authors show that safety isn't just a surface-level behavior but is encoded in specific, identifiable directions within the model's latent space.
Ablating refusal heads breaks the model's refusal mechanism, leading to a massive spike in attack success rates.

Key Results

The authors' SAE-guided method achieved a superior balance compared to vanilla fine-tuning and other state-of-the-art alignment techniques:

  • Better Utility: On Llama-3-8B, their method improved average reasoning accuracy to 75.09% (up from 67.15% in the base model).
  • Maintained Safety: While standard fine-tuning (SFT) saw jailbreak success rates (ASR) on AdvBench climb to 9.23%, the authors' method kept it at a negligible 0.58%.
  • Poisoning Resistance: Even when the training data was intentionally "poisoned" with harmful examples, their method maintained a low 1.92% ASR on StrongReject, whereas vanilla SFT spiked to nearly 72%.
Comparison of Attack Success Rates (ASR) across different methods. Standard truthfulness interventions (ITI, TruthX) significantly increase vulnerability compared to the base model.

Limitations and Future Work

  • Computational Cost: Training SAEs is resource-intensive. Scaling this "surgical" approach to the largest frontier models (e.g., 400B+ parameters) remains a challenge.
  • Component Scope: The current work focuses heavily on attention heads. The authors acknowledge that a more comprehensive study of other layers and mechanisms might yield even deeper insights.
  • Architecture Generalization: While tested on Llama and Qwen, further investigation is needed to see if these representational overlaps are a universal property of all Transformer-based LLMs.

Summary updated

BibTeX
@inproceedings{mahmoud2026unintended,
  author = {Omar Mahmoud and Ali Khalil and Thommen George Karimpanal and Buddhika Laknath Semage 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