Ensembles of Locally Independent Prediction Models

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

Introduction

Ensemble learning is predicated on the principle of diversity: a collection of models is more robust than a single model because individual members are unlikely to fail simultaneously on the same input. Traditionally, diversity is defined by the variance in predictions on a training set. If Model A and Model B produce different errors on known data, they are considered diverse.

However, this definition is limited. In real-world applications, models often encounter covariate shift, where the test data distribution differs from the training distribution. If two models are only incentivized to differ on training points, they may still converge to the same underlying logic in the "empty" regions of the feature space. Consequently, when data shifts into these regions, the entire ensemble may fail in unison. This paper introduces Local Independence Training (LIT), a method designed to ensure models extrapolate in fundamentally different directions, maintaining ensemble diversity even under distribution shift.

Local Independence Training (LIT)

The core contribution of this work is the concept of Local Independence. Two models are considered locally independent at a point $x$ if a small change in $x$ that affects the output of one model has minimal impact on the output of the other. Geometrically, this implies that the decision boundaries of the models are orthogonal (at a 90-degree angle) to each other.

To implement this, the authors utilize the cosine similarity of input gradients. Let $f_m(x)$ and $f_\ell(x)$ be the outputs of two models. Their local sensitivity is captured by their gradients $\nabla f_m$ and $\nabla f_\ell$. If these gradients are orthogonal, their cosine similarity is zero. The LIT algorithm adds a regularization term to the standard loss function to minimize the squared cosine similarity between the gradients of all pairs in the ensemble:

$$\mathcal{L}_{total} = \sum_{m} \text{Loss}(f_m) + \lambda \sum_{m \neq \ell} \text{cos}^2(\nabla f_m, \nabla f_\ell)$$

Unlike existing methods like Negative Correlation Learning (NCL), which rely on labels to enforce diversity through prediction errors, LIT operates directly on the model's sensitivity to inputs. This allows LIT to encourage diversity in regions of the input space where no labeled data exists, effectively forcing models to "disagree" on how they extrapolate.

Experimental Evaluation

The authors evaluated LIT across synthetic 2D datasets, standard UCI benchmarks, and a high-stakes medical dataset (MIMIC-III).

Synthetic 2D Benchmarks

To visualize the effect of LIT, the authors used four toy datasets characterized by "gaps" in the data distribution. These gaps represent regions where models must extrapolate.

Comparison of decision boundaries across different ensemble methods on four synthetic 2D datasets. LIT maintains orthogonal boundaries even as regularization increases, whereas NCL often collapses or requires fine-tuning.

As shown in the figure above, standard random restarts and NCL often produce nearly identical or highly correlated decision boundaries in the extrapolation regions. In contrast, LIT successfully forces the decision boundaries to remain orthogonal, ensuring that the models explore different logical pathways to separate the classes.

Real-World Robustness

On UCI extrapolation tasks (where models are trained on data near the origin and tested on distant points), LIT consistently outperformed baselines. For instance, on the Ionosphere dataset, LIT achieved an AUC of 0.96, significantly higher than the 0.87 achieved by random restarts.

In a clinical case study using the MIMIC-III ICU mortality dataset, LIT demonstrated superior performance in data-scarce environments ($n=1000$). It achieved an AUC of 0.711, compared to 0.684 for random restarts and 0.697 for NCL. Qualitatively, the LIT models were found to rely on different clinical indicators (e.g., creatinine vs. blood urea nitrogen) to reach the same prediction, providing a more holistic and redundant view of patient risk.

Key Insights and Discussion

  • Gradients as Logic Proxies: Forcing gradient orthogonality effectively forces models to rely on different features or feature combinations. This creates "meaningful redundancy" where the ensemble's collective knowledge is broader than any single member.
  • Stability and the Accuracy-Diversity Trade-off: A common failure mode of diversity-seeking algorithms is the "accuracy cliff," where forcing diversity leads to intentional errors on the training set. LIT is notably stable; because it regularizes gradients rather than predictions, models can remain highly accurate on training data while being maximally diverse in their extrapolation logic.
  • Hyperparameter Sensitivity: LIT is robust across several orders of magnitude for the regularization parameter $\lambda$. This contrasts with NCL, which often requires precise tuning to prevent models from collapsing into random guessing.

Limitations and Future Work

Despite its advantages, LIT introduces a computational overhead of approximately 1.5x due to the need for second-order derivatives during training. Additionally, the method is sensitive to feature scaling and performs most consistently with non-saturating activation functions like ReLU. Future research could explore the application of LIT to semi-supervised learning—leveraging its label-free nature—and investigate more sophisticated aggregation strategies for locally independent models.

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