Abstract
The rapid development of large language models (LLMs) enables them to convey factual knowledge in a more human-like fashion. Extensive efforts have been made to reduce factual hallucinations by modifying LLMs with factuality decoding. However, they also pose risks of hindering knowledge updates, as they make models overly confident in known facts. In this work, we first revisit the current factuality decoding methods and verified their effectiveness in enhancing factual accuracy. Subsequently, we conduct further evaluation of several strong factuality decoding methods on the knowledge editing benchmark. All these decoding methods significantly diminish the performance of llama2 models compared to their original decoding, with the largest decrease being a staggering 81.3%. This further indicates that the current existing decoding methods still cannot perfectly address the factual hallucinations, as they overlook the importance of preserving the flexibility for knowledge editing. Therefore, our work suggests that research into factual alignment should simultaneously focus on the effectiveness of knowledge editing.
Introduction
Large Language Models (LLMs) face a fundamental tension between two requirements: factuality (relying on internal parametric knowledge) and context-faithfulness (prioritizing information provided in the prompt). While "factuality enhancement" methods have been developed to combat hallucinations, they often inadvertently make models "stubborn." This stubbornness manifests as a refusal to update internal worldviews even when presented with new, contradictory information in a prompt, such as in Retrieval-Augmented Generation (RAG) systems.
Methods and Evaluation
We evaluated several state-of-the-art factuality enhancement methods across two categories:
- Representation Editing: Methods like ITI (Inference-Time Intervention) and TruthX that modify internal hidden states to steer the model toward "truthful" directions.
- Contrastive Decoding: Methods like DoLa, ICD, and CD that amplify factual tokens by comparing output probabilities across different layers or model versions.
To measure the impact on flexibility, we utilized In-Context Editing (ICE) benchmarks like MQUAKE. These datasets require models to answer multi-hop questions based on provided "edits" (e.g., "The president of the US is now Joe Biden") that may contradict their pre-existing training data.
The "Stubbornness" Trade-off
Our analysis reveals a clear inverse relationship between internal factuality and context-faithfulness. As models become more anchored to their training data, they become less capable of learning from the prompt.
As illustrated in Figure 2, while methods like TruthX provide the highest gains in factuality (+35.2), they also cause the most dramatic collapse in context-faithfulness (-61.1). This suggests that current enhancement techniques effectively "lock" the model's knowledge, preventing the plasticity required for real-world updates.
Key Insights
- Logit Dominance: Factuality enhancement consistently boosts the probability (logits) of tokens associated with original training data while suppressing tokens from the new context. In LLaMA2-7B, TruthX led to a 33.6 point increase for parametric knowledge tokens but a 7.57 point decrease for new knowledge tokens.
- Reasoning Drift: Interestingly, Chain-of-Thought (CoT) reasoning often worsened performance. During multi-step reasoning, enhanced models tended to "drift" back to their internal biases, eventually overriding the provided context in the final answer.
- Hidden State Convergence: Visualization of hidden states shows that factuality-enhanced models are more resistant to change; their internal representations after receiving new context remain closer to their original states than those of standard models.
Conclusion
Factuality enhancement is not a "free lunch." The pursuit of hallucination reduction has come at the cost of model flexibility and the ability to perform in-context knowledge editing. Future research must move toward controllable factuality, ensuring models can be truthful without losing the ability to follow user instructions and integrate external, up-to-date information.
Summary updated