Self-Memory Alignment: Mitigating Factual Hallucinations with Generalized Improvement

Siyuan Zhang, Yichi Zhang, Yinpeng Dong, Hang SuarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) frequently generate plausible-sounding but incorrect information, a phenomenon known as factual hallucination. While it is often assumed these models lack the necessary information, research suggests they frequently possess the correct facts internally but fail to utilize them during generation. This failure in knowledge utilization stems from three primary issues in current post-training methods: signal noise in open-ended training, the "alignment tax" where factuality gains come at the cost of helpfulness, and poor generalization across domains or languages.

This paper introduces PKUE (Precise Knowledge Utilization Enhancement), a self-alignment framework designed to bridge the gap between a model's latent knowledge and its generated output. By reinforcing the model's ability to find the correct factual paths it already possesses, PKUE achieves broad performance gains without the typical trade-offs.

The PKUE Framework

PKUE is a four-step self-alignment process that avoids the need for external knowledge injection, focusing instead on "unlocking" the model's existing memory:

  1. Diversity Sampling: The model is prompted with precise factual questions at a high "temperature" to explore various internal generation paths, often producing both correct and incorrect answers for the same query.
  2. Reference-Based Verification: Self-generated answers are verified against ground-truth standards using a verifier model (e.g., GPT-4).
  3. Pairs Construction: The system creates preference pairs consisting of a Chosen (correct) and a Rejected (incorrect) response from the model's own outputs.
  4. Preference Optimization: The model is fine-tuned using Direct Preference Optimization (DPO) on these self-generated pairs.
The PKUE framework: from entry filtering and question generation to reference-based verification and preference optimization.

FactualBench Dataset

To facilitate this training, the authors developed FactualBench, a comprehensive Chinese factual QA dataset. Extracted from Baidu Baike, it contains 181,000 QA pairs across 21 diverse domains, including History, High Technology, and Biography. Each entry is structured with a precise question, a standard answer, and three distractor answers, providing a clean signal for alignment that generalizes better than complex, noisy instructions.

Experimental Results and Insights

PKUE demonstrates superior generalization and efficiency compared to existing methods like FLAME or FactTune-FS. A key finding is the "Latent Potential" Gap: models often fail at standard low-temperature inference but succeed when sampled multiple times at high temperature, proving the knowledge is present but underutilized.

Performance and Generalization

PKUE achieved consistent gains across seven major benchmarks, improving average performance by 2.22 points for Qwen2-7B and 3.90 points for Baichuan1. Notably, the method shows strong cross-lingual transfer; training on Chinese factual data significantly improved performance on English benchmarks like TruthfulQA, suggesting that precise knowledge utilization is a fundamental cognitive skill independent of language.

Performance comparison of PKUE against baseline and state-of-the-art methods, showing superior coverage across factuality, helpfulness, and reasoning benchmarks.

Eliminating the Alignment Tax

Unlike previous methods that often reduced a model's "helpfulness" (as measured by AlpacaEval) to improve factuality, PKUE improved both simultaneously. As shown in the radar analysis, PKUE (Ours) maintains a larger and more balanced performance envelope across generative, multiple-choice, and discriminative tasks.

Conclusion

PKUE offers a simple yet effective path to mitigating hallucinations by focusing on precise knowledge utilization. By aligning a model with its own correct internal memories, it avoids the pitfalls of noisy open-ended training and the alignment tax. Future work will explore more advanced online learning algorithms and extending the framework to address "open-book" hallucinations in RAG contexts.

Summary updated

BibTeX
@misc{zhang2025self,
  author = {Siyuan Zhang and Yichi Zhang and Yinpeng Dong and Hang Su},
  title = {{Self-Memory Alignment: Mitigating Factual Hallucinations with Generalized Improvement}},
  year = {2025},
  eprint = {2502.19127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.19127},
}
Figure