Skip to Content
  • Article
  • Open Access

9 February 2026

20 Pages

ISFJ-RAG: Interventional Suppression of Hallucinations via Counter-Factual Joint Decoding Retrieval-Augment Generation

,
,
,
and
1
School of Information Engineering, Nanchang University, Nanchang 330031, China
2
School of Artificial Intelligence, Nanchang University, Nanchang 330031, China
3
School of Computer Science and Engineering, South China University of Technology, Guangzhou 510641, China
4
Pazhou Laboratory, Guangzhou 510640, China

Abstract

Although retrieval-augmented generation (RAG) technology mitigates the hallucination issue in large language models (LLMs) by incorporating external knowledge, and combining reasoning models can further enhance RAG system performance, retrieval noise and attention bias still lead to the diffusion of factual errors in problems such as factual queries, multi-hop questions, and unanswerable questions. Existing methods struggle to effectively suppress “high-confidence hallucinations” in long-chain reasoning due to their failure to decouple knowledge bias effects from causal reasoning paths. To address this, this paper proposes the ISFJ-RAG framework, which dynamically intervenes in hallucinations through counterfactual joint decoding. First, a structural causal model (SCM) reveals three root causes of hallucinations in RAG systems: irrelevant knowledge interference, reasoning path bias, and spurious correlations in self-attention mechanisms. A dual-decoder architecture is further designed: the total causal effect decoder models the global relationship between user queries and knowledge, while the knowledge bias effect decoder captures potential biases induced by external knowledge. A dynamic modulation module converts the latter’s output into a proxy measure of hallucination bias. By computing individual treatment effects (ITEs), the bias component is removed from the full generation distribution, achieving simultaneous suppression of knowledge-irrelevant and reasoning-irrelevant hallucinations. Ablation experiments validate the robustness of average token log-probability as a confidence metric. Experiments demonstrate that on the RAGEval benchmark, ISFJ-RAG improves generation completeness to 86.89% (+5.49%) while reducing hallucination rates to 10.39% (−2.5%) and irrelevance rates to 4.44% (−2.99%).

1. Introduction

With the rapid development of artificial intelligence technology, large language models (LLMs) have demonstrated powerful reasoning capabilities and outstanding performance in various natural language processing (NLP) tasks, thanks to their massive parameters and extensive pre-training [1,2]. However, the knowledge of LLMs primarily relies on the data from the pre-training phase, which cannot cover all domains of knowledge. When faced with domains not sufficiently covered by the training corpus [3], these models may still generate semantically coherent but factually incorrect responses [4,5], a phenomenon collectively referred to as hallucinations in large language models.
The recently proposed DeepSeek R1 and other long-chain reasoning models have demonstrated profound capabilities in complex domains such as mathematics and coding [6,7]. However, empirical studies indicate that when the reasoning chain length exceeds a critical threshold [8], the models are prone to fall into the “over-reasoning” trap, leading to deviations in logical paths and accumulation of factual errors [9]. RAG [10] refers to retrieving relevant information from external knowledge bases before using LLMs to answer questions and combining the retrieved external knowledge to respond to user queries, but existing systems still face challenges such as retrieval noise interference.
The reliability of the system can be improved through RAG technology combined with long-reasoning models [11]. However, even in RAG systems utilizing long-reasoning models, the incidence of hallucinations remains significant when dealing with complex problems [12], and due to the enhancement of model performance, hallucinations may become even harder to detect. Combining previous research [13,14], we argue that the hallucination issue in RAG tasks combined with long-chain reasoning models may stem from the influence of external knowledge noise and reasoning process noise. Additionally, in the Transformer [15] architecture, the model employs a self-attention mechanism to compute weighted representations of the input sequence, aiming to capture dependencies between different elements. However, the calculation of attention scores relies on interactions among all elements in the input sequence [16,17], and when external knowledge noise and reasoning process noise are introduced, these interactions may introduce bias.
An example of hallucination in large language models is shown in Figure 1, where the retrieved information contains descriptions about Edward Yang and Taiwan. Due to the presence of excessive noise, the model conflates these details and produces incorrect, irrelevant reasoning, ultimately leading to hallucinated output.
Figure 1. An example of hallucination in LLM. In retrieved knowledge, Yang Dechang and Taiwanese are frequent co-occurrences leading to pseudo-relevance; the model fails to recognize this irrelevance.
Figure 2 illustrates the attention distribution across the reasoning (a) and response generation (b) phases, where the latter includes the generated Chain-of-Thought context. Beyond the typical attention sinks at initial tokens [18], we observe a general sparsity of knowledge-related attention. Critically, the causal mechanismof hallucination is isolated in phase (b) by monitoring specific “copy heads” (e.g., L26 H26) identified via [19] during a multi-entity query on EMS adoption. As shown in the comparison, a decisive contrast explains the failure: while the model effectively anchors to the ground truth “Nov 2017” (index ∼80) for the correct Sky Aviation response, it fails to attend to the relevant evidence “Dec 2021” at index ∼530 for Sunshine Media. This “attention failure” leads the model to hallucinate “Nov 2021” based on adjacent spurious correlations, confirming that the model ignores available external knowledge in favor of flawed internal priors.
Figure 2. (a) Attention visualization of “copy heads” (e.g., L26, H26) identified via [19] for the query regarding EMS adoption dates across the reasoning phases; (b) Attention visualization across the response generation phases. Vertical lines mark the ground-truth tokens: “Nov 2017” for Sky Aviation (idx ∼80) and “Dec 2021” for Sunshine Media (idx ∼530). A critical contrast appears in (b): the model successfully activates attention at ∼80 to retrieve the correct date for Sky Aviation. However, for Sunshine Media, it fails to attend to the ground truth “Dec 2021” at ∼530 (dark region), causing it to hallucinate “Nov 2021” based on adjacent spurious context.
To address the aforementioned issues, we propose the ISFJ-RAG framework (Interventional Suppression of Hallucinations via counter-Factual Joint Decoding for Retrieval-Augmented Generation), which dynamically suppresses hallucinations through counterfactual joint decoding. Specifically, ISFJ-RAG incorporates a dual-decoder architecture:
  • Fully Causal Effect Decoder: Its input includes both external knowledge and user questions, designed to model the holistic causal relationship between user questions and external knowledge;
  • Knowledge Bias Effect Decoder: Its input contains only external knowledge, aimed at generating latent bias representations related to external knowledge.
Based on this, we designed a dynamic adjustment module according to the previous idea [20,21], adjusting the output of the second decoder to serve as a proxy that maximizes the representation of hallucination bias effects. Subsequently, we compute the individual treatment effect (ITE) based on the counterfactual reasoning framework to obtain the final token distribution after subtracting the hallucination bias effect. This process of subtracting the two decoders continues until the model completes its response, so the input to the knowledge-biased effect decoder also includes the model’s reasoning process. Therefore, our architecture can simultaneously mitigate hallucinations caused by knowledge-irrelevant and reasoning-irrelevant factors.
The contributions of this paper are as follows:
1.
The paper systematically analyzes the main causes of hallucination issues in reasoning models for RAG tasks from a casual perspective and proposes the hypothesis that hallucinations primarily stem from low relevance among user queries, retrieved knowledge, and reasoning processes, as well as biases introduced by self-attention mechanisms during the encoding phase.
2.
We design a dual-decoder framework ISFJ-RAG based on counterfactual reasoning which could effectively reduce hallucinations, and we open-source the related code at https://github.com/l784669877/code/.
3.
We conduct extensive experiments on the RAGEval benchmark, and validate that ISFJ-RAG we proposed is superior to the existing methods from various evaluation metrics. Specifically, ISFJ-RAG improves generation completeness to 86.89% (+5.49%), while reducing hallucination rates to 10.39% (−2.5%) and irrelevance rates to 4.44% (−2.99%).

3. Methodology

3.1. The Structural Causal Model of KGD

As shown in Figure 3, we construct a structural causal model (SCM) [33] for the reasoning model-based RAG system. This model granularly decomposes the question-answering process into four core variable nodes, delineating the causal path from user queries to reasoning and responses in the reasoning model-based RAG system. Specifically, KGD formalizes the current task as follows:
Figure 3. (a) The causal graph of KGD; (b) Counterfactual reasoning: Traditional KGD (left) minus counterfactual KGD (right), where the gray nodes represent counterfactual variables.
Node Q: Node Q represents the natural language query initiated by the user.
Node C: We define C as the retrieved external knowledge and reasoning process input to the large language model, denoted as C = K, R, where K represents the external knowledge relevant to the current dialog topic, and R = r k − 1 K denotes the model’s output of the first k − 1 tokens in the current round of dialog.
Node H: This node describes the vectorization process of text within the model. The model inputs the text into a generative pre-trained model, where the input text is internally transformed into H 1 , …, H n , with n being the number of input tokens.
Node P: Node P implements the mapping from the representation space to the vocabulary space. Specifically, the model takes nodes Q and C as inputs, processes them through the internal hidden representation node H, and ultimately generates a probability distribution P ( t k H 1 , H 2 , … , H n ) , where t k represents the next token predicted by the model at the current step.
Q→H, C→H and H→H: The paths Q→H and C→H represent the encoding process of the model; H→H denotes the transmission of hidden states within the model. In these processes, issues such as knowledge noise and high-frequency word bias can lead to hallucinatory outputs. Additionally, we find that Q and C, as confounding variables [33], introduce spurious correlations in the encoding process of H, and this interactive computation further exacerbates hallucinations.
H→P: This path achieves a probabilistic mapping from the semantic space to the lexical space. Since the hidden state H may contain hallucinatory content introduced by biases or spurious correlations in the training data, such content can be erroneously amplified during decoding.
In summary, we propose three hypotheses:
1.
Irrelevance of external knowledge: During the knowledge retrieval phase, retrieval algorithms based on similarity matching (such as BM25 or vector retrieval) [34] may retrieve irrelevant noisy content.
2.
Irrelevance of the reasoning process: When noisy knowledge is injected into the reasoning pipeline, the reasoning model may deviate from the problem itself during deep reasoning. When answering questions, the model tends to overly focus on reasoning that may have biases.
3.
Limitations of the self-attention: In the Transformer architecture, the model captures dependencies between different elements through the self-attention mechanism. However, there exist spurious correlations among different hidden representations.

3.2. Counterfactual Reasoning Analysis

Counterfactual reasoning focuses on events that could have occurred under certain conditions but did not actually happen. Assuming the individual causal effect we need to estimate is I T E ^ , we construct two models for the indirect estimation of individual causal effects: f 0 ( X ) and f 1 ( X ) , where f 0 ( X ) is used to predict the outcome Y ^ ( 0 ) under the intervention T = 0 , and f 1 ( X ) is used to predict the outcome Y ^ ( 1 ) under the control T = 1 . For each individual i, the output results of the two models serve as the indirect estimation of the individual causal effect: I T E ^ i = Y i ^ ( 1 ) − Y i ^ ( 0 ) [35].
In summary, following the approach of counterfactual reasoning, we define two distinct models within the SCM for the KGD task. Let f 0 ( · ) = P ( p | Q , C ) denote the factual outcome used to calculate the Total Effect (TE) that encompasses both valid reasoning and potential hallucinations.
In contrast, we define the interventional model as f 1 ( · ) = P ( p | d o ( Q = Q ∗ ) , C ) , where Q ∗ denotes a ‘nearly empty’ state. From a causal perspective, the intervention d o ( Q = Q ∗ ) effectively severs the direct causal path from the user’s specific intent (Q) to the model’s response (P). Consequently, the output of f 1 ( · ) is no longer driven by the query’s semantics but is dominated by the spurious correlations inherent in the context C and the model’s prior biases. Thus, f 1 serves as an estimator for the Spurious Effect (SE), representing the hallucination noise we aim to isolate.
Our goal is to recover the Direct Causal Effect (DCE), which reflects the true contribution of Q to the response, conceptually defined as D C E ≈ T E − S E . A straightforward approach is to subtract the output of f 1 ( · ) from f 0 ( · ) . However, direct subtraction in the probability space often leads to distribution confusion [36], where the operation might not only remove the SE but also mistakenly diminish the valid DCE. To address this issue, we introduce a dynamic adjustment mechanism designed to regulate the estimated SE from f 1 ( · ) into a proxy value that best represents the hallucination bias effect. Specifically, we define the following probability distributions:
  • Factual probability P 0 (Total Effect): The probability distribution generated by the model under the complete influence of user queries, external knowledge, and reasoning processes. This generation process includes both the valid DCE and the hallucination-prone SE.
  • Bias effect P 1 (Spurious Effect): A probability distribution estimated by the interventional decoder, which prominently includes the SE derived solely from external knowledge and reasoning processes without the guidance of the user query.
  • Target probability P (Direct Causal Effect): The distribution obtained by eliminating SE to retain only DCE: P = P 0 − P ^ 1 = f 0 ( · ) − g ( f 1 ( · ) ) , where g ( · ) can adjust the output of P 1 = f 1 ( · ) to a proxy value that best represents the effect of hallucination bias.
As shown in Figure 4, after analyzing hallucination elimination strategies from a counterfactual causal perspective, we propose the ISFJ-RAG framework. Decoder 0 takes user queries, external knowledge, and reasoning processes as input, while Decoder 1 only receives external knowledge and reasoning processes as input.
Figure 4. Model framework: During the inference phase, Decoder 1 takes user queries and knowledge as input, while Decoder 2 takes knowledge as input. Counterfactual reasoning is employed to mitigate interference from external knowledge. In the response phase, Decoder 1 takes user queries, knowledge, and reasoning processes as input, while Decoder 2 takes knowledge and reasoning processes as input. The entire reasoning process is dynamically adjusted through a dynamic confidence adjustment module.

3.3. Dynamic Regulator Mechanism

The goal of the dynamic regulator is to adjust the probability distribution of the model’s output, reducing the bias effect caused by irrelevant external knowledge while preserving the positive causal contribution of the dialog context. To achieve this, we define a dynamic parameter α obtained from numerical calculations based on f 0 ( · ) , which can dynamically adjust the output of f 1 ( · ) based on the model’s confidence level, thereby adjusting the output of P 1 = f 1 ( · ) to a proxy value that best represents the effect of hallucination bias. The confidence level reflects the model’s uncertainty about its output, and we use the following confidence metrics proposed in previous work [37,38,39]:
Average Token Log-Probability: Calculate the average negative logarithmic probability of each token in the sentence, is given by
Average ( p ) = − 1 L i ∑ j = 1 L i log ( p i j )
where L i is the number of tokens in sentence i, and p i j is the conditional probability of the j-th token.
Entropy: Measure the uncertainty of the probability distribution for each token, defined as the maximum entropy across all tokens in the sentence, given by
Entropy = − ∑ w ∈ D p i j ( w ) log p i j ( w )
where j represents the j-th token in the generation process. D is the dictionary of all possible words, and w is a word in D.
Maximum Token Log-Probability: Capture the token with the lowest conditional probability in the sentence, given by
Maximum ( p ) = max j − log ( p i j )
where p i j is the conditional probability of the j-th token.
Max Probability: Measure the highest conditional probability among all tokens in the sentence, given by
Max   Probability = max j p i j
where p i j is the conditional probability of the j-th token.
Perplexity: Represent the exponential of the average negative logarithmic probability of the tokens in the sentence, given by
Perplexity ( p ) = exp − 1 L i ∑ j = 1 L i log ( p i j )
where L i is the number of tokens in sentence i, and p i j is the conditional probability of the j-th token.
For the metrics Average Token Log-Probability, Entropy, Perplexity, and Maximum Token Log-Probability, since they quantify uncertainty, we invert the uncertainty values to obtain the confidence score. The confidence score is defined as
Conf = 1 1 + Uncertainty
where Uncertainty represents the respective uncertainty metric (e.g., Average   ( p ) , Entropy, Perplexity   ( p ) , or Maximum   ( p ) ).
We define the dynamic adjuster g ( · ) as
g ( f 1 ( · ) ) = α · f 1 ( · )
where α is a dynamic parameter whose value is adjusted based on the model’s confidence level. Specifically, in our dual-decoder framework, to regulate f 1 ( · ) based on the output of f 0 ( · ) , α is calculated as
α = 1 − β · Conf ( f 0 ( · ) )
where β represents the scaling factor. Conf ( f 0 ( · ) ) represents the confidence level of the probability distribution generated by the model under the complete action of user questioning, external knowledge, and reasoning process, we use it to regulate the output distribution of encoder 1.

3.4. Algorithm Implementation

Directly using logits for subtraction may lead to generation instability, as the subtraction operation on logits is equivalent to the division operation on probabilities, which can excessively amplify tokens predicted by the bias model with extremely low probabilities. Therefore, we perform the subtraction operation in the probability space to ensure numerical stability. Specifically, we first normalize the outputs of the two decoders using Softmax, then weight the bias distribution P 1 using the dynamic coefficients calculated by Equation (8), and finally select tokens based on greedy search. The complete decoding process is shown in Algorithm 1.
Algorithm 1 ISFJ-RAG Decoding Algorithm (Probability Space)
Require: User query Q, retrieved context C, model M , max length T, scaling factor β
Ensure: Generated response y
  1: Initialize generated sequence y < t ← Ø
  2: while  t < T   and  y t − 1 ≠ EOS   do
  3:     1. Dual forward pass (Based on SCM)
  4:      L 0 ← M ( y < t ∣ Q , C ) {Logits for f 0 ( · ) : Query + Knowledge}
  5:      L 1 ← M ( y < t ∣ Ø , C ) {Logits for f 1 ( · ) : Knowledge only (Counterfactual)}
  6:     2. Normalize to probability space
  7:      P 0 ← Softmax ( L 0 ) {Factual probability}
  8:      P 1 ← Softmax ( L 1 ) {Bias effect distribution}
  9:     3. Dynamic regulation
 10:      Uncertainty ← CalculateMetric ( P 1 ) {e.g., Entropy of f 1 ( · ) }
 11:      Conf ← 1 / ( 1 + Uncertainty ) {Confidence score}
 12:      α ← 1 − β · Conf {Dynamic parameter calculation}
 13:     4. Bias mitigation
 14:      P ^ 1 ← α · P 1 {Adjusted bias proxy value}
 15:      S final ← P 0 − P ^ 1 {Target probability P}
 16:     5. Greedy selection
 17:      y t ← argmax ( S final ) {Select token with highest score}
 18:      y < t + 1 ← y < t ⊕ y t
 19: end while
 20: return y

3.5. Illustrative Example

To intuitively demonstrate the effectiveness of ISFJ-RAG in mitigating hallucinations caused by retrieval noise, we present a specific case study analyzing the probability changes during the decoding process.
  • Input Scenario:
  • User Query (Q): “When did Sky Aviation Ltd. and Sunshine Media Group Ltd. adopt the environmental management system?”
  • Retrieved Context (C): “…In November 2021, the company optimized logistics…. Finally, in December 2021, the company adopted the environmental management system…”
  • Standard RAG Failure: “Sunshine Media Group adopted the system in November 2021.” (Confusing the logistics date with the adoption date).
  • Step-by-Step Analysis of ISFJ-RAG Strategy:
  • Phase 1: Total Effect Estimation (Decoder 0: Q + C )
The standard decoder attends to the context. However, due to the proximity of “November” and “December” in the text, the model becomes confused. Since “November” appears earlier and is semantically prominent in the preceding sentence, Decoder 0 assigns a relatively high probability ( P 0 ≈ 0.48 ) to the token “November” when generating the critical month token, while the correct token “December” receives a lower probability ( P 0 ≈ 0.20 ). This leads to a potential hallucination.
  • Phase 2: Bias Estimation (Decoder 1: Ø + C )
In this phase, we input the retrieved context C into the counterfactual decoder while masking the specific query Q. Operationally, this means providing the model with the context followed by the standard prompt structure (e.g., “Context: …\n User Question: ”), but leaving the query slot explicitly empty. Without the semantic constraint of the specific question (“When…adopted system?”), Decoder 1 acts as a language model predicting based purely on context inertia. Due to recency bias and the tendency to repeat salient terms, the bias model assigns a very high probability ( P 1 ≈ 0.62 ) to “November”. In this unconstrained scenario, the support for “December” is significantly lower ( P 1 ≈ 0.10 ).
  • Phase 3: Causal Intervention ( P f i n a l ∝ P 0 − α P 1 )
Our mechanism subtracts the bias distribution from the total distribution to isolate the reasoning path.
  • For “November”: The high bias score indicates that this token is driven by retrieval noise rather than query-based reasoning. The subtraction operation significantly penalizes it ( 0.48 − α · 0.62 → Suppressed ).
  • For “December”: Although its initial probability was lower, the bias support is also minimal. The subtraction preserves its score relative to the penalized token ( 0.20 − α · 0.10 → Boosted ).
As shown in Table 1, after normalization, “December” becomes the top-ranked token. Consequently, the final output is correctly generated as “Sunshine Media Group… in December 2021…”.
Table 1. Trace of token probabilities for the critical month generation in the case study.

4. Experimental Setup

4.1. Dataset

In terms of evaluation methodology, we adopted the DragonBall benchmark dataset proposed by RAGEval [40], which encompasses various question types including factual, multi-hop, and unanswerable questions. RAGEval assesses answer quality through three key dimensions: completeness, hallucination, and irrelevance. We randomly sampled 100 entries from each domain, resulting in a total of 300 evaluation samples. To specifically target the hallucination phenomenon in Retrieval-Augmented Generation (RAG) systems, our experiment bypasses the retrieval stage analysis and directly employs the BGE-Large embedding model, as recommended by the paper, for document retrieval (TopK = 5). Based on the keypoints extracted from ground truth answers, we define the following core metrics, where A denotes the generated answer, K = { k 1 , k 2 , … , k n } represents the set of keypoints, and I [ · ] serves as the indicator function:
  • Completeness: Measures the proportion of keypoints covered by the generated answer, reflecting the comprehensiveness of information:
    Comp ( A , K ) = 1 | K | ∑ i = 1 n I A   covers   k i ,
    where I A   covers   k i = 1 if and only if the answer correctly includes keypoint k i .
  • Hallucination Rate: Detects the proportion of contradictions between the generated answer and the keypoints to identify fabricated content:
    Hallu ( A , K ) = 1 | K | ∑ i = 1 n I A   contradicts   k i ,
    where I A   contradicts   k i = 1 if and only if there is a semantic conflict between the answer and k i .
  • Irrelevance: Evaluates the proportion of keypoints that are neither covered nor contradicted, measuring the degree of deviation in the answer:
    Irr ( A , K ) = 1 − Comp ( A , K ) − Hallu ( A , K ) .
Considering the significant impact of the reasoning process on generating answers, we designed an evaluation framework for the model’s reasoning process in RAG tasks. By analyzing the correlation between the model’s thought process T and R (references), K (keypoints), we proposed three fine-grained metrics:
  • Problem Focus Degree: Measures whether the reasoning strictly revolves around the problem requirements, avoiding irrelevant reasoning:
    Focus ( T , Q ) = I T   aligns   with   Q ,
    where I [ · ] = 1 if and only if T is directly related to the question Q.
  • Citation Accuracy: Evaluates whether the reasoning is based on the reference document content without introducing external assumptions or fictional content:
    Accuracy ( T , R ) = I T   quoted   R ,
    where I [ · ] = 1 if and only if all R are correctly cited during the reasoning process T.
  • Key Point Coverage Degree: Detects whether the reasoning comprehensively addresses all annotated keypoints:
    Coverage ( T , K ) = I K   addressed   in   T ,
    where I [ · ] = 1 if and only if all annotated keypoints K are explicitly handled during the reasoning process T.
Experiments utilize RAGEval via DeepSeek-v3. To ensure statistical robustness, we randomly sample 300 instances. Significance against baselines is verified using paired t-tests ( p < 0.05 ).

4.2. Baseline

In this study, we selected the 1.5 B and 7.0 B models of DeepSeek-R1-Distill-Qwen as the primary experimental subjects. To evaluate our dynamic causal dual decoder approach, we used Temperature Sampling as the baseline and compared it with sampling strategies and other decoder strategies, as follows:
  • Temperature: Sampling with a temperature of 0.6 and top-p of 0.95.
  • DoGe [41]: A dynamic sampling method that switches decoding strategies based on the model’s factual confidence.
  • KL-divergence sampling [23]: A dynamic temperature sampling method guided by KL divergence.
  • AARF [19]: By intervening in attention heads and FFN modules, it dynamically adjusts the attention weights of the copy heads to external contexts and the parameter knowledge contribution of knowledge FFNs to the residual stream during generation.
  • ISFJ-RAG (Ours): Dynamic confidence adjustment causal dual decoder based on counterfactual reasoning. In the 1.5B model, β is set to 1, and in the 7B model, β is set to 1.25. We will explain the reasons for hyperparameter selection in Section 5.3.

5. Results and Discussion

5.1. Evaluation of Hallucination

This paper adopts the average token log-probability as the confidence parameter (see ablation experiments in Section 5.3) and evaluates generation quality from three dimensions: completeness, hallucination rate, and irrelevance. We report results as mean ± standard deviation over three random seeds (42, 123, 1337) to ensure statistical significance. For the ablation experiment, we used a random seed of 42 to extract 300 data entries. As shown in Table 2, the ISFJ method achieves optimal performance in both the 1.5B/7B dual-base models: in the 7B model, completeness (85.17%) improves by 5.49 percentage points compared to the baseline RAG, while hallucination rate (10.39%) and irrelevance (4.44%) decrease by 2.5 and 2.99 percentage points, respectively, and ROUGE-L (0.2506) significantly outperforms other methods. This indicates that the framework based on dual decoders and counterfactual reasoning can effectively suppress knowledge noise and enhance generation reliability through the bias effect elimination mechanism.
Table 2. Answer quality comparison of various methods on different models (1.5B and 7B). Metrics include: completeness rate (Comp.), hallucination rate (Hallu.), irrelevance rate (Irrel.), and ROUGE-L. The best results are highlighted in bold.
Compared to other methods, although AARF ranks second in model integrity (82.75%) for the 7B model, it is sensitive to hyperparameters and overly relies on the “copy head” mechanism, which may amplify noise in the knowledge base (e.g., 18.31% irrelevance for the 1.5B model). DoGe suffers from logical discontinuities due to frequent switching of decoding strategies (ROUGE-L of only 0.1702 for the 1.5B model), and its KL temperature adjustment strategy conflicts with the optimal inference model temperature (0.6) [6], resulting in a comprehensive lag in key metrics.

5.2. Evaluation of Reasoning

For the effectiveness of the reasoning process in QA tasks, this paper constructs a ternary evaluation system comprising question focus, citation accuracy, and key point coverage. Table 3 show that ISFJ achieves dual optimal performance in the 7B model with a question focus of 41.61% and key point coverage of 87.25% (improving by 7.38 and 4.69 percentage points over the baseline RAG, respectively).
Table 3. Thinking process evaluation of various methods on different models (1.5B and 7B). Metrics include: Problem Focus Degree (Focus), Citation Accuracy (Accu.), and Key Point Coverage Degree (Cov.). The best results are highlighted in bold.
It is worth noting that regarding citation accuracy, ISFJ (53.02%) shows a slight decrease compared to AARF (55.70%). We attribute this to ISFJ’s suppression of excessive citation—the baseline model has a tendency to mechanically add citation tags even to common or redundant phrases. A qualitative analysis (see Appendix A for details) confirms that the higher citation metrics in AARF often reflect “citation noise” rather than better grounding. ISFJ focuses on semantic correctness and removes these redundant structural tags to ensure that the answers are factually accurate and reliable, indicating that a lower citation rate does not mean lower factual completeness.
Additionally, as shown in the Figure 5, it can be observed that the metrics of Answer and Thinking are generally positively correlated, with a calculated Pearson correlation coefficient of 0.7179. This aligns with our second hypothesis regarding the causes of hallucinations in reasoning models, namely that hallucinations are inherently linked to the reasoning process.
Figure 5. The evaluation results of the 7B model.
In summary, the reasoning advantage of ISFJ stems from its two-stage correction mechanism: the first-stage decoder reduces noise bias through external knowledge comparison, while the second-stage decoder performs causal reasoning based on contexts where noise bias effects have been mitigated.

5.3. Ablation Experiment

We systematically evaluate the performance of five confidence metrics (Average Token Log-Prob., Perplexity, Entropy, Max Log-Prob., Max) on 1.5B and 7B models. Additionally, to isolate the confidence component’s contribution, we perform ablation studies comparing fixed weighting (conf = 0 to conf = 1.0) versus dynamic weighting with different confidence metrics. This comparison clarifies that the ‘conf = 0’ setting represents a direct static subtraction baseline, whereas other confidence values demonstrate the efficacy of progressive dynamic weighting.
As shown in Table 4, Average Token Log-Prob. still maintains the best performance on the 7B model, with the highest completeness (85.17%) among all dynamic confidence metrics and the lowest hallucination rate (10.39%). Notably, Average Log Prob demonstrates significant advantages in two core metrics, likely because Average Token Log-Prob. directly corresponds to the cross-entropy loss function during model training [15]. This alignment ensures consistency between the evaluation criteria and optimization objectives. Moreover, the current task is challenging with mixed external knowledge. Relying solely on local confidence measures like Max may yield poor results, while the Average Token Log-Prob. serves as a global output confidence metric, better capturing overall information. It is also noteworthy that a confidence score of conf. = 0.8 exhibits performance comparable to dynamic metrics in both the 1.5B and 7B models.
Table 4. Confidence calibration performance across model sizes. Lower values are preferred for hallucination and irrelevance metrics. When the confidence level is fixed at 0, according to Equation (8), it is equivalent to directly subtracting the two probability distributions without any processing. The best results are highlighted in bold.
The ROUGE-L metric of Perplexity exhibits significant fluctuations, indicating that its performance is highly influenced by model scale. This may be due to the fact that as the number of parameters increases, the model capacity exceeds task requirements, leading to increased diversity in generated text and consequently reducing literal overlap with reference texts. Further analysis reveals that the Max metric, due to its over-reliance on local extremes, shows significantly lower completeness in the 1.5B model (64.86%) and the 7B model (79.53%) compared to the average. Although Max Log Prob. demonstrates lower irrelevance in the 1.5B model (13.90%), its irrelevance in the 7B model (6.97%) is notably higher than the average, suggesting its fluctuating effectiveness in hallucination control with model scale, potentially making it more suitable for smaller models. Finally, the baseline without confidence constraints (Direct) still performs the worst, confirming the necessity of confidence mechanisms.
Regarding the selection of the scaling factor β , our decision is based on empirical observations. As shown in Table 4, a confidence level of approximately 0.8 achieves the optimal balance between suppressing hallucinations and ensuring the completeness of responses. To further justify the theoretical basis for β , we conducted a sensitivity analysis using the dataset and evaluation framework defined in (Section 4.1). As visualized in Figure 6, we observe a clear correlation between model size and the optimal β . The 1.5B model achieves peak completeness at a lower value ( β = 0.75 ), while the 7B model performs best at a higher value ( β = 1.25 ). This phenomenon can be explained by intrinsic model confidence. Larger models (like 7B) tend to be more “confident” in their predictions (producing sharper probability distributions). Therefore, a larger β is required to apply enough force to correct their bias. Conversely, smaller models (1.5B) are less confident and more sensitive; using a large β on them risks over-penalizing valid information, leading to the sharp drop in completeness shown in the figure.
Figure 6. Sensitivity analysis of the scaling factor β on response completeness across model sizes. The 1.5B model (dashed purple) peaks at a lower β (≈0.75), whereas the 7B model (solid brown) requires a higher β (≈1.25) to achieve optimal performance. This confirms that the penalty strength should be scaled according to the model’s intrinsic confidence.
Based on our sensitivity analysis, we propose a rule of thumb for selecting β on new architectures:
β ≈ 1.0 + 0.25 × log 2 Parameter   Size   ( B ) 1.5 ( B )
Additionally, for optimal performance, we recommend evaluating β values within the range [ 0.5 , 1.5 ] on a small validation set (e.g., 10% of RAGEval [40]).
Overall, the results from dual-decoder counterfactual reasoning outperform those of traditional RAG, and even fixed-value intervention achieves effects close to dynamic metrics under specific parameters (e.g., conf. = 0.8), validating the effectiveness of our overall architecture. Moreover, thanks to its inherent connection with the loss function, Average Token Log-Prob., through dynamic adjustment, further enhances the accuracy of proxy values for bias effects.

5.4. Generalization Analysis

To verify the robustness of ISFJ under different models, we extended our evaluation beyond DeepSeek to include Llama-3.1, Mistral-7B-v0.3 and Qwen2.5-7B-Instruct. We report results as mean ± standard deviation over three random seeds (42, 123, 1337) to ensure statistical significance. Performance was assessed on RAGEval and a sampled subset (300 instances) of the RAGTruth dataset [13], utilizing a DeepSeek-based judge.
As shown in Table 5, ISFJ consistently outperforms Standard RAG across all four model families: (1) Model Generalization: ISFJ yields significant gains not only on reasoning-specific models but also on general-purpose models (Qwen) and those with distinct attention mechanisms (Mistral). For instance, Mistral sees a 3.4% reduction in hallucination rate on RAGEval. (2) Statistical Rigor: The improvements are statistically stable across seeds, confirming that the benefits are not artifacts of specific initializations. On RAGTruth, ISFJ effectively suppresses hallucination rate (HR) across the board, notably reducing the HR of Llama-3.1 by over 5 percentage points.
Table 5. Robustness analysis across four model families. ISFJ consistently improves hallucination rate (HR) on RAGTruth and reduces hallucinations (Hallu.) on RAGEval across diverse attention architectures. The best results are highlighted in bold.

5.5. Analysis of Distribution Shift and Intervention Dynamics

To investigate potential distributional shifts between the main decoder f 0 ( · ) and the knowledge-only counterfactual decoder f 1 ( · ) , we performed a temporal analysis of the Kullback–Leibler (KL) divergence during the generation process, defined as D KL ( P ( f 0 ) ‖ P ( f 1 ) ) .
As illustrated in Figure 7, this divergence exhibits a distinct spike-and-stabilize pattern:
  • Early-Stage High Divergence: In the initial generation steps (approximately 0–40 tokens), we observe a sharp peak in KL divergence (peak > 10 ). This indicates that, due to the lack of specific query constraints, f 1 diverges significantly from f 0 when the model is performing critical reasoning and path selection. This confirms that our subtraction mechanism actively suppresses “knowledge-biased” paths when they conflict with query-specific reasoning.
  • Low Divergence Phase: During the remainder of the generation process (40+ tokens), the KL divergence drops and stabilizes at a very low level (<1.0). Empirically, this suggests that for the majority of text generation, both decoders operate within a comparable semantic space, thereby ensuring syntactic consistency.
This analysis validates that the subtraction operation in Equation (8) does not introduce fundamental distributional mismatches; rather, it functions as a targeted intervention mechanism that plays a critical role only when necessary.
Figure 7. The blue curve represents D K L ( f 0 | | f 1 ) at each generation step, the x-axis represents the generation time steps (token indices), and the divergence is calculated on the final output probability distributions. The high divergence in the early stage is because the beginning is the initial stage of generation, and the model is still determining the sentence structure. The low divergence in the later stage indicates that there is no systematic distribution shift between the two decoders.

5.6. Inference Efficiency Analysis

In this chapter, we analyze the theoretical and practical costs of the dual-decoder architecture. Since f 0 and f 1 share the same backbone parameters, they can be batched during the inference process. Therefore, in terms of time cost, with the help of the KV caching mechanism, under parallel settings, the inference latency is comparable to that of the single-decoder benchmark model. However, because parallel computing requires the deployment of two independent large language models, the GPU memory usage is approximately twice that of the standard RAG.
For actual deployment, we recommend that ISFJ be specifically used for high-risk question-answering scenarios (such as medical or legal advice), where the importance of accuracy outweighs twice the time or space costs. In terms of hardware, assuming FP16 precision is adopted, deploying a 7B model with ISFJ requires approximately 28 GB of video memory, while a standard RAG requires about 14 GB.

6. Conclusions

In this paper, we study how external knowledge and self-attention affect hallucinations in large language models (LLMs) from a causal perspective. We introduce a method that uses counterfactual reasoning to dynamically adjust the decoder’s output, reducing hallucinations without altering the LLM architecture. Experiments on hallucination benchmarks show that this approach effectively mitigates hallucinations while maintaining generation quality and diversity.
Regarding the trade-off issue of citation accuracy mentioned in Section 5.2, future iterations of ISFJ can explore “selective masking”—applying the subtraction mechanism only to semantic markers while bypassing structural citation markers—to suppress hallucinations while preserving the citation format.

Author Contributions

Conceptualization, Y.L., W.L. and M.C.; Methodology, Y.L., W.L., Y.W., N.C. and M.C.; Software, Y.L., Y.W. and N.C.; Validation, Y.L., W.L., Y.W., N.C. and M.C.; Formal analysis, Y.L., Y.W. and N.C.; Investigation, Y.L.; Resources, Y.L.; Data curation, Y.L.; Writing—original draft, Y.L., W.L., Y.W., N.C. and M.C.; Writing—review and editing, Y.L., W.L., Y.W., N.C. and M.C.; Supervision, W.L.; Funding acquisition, W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (No. 62106094), Jiangxi Provincial Natural Science Foundation (No. 20242BAB20071) and Nanchang University Innovation Fund Project (No. XX202506040053).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets used in this article are available in RAGEval at https://github.com/OpenBMB/RAGEval. The source code in the study are openly available at https://github.com/l784669877/code/.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Qualitative Analysis of Citation Accuracy Trade-Off

To investigate the nature of the slight drop in citation accuracy, we conducted a granular case study comparing the baseline (AARF) and ISFJ. As shown in Table A1, the “missed” citations predominantly fall into two benign categories: (1) Redundant Structural Citations, where the baseline mechanically cites generic transition phrases; and (2) Over-Citation, where the baseline appends citation tags even when hallucinating content. Crucially, the suppression of these structural tokens by ISFJ does not compromise the factual correctness of the answer.
Table A1. Case study of citation behavior: AARF vs. ISFJ. This table illustrates typical instances where ISFJ suppresses citations, primarily targeting redundant ones without compromising factual correctness. Q means question and Ctx means context.

References

  1. Touvron, H.; Lavril, T.; Izacard, G.; Martinet, X.; Lachaux, M.A.; Lacroix, T.; Rozière, B.; Goyal, N.; Hambro, E.; Azhar, F.; et al. Llama: Open and efficient foundation language models. arXiv 2023, arXiv:2302.13971. [Google Scholar] [CrossRef] [Scilit]
  2. Liu, A.; Feng, B.; Xue, B.; Wang, B.; Wu, B.; Lu, C.; Zhao, C.; Deng, C.; Zhang, C.; Ruan, C.; et al. DeepSeek-V3 Technical Report. arXiv 2024, arXiv:2412.19437. [Google Scholar]
  3. Mallen, A.; Asai, A.; Zhong, V.; Das, R.; Khashabi, D.; Hajishirzi, H. When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Toronto, ON, Canada, 2023; Volume 1, pp. 9802–9822. [Google Scholar]
  4. Zhou, C.; Liu, P.; Xu, P.; Iyer, S.; Sun, J.; Mao, Y.; Ma, X.; Efrat, A.; Yu, P.; Yu, L.; et al. Lima: Less is more for alignment. Adv. Neural Inf. Process. Syst. 2023, 36, 55006–55021. [Google Scholar]
  5. Huang, L.; Yu, W.; Ma, W.; Zhong, W.; Feng, Z.; Wang, H.; Chen, Q.; Peng, W.; Feng, X.; Qin, B.; et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Trans. Inf. Syst. 2025, 43, 1–55. [Google Scholar] [CrossRef] [Scilit]
  6. Guo, D.; Yang, D.; Zhang, H.; Song, J.; Zhang, R.; Xu, R.; Zhu, Q.; Ma, S.; Wang, P.; Bi, X.; et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv 2025, arXiv:2501.12948. [Google Scholar]
  7. Jaech, A.; Kalai, A.; Lerer, A.; Richardson, A.; El-Kishky, A.; Low, A.; Helyar, A.; Madry, A.; Beutel, A.; Carney, A.; et al. OpenAI O1 System Card. arXiv 2024, arXiv:2412.16720. [Google Scholar] [CrossRef] [Scilit]
  8. Chen, Q.; Qin, L.; Wang, J.; Zhou, J.; Che, W. Unlocking the capabilities of thought: A reasoning boundary framework to quantify and optimize chain-of-thought. In Proceedings of the Advances in Neural Information Processing Systems 37, Vancouver, BC, Canada, 10–15 December 2024. [Google Scholar]
  9. Jin, M.; Yu, Q.; Shu, D.; Zhao, H.; Hua, W.; Meng, Y.; Zhang, Y.; Du, M. The impact of reasoning step length on large language models. In Findings of the Association for Computational Linguistics: ACL 2024; Association for Computational Linguistics: Bangkok, Thailand, 2024; pp. 1830–1842. [Google Scholar]
  10. Fan, W.; Ding, Y.; Ning, L.; Wang, S.; Li, H.; Yin, D.; Chua, T.; Li, Q. A survey on rag meeting llms: Towards retrieval-augmented large language models. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2024; pp. 6491–6501. [Google Scholar]
  11. Wang, X.; Amayuelas, A.; Zhang, K.; Pan, L.; Chen, W.; Wang, W. Understanding reasoning ability of language models from the perspective of reasoning paths aggregation. In Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria, 21–27 July 2024; Volume 235, pp. 50026–50042. [Google Scholar]
  12. Zhou, L.; Schellaert, W.; Martínez-Plumed, F.; Moros-Daval, Y.; Ferri, C.; Hernández-Orallo, J. Larger and more instructable language models become less reliable. Nature 2024, 634, 61–68. [Google Scholar] [CrossRef] [Scilit]
  13. Niu, C.; Wu, Y.; Zhu, J.; Xu, S.; Shum, K.; Zhong, R.; Song, J.; Zhang, T. RAGTruth: A hallucination corpus for developing trustworthy retrieval-augmented language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Bangkok, Thailand, 2024. [Google Scholar]
  14. Chyzhyk, D.; Varoquaux, G.; Milham, M.; Thirion, B. How to remove or control confounds in predictive models, with applications to brain biomarkers. GigaScience 2022, 11, giac014. [Google Scholar] [CrossRef] [Scilit]
  15. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł; Polosukhin, I. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
  16. Hahn, M. Theoretical limitations of self-attention in neural sequence models. Trans. Assoc. Comput. Linguist. 2020, 8, 156–171. [Google Scholar] [CrossRef] [Scilit]
  17. Chiang, D.; Cholak, P. Overcoming a theoretical limitation of self-attention. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Dublin, Ireland, 2022; pp. 7654–7664. [Google Scholar]
  18. Xiao, G.; Tian, Y.; Chen, B.; Han, S.; Lewis, M. Efficient streaming language models with attention sinks. In Proceedings of the Twelfth International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
  19. Sun, Z.; Zang, X.; Zheng, K.; Song, Y.; Xu, J.; Zhang, X.; Yu, W.; Li, H. ReDeep: Detecting hallucination in retrieval-augmented generation via mechanistic interpretability. arXiv 2024, arXiv:2410.11414. [Google Scholar]
  20. Jesson, A.; Beltran-Velez, N.; Chu, Q.; Karlekar, S.; Kossen, J.; Gal, Y.; Cunningham, J.P.; Blei, D. Estimating the hallucination rate of generative ai. Adv. Neural Inf. Process. Syst. 2024, 37, 31154–31201. [Google Scholar]
  21. Abbasi Yadkori, Y.; Kuzborskij, I.; György, A.; Szepesvari, C. To believe or not to believe your LLM: Iterative prompting for estimating epistemic uncertainty. Adv. Neural Inf. Process. Syst. 2024, 37, 58077–58117. [Google Scholar]
  22. Holtzman, A.; Buys, J.; Du, L.; Forbes, M.; Choi, Y. The curious case of neural text degeneration. arXiv 2019, arXiv:1904.09751. [Google Scholar]
  23. Chang, C.; Reitter, D.; Aksitov, R.; Sung, Y. KL-divergence guided temperature sampling. arXiv 2023, arXiv:2306.01286. [Google Scholar] [CrossRef] [Scilit]
  24. Elhage, N.; Nanda, N.; Olsson, C.; Henighan, T.; Joseph, N.; Mann, B.; Askell, A.; Bai, Y.; Chen, A.; Conerly, T.; et al. A Mathematical Framework for Transformer Circuits. Transformer Circuits Thread. 2021. Available online: https://transformer-circuits.pub/2021/framework/index.html (accessed on 30 January 2026).
  25. Pearl, J. Causal inference. In Proceedings of Workshop on Causality: Objectives and Assessment at NIPS 2008; PMLR: Whistler, BC, Canada, 2010; pp. 39–58. [Google Scholar]
  26. Halpern, J.Y.; Pearl, J. Causes and explanations: A structural-model approach. Part I: Causes. Br. J. Philos. Sci. 2005, 56, 843–887. [Google Scholar] [CrossRef] [Scilit]
  27. Sun, Z.; Du, L.; Ding, X.; Ma, Y.; Zhao, Y.; Qiu, K.; Liu, T.; Qin, B. Causal-Guided Active Learning for Debiasing Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Bangkok, Thailand, 2024; pp. 14455–14469. [Google Scholar]
  28. Wang, X.; Zhang, H.; Zhao, S.; Chen, H.; Ding, Z.; Wan, Z.; Cheng, B.; Lan, Y. Debiasing Counterfactual Context With Causal Inference for Multi-Turn Dialogue Reasoning. IEEE/ACM Trans. Audio Speech Lang. Process. 2023, 32, 1125–1132. [Google Scholar] [CrossRef] [Scilit]
  29. Zhu, X.; Mandivarapu, J.K. Trustful LLMs: Customizing and Grounding Text Generation with knowledge bases and Dual Decoders. In Proceedings of the 1st Workshop on Customizable NLP: Progress and Challenges in Customizing NLP for a Domain, Application, Group, or Individual (CustomNLP4U); Association for Computational Linguistics: Miami, FL, USA, 2024; pp. 156–166. [Google Scholar]
  30. Chen, D.; Fang, F.; Ni, S.; Liang, F.; Xu, R.; Yang, M.; Li, C. Lower Layer Matters: Alleviating Hallucination via Multi-Layer Fusion Contrastive Decoding with Truthfulness Refocused. arXiv 2024, arXiv:2408.08769. [Google Scholar] [CrossRef] [Scilit]
  31. Edge, D.; Trinh, H.; Cheng, N.; Bradley, J.; Chao, A.; Mody, A.; Truitt, S.; Metropolitansky, D.; Ness, R.O.; Larson, J. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. arXiv 2024, arXiv:2404.16130. [Google Scholar] [CrossRef] [Scilit]
  32. Niu, M.; Li, H.; Shi, J.; Haddadi, H.; Mo, F. Mitigating hallucinations in large language models via self-refinement-enhanced knowledge retrieval. arXiv 2024, arXiv:2405.06545. [Google Scholar]
  33. Pearl, J. Causality; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  34. Robertson, S.E.; Jones, K.S. Relevance weighting of search terms. J. Am. Soc. Inf. Sci. 1976, 27, 129–146. [Google Scholar] [CrossRef] [Scilit]
  35. Devriendt, F.; Moldovan, D.; Verbeke, W. A literature survey and experimental evaluation of the state-of-the-art in uplift modeling: A stepping stone toward the development of prescriptive analytics. Big Data 2018, 6, 13–41. [Google Scholar] [CrossRef] [Scilit]
  36. Stahlberg, F.; Byrne, B. On NMT search errors and model errors: Cat got your tongue? In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP); Association for Computational Linguistics: Hong Kong, China, 2019; pp. 3356–3362. [Google Scholar]
  37. Shorinwa, O.; Mei, Z.; Lidard, J.; Ren, A.Z.; Majumdar, A. A survey on uncertainty quantification of large language models: Taxonomy, open research challenges, and future directions. arXiv 2024, arXiv:2412.05563. [Google Scholar] [CrossRef] [Scilit]
  38. Fadeeva, E.; Rubashevskii, A.; Shelmanov, A.; Petrakov, S.; Li, H.; Mubarak, H.; Tsymbalov, E.; Kuzmin, G.; Panchenko, A.; Baldwin, T. Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantification. In Findings of the Association for Computational Linguistics: ACL 2024; Association for Computational Linguistics: Bangkok, Thailand, 2024; pp. 9367–9385. [Google Scholar]
  39. Azaria, A.; Mitchell, T. The Internal State of an LLM Knows When It’s Lying. In Findings of the Association for Computational Linguistics: EMNLP 2023; Association for Computational Linguistics: Singapore, 2023; pp. 967–976. [Google Scholar]
  40. Zhu, K.; Luo, Y.; Xu, D.; Yan, Y.; Liu, Z.; Yu, S.; Wang, R.; Wang, S.; Li, Y.; Zhang, N. RagEval: Scenario Specific RAG Evaluation Dataset Generation Framework. arXiv 2024, arXiv:2408.01262. [Google Scholar] [CrossRef] [Scilit]
  41. Yang, C.; Lin, Z.; Tian, C.; Pang, L.; Wang, L.; Tong, Z.; Ho, Q.; Cao, Y.; Wang, W. A Factuality and Diversity Reconciled Decoding Method for Knowledge-Grounded Dialogue Generation. arXiv 2024, arXiv:2407.05718. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.