Reinforcement learning agents often learn from rewards that are occasionally enormous: sensor glitches, rare financial losses, adversarially corrupted logs. The standard remedy borrowed from supervised learning is a robust loss. The best known is the Huber loss, which is quadratic for small errors and linear for large ones, so a single outlier cannot produce an arbitrarily large update. The natural move is to put that loss on the temporal-difference (TD) error, the gap between the current value estimate and the bootstrapped target "reward plus discounted next value." That move is a mistake. The TD error mixes two different things. One is reward noise, which is where heavy tails live. The other is the bootstrapped value difference, which is legitimate signal and is often large early in training. Clipping the whole error distorts the Bellman fixed point and slows learning. Clipping the semi-gradient instead, as prior work does, needs the tail index of the noise to be known in advance.
This note proposes a cleaner split, and it is available only because of the linear-function-approximation setting. With a fixed feature map $\phi$, the TD fixed point depends on the reward only through its least-squares projection onto the span of the features. We can therefore fit a linear reward model with adaptive Huber regression, which is a well-understood, convex, variance-blind estimation problem, and run ordinary TD on the model's bounded predicted rewards. The robust loss handles the one subproblem where it has clean theory. The Bellman projection keeps its usual $L_2$ geometry, including the non-expansiveness that makes linear TD stable. Nobody then needs to prove anything new about "Huber projections" of value functions. In two sentences: under linear features, heavy-tailed rewards only corrupt the vector $b=\mathbb{E}[\phi r]$ in the TD linear system, and that vector equals the feature covariance times a reward-regression coefficient. Estimate that coefficient with Huber regression, leave the bootstrapping untouched, and you inherit robust-regression guarantees without the bias compounding through the discount factor.
Core Claim
Linear TD(0) for policy evaluation solves $A\theta^*+b=0$. Here $A=\mathbb{E}[\phi(s)(\gamma\phi(s')-\phi(s))^\top]$ involves only features, which are bounded. The vector $b=\mathbb{E}[\phi(s)r]$ is the only place the reward enters. Let $\Sigma=\mathbb{E}[\phi(s)\phi(s)^\top]$ be the feature covariance under the sampling distribution, and let $w^\dagger=\Sigma^{-1}\mathbb{E}[\phi(s) r]$ be the least-squares coefficient of reward on features. Then $b=\Sigma w^\dagger$ exactly, whether or not the true mean reward is linear in $\phi$. Running TD with the reward replaced by $\phi(s)^\top w^\dagger$ therefore reaches the identical fixed point. If $\hat w$ is any estimate of $w^\dagger$, then
$$ \|\hat\theta-\theta^*\|_2 \;\le\; \|A^{-1}\Sigma\|_2\,\|\hat w-w^\dagger\|_2 \;+\; \varepsilon_{\text{TD}}, $$
where $\hat\theta$ is the TD solution computed with surrogate rewards $\phi^\top\hat w$, and $\varepsilon_{\text{TD}}$ is the ordinary statistical error of TD on bounded, light-tailed surrogate rewards. The reward-estimation error enters once, multiplied by a problem constant. It does not feed back into the bootstrapped targets.
The second term is standard. The first is a heavy-tailed linear regression on Markov-dependent covariates, which is exactly the problem solved by Adaptive Huber Regression on Markov-dependent Data. That paper fits a Huber regression whose threshold $\tau$ grows with sample size. It shows that geometric ergodicity inflates the error by $\frac{1+\gamma_{mc}}{1-\gamma_{mc}}$, where $1-\gamma_{mc}$ is the chain's spectral gap, and gives the growth rate for $\tau$. Our claim is that composing these two pieces yields finite-time guarantees for heavy-tailed linear TD that need only a finite $(1+\delta)$ moment and no knowledge of the tail index. It also claims two properties that clipping-based TD lacks. The first is vanishing bias under asymmetric noise. The second is that robustness survives in control and off-policy settings, because the regression target $\mathbb{E}[r\mid s,a]$ does not depend on the policy.
Relation to Prior Work
Two papers are closest, and they supply the comparison points. Provably Robust Temporal Difference Learning for Heavy-Tailed Rewards clips the linear TD semi-gradient at a threshold $b_t$ that grows on a schedule. The schedule is tuned to a known moment order $p$, and the method proves high-probability rates for TD and natural actor-critic. We do not clip the TD update at all, and our threshold comes from a data-driven regression scale rather than a known $p$. Adversarially-Robust TD Learning with Markovian Data handles reward contamination with median-of-means over blocks spaced by the mixing time, plus a reset threshold. It proves an $\tilde O(\tau_{mix}/T)+O(\epsilon)$ rate with a matching lower bound on the $O(\epsilon)$ term. We keep all samples rather than discarding the ones inside mixing blocks, and the lower bound constrains us: our contamination result must also carry an $O(\epsilon)$ term.
Three papers supply the method and show that Huber regression beats truncation and median-of-means in linear bandits. Variance-aware decision making with linear function approximation under heavy-tailed rewards adapts the Huber threshold using reward-variance estimates and applies Huber regression to the full regression target inside least-squares value iteration for linear MDPs. It assumes the variance is known and solves a convex program at every step. Heavy-tailed linear bandit with Huber regression improves on median-of-means regret by $\sqrt{\log T}$ and $\sqrt d$ factors, but it applies only to one-step problems. Our departure from the linear-MDP work is to Huber only the reward, and to do so incrementally inside TD rather than in a batch solve.
Two papers motivate and constrain the design. Understanding the theoretical properties of projected Bellman equation, linear Q-learning, and approximate value iteration shows that small perturbations of the system matrix can push its spectral radius past one. This is a reason not to perturb $A$ through a nonlinear Huber projection, and our decomposition leaves $A$ untouched. It also means our method inherits, and does not fix, off-policy divergence. Fast and Robust Convergence Rate for TD(0) with Linear Function Approximation gives averaged TD rates that do not depend on the smallest covariance eigenvalue, but only for light-tailed rewards. Our decomposition converts the TD step into exactly that light-tailed regime, so we can reuse its averaged analysis for $\varepsilon_{\text{TD}}$.
Research Program
The algorithm, which we call Reward-Robust TD, runs two coupled recursions. On the faster timescale, it maintains an online adaptive-Huber estimate $\hat w_t$ of the reward coefficient. It takes stochastic steps on the Huber loss of $r_t-\phi(s_t)^\top w$ with threshold $\tau_t$. The threshold is set to a running robust scale of the residuals, such as their median absolute deviation, multiplied by the growth rate $(n_{\text{eff}}/\log d)^{1/2}$. This rate is the finite-variance case of the Markov adaptive-Huber analysis. The effective sample size $n_{\text{eff}}$ is estimated from the residuals' empirical autocorrelation, so the method does not need to know the tail index, the variance, or the mixing time. On the slower timescale, it runs Polyak-averaged TD(0) with surrogate reward $\phi(s_t)^\top\hat w_t$. A batch variant, robust LSTD, computes $\hat\theta=-\hat A^{-1}\hat\Sigma\hat w$ directly and serves as a check on the online version.
The theory has three pieces. First, the fixed-point identity and the error composition above, with $\|A^{-1}\Sigma\|$ made explicit. Second, a finite-time bound for the two-timescale online version. It combines the Markov Huber regression bound with averaged-TD analysis on a slowly drifting reward, and it should scale as $T^{-\min\{\delta,1\}/(1+\min\{\delta,1\})}$ in the reward term. This form comes from the heavy-tailed regression rate, since TD on bounded rewards is faster. Third, a Huber-contamination version with an additive $O(\epsilon)$ term, compared directly against the lower bound in the median-of-means work.
For control, the policy-independence of $\mathbb{E}[r\mid s,a]$ means the reward model can be fitted on all transitions ever collected, regardless of which policy generated them. The only obstacle is covariate shift, which changes $w^\dagger$ only when the mean reward lies outside the feature span. We will state this condition precisely and measure how much it matters empirically.
We are explicit about scope. The decomposition helps only when the heavy tails are in the rewards. Heavy-tailed or corrupted features and transitions corrupt $A$, and our method offers no protection there. Stability off-policy still requires conditions like the one in the projected-Bellman paper.
Baselines
The naive reference point is vanilla linear TD(0), together with its Polyak-averaged version. On the 100-state corrupted MDP, Adversarially-Robust TD Learning with Markovian Data reports that vanilla TD's parameter error "explodes to magnitudes exceeding $10^7$" under a biasing attack at $\epsilon=0.001$. We reproduce this as a sanity check.
The strongest existing competitor on heavy-tailed rewards is the dynamic gradient clipping of Provably Robust Temporal Difference Learning for Heavy-Tailed Rewards. It is the only method with finite-time guarantees for exactly this problem. We run it twice: once with its schedule set using the true $p$, and once with $p$ misspecified by $\pm0.3$. It reports only trajectory curves on its 256-state Pareto MRP, so no reported result was found on Lacuna for a scalar error value. We will therefore rerun it on its own configuration and compare against our reproduction. The strongest competitor under adversarial contamination is Robust-TD, the median-of-means method with reset thresholding. The file gives no scalar value for it either; the paper says only that it "converges to a small neighborhood." We rerun it using its mixing-time blocking.
We also include fixed reward truncation at a tuned constant $C$, which is the TD analogue of the TOFU truncation baseline. We include an oracle that runs TD on the true mean reward, which serves as an upper reference.
Two ablations isolate the key ingredient. Huber-TD applies the same adaptive Huber threshold to the full TD error rather than to the reward residual; it tests whether where the robust loss is placed matters. Plug-in median-of-means estimates $b=\mathbb{E}[\phi r]$ coordinate-wise; it tests whether the decomposition matters more than the choice of robust estimator. For fairness, all methods see the same trajectories and seeds and get the same number of environment steps. Each gets an equal grid of 20 hyperparameter configurations for step size and its own robustness parameter, and results are reported at the best configuration and at the median one.
Our method beats a baseline if its final parameter error, averaged over 50 seeds, is lower with non-overlapping 95% intervals. For clipping specifically, the method must also match or beat the oracle-$p$ version while needing no tail index.
Why not just…?
Why not just put the Huber loss on the TD error? Its semi-gradient update clips the TD error, which includes the bootstrapped value difference. Early in training, or when rewards are large but legitimate, this suppresses real signal. Under asymmetric noise it also shifts the fixed point in a way that feeds back through the discount factor. This is the Huber-TD ablation. If it matches our method on asymmetric Pareto rewards, the placement argument fails, and we would report that.
Why not just clip the semi-gradient, as Cayci and Eryilmaz do? This is the real threat, because it already has guarantees. Its weaknesses are that the schedule depends on $p$, and that clipping the full vector $\delta_t\phi(s_t)$ biases the estimate under asymmetric tails until the threshold outgrows the noise. The misspecified-$p$ runs and the asymmetric-noise sweep will settle whether these weaknesses matter in practice. If oracle-$p$ clipping matches us everywhere, our contribution reduces to removing the need to know $p$, and we will say so.
Why not just truncate rewards or use median-of-means? In the bandit setting, Variance-aware decision making with linear function approximation under heavy-tailed rewards found adaptive Huber regression consistently better than truncation (TOFU), and Heavy-tailed linear bandit with Huber regression proves it beats median-of-means regret. Neither result has been tested under bootstrapping. The plug-in median-of-means ablation is the honest check. If it performs as well, the decomposition is the contribution and the Huber estimator is incidental.
Proposed Experiments
The first testbed reproduces the heavy-tail setup from the clipping paper: a random 256-state Markov reward process with $d=128$ features and Pareto rewards with $p=1.2$. We add $p\in\{1.5,2.5\}$, symmetric Student-t noise with 1.5 and 2.5 degrees of freedom, and a centered Pareto variant to separate the effects of asymmetry and tail weight. The second is the 256-state circular random walk, which has Markov dependence and localized features. The third is the 100-state corrupted MDP from the adversarial paper, with $\epsilon\in\{0.001,0.01,0.05\}$ and its biasing attack. There we check that the error plateaus at $O(\epsilon)$, as the lower bound requires. The metrics are $\|\theta_t-\theta^*\|_2$ over time and the mean-squared projected Bellman error.
For control, we use the GridWorld and MountainCar-v0 settings from Regularized Q-Learning With Linear Function Approximation, with linear tile-coded Q-functions, Pareto reward noise injected, and average return as the metric. We compare reward-model sharing across policies against refitting per policy.
The decisive checks are three. First, on asymmetric Pareto rewards, Reward-Robust TD should beat both Huber-TD and oracle-$p$ clipping in final error. Second, its advantage over clipping should widen when $p$ is misspecified. Third, the robust-LSTD variant should track the oracle-reward TD error to within the regression error the theory predicts. A failure on the first check would falsify the central claim that the robust loss belongs on the reward rather than on the Bellman residual.
References
- Adaptive Huber regression on Markov-dependent data
- Provably Robust Temporal Difference Learning for Heavy-Tailed Rewards
- Adversarially-Robust TD Learning with Markovian Data: Finite-Time Rates and Fundamental Limits
- Variance-aware decision making with linear function approximation under heavy-tailed rewards
- Heavy-tailed linear bandit with Huber regression
- Understanding the theoretical properties of projected Bellman equation, linear Q-learning, and approximate value iteration
- Fast and Robust Convergence Rate for TD(0) with Linear Function Approximation, Universal Learning Steps and I.I.D. Samples
- Regularized Q-Learning With Linear Function Approximation