Can AI Assistants Know What They Don't Know?

Qinyuan Cheng, Tianxiang Sun, Xiangyang Liu, Wenwei Zhang, Zhangyue Yin, Shimin Li, Linyang Li, Zhengfu He, Kai Chen, Xipeng Qiu

Introduction

Large Language Models (LLMs) are increasingly capable but remain prone to "hallucinations"—generating factually incorrect information with high confidence. This issue stems from a lack of "epistemic humility": the ability to recognize and admit the limits of their own internal knowledge. Current AI assistants are often optimized for helpfulness, which inadvertently encourages them to guess rather than refuse a question when uncertain. This research explores a framework for teaching models to perceive their knowledge boundaries and express uncertainty through natural language.

The Knowledge Quadrant Framework

To systematically address this problem, the researchers categorize model responses into four distinct "Knowledge Quadrants" based on whether the AI actually possesses the information and whether it believes it possesses it.

The Knowledge Quadrant framework categorizes AI responses based on internal knowledge and self-awareness.
  • Known Knowns (IK-IK): The AI has the knowledge and correctly answers.
  • Known Unknowns (IK-IDK): The AI recognizes it lacks knowledge and refuses to answer (the primary goal).
  • Unknown Knowns (IDK-IK): The AI has the knowledge but incorrectly refuses to answer (conservatism).
  • Unknown Unknowns (IDK-IDK): The AI lacks the knowledge but attempts to answer, leading to hallucinations.

Methodology

The researchers developed a multi-step alignment process to move models toward the "Known" categories. First, they constructed model-specific "I Don’t Know" (Idk) datasets by sampling multiple responses to questions from TriviaQA. If a model's accuracy fell below a specific "Ik threshold," the question was labeled as an "Unknown."

Several alignment techniques were tested:

  • Supervised Fine-Tuning (SFT): Directly training the model on the labeled Idk dataset.
  • Direct Preference Optimization (DPO): Rewarding correct answers and correct refusals while penalizing hallucinations.
  • Hindsight Instruction Relabeling (HIR): A method allowing users to adjust the model's confidence level at inference time via a prompt-based slider.

Results and Insights

The study found that simple prompting or Supervised Fine-Tuning often leads to an "Alignment Tax" of honesty, where models become overly conservative (Unknown Knowns). However, preference-aware optimization like DPO proved highly effective at balancing accuracy and refusal.

Comparison of knowledge distributions across different alignment methods for Llama-2-7b-chat.

As shown in the quadrant distributions, while the base Llama-2-7b-chat model rarely refuses (high hallucination rate), Idk-SFT significantly increases refusals but also increases "Unknown Knowns" (5225). Idk-DPO provides a more balanced profile, maintaining a high number of "Known Knowns" (4446) while effectively identifying "Known Unknowns" (4366).

Key findings include:

  • Truthful Rate Improvement: The best-performing method (Best-of-n sampling) increased the Truthful Rate—the sum of correct answers and correct refusals—from 66.93% to 78.96%.
  • Generalization: The behavior generalized well to out-of-distribution datasets like ALCUNA, where the model achieved a near 99% correct refusal rate for non-existent entities.
  • Model Specificity: Training must be tailored to the specific model, as knowledge boundaries vary significantly between different LLMs.

Conclusion

Teaching AI assistants to say "I don't know" is a critical step toward reliable AI. While simple fine-tuning can make models "shy," preference optimization techniques like DPO allow models to remain helpful while accurately identifying their own knowledge gaps. Future work will look to expand these methods beyond simple lexical matching to more complex, open-ended, and temporal knowledge domains.

Summary updated

BibTeX
@inproceedings{cheng2024can,
  author = {Qinyuan Cheng and Tianxiang Sun and Xiangyang Liu and Wenwei Zhang and Zhangyue Yin and Shimin Li and Linyang Li and Zhengfu He and Kai Chen and Xipeng Qiu},
  title = {{Can AI Assistants Know What They Don't Know?}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=girxGkdECL},
}
Figure