Deep Ensembles: A Loss Landscape Perspective

Stanislav Fort, Huiyi Hu, Balaji Lakshminarayanan

arXiv (Cornell University) · 2019 · 351 citations · 26 references

DOIFull text

Open access

Concepts

TL;DR

Deep ensembles markedly improve accuracy, uncertainty, and out‑of‑distribution robustness, yet their success is not fully explained by bootstrap theory; Bayesian neural networks underperform, suggesting that ensembles explore diverse function‑space modes while variational methods focus on a single mode. The study tests whether deep ensembles’ performance stems from exploring diverse function‑space modes. It does so by extending loss‑landscape analysis to measure prediction similarity across functions. Random initializations explore distinct modes, while optimization trajectories or subspace samples cluster within a single prediction mode; the diversity–accuracy plane shows random initialization’s decorrelation surpasses subspace sampling, and experiments confirm that ensembles outperform subspace methods, validating the hypothesis.

Abstract

Deep ensembles have been empirically shown to be a promising approach for improving accuracy, uncertainty and out-of-distribution robustness of deep learning models. While deep ensembles were theoretically motivated by the bootstrap, non-bootstrap ensembles trained with just random initialization also perform well in practice, which suggests that there could be other explanations for why deep ensembles work well. Bayesian neural networks, which learn distributions over the parameters of the network, are theoretically well-motivated by Bayesian principles, but do not perform as well as deep ensembles in practice, particularly under dataset shift. One possible explanation for this gap between theory and practice is that popular scalable variational Bayesian methods tend to focus on a single mode, whereas deep ensembles tend to explore diverse modes in function space. We investigate this hypothesis by building on recent work on understanding the loss landscape of neural networks and adding our own exploration to measure the similarity of functions in the space of predictions. Our results show that random initializations explore entirely different modes, while functions along an optimization trajectory or sampled from the subspace thereof cluster within a single mode predictions-wise, while often deviating significantly in the weight space. Developing the concept of the diversity--accuracy plane, we show that the decorrelation power of random initializations is unmatched by popular subspace sampling methods. Finally, we evaluate the relative effects of ensembling, subspace based methods and ensembles of subspace based methods, and the experimental results validate our hypothesis.

References

26