CrEst: Credibility Estimation for Contexts in LLMs via Weak Supervision

Dyah Adila, Shuai Zhang, Boran Han, Bonan Min, Yuyang WangarXiv 2025

Abstract

The integration of contextual information has significantly enhanced the performance of large language models (LLMs) on knowledge-intensive tasks. However, existing methods often overlook a critical challenge: the credibility of context documents can vary widely, potentially leading to the propagation of unreliable information. In this paper, we introduce CrEst, a novel weakly supervised framework for assessing the credibility of context documents during LLM inference—without requiring manual annotations. Our approach is grounded in the insight that credible documents tend to exhibit higher semantic coherence with other credible documents, enabling automated credibility estimation through inter-document agreement. To incorporate credibility into LLM inference, we propose two integration strategies: a black-box approach for models without access to internal weights or activations, and a white-box method that directly modifies attention mechanisms. Extensive experiments across three model architectures and five datasets demonstrate that CrEst consistently outperforms strong baselines, achieving up to a 26.86% improvement in accuracy and a 3.49% increase in F1 score. Further analysis shows that CrEst maintains robust performance even under high-noise conditions.

Introduction

Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding Large Language Models (LLMs) in factual data. By retrieving relevant documents, LLMs can answer complex queries with up-to-date information. However, RAG systems are susceptible to the "garbage in, garbage out" phenomenon. If a retriever returns a mix of high-quality sources and unreliable or hallucinated content, the LLM often fails to distinguish between them, leading to inaccurate outputs.

Current solutions to this problem typically involve expensive manual annotation or the use of "LLM-as-a-Judge" techniques, which are computationally intensive and often ineffective for smaller models. CrEst (Credibility Estimation) addresses these challenges by providing a mathematically grounded, unsupervised, and model-agnostic framework to estimate document credibility during inference.

Methodology: Weak Supervision for Credibility

The core innovation of CrEst is the application of weak supervision to evaluate context on the fly. This approach relies on the "Majority Rule" for credibility: credible documents are expected to show higher semantic coherence with other credible documents in the retrieved set.

Framework Overview

CrEst models the relationship between documents as a probabilistic graphical model. By analyzing the pairwise distances between document embeddings, the system estimates each document's distance to a theoretical "TRUE" document. Documents that align more closely with this consensus receive higher credibility scores.

Overview of the CrEst framework, illustrating the transition from context documents to embeddings, weak supervision modeling, and the two integration strategies (White-Box and Black-Box).

Integration Strategies

CrEst offers two primary ways to integrate these credibility scores into the LLM:

  1. Black-Box (CrEst-bbx): This strategy is designed for models where internal weights are inaccessible. The model is prompted multiple times with different subsets of context. The final answer is selected by identifying the most "central" response in the latent embedding space, effectively performing a semantic majority vote.
  2. White-Box (CrEst-wbx): For open-weight models, CrEst directly modifies the attention mechanism. It scales the attention weights based on document credibility, effectively "muting" low-credibility tokens and amplifying high-credibility ones.

Experimental Results

The researchers evaluated CrEst across five benchmarks, including HotpotQA, PopQA, and ASQA, using Mistral-7B, Mistral-Nemo, and Gemma-7b architectures.

Performance and Robustness

CrEst-bbx demonstrated significant improvements, achieving up to a 26.86% increase in accuracy over vanilla RAG. A key strength of the framework is its robustness to noise. In stress tests where up to 80% of the retrieved documents were intentionally corrupted, CrEst maintained superior performance compared to baselines like InstructRAG.

Performance of CrEst across different LLM architectures (Mistral, Nemotron, Gemma) as the percentage of corrupted context documents increases.

Unlike methods that rely on the model's own reasoning to judge relevance, CrEst's reliance on embedding geometry makes it particularly effective for smaller models that may lack the reasoning capacity to filter noise independently.

Conclusion

CrEst provides a scalable, unsupervised solution to the problem of document credibility in RAG systems. By leveraging the semantic consensus among retrieved documents, it significantly boosts LLM accuracy and robustness. While the framework currently assumes that the majority of retrieved documents are credible, future work could explore ways to mitigate risks from coordinated misinformation and further optimize the computational overhead of the black-box approach.

Summary updated

BibTeX
@misc{adila2025crest,
  author = {Dyah Adila and Shuai Zhang and Boran Han and Bonan Min and Yuyang Wang},
  title = {{CrEst: Credibility Estimation for Contexts in LLMs via Weak Supervision}},
  year = {2025},
  eprint = {2506.14912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.14912},
}
Figure