Beyond Black-Box Interventions: Latent Probing for Faithful Retrieval-Augmented Generation
About
Retrieval-Augmented Generation (RAG) systems often fail to maintain contextual faithfulness, generating responses that conflict with the provided context or fail to fully leverage the provided evidence. Existing methods attempt to improve faithfulness through external interventions, such as specialized prompting, decoding-based calibration, or preference optimization. However, since these approaches treat the LLM as a black box, they lack a reliable mechanism to assess when and why knowledge conflicts occur. Consequently, they tend to be brittle, data-intensive, and agnostic to the model's internal reasoning process. In this paper, we move beyond black-box interventions to analyze the model's internal reasoning process. We discover that conflicting and aligned knowledge states are linearly separable in the model's latent space, and contextual noise systematically increases the entropy of these representations. Based on these findings, we propose ProbeRAG, a novel framework for faithful RAG that operates in three stages: (i) fine-grained knowledge pruning to filter irrelevant context, (ii) latent conflict probing to identify hard conflicts in the model's latent space, and (iii) conflict-aware attention to modulate attention heads toward faithful context integration. Extensive experiments demonstrate that ProbeRAG substantially improves both accuracy and contextual faithfulness. The related resources are available at https://github.com/LinfengGao/ProbeRAG.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Question Answering | SQuAD | F165.4 | 134 | |
| Faithfulness Evaluation | FaithEval | F1 Score74.9 | 42 | |
| Multiple-choice Question Answering | ConFiQA MC | F1 Score91.2 | 42 | |
| Multi-step Reasoning Question Answering | ConFiQA MR (test) | F1 Score91.3 | 36 | |
| Open-ended Question Answering | ConFiQA (test) | F1 Score95.7 | 36 | |
| Question Answering | SQuAD KRE-curated version | F1 Score71.5 | 36 | |
| Question Answering | ConFiQA MR | F1 Score89.6 | 6 | |
| Question Answering | ConFiQA | F1 Score94.3 | 6 |