Manuscript Offprint

arXiv:2610.02740

Prospective Hindsight: Self-Calibrating Reinforcement Learning via Prediction-Reality Gaps

Jiaxin Zhang, Xiangyu Peng, Qinglin Chen, Yu Li, Hiroaki Hayashi, Chien-Sheng Wu

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

Abstract

Reinforcement learning for long-horizon agents relies on purely retrospective training signals: credit is assigned only after observing environmental consequences, leaving the agent's belief at action time invisible to the gradient. We introduce Prospective Hindsight (PH), a self-calibrating training principle that augments any retrospective base method with a signal derived from the gap between the agent's prospective prediction (before feedback) and the retrospective evaluation (after feedback). This per-rollout surprise identifies samples where the agent's self-model is most inaccurate and amplifies their gradient contribution through a stop-gradient surprise-weighted advantage. Since the prospective predictor shares parameters with the policy, the two co-evolve, progressively shifting focus to the agent's remaining blind spots. We connect this principle to a privileged-information gap and show that minimizing the surprise residual provides a descent pathway on the agent's miscalibration rate; calibration thus emerges as a byproduct of optimization rather than from an added objective. On single-turn verifiable tasks and a multi-turn personal-agent task (under GRPO, on-policy distillation, and their combination), PH improves both task performance and calibration, with consistent gains across model scales. Notably, the dominant miscalibration mode shifts structurally between regimes, overconfident failures in single-turn, underconfident successes in multi-turn, yet the same training principle addresses both successfully.

Figure

Figure 1: Prospective Hindsight (PH) converts hindsight feedback into a self-calibrating training signal. PH compares an agent's action-time prediction with the realized verifier/PRM outcome, partitions rollouts into calibrated and miscalibrated cases, and upweights surprising prediction–reality mismatches during policy updating within GRPO, on-policy distillation and their combination.

*Correspondence to {jiaxin.zhang, wu.jason}@salesforce.com

Preprint.

1 Introduction

LLMs increasingly act as agents: decomposing tasks, calling tools, writing code, conducting extended tutoring conversations, and making intermediate commitments whose consequences unfold over many steps [42, 3]. In these settings, the most damaging failures are often not simple mistakes, but mistakes made with confidence [52, 46, 55, 51]. A confidently wrong agent continues down a flawed trajectory, ignores opportunities for recovery, and triggers incorrect downstream actions; an agent that fails while expressing uncertainty [47, 28], in contrast, invites a fallback, a retry, or a request for human input. Reliable agentic learning therefore requires more than improving final accuracy — it requires aligning the agent's prospective belief about its own success with the reality of its outcomes.

The hindsight trap. Modern agentic RL has converged on increasingly rich retrospective feedback [45, 7]. Process reward models score each step by inspecting the next environmental state [42, 3]; on-policy distillation (OPD) methods [25, 37] construct a hindsight teacher conditioned on post-action context unavailable to the agent at decision time [1, 44, 14, 34]. These methods differ in mechanism but share a structural property: every learning signal is computed from quantities observed after the agent has acted, and the agent's prospective belief at action time, i.e., what it expected would happen, never enters the gradient. Two rollouts that produced the same outcome therefore receive the same update, regardless of whether one was a confident success and the other a lucky guess, or whether one was a failure the agent could have anticipated and the other a failure that took the agent by surprise. We call this structural obstruction the hindsight trap, and it is the reason why retrospective training reliably improves task accuracy without resolving overconfidence [50, 21, 5, 16, 11].

Calibration as a training signal, not a diagnostic. A substantial literature on LLM calibration has measured this overconfidence and proposed inference-time fixes: verbalized confidence prompts, semantic uncertainty estimators, post-hoc temperature scaling [12, 15, 39, 18]. Recent work extends these ideas into RL by adding explicit confidence-target losses or rewriting confidence tokens in the teacher distribution [50, 21, 5], but in doing so introduces a separate calibration objective alongside the task objective; the two are reported to trade against each other. We approach the problem from a different angle. The gap between the agent's prospective belief and the eventual outcome is not just a diagnostic of how well-calibrated the agent is; instead, it is a training signal that points to exactly the rollouts where action-time information was insufficient.

Why prediction–reality gaps are informative. The same property that makes the prospective belief invisible to retrospective losses also makes the gap between belief and outcome informative. By a law-of-total-variance argument, the residual variance in the eventual outcome given action-time information decomposes into aleatoric noise (irreducible even with privileged context) plus a non-negative privileged-information gap: the share of outcome variance that no action-time predictor can resolve. This places agent RL inside Learning Under Privileged Information (LUPI) framework [40, 30, 24]. The rollouts that materialize this gap, overconfident failures and underconfident successes, are exactly where action-time information falls short of post-action information. Standard hindsight-only methods see these rollouts only through their outcome label and treat them indistinguishably from calibrated ones; we ask what changes if training explicitly uses the disagreement.

We introduce Prospective Hindsight (PH), a self-calibrating training principle that augments any retrospective base method with a signal derived from the prediction–reality gap. Before each rollout is scored by the verifier or PRM, we re-query the same policy with a different prompt to elicit a prospective prediction of the eventual outcome; comparing this prediction to the retrospective evaluation yields a per-rollout surprise that identifies the training samples where the agent's self-model is most inaccurate. PH amplifies the gradient contribution of these samples through a stop-gradient reweighting of the base loss, preserving the rollout sampling distribution and the internal structure of GRPO, OPD, or their combination. Because the prospective predictor shares parameters with the policy rather than being an external head bolted onto the model, the predictor co-evolves with the policy as training progresses: the agent's self-model improves implicitly alongside the agent's behavior, the surprise signal progressively shifts focus to the agent's remaining blind spots, and the reweighting diminishes as the prediction–reality gap closes. PH therefore reduces miscalibration as a byproduct of optimization rather than through an added calibration loss, sidestepping the capability–calibration trade-off [21, 5]. Our main contributions are summarized as follows:

• We identify the hindsight trap as a structural blind spot of retrospective RL and connect the resulting prediction–reality gap to a privileged-information quantity within the LUPI framework.

• We propose Prospective Hindsight, a principle method that converts this gap into a self-calibrating training signal compatible with binary RL (GRPO), On-policy distillation, and their combination.

• We define a calibration taxonomy by pairing the prospective belief with the verifier outcome yields four rollout cells that decompose calibration along two interpretable axes during training.

• PH improves both task performance and calibration on single-turn verifiable tasks and on a multi-turn personal-agent task, with consistent gains across model scales. The dominant miscalibration mode shifts structurally between regimes and PH addresses both successfully.

References (53)