Ensembles of Locally Independent Prediction Models

Andrew Slavin Ross, Weiwei Pan, Leo A. Celi, Finale Doshi-Velez

Abstract

Ensemble methods rely on the diversity of their constituent models to achieve superior predictive performance. Traditionally, diversity is defined by differences in predictions on the training set. However, this approach often fails under covariate shift, where models may agree on training data but extrapolate identically in regions with no data. We introduce Local Independence Training (LIT), a method that encourages models to be locally independent by enforcing orthogonality between their input gradients. Our results across synthetic and real-world tasks demonstrate that LIT improves generalization and provides qualitatively novel forms of diversity, particularly in data-limited and shifted environments.

Introduction

The efficacy of ensemble learning is fundamentally tied to the diversity of its members. If all models in an ensemble make identical errors, the ensemble provides no benefit over a single model. Most existing techniques for fostering diversity, such as Bagging or Negative Correlation Learning (NCL), focus on inducing variance in predictions on the training manifold.

This paper identifies a critical shortcoming in this paradigm: diversity on the training set does not guarantee diversity under covariate shift. In practical applications, test data often deviates from the training distribution. Standard ensembles frequently exhibit "extrapolation agreement," where they fail in unison when encountering shifted data. To address this, we propose a new objective that ensures models extrapolate differently in the "empty space" surrounding the training data.

Methodology: Local Independence Training (LIT)

We define a new metric for ensemble diversity called Local Independence. Two models are considered locally independent if a change in the input that significantly affects one model's output has minimal impact on the other's.

Gradient Orthogonality as a Proxy

Directly optimizing for local independence is computationally challenging. Instead, we utilize Gradient Orthogonality as a differentiable proxy. If the input gradient of Model A ($\nabla f$) is orthogonal to the input gradient of Model B ($\nabla g$), the models are effectively utilizing different features or directions in the input space to arrive at their decisions.

The LIT objective adds a penalty term to the standard cross-entropy loss that minimizes the squared cosine similarity between the input gradients of different ensemble members. Unlike methods that force models to trade off accuracy for diversity by penalizing correct predictions, LIT encourages models to find different ways to be accurate.

Experimental Evaluation

The effectiveness of LIT was evaluated across three distinct domains: synthetic 2D datasets, UCI classification benchmarks, and real-world clinical data.

2D Synthetic Datasets

To visualize extrapolation behavior, we designed four 2D datasets with significant "gaps" between classes. These gaps represent regions where no training data exists, forcing models to rely on their inherent inductive biases to extrapolate.

Figure 1: Four 2D synthetic datasets used to evaluate extrapolation diversity. The white regions represent gaps in the training data where models must extrapolate.

UCI Benchmarks and Clinical Data

We tested LIT on five UCI datasets using both random splits and "extrapolation splits," where the test set is intentionally shifted. Furthermore, we applied the method to the MIMIC-III dataset to predict in-hospital mortality. This real-world task is characterized by high-dimensional, redundant features, making it an ideal candidate for testing whether LIT can uncover diverse predictive signals.

Key Results and Insights

  • Robustness to Covariate Shift: On UCI extrapolation splits, LIT consistently outperformed standard bagging and AdaBoost. By forcing models to "look" at different features, the ensemble becomes more resilient when certain features shift or become noisy at test time.
  • Small Data Generalization: In the ICU mortality task with a limited training set (n=1,000), LIT achieved an AUC of 0.711, significantly higher than random restarts (0.684) and NCL (0.697).
  • Hyperparameter Stability: LIT is less sensitive to its penalty weight ($\lambda$) compared to NCL. While NCL can cause models to collapse into random guessing if the penalty is too high, LIT exhibits a graceful decay in performance, making it easier to tune.
  • Clinical Interpretability: Analysis of the MIMIC-III models showed that LIT-trained ensembles focused on distinct clinical indicators. For instance, one model might prioritize Blood Urea Nitrogen (BUN) while another focuses on Creatinine to assess kidney function. This redundancy ensures the ensemble remains accurate even if one biomarker is missing or corrupted.

Limitations and Future Work

While promising, LIT has several limitations. The method relies on non-vanishing gradients, making it more compatible with ReLU or Softplus activations than saturating functions like Sigmoid. Additionally, computing the gradient of the penalty term involves second-order derivatives, increasing training time by approximately 50%.

Future research will explore projecting gradients onto learned manifolds (e.g., via autoencoders) to handle high-dimensional data like images more effectively. Furthermore, since the gradient penalty is label-independent, LIT holds significant potential for semi-supervised learning applications.

Conclusion

Local Independence Training represents a shift in how we think about ensemble diversity. By moving beyond training-set predictions and focusing on local input sensitivities, we can build ensembles that are not only more accurate but also more robust to the unpredictable shifts of real-world data.

Summary updated

BibTeX
@inproceedings{ross2020ensembles,
  author = {Andrew Slavin Ross and Weiwei Pan and Leo A. Celi and Finale Doshi-Velez},
  title = {{Ensembles of Locally Independent Prediction Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6004},
}
Figure