IntroLM: Introspective Language Models via Prefilling-Time Self-Evaluation

Hossein Hosseini Kasnavieh, Gholamreza Haffari, Christopher Leckie, Adel Nadjaran Toosi

TL;DR

This paper introduces IntroLM, a novel method that allows large language models (LLMs) to predict their own output quality during the initial prompt processing (prefilling) phase, without needing separate evaluation models. This self-evaluation capability significantly improves the efficiency of LLM deployment, especially in multi-model routing systems, by reducing latency and computational costs while maintaining reliability.

What Problem Does This Paper Address?

Deploying LLMs effectively often requires knowing if a given prompt will result in a high-quality output. This is crucial for tasks like confidence scoring and intelligent routing in systems that use multiple LLMs of varying sizes and capabilities. Current methods often rely on external classifiers (like BERT-based models) to predict output quality. However, these external models have limitations: they struggle with the long context windows of modern LLMs and add significant computational overhead. This creates a dilemma: stronger models are needed for better prediction, but using them as separate evaluators negates the efficiency gains they aim to provide. The paper addresses this by enabling LLMs to perform this self-evaluation internally during the prefilling stage, a phase that happens before any actual text generation.

Methods

The core innovation is IntroLM, which augments causal LLMs with an "introspective" capability. This is achieved by:

  • Special [CPX] Tokens: Appending special [CPX] tokens to the input prompt. These tokens attend to the entire prompt during the prefilling phase, allowing the model to gather information for quality estimation.
  • Token-Conditional LoRA: To adapt the LLM for this self-evaluation task without altering its core generative behavior, the authors introduce token-conditional Low-Rank Adaptation (LoRA). This technique selectively modifies the model's internal representations only for the [CPX] tokens. Crucially, the [CPX] tokens are excluded from the key-value cache during generation, ensuring that the actual output generation remains unaffected.
  • Prefilling-Time Evaluation: The quality prediction happens during the prefilling phase, leveraging the hidden states of the [CPX] tokens. This avoids the latency introduced by generating output first and then evaluating it.

Datasets

The paper uses several standard datasets for evaluation:

  • GENERAL QA: A combination of MMLU, MMLU-PRO, and GSM8K, focusing on general knowledge and reasoning.
  • HOTPOTQA: A long-context, multi-hop reasoning benchmark.
  • LMSYS-CHAT-1M: A large-scale dataset of real-world chat prompts for evaluating conversational inputs.

The authors also describe their dataset construction and labeling procedures, including using a lightweight LLM-as-judge for semantic correctness evaluation on QA datasets.

Key Insights and Ideas

  • Self-Evaluation is Efficient: LLMs can be trained to predict their own output quality during the prefilling phase, eliminating the need for separate, computationally expensive evaluation models.
  • Prefilling is Key: Leveraging the prefilling phase for quality estimation is critical for efficiency, as it happens before the more time-consuming generation process.
  • Token-Conditional LoRA is Powerful: This technique allows for targeted adaptation of LLMs for specific tasks (like introspection) without compromising their original generative capabilities. It's a lightweight yet effective way to inject new functionalities.
  • Long Context Matters: The effectiveness of IntroLM is particularly pronounced on long-context tasks like HOTPOTQA, where traditional BERT-based classifiers struggle due to their limited context windows.
  • Internal Signals are Informative: The internal representations generated by an LLM during prefilling are rich enough not only for self-evaluation but also for estimating the capabilities of other models, paving the way for multi-model routing.

Key Results

  • Superior Complexity Prediction: IntroLM, applied to QWEN3-8B, achieved a ROC-AUC of 90% on question-answering benchmarks, outperforming a DEBERTA-V3-LARGE classifier by 14 percentage points.
  • Routing Efficiency: When integrated into multi-model routing systems, IntroLM-based routing reduced end-to-end latency by up to 33% and large-model usage by up to 50% at matched reliability, compared to BERT-based routing.
  • Long-Context Advantage: IntroLM showed significant gains on HOTPOTQA, highlighting its suitability for complex, long-context reasoning tasks.
  • Model Capacity Matters: Larger backbone models generally lead to better introspective performance.

Limitations and Future Work

  • Training Cost: While IntroLM avoids extra inference cost for evaluation, its training involves modifying the LLM backbone with LoRA, which is more costly than training simple encoder-based classifiers.
  • Task Generalization: The current evaluation focuses on question-answering and chat-style tasks. Extending IntroLM to other LLM applications like creative generation, dialogue, or code generation may require task-specific adaptation and evaluation.
  • Supervision Source: The current approach relies on labeled datasets. Future work could explore alternative supervision sources like preference-based training or weak/implicit feedback.
  • Larger Models: A systematic evaluation of IntroLM on substantially larger LLMs, especially emerging ultra-long-context models, is needed.
  • Multi-Model Routing: While preliminary results are promising, a full investigation into extending IntroLM to multi-model routing with more than two models is a key future direction.
  • Prefix Truncation: For long contexts, aggressive prefix truncation degrades IntroLM's performance, suggesting that full context is important for reliable prediction. Future work could explore chunked or progressive routing decisions.

Summary updated

Abstract

A major challenge for the operation of large language models (LLMs) is how to predict whether a specific LLM will produce sufficiently high-quality output for a given query. Existing approaches rely on external classifiers, most commonly BERT based models, which suffer from limited context windows, constrained representational capacity, and additional computational overhead. We propose IntroLM, a method that enables causal language models to predict their own output quality during the prefilling phase without affecting generation using introspective tokens. By introducing token conditional LoRA that activates only for the introspective token, the model learns to predict the output quality for a given query while preserving the original backbone behavior and avoiding external evaluators. On question answering benchmarks, IntroLM applied to Qwen3 8B achieves a ROC AUC of 90 precent for success prediction, outperforming a DeBERTa classifier by 14 precent. When integrated into multi model routing systems, IntroLM achieves superior cost performance tradeoffs, reducing latency by up to 33 precent and large model usage by up to 50 precent at matched reliability.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
General QAIntroLM (Qwen3-8B)ROC--AUC89.1+13.3 vs baselineparams=8B · backbone=Qwen3-8B
Source quote
L408: IntroLM (Qwen3-8B) │ 89.1 │ 63.4
HotpotQAIntroLM (Qwen3-8B)ROC--AUC86.3params=8B · backbone=Qwen3-8B
Source quote
L426: IntroLM (Qwen3-8B) │ 86.3 │ 46.7
HotpotQABackbone only (Qwen3-8B)ROC--AUC81.0params=8B · variant=backbone-only · backbone=Qwen3-8B
Source quote
L425: Backbone only (Qwen3-8B) │ 81.0 │ 35.8
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
General QADeBERTa-v3-Large baselineROC--AUC75.8params=8B · backbone=DeBERTa-v3-Large
Source quote
L407: DeBERTa-v3-Large │ 75.8 │ 45.5
BibTeX
@inproceedings{kasnavieh2026introlm,
  author = {Hossein Hosseini Kasnavieh and Gholamreza Haffari and Christopher Leckie and Adel Nadjaran Toosi},
  title = {{IntroLM: Introspective Language Models via Prefilling-Time Self-Evaluation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.598},
}

Loading related content...

Figure