Teaching Large Language Models to Express Knowledge Boundary from Their Own Signals

Lida Chen, Zujie Liang, Xintao Wang, Jiaqing Liang, Yanghua Xiao, Feng Wei, Jinglei Chen, Zhenghong Hao, Bing Han, Wei Wang

Abstract: Large language models (LLMs) have achieved great success, but their occasional content fabrication, or hallucination, limits their practical application. Hallucination arises because LLMs struggle to admit ignorance due to inadequate training on knowledge boundaries. We call it a limitation of LLMs that they can not accurately express their knowledge boundary, answering questions they know while admitting ignorance to questions they do not know. In this paper, we aim to teach LLMs to recognize and express their knowledge boundary, so they can reduce hallucinations caused by fabricating when they do not know. We propose COKE, which first probes LLMs' knowledge boundary via internal confidence given a set of questions, and then leverages the probing results to elicit the expression of the knowledge boundary. Extensive experiments show COKE helps LLMs express knowledge boundaries, answering known questions while declining unknown ones, significantly improving in-domain and out-of-domain performance.

The Problem: Navigating the "Unknown Unknowns"

The "hallucination" problem in LLMs often stems from a fundamental lack of self-awareness. During standard training, models are encouraged to generate text regardless of whether they actually "know" the facts involved. This leads to a dangerous category of errors known as "Unknown Unknowns"—situations where the model provides a confident but false answer because it hasn't been taught to recognize the limits of its own parametric knowledge.

Conceptual framework showing the shift from "Unknown Unknowns" to "Known Unknowns" where the model learns to admit ignorance.

Existing solutions often rely on manual labeling (which is costly) or simple thresholding of probability scores (which often fails to generalize). The goal of this work is to bridge this gap by teaching models to use their own internal signals to identify their knowledge boundaries and articulate them clearly in natural language, moving from a state of "Unknown Unknowns" to "Known Unknowns."

Methodology: The COKE Framework

We propose COKE (COnfidence-derived Knowledge boundary Expression), a novel unsupervised method that teaches LLMs to recognize and admit when they don't know an answer. The framework consists of two primary stages:

1. The Probing Stage (Internal Knowledge Identification)

The model is given a set of unlabeled questions. We extract internal confidence signals—specifically the minimum token probability (Min-Prob)—to categorize questions. If the confidence is very high, the question is labeled as "Known" ($D_k$); if it is very low, it is labeled as "Unknown" ($D_{unk}$).

2. The Training Stage (Knowledge Boundary Learning)

The model undergoes instruction fine-tuning using these self-generated labels. To ensure the model doesn't just memorize specific phrases, we utilize three types of prompts:

  • Prior Awareness: "Do you know the answer of the following question? {Q}"
  • Direct Awareness: "Answer the following question: {Q}"
  • Posterior Awareness: "Are you sure that the answer to the {Q} is the {A}?"
The COKE framework architecture, illustrating the Internal Knowledge Identification (probing) and Knowledge Boundary Learning (training) stages.

A critical technical contribution is the Consistency Regularization Loss. This forces the model to provide the same semantic response (e.g., admitting ignorance) regardless of how the question is phrased, preventing the model from being "tricked" by different prompt formats.

Key Insights and Results

Our experiments on Llama2-Chat (7B and 13B) across datasets like TriviaQA, Natural Questions (NQ), and PopQA yielded several key insights:

  • Internal Signals are "Honest": A model's internal probability distribution is a much more reliable indicator of its knowledge than its verbalized responses. By "listening" to these signals, we can generate high-quality training data automatically.
  • Consistency is the Key to Robustness: Simply training a model to say "I don't know" isn't enough. Without the consistency loss, models often flip-flop their answers based on minor changes in prompt wording. COKE ensures the "knowledge boundary" remains stable across different interaction styles.
  • Superior Performance and Generalization: COKE achieved an $S_{aware}$ score (a balanced metric of knowing what you know and admitting what you don't) of 75.0–77.0, significantly outperforming standard prompt-based methods. Unlike simple threshold-based methods, COKE showed strong out-of-domain performance, proving that the model learned a generalizable sense of its own limitations.

Conclusion and Future Work

COKE demonstrates that LLMs can be taught to recognize their own knowledge boundaries using their internal signals without expensive human annotation. While currently focused on short-form factual questions, future work will explore extending these boundaries to long-form generation and complex reasoning tasks, potentially helping models autonomously decide when to rely on internal memory versus external retrieval.

Summary updated

BibTeX
@inproceedings{chen2025teaching,
  author = {Lida Chen and Zujie Liang and Xintao Wang and Jiaqing Liang and Yanghua Xiao and Feng Wei and Jinglei Chen and ZHENGHONG HAO and Bing Han and Wei Wang},
  title = {{Teaching Large Language Models to Express Knowledge Boundary from Their Own Signals}},
  booktitle = {KnowFM @ ACL},
  year = {2025},
  url = {https://openreview.net/forum?id=D5Xb2ltbre},
}
Figure