NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Boosted Control Functions

Nicola Gnecco, Jonas Peters, Sebastian Engelke, Niklas Pfister · DOI

Abstract

Standard predictive models often fail when deployed in environments that differ from their training data, particularly in the presence of unobserved confounding. This paper introduces Boosted Control Functions (BCF), a novel framework for out-of-distribution (OOD) generalization. By bridging econometric structural models with non-parametric machine learning, BCF identifies a stable predictive target that remains invariant under distributional shifts. We introduce the Simultaneous Equation Models for Distribution Generalization (SIMDG) framework and the ControlTwicing algorithm to estimate these functions. Our results on synthetic and real-world datasets demonstrate that BCF provides superior robustness compared to standard least squares and distributionally robust optimization methods, especially in under-identified systems.

Introduction

Machine learning models typically rely on the independent and identically distributed (i.i.d.) assumption, which posits that training and testing data share the same underlying distribution. In practice, this assumption is frequently violated due to distributional shifts—where the relationships between variables change over time or space—and hidden confounding, where unobserved variables ($H$) influence both predictors ($X$) and targets ($Y$).

While causal inference provides tools like Instrumental Variables (IV) to address confounding, these methods often require the causal effect to be strictly "identifiable." In high-dimensional, nonlinear machine learning tasks, this condition is rarely met. This paper addresses the "under-identified" case, focusing not on recovering the exact causal truth, but on finding a predictor that generalizes reliably across different environments.

Theoretical Framework: SIMDGs and Strong Invariance

The authors propose Simultaneous Equation Models for Distribution Generalization (SIMDGs) to bridge the gap between econometric structural models and machine learning. This framework describes how data is generated under shifting distributions.

A central contribution is the shift from "weak" to "strong" invariance. Existing methods, such as Invariant Risk Minimization (IRM), often rely on weak invariance, which may be insufficient for complex nonlinear models. The authors propose Strong Invariance, a criterion ensuring that the residual distribution remains constant across different environments. This provides a more rigorous foundation for stability in the presence of exogenous perturbations.

The Boosted Control Function (BCF)

The core innovation is the Boosted Control Function (BCF). In traditional econometrics, a control function is used to model the correlation between predictors and the error term. The BCF "boosts" this concept by combining the structural causal function with the invariant portion of the confounding noise.

Crucially, the BCF is identifiable even when the underlying causal function itself is not. This makes it a powerful "star" estimand for predictive tasks: it captures enough structural information to remain stable under shift, while incorporating enough noise-related information to maintain high predictive accuracy.

The ControlTwicing Algorithm

To estimate the BCF, the authors introduce ControlTwicing, an algorithm inspired by John Tukey’s "twicing" procedure. This is an iterative residual-fitting method that allows for the use of any non-parametric learner—such as XGBoost, Random Forests, or Neural Networks—to estimate the complex additive components of the BCF. This flexibility makes the framework applicable to a wide range of modern ML architectures.

Experimental Evaluation

The BCF framework was evaluated using both synthetic simulations and real-world benchmarks.

Synthetic SIMDG Data

Using synthetic data, the authors tested the model against varying degrees of "perturbation strength" (the magnitude of the distribution shift) and "confounding strength." * Results: As the distribution shift increased, the error rates of standard Least Squares (LS) regression increased significantly. In contrast, the BCF error remained nearly flat, closely tracking the theoretical optimal invariant predictor. This confirms that BCF successfully ignores the unstable components of the data distribution.

California Housing Dataset

To test real-world applicability, the authors used the California Housing dataset (~20,000 observations). They created geographic splits (e.g., training on North/East regions and testing on South/West regions) to simulate the types of shifts encountered in spatial data, where location-based factors act as exogenous variables.

  • Results: BCF significantly outperformed standard Least Squares and traditional Control Functions. It also proved more robust than Group Distributionally Robust Optimization (GroupDRO), which tended to be overly conservative or failed when the test distribution fell outside the specific support of the training data.

Key Insights

  1. Predictive Invariance vs. Causal Truth: Robust prediction does not strictly require identifying the "true" causal effect. By boosting the structural model with invariant noise components, BCF achieves better performance than a purely causal model while maintaining stability.
  2. The Role of Exogenous Variables: The method leverages exogenous variables ($Z$)—variables that influence predictors but are independent of the system's internal noise—to "anchor" predictions. This allows the model to remain invariant to shifts induced by those specific variables.
  3. Worst-Case Optimality: Theoretically, the BCF is shown to be the optimal predictor for the "worst-case" distribution shift within the class of shifts induced by the available exogenous variables.

Limitations and Future Work

Despite its strengths, the BCF framework has specific requirements:

  • Exogeneity: The method depends on the availability of exogenous variables (instruments). Identifying these variables often requires significant domain expertise.
  • Causal Direction: The current model assumes a causal direction from $X$ to $Y$ and does not yet account for anti-causal settings where $Y$ might influence $X$.
  • Additive Confounding: Current theoretical guarantees assume that confounding effects are additive. Future research is needed to extend these guarantees to fully general, non-additive structural models.
  • Dynamic Environments: Extending the BCF framework to time-series data and dynamic systems where environments change continuously is a promising area for future exploration.

Conclusion

Boosted Control Functions offer a mathematically rigorous yet practically flexible approach to the problem of distribution generalization. By focusing on strong invariance and leveraging the power of non-parametric boosting, BCF provides a robust alternative to standard regression techniques in confounded, real-world environments.

Summary updated

BibTeX
@misc{gnecco2023boosted,
  author = {Nicola Gnecco and Jonas Peters and Sebastian Engelke and Niklas Pfister},
  title = {{Boosted Control Functions}},
  year = {2023},
  eprint = {2310.05805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05805},
}
Figure