Introduction
Standard online learning algorithms typically assume that noise and features are independent—a condition known as exogeneity. However, in real-world applications such as economics, medicine, and dynamic pricing, hidden "confounders" often influence both inputs and outcomes simultaneously. This phenomenon, called endogeneity, introduces significant bias into standard models. This paper, presented at AAAI-25, introduces the first non-asymptotic theoretical framework for online instrumental variable (IV) regression, offering robust algorithms for both prediction and bandit decision-making.
The Challenge of Endogeneity
In many fields, we encounter scenarios where an unobserved variable affects both the treatment (input) and the response (output). For example, consider the relationship between price and sales. A local festival (a hidden confounder) might lead a business to raise prices while also naturally increasing customer traffic. A standard regression model would observe high prices and high sales, incorrectly concluding that higher prices cause more sales.
To address this, statisticians employ Instrumental Variables (IVs)—external factors that influence the input (e.g., material costs affecting price) but are independent of the hidden noise (e.g., the festival). While Two-Stage Least Squares (2SLS) is a standard offline technique, this work provides the first online, non-asymptotic versions of these tools.
Proposed Algorithms: O2SLS and OFUL-IV
The authors propose two primary algorithms to handle confounded data in real-time:
- O2SLS (Online Two-Stage Least Squares): A recursive version of the classic 2SLS. In the first stage, it uses IVs ($Z$) to predict the "clean" component of endogenous features ($X$). In the second stage, it performs regression using these predicted features to estimate the true causal parameter ($\beta$).
- OFUL-IV: An extension of the "Optimism in Face of Uncertainty for Linear bandits" (OFUL) algorithm. It utilizes O2SLS as an oracle to construct confidence ellipsoids, allowing for efficient exploration in bandit settings despite the presence of confounders.
Theoretical Analysis and Regret Bounds
A key contribution of this work is the rigorous analysis of concentration bounds for the dependent random variables inherent in two-stage processes. The authors quantify the "price" of endogeneity through identification regret—the distance between the estimated and true parameters.
As shown in the regret decomposition, O2SLS achieves an identification regret of $O(d_x d_z \log^2 T)$. The presence of $d_z$ (the dimension of the instruments) represents the mathematical "tax" paid for the two-stage estimation process. For bandit tasks, the OFUL-IV algorithm achieves a regret bound of $\tilde{O}(\sqrt{d_x d_z T})$, matching the order of lower bounds for unconfounded cases and demonstrating that endogeneity can be managed without a catastrophic loss in efficiency.
Conclusion and Future Work
This research provides a foundational framework for online causal inference. Empirical results confirm that while standard Ridge regression fails as endogeneity increases, O2SLS and OFUL-IV remain accurate and efficient. Future directions include extending these methods to non-parametric IV regression and integrating deep learning techniques for more complex, non-linear relationships between instruments and features.
Summary updated