Q-MMR: Off-Policy Evaluation via Recursive Reweighting and Moment Matching

Xiang Li, Nan JiangNeurIPS 2026

TL;DR

Evaluating a new reinforcement learning policy using only historical data usually requires paying a steep statistical penalty for complex function classes and making strong mathematical assumptions. This paper introduces Q-MMR, a framework that flips the problem on its head: instead of fitting value functions from the bottom up, it learns scalar weights for individual data points from the top down. Remarkably, this yields error bounds that are completely dimension-free—meaning the complexity of your function class doesn't inflate the primary error—while unifying fragmented theories across linear and general reinforcement learning.

What Problem Does This Paper Address?

Imagine trying to figure out how well a new self-driving algorithm (the target policy) will perform, using only driving logs collected by an older, different algorithm (the behavior policy). In Reinforcement Learning (RL), this is Off-Policy Evaluation (OPE).

The canonical way to solve OPE with large state spaces is Fitted-Q Evaluation (FQE), which uses a class of functions $\mathcal{F}$ (like neural networks or linear models) to approximate the target policy's expected future rewards ($Q^\pi$). While FQE is foundational, its theoretical understanding suffers from two glaring headaches:

  1. Dimension Dependence: Existing analyses for general function approximation force you to pay a statistical penalty based on the size or complexity of $\mathcal{F}$ (e.g., $\log|\mathcal{F}|$). Yet, if the historical data happens to match the target policy, simple Monte-Carlo averaging needs no such penalty. Is this complexity penalty fundamental, or just an artifact of how we design and analyze algorithms?
  2. A Theoretical Divide: Researchers have developed sharp, specialized guarantees for linear function classes that are dimension-free in their leading error terms and require minimal assumptions. Strangely, if you take the general FQE theory and plug in linear functions, you cannot recover these sharp linear results! General analyses require a heavy assumption called Bellman completeness (roughly, applying transition dynamics to a function in $\mathcal{F}$ keeps you inside $\mathcal{F}$), whereas linear analyses get by with mere realizability (the true $Q^\pi$ is in $\mathcal{F}$).

Methods

To bridge this divide, the authors introduce Q-MMR (Q-function-based Moment-Matched Reweighting) for finite-horizon Markov Decision Processes (MDPs).

Standard FQE works bottom-up (backward in time from the end of a trajectory), fitting parametric value functions via least-squares regression. Standard Importance Sampling methods learn parameterized density ratios to reweight data. Q-MMR does neither:

  • Non-parametric Scalar Weights: It assigns a distinct scalar weight $\widehat{w}_h^{(i)}$ to every single state-action pair $(s_h^{(i)}, a_h^{(i)})$ in the dataset of $n$ trajectories, estimating the policy's return simply by averaging the reweighted rewards.
  • Top-Down Moment Matching: Starting at time $h=0$ with weights set to $1$, Q-MMR moves forward step-by-step. At step $h$, it chooses weights $\widehat{w}_h$ so that the weighted empirical distribution of current data pairs looks indistinguishable from the previous step's weighted predictions under the target policy. "Indistinguishable" here is measured via a minimax moment-matching objective against $\mathcal{F}$, which acts as a discriminator class.
  • Principle of Least 2nd Moment: Because $n$ free weights can easily under-determine the matching objective, Q-MMR optionally breaks ties by picking the weights with the smallest empirical second moment (norm), directly minimizing variance.

Datasets

Not discussed in the paper. (This is a purely theoretical work with no empirical benchmarks.)

Key Insights and Ideas

  • Dodging the Union Bound: Normally, having $n$ free parameters for $n$ data points screams "overfitting." However, Q-MMR's core proof avoids taking a union bound over the function class $\mathcal{F}$ entirely. Because weights at step $h$ only depend on trajectory prefixes up to step $h$, future rewards remain conditionally independent. Concentration inequalities only need to be applied to the * single* true value function $Q^\pi$, completely sidestepping the statistical complexity of $\mathcal{F}$.
  • "What You See Is What You Get" (WYSIWYG) & Fixed-Design Generalization: Both terms in Q-MMR's main error bound—the empirical matching loss and the second moment of the learned weights—are directly observable from the data, giving automatic uncertainty quantification. When horizon $H=1$ and $\mathcal{F}$ is linear, Q-MMR's algorithm and bound exactly recover classical fixed-design linear regression.
  • Unifying FQE and Redefining "Coverage": Even though Q-MMR is top-down and non-parametric, when $\mathcal{F}$ is linear (or tabular), its final return prediction is identical to bottom-up linear FQE! Furthermore, Q-MMR generalizes recent, counterintuitive insights about offline RL "coverage"—showing that for general function classes without Bellman completeness, data doesn't just need to cover the true target distribution, it must also contend with the stability of a projected transition operator to prevent weights from blowing up exponentially.
Table 1: Comparison between existing analyses and ours. Each entry corresponds to an analysis of an algorithm (row) in a setting (column). Columns to the right represent more specialized settings, whose results are plug-in instantiations of more general analyses to the left. (This is why “FQE” and “Linear FQE” do not coincide in the linear columns, even though they become the same algorithm there.) For our analyses, we use the population version of coverage (see Section 4) for better comparison with the existing literature. “Dim-free" refers to the property of not depending on the dimension d or log |F|-type terms in the data-dependent bound, or only depending on it in higher-order terms in the data-independent bound. (∗)Technically, the linear analysis of Duan et al. [2020] considers the linear-MDP setup which is stronger than Bellman completeness, but it is likely that their proofs and results can be adapted to the weaker settings (e.g., only realizability), especially given the later insights of Perdomo et al. [2023], Amortila et al. [2026]; see Appendix C.4 for details.

Key Results

  • Dimension-Free Data-Dependent Bound (Theorem 1): Under only realizability ($Q^\pi \in \mathcal{F}$), with probability at least $1-\delta$, the estimation error $|\widehat{J}(\pi) - J(\pi)|$ is bounded by the sum of empirical matching losses across steps $1 \dots H$, plus statistical error terms scaling as $\|\widehat{w}_h\|_{[n]} V_{\max} \sqrt{\frac{2\log(2(H+1)/\delta)}{n}}$. Notice there is zero dependence on $\log|\mathcal{F}|$ or feature dimension $d$.
  • Data-Independent "Random-Design" Bound (Corollary 10): By analyzing how empirical weights track their population counterparts $w_h^\star$, the authors derive an a priori bound. Its leading $O(1/\sqrt{n})$ term remains completely dimension-free, pushing the log-covering numbers of $\mathcal{F}$ strictly into higher-order $O(1/n)$ terms—matching specialized minimax linear results.
  • Stabilization via Completeness: If Bellman completeness is assumed alongside bounded generalized leverage, the multi-step operator norm governing weight blow-up is bounded by $\le 1$, and $w_h^\star$ cleanly becomes the projection of the true Marginalized Importance Sampling ratio onto the closed linear span of $\mathcal{F}_h$.

Limitations and Future Work

  • I.I.D. Finite-Horizon Requirement: The conditional independence trick that avoids union bounds relies strictly on i.i.d. trajectory data in finite horizons. Adaptively collected datasets (like bandit/exploration data) or infinite-horizon discounted settings break this independence. Fixing this via standard union bounds would reintroduce dimension dependence in the leading term, requiring more advanced concentration tools in future work.
  • Myopic Optimization: Q-MMR computes weights greedily at step $h$ without considering how $\widehat{w}_h$ impacts downstream matching losses at steps $h' > h$. Optimizing all levels simultaneously runs into classic "double-sampling" issues with non-parametric weights; circumventing this globally remains an open question.

Summary updated

Abstract

We present a novel theoretical framework, Q-MMR, for off-policy evaluation in finite-horizon MDPs. Q-MMR learns a set of scalar weights, one for each data point, such that the reweighted rewards approximates the expected return under the target policy. The weights are learned inductively in a top-down manner via a moment matching objective against a value-function discriminator class. Notably, and perhaps surprisingly, a data-dependent finite-sample guarantee for general function approximation can be established under only the realizability of $Q^\pi$, with a **dimension-free** bound---that is, the error does **not** depend on the statistical complexity of the function class. We also establish connections to several existing methods, such as linear FQE. Further theoretical analyses shed new light on the nature of coverage, a concept of fundamental importance to offline RL.
BibTeX
@inproceedings{li2026q,
  author = {Xiang Li and Nan Jiang},
  title = {{Q-MMR: Off-Policy Evaluation via Recursive Reweighting and Moment Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xTSX3ivXEZ},
}
Figure