Accurate Inference for Adaptive Linear Models

Yash Deshpande, Lester W. Mackey, Vasilis Syrgkanis, Matt Taddy

Accurate Inference for Adaptive Linear Models

TL;DR

Standard statistical tools like Ordinary Least Squares (OLS) produce biased estimates and unreliable confidence intervals when data is collected adaptively (e.g., in multi-armed bandits or active learning). This paper introduces $W$-decorrelation, a method that transforms this persistent bias into manageable variance, enabling accurate frequentist inference and valid p-values for adaptive linear models.

The Problem with Adaptive Data

In classical statistics, we assume data points are independent and identically distributed (i.i.d.). However, in many modern machine learning applications—such as multi-armed bandits, active learning, and time series analysis—the choice of the next data point depends on the results of previous ones. This is known as "adaptive" data collection.

The core issue is that standard estimators like OLS behave poorly with adaptive data. The sequential dependence introduces a distributional bias that does not disappear even as you collect infinite data. For example, in a bandit setting, the sample mean of an arm's reward is often negatively biased because the policy stops playing "bad" arms early after a few low-reward observations. Consequently, standard confidence intervals (which assume Gaussianity) either under-cover or over-cover the true parameters, making it impossible to perform reliable hypothesis testing.

The Solution: $W$-Decorrelation

The authors propose a general framework called $W$-decorrelation. The central idea is to "whiten" or debias the OLS estimator using a specific transformation matrix, $W_n$.

  1. The Estimator: They construct a decorrelated estimator $\hat{\beta}^d = \hat{\beta}_{OLS} + W_n(y - X_n\hat{\beta}_{OLS})$. This structure is inspired by debiasing techniques commonly used in high-dimensional statistics.
  2. The $W$ Matrix: The matrix $W_n$ is constructed online, observation by observation. It is designed to solve an optimization problem that trades off bias (represented by $I - W_n X_n$) against variance (represented by $W_n W_n^T$).
  3. Reverse Implicit SGD: Interestingly, the authors demonstrate that constructing this $W$ matrix is mathematically equivalent to running an "implicit Stochastic Gradient Descent" process in reverse—starting from the last observation and moving toward the first.
  4. Martingale CLT: To prove that their estimator is actually useful for inference, they develop a novel Martingale Central Limit Theorem (CLT). Unlike standard versions, this CLT handles cases where the conditional variance of the samples doesn't converge to a constant, which is a frequent hurdle in time series data.

Key Insights and Ideas

  • Bias-Variance Swap: You cannot eliminate the inherent difficulty of adaptive data for free. $W$-decorrelation essentially "buys" unbiasedness by accepting higher variance. The resulting estimator is less "precise" than OLS in terms of Mean Squared Error, but crucially, it is Gaussian, which is exactly what is needed for valid p-values.
  • Coarse-Grained Requirements: Unlike "Inverse Propensity Weighting" (IPW), which requires knowing the exact probability of every action taken by a policy, $W$-decorrelation only needs a rough lower bound on the amount of exploration ($\lambda_{min}$) inherent in the data collection process.
  • Restoring Gaussianity: The most striking insight is the visual change in the error distribution. While OLS errors in adaptive settings are often skewed or "heavy-tailed," the $W$-decorrelated errors look like a perfect bell curve, even in small samples.
Comparison of OLS and W-estimate error distributions showing restored Gaussianity

Key Results

The paper evaluates the method using simulated environments representing common adaptive data scenarios, including Autoregressive (AR) Time Series and Multi-armed Bandits (MAB) using $\epsilon$-greedy (ECB), Upper Confidence Bound (UCB), and Thompson Sampling (TS) policies.

  • Coverage Accuracy: In bandit simulations (4,000 iterations), OLS-based confidence intervals systematically failed to hit the target 95% coverage. In contrast, the $W$-decorrelation intervals achieved empirical coverage very close to the nominal levels across all policies.
  • Kurtosis Reduction: The "excess kurtosis" (a measure of how non-Gaussian a distribution is) was reduced by an order of magnitude using the $W$-estimator compared to OLS.
  • Efficiency vs. Concentration: While standard "concentration inequalities" (common in bandit theory) provide valid intervals, they are extremely conservative—often giving 100% coverage because the intervals are far too wide. $W$-decorrelation provides much tighter, more "honest" intervals that reflect the actual statistical uncertainty.
Coverage accuracy and Q-Q plots across different bandit policies

Limitations and Future Work

  • The Variance Cost: Because the method increases variance to remove bias, the confidence intervals are wider than the (incorrect) OLS intervals. This represents a fundamental limit: you cannot have both the lowest possible variance and valid frequentist inference in adaptive settings.
  • Exploration Requirement: The method requires that the data collection policy explores the parameter space sufficiently. If a policy completely ignores certain "arms" or directions in the covariate space, no amount of decorrelation can recover those parameters.
  • Extension to Non-Linear Models: This paper focuses strictly on linear models. Extending these debiasing principles to generalized linear models (like logistic regression) or deep learning models in adaptive settings remains an open and exciting challenge for future research.

Summary updated

BibTeX
@inproceedings{deshpande2018accurate,
  author = {Yash Deshpande and Lester W. Mackey and Vasilis Syrgkanis and Matt Taddy},
  title = {{Accurate Inference for Adaptive Linear Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=BJWlu2-uZH},
}
Figure