arXiv:2610.35142cs.CLOct 2026

Manuscript Offprint

arXiv:2610.35142

CalibraRL: Confidence-Calibrated Reinforcement Learning for Mitigating Hallucinations in RAG

Qianchi Zhang, Hainan Zhang, Liang Pang, Hongwei Zheng, Zhiming Zheng

Qianchi Zhang ∗^{*}

School of Artificial Intelligence,

Beihang University

Beijing, China

zhangqianchi@buaa.edu.cn

Hainan Zhang †^{\dagger}

School of Artificial Intelligence,

Beihang University

Beijing, China

zhanghainan@buaa.edu.cn

Liang Pang

Institute of Computing Technology,

Chinese Academy of Sciences

Beijing, China

pangliang@ict.ac.cn

Hongwei Zheng

Beijing Academy of Blockchain and

Edge Computing

Beijing, China

Abstract

Large language models (LLMs) often produce plausible but incorrect answers, motivating reinforcement learning methods that reward correct answers, penalize incorrect answers, and allow abstention. However, fixed outcome-based rewards do not distinguish incorrect responses with different confidence levels or account for differences in answering reliability across queries. Consequently, such rewards may inadequately penalize overconfident errors and fail to discourage unnecessary abstention. We propose CalibraRL, a reinforcement learning framework that incorporates response confidence and query-level answering evidence into reward design. For non-abstaining responses, CalibraRL combines correctness-based utility with a Brier-based penalty that encourages agreement between confidence and correctness. For abstentions, it estimates conditional answering reliability using a Beta posterior derived from the correctness of non-abstaining responses within each sampled group. The abstention reward increases with the posterior probability that the model's accuracy on non-abstaining responses is below a predefined threshold. CalibraRL reuses training rollouts without requiring additional annotations indicating whether the model knows the answer to each question. Experiments on three QA datasets demonstrate that CalibraRL improves answer precision and reduces hallucinations compared with strong baselines. Further analysis shows that CalibraRL reduces mean expected calibration error (ECE) by 30.8% across two backbone models and three datasets, highlighting its potential to improve the reliability of retrieval-augmented generation (RAG) in web search.

1 Introduction

Large language models (LLMs) have become increasingly capable of answering knowledge-intensive questions, yet they remain prone to producing plausible but factually incorrect responses [14, 16]. Providing external documents can improve access to relevant information, but does not guarantee that a model will use the evidence correctly or recognize when it cannot answer reliably [18, 24]. Reliable question answering therefore requires balancing accurate answering with appropriate abstention, as insufficient abstention

Zhiming Zheng

School of Artificial Intelligence,

Beihang University

Beijing, China

Same Outcome, Different Reliability

(A) Same Error, Different Confidence

Figure

(B) Same IDK, Different Sampling Outcomes

Figure 1: Reward design motivation. IDK denotes abstention. (A) Unlike fixed penalties, our method penalizes higher-confidence errors more strongly. (B) Unlike fixed abstention rewards, our posterior-adaptive reward reflects the correctness of non-abstaining rollouts for the same query.

exposes users to incorrect information, whereas excessive abstention withholds answers that the model could otherwise provide correctly with the available evidence.

Recent studies have explored incorporating abstention into model training [38, 48]. R-Tuning constructs refusal-aware instruction data to teach models to answer questions within their estimated capabilities and acknowledge uncertainty otherwise [48]. TruthRL adopts a ternary reward that rewards correct answers, penalizes incorrect answers, and assigns a neutral reward to abstentions [38]. This design provides a learning signal for the trade-off between answering and abstaining. However, fixed ternary rewards assign raw reward values solely according to the final outcome category, without explicitly accounting for reliability differences within that category. Our central observation is that the same outcome category can correspond to different reliability characteristics. As shown in Figure 1, two incorrect responses may have substantially different

∗^{*}This work was supported by Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing.

†^{\dagger}Corresponding author.

Qianchi Zhang, Hainan Zhang, Liang Pang, Hongwei Zheng, and Zhiming Zheng

generation confidence. Although both require correction, a high-confidence error exhibits a larger discrepancy between confidence and correctness. Likewise, abstentions on different queries may be supported by different degrees of answering evidence. For one query, most of the other sampled non-abstaining responses may be incorrect, whereas for another, most may be correct. The former provides greater empirical support for abstention, while the latter suggests a potentially missed opportunity to answer correctly. These distinctions motivate training feedback that accounts not only for the observed outcome, but also for response confidence and answering evidence from the same query.

Our preliminary experiments support this motivation. First, empirical answer accuracy generally increases with generation confidence, indicating that confidence contains information about answer reliability. Nevertheless, incorrect responses span a broad confidence range, including a substantial proportion of high-confidence errors. These observations motivate examining confidence alongside correctness when designing training rewards. Second, among queries that elicit abstention, independent reference sampling reveals variation in correctness rates conditional on producing a non-abstaining response. The same abstention label therefore encompasses different empirical answering opportunities. Together, these observations motivate investigating whether confidence and answering evidence can provide useful training signals beyond outcome labels.

Motivated by these observations, we propose CalibraRL, a reinforcement learning framework combining confidence-aware answer rewards with posterior-adaptive abstention rewards. For non-abstaining responses, CalibraRL augments a signed correctness reward with a Brier-based penalty [5, 10]. It uses generation confidence derived from token probabilities to capture disagreement between confidence and correctness, imposing a larger additional penalty on high-confidence errors. For abstentions, CalibraRL constructs a Bayesian posterior over conditional answer accuracy from the correct and incorrect non-abstaining responses in the same rollout group. The posterior probability that this accuracy falls below a specified threshold determines the abstention reward, accounting for both observed outcomes and estimation uncertainty under finite sampling. Both components are incorporated into the raw rewards used to optimize the policy through Group Relative Policy Optimization (GRPO) [34]. The framework reuses training rollouts and reference answers for correctness verification, without requiring additional, precomputed labels of whether each query is known or unknown to the model.

Experiments on three QA datasets demonstrate that CalibraRL improves answer precision and reduces hallucinations compared with strong baselines. Further analysis shows that CalibraRL reduces mean expected calibration error (ECE) by 30.8% across two backbone models and three datasets, highlighting its potential to improve the reliability of retrieval-augmented generation (RAG) in web search.

Our main contributions are as follows:

• We identify reliability differences within outcome categories through empirical analyses of confidence among incorrect responses and the accuracy of non-abstaining responses obtained through independent reference sampling for queries eliciting abstention.

• We propose CalibraRL, which combines a confidence-aware answer reward with a Bayesian posterior-adaptive abstention reward derived from same-query rollout evidence.

• Across three QA datasets and two backbones, we demonstrate improvements in answer precision and overall truthfulness over strong baselines, and analyze the contributions of both reward components through ablation studies.