Game-Theoretic Algorithms for Conditional Moment Matching

Gokul Swamy, Sanjiban Choudhury, J. Andrew Bagnell, Zhiwei Steven WuarXiv 2022

Abstract

A variety of problems in econometrics and machine learning, including instrumental variable regression and Bellman residual minimization, can be formulated as satisfying a set of conditional moment restrictions (CMR). We derive a general, game-theoretic strategy for satisfying CMR that scales to nonlinear problems, is amenable to gradient-based optimization, and is able to account for finite sample uncertainty. We recover the approaches of Dikkala et al. and Dai et al. as special cases of our general framework before detailing various extensions and how to efficiently solve the game defined by CMR.

1. Introduction

Many fundamental tasks in econometrics and machine learning involve finding a function $h$ that satisfies a Conditional Moment Restriction (CMR). Formally, given an outcome $Y$, treatment $X$, and information $Z$, we seek $h$ such that: $$\mathbb{E}[Y - h(X) | Z] = 0$$ This formulation is central to two major domains: Instrumental Variable (IV) regression and Reinforcement Learning (RL). In IV regression, $Z$ acts as an instrument to isolate causal effects in the presence of unobserved confounders. In RL, CMRs appear when minimizing the Bellman residual—the difference between a value function and its temporal-difference prediction.

2. The Challenge: The Double-Sample Problem

A naive approach to solving CMR is to minimize the squared residual $\mathbb{E}[(\mathbb{E}[Y - h(X) | Z])^2]$. However, this leads to the "double-sample" problem: computing the gradient of this objective requires two independent samples of $(X, Y)$ for every value of $Z$. In practice, datasets typically provide only a single sample per $Z$, making standard gradient-based optimization biased or infeasible without complex generative modeling.

Mapping of variables between IV regression and Reinforcement Learning.

As shown in the table above, the CMR framework provides a unified language for these disparate fields. By solving the CMR, one can simultaneously address causal inference and value function estimation.

3. Instrumental Variable Regression

In the IV setting, we aim to estimate the causal effect of $X$ on $Y$. Standard regression fails when an unobserved confounder $U$ influences both $X$ and $Y$. An instrument $Z$ is used to provide exogenous variation in $X$.

Causal graph for the Instrumental Variable (IV) setting.

The causal graph in Figure 1 illustrates this relationship. The goal is to learn the function $h$ (the causal effect) that satisfies the moment condition relative to the instrument $Z$.

4. Methodology: Estimation via Relaxation (ReLa)

The authors propose a game-theoretic framework called Estimation via Relaxation (ReLa) to bypass the double-sample problem.

4.1 The Regularized Lagrangian

Instead of a hard constraint, the CMR is treated as a relaxed constraint within a Regularized Lagrangian. By applying duality, the optimization is transformed into a zero-sum minimax game between two players:

  1. The Learner: Attempts to find a function $h$ that minimizes the conditional mismatch.
  2. The Adversary: Attempts to find a weighting function $f$ that highlights where the mismatch is largest.

4.2 No-Regret Learning

The game is solved using a reduction to no-regret online learning. By iteratively updating the learner and adversary, the system converges to a Nash equilibrium. This approach is computationally efficient and avoids the need for generative models of the data distribution $P(X|Z)$.

5. Key Insights and Results

  • Uncertainty Quantification: The adversary's function $f(z)$ naturally accounts for finite-sample uncertainty. In regions with sparse data, the adversary has less power to "penalize" the learner, reflecting lower confidence in the estimate.
  • Theoretical Unification: The paper proves that existing state-of-the-art algorithms for IV (Dikkala et al., 2020) and RL (Dai et al., 2018) are specific instances of this general ReLa framework.
  • Consistency and Efficiency: The authors establish that the ReLa game produces consistent estimates in the population limit and can be solved in polynomial time.

6. Conclusion and Future Work

While the ReLa framework provides a robust solution for first-moment CMRs, several avenues for future research remain. The current theory assumes well-behaved function classes (convex and compact). Extending this to more complex, non-convex architectures like deep neural networks requires further stability analysis. Additionally, moving beyond first moments to match entire conditional distributions $P(Y|Z)$ represents a significant next step for the field.

Summary updated

BibTeX
@misc{swamy2022game,
  author = {Gokul Swamy and Sanjiban Choudhury and J. Andrew Bagnell and Zhiwei Steven Wu},
  title = {{Game-Theoretic Algorithms for Conditional Moment Matching}},
  year = {2022},
  eprint = {2208.09551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.09551},
}
Figure