CtrlA: Adaptive Retrieval-Augmented Generation via Inherent Control

Huanshuo Liu, Hao Zhang, Zhijiang Guo, Jing Wang, Kuicai Dong, Xiangyang Li, Yi Quan Lee, Cong Zhang, Yong Liu

Abstract

Retrieval-augmented generation (RAG) has emerged as a promising solution for mitigating hallucinations of large language models (LLMs) with retrieved external knowledge. Adaptive RAG enhances this approach by enabling dynamic retrieval during generation, activating retrieval only when the query exceeds LLM’s internal knowledge. Existing methods primarily focus on detecting LLM’s confidence via statistical uncertainty. Instead, we present the first attempts to solve adaptive RAG from a representation perspective and develop an inherent control-based framework, termed CtrlA. Specifically, we extract the features that represent the honesty and confidence directions of LLM and adopt them to control LLM behavior and guide retrieval timing decisions. We also design a simple yet effective query formulation strategy to support adaptive retrieval. Experiments show that CtrlA is superior to existing adaptive RAG methods on a diverse set of tasks. Honesty steering can effectively make LLMs more honest and confidence monitoring is a promising indicator of retrieval trigger.

1. Introduction

Large Language Models (LLMs) often struggle with hallucinations, generating plausible but factually incorrect information when their internal knowledge is insufficient. While Retrieval-Augmented Generation (RAG) mitigates this by grounding models in external data, standard RAG systems are often inefficient, retrieving information for every query regardless of necessity. Adaptive RAG (ARAG) aims to optimize this process by triggering retrieval only when needed.

Traditional ARAG methods rely on surface-level statistical uncertainty, such as token probabilities. However, LLMs can be "confident liars," producing hallucinations with high statistical certainty. We introduce CtrlA (Adaptive Retrieval-Augmented Generation via Inherent Control), a framework that shifts the focus from output statistics to the model's internal representation space. By identifying and utilizing internal "honesty" and "confidence" vectors, CtrlA provides a more robust mechanism for determining when to seek external knowledge.

2. Methodology

The CtrlA framework operates through a two-step process involving representation feature extraction and controlled inference.

2.1 Representation Feature Extraction

We utilize Representation Engineering to isolate specific directions in the LLM's latent space. By presenting the model with contrastive instructions (e.g., "Pretend you are an honest person" vs. "Pretend you are a dishonest person") and applying Principal Component Analysis (PCA) to the resulting internal activations, we extract honesty and confidence features. These features represent the model's internal state regarding truthfulness and certainty.

2.2 Controlled Inference: Steering and Monitoring

During the generation process, CtrlA employs two simultaneous mechanisms:

  1. Honesty Steering: We "steer" the model by adding a scaled honesty vector to its internal states across intermediate layers. This encourages the model to admit ignorance (e.g., by saying "I don't know") rather than hallucinating.
  2. Confidence Monitoring: The system projects current token representations onto the extracted confidence vector. If the resulting internal confidence score falls below a predefined threshold $\tau$, a retrieval trigger is activated.
The CtrlA framework overview: Step 1 extracts honesty/confidence features via PCA; Step 2 utilizes these features for steering and monitoring during inference.

2.3 Query Formulation and Refusal Handling

When honesty steering causes the model to refuse an answer, CtrlA transforms this state into an effective search query. We employ Context-Augmented Querying (CAQ), which masks unconfident tokens, and Targeted Validation Querying (TVQ), which prompts the model to generate a specific query to verify its current output.

3. Experimental Evaluation

CtrlA was evaluated across a wide range of benchmarks, including short-form QA (PopQA, TriviaQA), long-form QA (ASQA, Biography generation), and multi-hop reasoning tasks (2WikiMultihopQA, HotpotQA).

3.1 Performance and Efficiency

CtrlA consistently outperformed state-of-the-art adaptive methods such as FLARE and Self-RAG. For instance, on TriviaQA, CtrlA-7B achieved 76.4% accuracy, significantly higher than FLARE (72.4%). In complex multi-hop tasks like 2WikiMultihopQA, CtrlA achieved an Exact Match (EM) score of 36.9, surpassing the previous best of 30.2. Notably, CtrlA often achieved these gains with lower retrieval frequency, demonstrating superior precision in identifying knowledge gaps.

Impact of honesty steering intensity (λ) on PopQA Accuracy and ASQA Rouge-L. Performance generally peaks at a moderate steering strength, showing the balance between helpfulness and honesty.

4. Discussion and Insights

Our analysis reveals several key findings:

  • The Honesty-Confidence Link: By forcing honesty via steering, we "unmask" the model's ignorance, making the internal confidence signal a far more reliable trigger for retrieval than raw token probabilities.
  • Layer Sensitivity: Steering is most effective in the middle layers of the LLM (e.g., layers 5-25 for Mistral-7B), where representations are sufficiently abstract but not yet fixed into final vocabulary projections.
  • Inherent Control: Internal state projections are more robust than surface statistics because they capture the model's underlying "belief" before it is filtered for helpfulness.

5. Conclusion

CtrlA demonstrates that the key to more effective RAG lies in the model's internal self-awareness. By leveraging inherent control through honesty steering and confidence monitoring, CtrlA provides a lightweight, plug-and-play framework that significantly improves the accuracy and efficiency of adaptive retrieval systems.

Summary updated

BibTeX
@inproceedings{liu2025ctrla,
  author = {Huanshuo Liu and Hao Zhang and Zhijiang Guo and Jing Wang and Kuicai Dong and Xiangyang Li and Yi Quan Lee and Cong Zhang and Yong Liu},
  title = {{CtrlA: Adaptive Retrieval-Augmented Generation via Inherent Control}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=wTOnTCLiPR},
}
Figure