betaFeedback

WorksComputer Science

Error-Guided Bellman Calibration for Semi-Offline Value Estimation

Abstract

We study semi-offline value estimation, where a small on-policy sample supplements a large off-policy dataset. This regime is common in recommender systems and pre-deployment A/B testing, and the challenge is to use the limited on-policy data to correct systematic bias in a given value predictor. Recent work on Bellman calibration (BC) gives a post-hoc, model-agnostic correction along the predicted value. We propose Error-Guided Bellman Calibration (GBC), which trains an error model on the on-policy sample and calibrates the predictor along this learned error axis. We bound the refinement term, which measures the part of the prediction error that calibration along this axis cannot remove, in terms of the accuracy of the error model. Under low-dimensional structure and an assumed error-model rate, we show that this bound adapts to the intrinsic dimension rather than the state dimension, and we give a finite-sample bound in which this structure enters only through the refinement term. On a synthetic MDP, a customer relationship management simulator, and D4RL tasks, GBC reliably reduces the error of the given predictor and consistently improves on BC.

Introduction

Off-policy value estimation underlies a large class of decisions in modern machine-learning systems, from podcast and advertising recommenders [31, 13, 19] to industrial counterfactual reasoning [2] and pre-deployment policy comparison [24, 17, 32]. The standard pipeline trains a value predictor on logged data and uses its output to score candidate policies. In practice, the predictor is systematically biased. Sources of this bias include distribution shift between the logging and target policies, model misspecification, and incomplete training. Their combined effect is hard to remove by retraining alone. Calibration offers a post-hoc alternative. It keeps the trained predictor and adjusts its outputs using additional data.

Many applications produce data that is neither fully on-policy nor fully off-policy. A large logged dataset accumulates from past deployments and historical A/B tests, while a much smaller on-policy sample is collected under the target policy. Deployment cost and the risk of running an untested policy keep the on-policy budget small, even when the off-policy log is abundant [17]. We call this setting the semi-offline regime. Hybrid reinforcement learning combines the two sources for policy learning [28]; we study how to combine them to correct a given value predictor.

A natural starting point is the recently proposed Bellman calibration1 (BC) of van der Laan and Kallus [33]. BC takes a value predictor v^\hat{v} as input and applies a histogram calibrator along the level sets of v^\hat{v}, enforcing a one-step Bellman consistency within each bin via a doubly robust target. The procedure is post-hoc and model-agnostic, and it avoids both Bellman completeness and realizability assumptions on v^\hat{v}. van der Laan and Kallus [ [33] also note that the calibration step can be run on a limited amount of on-policy data. We adopt BC’s framework as the foundation: the doubly robust Bellman target, iterated histogram calibration, the coarsened Bellman operator, and the calibration-refinement decomposition [6] with its finite-sample analysis.

A histogram calibrator groups states by a scalar variable and applies one adjustment to each group. We call this variable the conditioning axis. BC uses the prediction v^\hat{v} itself as the conditioning axis, so states with the same prediction receive the same calibrated value, even when their errors differ. Let v0v_0 be the true value function, and define the base prediction error as e:=v0−v^e := v_0 - \hat{v}, so that v0=v^+ev_0 = \hat{v} + e. Calibration along v^\hat{v} cannot remove the part of ee that varies across states with the same prediction. In BC’s bound on the estimation error, the size of this part appears as a separate term, the refinement term. This part can be large even when ee has a simple form. For example, let v0=u+g∘ϕv_0 = u + g \circ\phi, where (g∘ϕ)(s)=g(ϕ(s))(g \circ\phi)(s) = g(\phi(s)). If the base predictor captures only the first component, v^=u\hat{v} = u, then e=g∘ϕe = g \circ\phi depends on the state only through ϕ\phi. Yet when u(S)u(S) and ϕ(S)\phi(S) are independent, BC’s grouping by uu reveals nothing about ϕ\phi, so calibration along v^\hat{v} cannot correct any of the variation in g∘ϕg \circ\phi (Remark 11). A model of the prediction error, rather than of the value, can distinguish states that share a prediction but differ in ee.

We propose Error-Guided Bellman Calibration (GBC). Rather than adding the small on-policy sample to the calibration data, GBC trains an error model e^\hat{e} on it. It then uses e^\hat{e} as the conditioning axis and calibrates v^\hat{v} on an off-policy calibration sample with the additive update v^+θ∘e^\hat{v} + \theta\circ\hat{e}. GBC keeps v^\hat{v} and lets the correction vary with e^\hat{e}, so states with the same v^\hat{v} but different e^\hat{e} can receive different corrections. Because the correction is additive, it can remove the part of ee that is predictable from e^\hat{e}. When e^\hat{e} tracks ee, this part accounts for most of ee (Proposition 4).

Our contributions are threefold.

  • Algorithmic. GBC learns an error axis from the on-policy sample and calibrates v^\hat{v} along it with an additive correction (§ 3).

  • Theoretical. We prove bounds on the refinement term in terms of the accuracy of e^\hat{e} (Propositions 4 and 7). Under low-dimensional structure and an assumed error-model rate, these bounds adapt to the intrinsic dimension rather than the state dimension (Theorems 10 and 12). We also give a finite-sample bound, built on BC’s analysis, in which this structure enters through the refinement term (Theorem 14).

  • Empirical. We evaluate GBC on a controlled synthetic toy MDP, the customer relationship management (CRM) benchmark of van der Laan and Kallus [ [33], and three D4RL continuous-control tasks [10]. In every environment, GBC improves on the uncalibrated predictor, even where BC makes it worse. GBC also consistently improves on BC (§ 5).

Related work. The closest predecessor is BC [33]; § 3.2 compares the two methods. BC extends the calibration-with-nuisance program of van der Laan et al. [ [35] and Whitehouse et al. [2024] to MDPs. Iterated calibration in MDPs also appears in van der Laan et al. [2025], who use it to debias plug-in estimators of long-term policy values. A companion paper of van der Laan and Kallus [ [34] instead changes how the predictor is trained, reweighting the objective of fitted Q evaluation [16] with a stationary density ratio. This approach is complementary to ours, which leaves the predictor fixed and adjusts its outputs. Hybrid RL [28] (Zhou et al. 2023) shares the small-on-policy plus large-off-policy structure but targets policy learning rather than value estimation. Off-dynamics RL [8] addresses dynamics shift across domains rather than bias within a single MDP. Appendix § 11 provides an extended discussion.

Setup

MDP and value function. We work in the standard infinite-horizon discounted Markov decision process (MDP) with state space S\mathcal{S}, finite action space A\mathcal{A}, transition kernel P(s′∣s,a)P(s' \mid s, a), bounded reward function r(s,a)r(s, a), and discount γ∈[0,1)\gamma\in[0, 1), largely following the notation of van der Laan and Kallus [ [33]. The target policy π\pi is known; the behavior policy bb that generated the off-policy data (described below) may be known or unknown. The target policy induces the Bellman operator Tπv:=rπ+γPπvT_\pi v := r_\pi+ \gamma P_\pi v, where rπ(s):=∑aπ(a∣s)r(s,a)r_\pi(s) := \sum_a \pi(a \mid s) r(s, a) and (Pπv)(s):=E[v(S′)∣S=s,A∼(P_\pi v)(s) := \mathbb{E}[v(S') \mid S = s, A \sim π(⋅∣s)]\pi(\cdot\mid s)]. Its unique bounded fixed point v0=Tπv0v_0 = T_\pi v_0 is the true value function under the target policy π\pi,

v0(s)=Eπ[∑t≥0γtr(St,At) | S0=s].v_0(s) = \mathbb{E}_\pi\left[\sum_{t\geq0}\gamma^t r(S_t,A_t)\,\middle|\,S_0=s\right].

The estimand is v0v_0.

Data and base predictor. The data setup is semi-offline, with two data sources. A small set Don\mathcal{D}_{\mathrm{on}} of on-policy transitions (S,A,R,S′)(S,A,R,S') is collected by running π\pi, with non:=∣Don∣n_{\mathrm{on}} := |\mathcal{D}_{\mathrm{on}}|. Observed rewards satisfy R=r(S,A)+εR = r(S,A) + \varepsilon with E[ε∣S,A]=0\mathbb{E}[\varepsilon\mid S,A] = 0. A large off-policy calibration sample Doff\mathcal{D}_{\mathrm{off}} of transitions (S,A,R,S′)(S,A,R,S') is collected under bb and used to fit the calibrator, with noff:=∣Doff∣n_{\mathrm{off}} := |\mathcal{D}_{\mathrm{off}}|. The regime of interest is non≪noffn_{\mathrm{on}} \ll n_{\mathrm{off}}. The base predictor v^:S→R\hat{v} : \mathcal{S} \to\mathbb{R} is an arbitrary bounded value estimator supplied as input to the algorithm. Our analysis assumes that Don\mathcal{D}_{\mathrm{on}}, Doff\mathcal{D}_{\mathrm{off}}, and any data used to fit v^\hat{v} are mutually independent. In each transition of Doff\mathcal{D}_{\mathrm{off}}, the state SS is drawn from a distribution ρ\rho. For a state distribution ν\nu, Eν\mathbb{E}_\nu denotes expectation over S∼νS \sim\nu. For a function h:S→Rh : \mathcal{S} \to\mathbb{R}, we write ∥h∥ν:=Eν[h(S)2]1/2\|h\|_\nu:= \mathbb{E}_\nu[h(S)^2]^{1/2} for its L2(ν)L^2(\nu) norm.

Doubly robust target. To target TπT_\pi from off-policy transitions, we follow BC [33] and use the doubly robust (DR) Bellman target, standard in off-policy evaluation [7, 14]. It combines importance weighting with a fitted reward-and-transition model. It is unbiased if either is correct, its bias is otherwise the product of their errors, and the model can reduce the variance of importance weighting. The importance ratio wπ:=π/bw_\pi:= \pi/b is computed directly when bb is known; otherwise, bb (or the ratio itself) is estimated. We denote the resulting weights, possibly clipped, by w^π\hat{w}_\pi. Given w^π\hat{w}_\pi and nuisance estimates r^\hat{r} of rr and P^\hat{P} of PP, set q^v(s,a):=r^(s,a)+γ(P^v)(s,a)\hat{q}_v(s,a) := \hat{r}(s,a) + \gamma(\hat{P}v)(s,a) and define the observation-level operator

T^π(v)(S,A,R,S′):=∑aπ(a∣S)q^v(S,a)+w^π(A∣S)[R+γv(S′)−q^v(S,A)].(1)\hat{T}_\pi(v)(S,A,R,S') := \sum_a \pi(a\mid S)\hat{q}_v(S,a) + \hat{w}_\pi(A\mid S)\left[R+\gamma v(S')-\hat{q}_v(S,A)\right]. \tag*{(1)}

The analysis requires action overlap, b(a∣s)≥π(a∣s)/Mb(a\mid s) \geq\pi(a\mid s)/M for all (s,a)(s,a), so that every action taken by π\pi is also taken by bb, and bounded weights w^π\hat{w}_\pi (condition C1 in Appendix B.1).

Bellman calibration. A predictor vv is Bellman calibrated [33] if v(s)=Eρ[T^π(v)(S)∣v(S)=v(s)]v(s) = \mathbb{E}_\rho[\hat{T}_\pi(v)(S) \mid v(S) = v(s)], that is, if its prediction equals the mean Bellman target among the states that share that prediction. The true value function v0v_0 is Bellman calibrated because v0=Tπv0v_0 = T_\pi v_0. A Bellman calibrated predictor need not equal v0v_0, however, because the definition constrains only averages over states that share a prediction. The Bellman calibration (BC) procedure makes a given base predictor v^\hat{v} approximately Bellman calibrated. As in histogram calibration [12], it groups the states into BB bins by the value of v^\hat{v} and gives all states in a bin the same new prediction, the mean of the DR target T^π(v^)\hat{T}_\pi(\hat{v}) over the transitions in the calibration sample whose state lies in that bin. The target is computed from the predictor being calibrated, so BC repeats this step for KK iterations, recomputing the target at each iteration from the latest predictions. Its output is constant on each bin and is therefore a function of v^\hat{v} alone, written θ∘v^\theta\circ\hat{v}. We call the variable used to group the states the conditioning axis. For BC, it is v^\hat{v}.

Error-Guided Bellman Calibration

Algorithm

Error-Guided Bellman Calibration (GBC) takes a base predictor v^\hat{v} as given and corrects it in two steps. First, it fits an error model e^:S→R\hat{e} : \mathcal{S} \to\mathbb{R} from a model class E\mathcal{E} on the on-policy sample Don\mathcal{D}_{\mathrm{on}}, using the training targets described below, and holds e^\hat{e} fixed thereafter. Second, it groups states into BB bins by the scalar value e^(s)\hat{e}(s) and runs KK iterations of histogram calibration on the calibration sample Doff\mathcal{D}_{\mathrm{off}}. Each iteration computes one correction per bin, the mean of the DR target minus v^\hat{v} over the calibration transitions in that bin, and adds it to v^\hat{v}, giving the additive update v^+θ∘e^\hat{v} + \theta\circ\hat{e}. Algorithm 1 states the procedure, and Section 3.2 compares it with BC.

References

  1. [1]Benedikt Bauer and Michael Kohler. On deep learning as a remedy for the curse of dimensionality in nonparametric regression. The Annals of Statistics, 47:2261–2285, 2019.DOI
  2. [2]Léon Bottou, Jonas Peters, Joaquin Quiñonero-Candela, Denis X. Charles, D. Max Chickering, Elon Portugal, Dipankar Ray, Patrice Simard, and Ed Snelson. Counterfactual reasoning and learning systems: The example of computational advertising. Journal of Machine Learning Research, 14 (101):3207–3260, 2013.
  3. [3]Andrea Caponnetto and Ernesto De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics, 7:331–368, 2007.DOI
  4. [4]Jinglin Chen and Nan Jiang. Information-theoretic considerations in batch reinforcement learning. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019.arxiv.org/abs/1905.00360
  5. [5]Victor Chernozhukov, Denis Chetverikov, Mert Demirer, Esther Duflo, Christian Hansen, Whitney Newey, and James Robins. Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21(1):C1–C68, 2018.
  6. [6]Morris H. DeGroot and Stephen E. Fienberg. The comparison and evaluation of forecasters. Journal of the Royal Statistical Society. Series D (The Statistician), 32:12–22, 1983.DOI
  7. [7]Miroslav Dudík, John Langford, and Lihong Li. Doubly robust policy evaluation and learning. In Proceedings of the 28th International Conference on Machine Learning (ICML), 2011.arxiv.org/abs/1103.4601
  8. [8]Benjamin Eysenbach, Swapnil Asawa, Shreya Chaudhuri, Sergey Levine, and Ruslan Salakhutdinov. Off-dynamics reinforcement learning: Training for transfer with domain classifiers. In International Conference on Learning Representations (ICLR), 2021.arxiv.org/abs/2006.13916
  9. [9]Dylan J. Foster, Akshay Krishnamurthy, David Simchi-Levi, and Yunzong Xu. Offline reinforcement learning: Fundamental barriers for value function approximation. In Proceedings of the 35th Conference on Learning Theory (COLT), 2022.arxiv.org/abs/2111.10919
  10. [10]Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4RL: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.arxiv.org/abs/2004.07219
  11. [11]Chongming Gao, Shijun Li, Wenqiang Lei, Jiawei Chen, Biao Li, Peng Jiang, Xiangnan He, Jiaxin Mao, and Tat-Seng Chua. KuaiRec: A fully-observed dataset and insights for evaluating recommender systems. In Proceedings of the 31st ACM International Conference on Information and Knowledge Management (CIKM), pages 540–550, 2022.DOI
  12. [12]Chirag Gupta and Aaditya Ramdas. Distribution-free calibration guarantees for histogram binning without sample splitting. In Proceedings of the 38th International Conference on Machine Learning (ICML), 2021.arxiv.org/abs/2105.04656
  13. [13]Assaf Hallak, Yishay Mansour, and Elad Yom-Tov. Automatic representation for lifetime value recommender systems. arXiv preprint arXiv:1702.07125, 2017.arxiv.org/abs/1702.07125
  14. [14]Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning (ICML), 2016.arxiv.org/abs/1511.03722
  15. [15]Nathan Kallus and Masatoshi Uehara. Double reinforcement learning for efficient off-policy evaluation in Markov decision processes. Journal of Machine Learning Research, 21(167):1–63, 2020.arxiv.org/abs/1908.08526
  16. [16]Hoang M. Le, Cameron Voloshin, and Yisong Yue. Batch policy learning under constraints. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019.arxiv.org/abs/1903.08738
  17. [17]Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.arxiv.org/abs/2005.01643
  18. [18]Qiang Liu, Lihong Li, Ziyang Tang, and Dengyong Zhou. Breaking the curse of horizon: Infinite-horizon off-policy estimation. In Advances in Neural Information Processing Systems (NeurIPS), 2018.arxiv.org/abs/1810.12429
  19. [19]Lucas Maystre, Daniel Russo, and Yu Zhao. Optimizing audio recommendations for the long-term: A reinforcement learning perspective. arXiv preprint arXiv:2302.03561, 2023.arxiv.org/abs/2302.03561
  20. [20]Rémi Munos and Csaba Szepesvári. Finite-time bounds for fitted value iteration. Journal of Machine Learning Research, 9:815–857, 2008.DOI
  21. [21]Allan H. Murphy. A new vector partition of the probability score. Journal of Applied Meteorology, 12:595–600, 1973.doi.org/10.1175/1520-0450(1973)012<0595:anvpot>2.0.co;2
  22. [22]Ryumei Nakada and Masaaki Imazuimi. Adaptive approximation and generalization of deep neural network with intrinsic dimensionality. Journal of Machine Learning Research, 21(174):1–38, 2020.arxiv.org/abs/1907.02177
  23. [23]Mitsuhiko Nakamoto, Yuexiang Zhai, Anikait Singh, Max Sobol Mark, Yi Ma, Chelsea Finn, Aviral Kumar, and Sergey Levine. Cal-QL: Calibrated offline RL pre-training for efficient online fine-tuning. In Advances in Neural Information Processing Systems (NeurIPS), 2023.arxiv.org/abs/2303.05479
  24. [24]Doina Precup, Richard S. Sutton, and Satinder Singh. Eligibility traces for off-policy policy evaluation. In Proceedings of the 17th International Conference on Machine Learning (ICML), pages 759–766, 2000.
  25. [25]Stéphane Ross and J. Andrew Bagnell. Agnostic system identification for model-based reinforcement learning. In Proceedings of the 29th International Conference on Machine Learning (ICML), 2012.arxiv.org/abs/1203.1007
  26. [26]Johannes Schmidt-Hieber. Deep ReLU network approximation of functions on a manifold. arXiv preprint arXiv:1908.00695, 2019.
  27. [27]Johannes Schmidt-Hieber. Nonparametric regression using deep neural networks with ReLU activation function. The Annals of Statistics, 48:1875–1897, 2020.
  28. [28]Yuda Song, Yifei Zhou, Ayush Sekhari, J. Andrew Bagnell, Akshay Krishnamurthy, and Wen Sun. Hybrid RL: Using both offline and online data can make RL efficient. In International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2210.06718
  29. [29]Charles J. Stone. Optimal rates of convergence for nonparametric estimators. The Annals of Statistics, 8:1348–1360, 1980.DOI
  30. [30]Charles J. Stone. Optimal global rates of convergence for nonparametric regression. The Annals of Statistics, 10:1040–1053, 1982.DOI
  31. [31]Georgios Theocharous, Philip S. Thomas, and Mohammad Ghavamzadeh. Personalized ad recommendation systems for life-time value optimization with guarantees. In Proceedings of the 24th International Joint Conference on Artificial Intelligence (IJCAI), 2015.
  32. [32]Masatoshi Uehara, Chengchun Shi, and Nathan Kallus. A review of off-policy evaluation in reinforcement learning. arXiv preprint arXiv:2212.06355, 2022.arxiv.org/abs/2212.06355
  33. [33]Lars van der Laan and Nathan Kallus. Bellman calibration for V-learning in offline reinforcement learning. arXiv preprint arXiv:2512.23694, 2025a.arxiv.org/abs/2512.23694
  34. [34]Lars van der Laan and Nathan Kallus. Fitted Q evaluation without Bellman completeness via stationary weighting. arXiv preprint arXiv:2512.23805, 2025b.arxiv.org/abs/2512.23805
  35. [35]Lars van der Laan, Ernesto Ulloa-Pérez, Marco Carone, and Alex Luedtke. Causal isotonic calibration for heterogeneous treatment effects. In Proceedings of the 40th International Conference on Machine Learning (ICML), 2023.

Paper details

vlnc:W_6ptu9q6a
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents