Manuscript Offprint

arXiv:2610.35059

Reinforcement Learning Done Right for Explicit Confidence Targets

Zefeng He, Yichen He, Yuan Lin, Yang Yang, Yu Cheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) can produce plausible but incorrect answers when they are uncertain, which can mislead users and undermine model reliability. Training models to abstain with reinforcement learning is a natural approach, but most existing methods use a fixed error penalty and therefore cannot adapt their behavior to different confidence requirements at inference time. We study explicit confidence targets, where a user specifies a target p in the prompt and the model directly chooses whether to answer or abstain, with the goal of achieving an accuracy of at least p among answered questions. However, learning to respond to different confidence targets with a single model has proven difficult, and prior attempts have failed to distinguish different targets. We show that this failure comes from two problems: the reward signal that distinguishes different values of p is often lost during optimization, while the original error penalty grows without bound as p approaches one. We propose RLEC (Reinforcement Learning with Explicit Confidence Targets), which preserves the learning signal needed to distinguish confidence targets, introduces a stable reward family that keeps the desired answer condition unchanged, and uses reward scheduling to balance effective learning and training stability. Together, these designs enable the first successful training of a single LLM for explicit confidence target control. Extensive experiments across diverse benchmarks and model scales show that RLEC largely preserves general capabilities and achieves competitive calibration performance. RLEC also supports fine-grained target control without an external decision system or threshold calibration after training. By making explicit confidence targets part of the trained policy, RLEC opens a new and more direct path toward behavioral calibration.

Date: October 26, 2026

Code: https://github.com/ByteDance-Seed/RLEC

1 Introduction

Large language models (LLMs) [1, 6, 29] have shown strong abilities in knowledge-intensive and reasoning tasks, but they can still generate plausible yet incorrect responses, commonly known as hallucinations [13, 17]. Such errors reduce the reliability of LLMs and may mislead users, posing particular risks when incorrect answers are costly. Rather than guessing when uncertain, a reliable model should know when not to answer [18–20].

Kalai et al. [19] argue that common training objectives reward guessing over acknowledging uncertainty. A natural solution is to train abstention with

(a) Avg. Acc. (Attempted)

Figure

(b) Fine-Grained Control

Figure 1 Explicit Confidence Target control. (a) RLEC's average accuracy across eight benchmarks increases with p specified in the prompt. (b) RLEC's fine-grained control on AIME with p.

reinforcement learning [16, 24, 25, 35], rewarding correct answers, penalizing incorrect answers, and assigning no reward to abstentions. For example, TruthRL [35] uses such a reward with a fixed error penalty. However, a fixed penalty represents only one risk preference, while different applications may require different levels of reliability. To represent these requirements, we study an explicit confidence target: the user specifies a target p in the prompt, and the model directly chooses whether to answer or abstain. The desired behavior is

Acc(p)=Pr⁡(correct∣answer,p)≥p,(1)\mathrm{Acc}(p)=\Pr(\mathrm{correct}\mid\mathrm{answer},p)\geq p, \tag{1}

and a single model should respond to different values of p without retraining or an external decision system. However, learning such behavior has proved difficult. Wu et al. [36] propose Explicit Risk Thresholding (ERT), which trains on randomly sampled values of p using GRPO [10, 27], assigning rewards of 1, −p/(1−p)-p/(1-p), and 0 to correct answers, incorrect answers, and abstentions, respectively. However, they report that the model's hallucination rates remain insensitive to the input target. They attribute this failure to the noisy optimization problem created by training across many thresholds. Other work [24] further argues that limited model capacity may force a policy to specialize in one risk preference. These findings leave it unclear whether the difficulty is inherent to a single model or caused by the training method.

We show that this failure does not mean that the task is beyond the capacity of a single model. Instead, it can be explained by two problems in the training setup. First, ERT, like many recent RL methods for LLMs, uses GRPO. We observe that most of its rollout groups contain only one or two distinct reward values. Groups with a single reward value yield zero advantages, while in groups with two values, standard deviation normalization removes the effect of the reward scale induced by p on the advantages. The resulting advantages depend only on the fraction of the two values, rather than their magnitudes. As a result, reward magnitudes provide little direct signal for distinguishing confidence targets. Second, the original error reward grows without bound as p approaches one. Once the reward magnitudes directly affect the advantages, samples with large p can dominate the gradient and destabilize training. Based on these findings, we introduce RLEC (Reinforcement Learning with Explicit Confidence Targets). RLEC removes division by the group standard deviation while retaining mean centering, thereby preserving the effect of the reward scale induced by p on the advantages. It further introduces a reward family controlled by a stability coefficient b, which controls reward magnitudes at large p without changing the desired decision rule. Finally, we observe that fixed values of b tend to trade off the strength of the learning signal against training stability. We therefore introduce a schedule for b that combines a strong signal for learning different confidence targets with stable training.

We evaluate RLEC using Qwen3-4B-Base and Qwen3-30B-A3B-Base [37] across eight benchmarks covering mathematical reasoning, knowledge and hallucination, and scientific reasoning. Our results show that a single model can successfully learn different behaviors for different explicit confidence targets, as shown in Figure 1(a). We also compare RLEC with a standard RLVR [10] baseline, showing that RLEC largely preserves the baseline's general capabilities at both model scales. For additional context, we further compare RLEC with RLCR [8], which focuses on confidence reporting rather than direct abstention control. RLEC achieves calibration performance comparable to RLCR at 4B and obtains a lower overconfidence rate and a higher overall score at 30B. RLEC also provides several practical advantages. Methods based on verbalized confidence [8, 30] often require an external rule to convert their confidence estimates into answer or abstention decisions, while other selective prediction methods [20, 32] further rely on separate calibrators or held-out calibration sets. In contrast, RLEC receives p in the prompt and directly produces the final answer or abstention without external processing. It also supports fine-grained control over answer or abstention, with smooth changes across densely spaced values of p, as illustrated in Figure 1(b).

Our main contributions are as follows:

  • We identify how the optimization algorithm and reward design used in prior work weaken the confidence target signal, providing a concrete explanation for the previously reported failure.

  • We propose RLEC, which preserves the confidence target signal, introduces a stable reward family that keeps the desired answer condition unchanged, and uses reward scheduling to balance effective learning and training stability. To our knowledge, RLEC thereby enables the first successful training of a single LLM for explicit confidence target control.

  • Extensive experiments across diverse benchmarks and model scales show that RLEC largely preserves general capabilities and achieves competitive calibration performance. It also requires no external decision system or calibration after training and supports fine-grained target control.

References (38)