---
title: Bellman Residual Minimization (BRM)
url: https://www.emergentmind.com/topics/bellman-residual-minimization-brm
type: topic
---

# Bellman Residual Minimization (BRM)

Bellman Residual Minimization (BRM) denotes a family of methods that estimate value functions, action-value functions, or policies by directly minimizing the discrepancy between an approximate solution and its Bellman update. In linear value-function approximation, this appears as
\[
g^*=\arg\min_g \|\Phi g-T(\Phi g)\|_\Xi,
\]
while in empirical Q-learning it is commonly instantiated as
\[
\mathcal{L}=\frac{1}{N}\sum_{i=1}^{N}\left(Q_\theta(s_i,a_i)-r(s_i,a_i)-\gamma \max_{a'\in A}Q_\theta(s'_i,a')\right)^2,
\]
and in policy-based form as
\[
\min_{\pi\in P}\|T_*v_\pi-v_\pi\|_{1,\nu}.
\]
Across these formulations, BRM is a direct Bellman-consistency criterion rather than a direct return-maximization criterion, and the literature repeatedly returns to the tension between those two viewpoints [1301.5220] [2205.12770] [1606.07636].

## 1. Core formulation and problem classes

The Bellman residual is the deviation between both sides of the Bellman equation under an approximation. For a policy-evaluation problem with linear architecture, BRM minimizes the unprojected Bellman error in a weighted norm, whereas for Q-learning with function approximation it minimizes the squared discrepancy between \(Q_\theta(s,a)\) and a bootstrapped target \(r+\gamma \max_{a'}Q_\theta(s',a')\) [1301.5220] [2205.12770]. In policy-based BRM, the criterion is transferred from value functions to policies themselves by optimizing \(\|T_*v_\pi-v_\pi\|_{1,\nu}\), where \(T_*\) is the Bellman optimality operator and \(\nu\) is the sampling distribution [1606.07636].

Control-oriented BRM extends the same idea to optimality equations. In that setting, the control Bellman operator is
\[
(TQ_\theta)(s,a)=R(s,a)+\gamma \sum_{s'}P(s'|s,a)\max_{a'}Q_\theta(s',a'),
\]
and the control Bellman residual objective is
\[
f(\theta)=\frac{1}{2}\|TQ_\theta-Q_\theta\|_2^2.
\]
The resulting optimization problem is nonconvex and nonsmooth because of the \(\max\), but it remains a direct residual criterion for policy optimization rather than policy evaluation [2601.18840].

The same residual-minimization principle also appears outside standard discounted RL. In stochastic shortest path problems, the Bellman residual of the dynamic programming operator is used to compute suboptimality bounds for approximate solutions [1202.3729]. In Hamilton-Jacobi-Bellman PDE solvers, residual minimization is applied to the HJB PDE associated to the Nonlinear Quadratic Regulator problem, with the residual evaluated at collocation points [2207.09299]. This breadth of usage suggests that BRM is best understood as a general Bellman-consistency principle whose precise meaning depends on the operator, the norm, and the approximation class.

## 2. Geometric interpretation and relation to TD and LSTD

A central classical distinction is between minimizing the Bellman residual and solving a projected Bellman fixed point. In the linear case, BRM seeks
\[
\hat v_{BR}=\arg\min_{\hat v\in \mathrm{span}(\Phi)}\|\hat v-T\hat v\|_\xi,
\]
which leads to a least-squares solution of the form
\[
w_{BR}=(\Psi^\top \Xi \Psi)^{-1}\Psi^\top \Xi r,\qquad \Psi=(I-\gamma P)\Phi.
\]
Geometrically, BRM is the orthogonal projection of the reward vector onto the space spanned by the temporal-difference features \((\Phi-\gamma P\Phi)\) [1011.4362] [1301.5220].

By contrast, TD(0) and LSTD solve projected Bellman equations. LSTD is the fixed point of the projected Bellman operator \(\Pi T\), admits an instrumental-variables derivation, and corresponds geometrically to an oblique projection rather than an orthogonal one [1301.5220]. The unified oblique-projection view shows that both TD(0) and BRM can be written as special cases of an oblique projection \(\hat v_X=\Pi_X T\hat v_X\), differing only in the direction along which projection is taken [1011.4362].

This comparison has two recurring consequences. First, BRM enjoys a direct performance guarantee, while TD(0) does not in general. Second, LSTD has favorable statistical properties in the standard single-trajectory setting, whereas BRM generally requires two independent samples of successor states to obtain a consistent estimator because the noise is correlated with the regressor \(\phi-\gamma \phi'\) [1301.5220]. The comparison is therefore not merely about which quantity is minimized; it is also about projection geometry, identifiability, and sampling regime.

## 3. Performance guarantees, proxy bounds, and the “bad proxy” problem

Several papers derive explicit error bounds for BRM. In policy evaluation with linear approximation, minimizing the Bellman residual controls value-function error through
\[
\|v-\hat v\|_\xi \leq \frac{\sqrt{C(\xi)}}{1-\gamma}\|\hat v-T\hat v\|_\xi,
\]
where \(C(\xi)\) is a concentration coefficient [1011.4362]. In stochastic shortest path problems, Bellman-residual-based suboptimality bounds can be computed even when not all policies are proper, provided one works from a uniformly improvable value function and, in the positive-transition-cost case, uses an explicit upper bound on expected steps to termination [1202.3729].

For policy-based BRM, the main proxy bound is
\[
\|v_* - v_\pi\|_{1,\mu} \leq \frac{1}{1-\gamma}\left\|\frac{d_{\mu,\pi_*}}{\nu}\right\|_\infty \|T_*v_\pi-v_\pi\|_{1,\nu}.
\]
The coefficient \(\left\|\frac{d_{\mu,\pi_*}}{\nu}\right\|_\infty\) is a concentrability coefficient that measures mismatch between the optimization distribution \(\nu\) and the discounted occupancy measure of the optimal policy [1606.07636]. The same paper shows that policy-based Bellman residual minimization is a good proxy only when \(\nu\) is well matched to \(d_{\mu,\pi_*}\), with the ideal case \(\nu=d_{\mu,\pi_*}\) yielding concentrability \(1\). Since \(\pi_*\) is unknown, that ideal case is typically unattainable [1606.07636].

The empirical side of this literature is notably skeptical. On randomly generated Garnet MDPs, direct maximization of the mean value is robust to distribution mismatch, whereas policy-based BRM degrades rapidly as concentrability worsens; low residual does not guarantee low value error in the states of interest [1606.07636]. An analogous phenomenon appears in neural Q-learning: extensive experiments comparing Temporal Difference and Residual Gradient show that TD learns policies with higher accumulated reward and greater robustness to parameter perturbation, even when RG achieves a smaller Bellman residual [2205.12770]. The same work emphasizes a key difference between RL and supervised learning: in RL, a small Bellman residual error can correspond to a bad policy, whereas in supervised learning the test loss function is a standard index to indicate performance [2205.12770].

A common misconception is therefore that Bellman self-consistency is equivalent to good control. The literature does not support that equivalence. What it supports is a more qualified statement: residual minimization can upper-bound error under specific geometry and sampling assumptions, but those assumptions can be loose, hard to verify, or poorly aligned with the states that matter for decision quality.

## 4. Optimization landscape, hardness, and algorithmic design

From an optimization standpoint, BRM is attractive because it defines a clear scalar objective, but difficult because that objective is often nonconvex, nonsmooth, or both. For neural function approximation, the Mean Squared Bellman Error is highly non-convex and can be non-coercive. Critical-point analysis shows that when global minima exist and the Jacobian has full column rank, over-parametrized neural networks can avoid suboptimal local minima; this motivates Gauss Newton Residual Gradient algorithms that use complete derivatives of the MSBE rather than semi-gradients [2106.08774]. The same analysis reports local quadratic convergence to a global minimum in the exact discrete-state variant and demonstrates feasibility in continuous control with sampled updates [2106.08774].

For control problems, the control Bellman residual objective is continuous, locally Lipschitz, and piecewise quadratic over regions defined by greedy-action patterns. Its Clarke subdifferential can be written explicitly, and generalized gradient descent with Armijo backtracking converges to Clarke-stationary points; in the tabular case, the unique stationary point coincides with \(Q^*\) [2601.18840]. A differentiable “soft” variant replaces \(\max\) with log-sum-exp, producing the smooth Soft Control Bellman Residual (SCBR) objective and enabling standard gradient descent [2601.18840].

A separate line of work seeks global or contraction-aligned formulations. Approximate Bilinear Programming minimizes \(L_\infty\), weighted \(L_1\), or hybrid norms of the Bellman residual and provides strong a priori guarantees on both robust and expected policy loss, but solving the corresponding bilinear program optimally is NP-hard because Bellman-residual minimization itself is NP-hard [1006.2743]. More recently, soft BRM with weighted \(L_p\)-norms has been proposed to align the optimization objective with the contraction geometry of the Bellman operator as \(p\) increases. In that framework,
\[
f_p(\theta)=\frac{1}{p}\|F_\lambda Q_\theta-Q_\theta\|_{p,w}^p,
\]
and the effective contraction rate approaches the \(L_\infty\)-contraction rate as \(p\to\infty\), while remaining compatible with gradient-based optimization [2604.06837]. This suggests a systematic route for reducing the geometric mismatch between \(L_2\)-style objectives and \(L_\infty\)-style Bellman contraction.

## 5. Sampling, double-sampling, and statistical guarantees

A persistent technical obstacle for BRM is the double-sample problem. When Bellman residual minimization is formulated as minimizing a squared conditional expectation, unbiased stochastic gradients are generally unavailable from a single next-state sample [2208.09551]. This difficulty is one reason BRM has often been considered less tractable than TD-style methods in model-free settings [1301.5220] [2601.18840].

One response is a game-theoretic reformulation. Conditional moment matching frames BRM as a Conditional Moment Restriction problem and replaces squared residual minimization by a regularized min-max objective,
\[
\min_h \max_f \mathbb{E}\left[2(Y-h(X))f(Z)-f(Z)^2\right].
\]
For BRM, this yields a saddle-point problem in the value function and an adversarial test function. The resulting game can be solved by a no-regret online learning reduction, avoids the double-sample issue, handles nonlinear function classes, and explicitly accounts for finite sample uncertainty [2208.09551].

A second response appears in distributional off-policy evaluation. The Energy Bellman Residual Minimizer (EBRM) replaces supremum-extended discrepancies by expectation-extended statistical distances and uses the energy distance to define an empirical Bellman residual over return distributions. The method comes with a finite-sample error bound under realizability and a multi-step extension whose error bound improves behavior under non-realizability, notably without requiring the completeness assumption [2402.01900].

Recent statistical analysis has also sharpened the offline-learning picture for BRM. For SGDA applied to a BRM minimax formulation, a single Lyapunov potential that couples runs on neighboring datasets yields an \(O(1/n)\) on-average argument-stability bound and a matching \(O(1/n)\) excess risk bound, without variance reduction, extra regularization, or restrictive independence assumptions on minibatch sampling. The results hold for standard neural-network parameterizations and minibatch SGD [2508.18741]. This is a marked change from the older view of BRM as principally an optimization object with weak statistical understanding.

## 6. Extensions beyond classical value prediction

BRM has increasingly been adapted to domains whose structure differs substantially from standard discounted MDPs. In HJB PDE solving for the Nonlinear Quadratic Regulator, a deep neural approximation \(\hat V(\mathbf{x};\theta)\) is first warm-started by supervised learning on a gradient-augmented synthetic dataset produced by a state-dependent Riccati equation control law, and only then refined by minimizing the HJB residual. The combination of supervised learning and residual minimization avoids spurious solutions and mitigate the data inefficiency of a supervised learning-only approach [2207.09299].

In combinatorial optimization, TreeDQN reformulates branching in branch-and-bound as a tree MDP with a Bellman operator that aggregates over child nodes and is contracting in mean when \(\gamma(p_+ + p_-)<1\). Because tree sizes are long-tailed, the learning objective is changed from ordinary mean-squared error to Mean Squared Logarithmic Error, which makes the network optimize the geometric mean of the expected tree size [2306.05905]. In approximate dynamic programming, High Dimensional Model Representation is used to store Bellman functions compactly and to relax the required minimizations into trust-region problems sharing the same matrix, thereby reducing memory demand and accelerating approximate Bellman minimization [1210.0706].

The most visible recent adaptation is to large language model reasoning. Trajectory Bellman Residual Minimization (TBRM) moves from token-level to trajectory-level Bellman residuals, uses the model’s own logits as \(Q\)-values, removes the need for critics, importance-sampling ratios, or clipping, and operates with only one rollout per prompt [2505.15311]. The paper proves convergence to the near-optimal KL-regularized policy from arbitrary off-policy data and reports that, on Qwen2.5-Math-7B, TBRM used 33% less GPU memory and achieved a 1.3x speedup over PPO; with \(n=4\), it matched or slightly outperformed GRPO at similar resource use, while GRPO was 3.1x slower than TBRM. Across six standard math reasoning datasets, TBRM consistently outperforms or matches PPO and GRPO, and improved average benchmark accuracy by 1.3% (absolute) over GRPO [2505.15311].

These extensions do not erase the classical criticisms of BRM as a proxy for return maximization. They do, however, show that residual minimization is no longer a single classical algorithmic template. It has become a broad design space spanning orthogonal and oblique projections, bilinear and saddle-point reformulations, smooth and nonsmooth control objectives, weighted \(L_p\) geometries, and trajectory-level formulations adapted to sparse-reward sequence models.

Source: https://www.emergentmind.com/topics/bellman-residual-minimization-brm