Sharpness-diversity tradeoff: improving flat ensembles with SharpBalance

Haiquan Lu, Xiaotian Liu, Yefan Zhou, Qunli Li, Kurt Keutzer +4 more
7/17/2024
stat.MLcs.LG

No official code found. Best implementation: haiquanlu/SharpBalance (11 stars, MIT, last commit 2025-02-24).

Abstract

Recent studies on deep ensembles have identified the sharpness of the local minima of individual learners and the diversity of the ensemble members as key factors in improving test-time performance. Building on this, our study investigates the interplay between sharpness and diversity within deep ensembles, illustrating their crucial role in robust generalization to both in-distribution (ID) and out-of-distribution (OOD) data. We discover a trade-off between sharpness and diversity: minimizing the sharpness in the loss landscape tends to diminish the diversity of individual members within the ensemble, adversely affecting the ensemble's improvement. The trade-off is justified through our theoretical analysis and verified empirically through extensive experiments. To address the issue of reduced diversity, we introduce SharpBalance, a novel training approach that balances sharpness and diversity within ensembles. Theoretically, we show that our training strategy achieves a better sharpness-diversity trade-off. Empirically, we conducted comprehensive evaluations in various data sets (CIFAR-10, CIFAR-100, TinyImageNet) and showed that SharpBalance not only effectively improves the sharpness-diversity trade-off, but also significantly improves ensemble performance in ID and OOD scenarios.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2024] Sharpness-diversity tradeoff: improving flat ensembles with SharpBalance

110Shell, PythonOct 29, 20241 years agoMIT

Similar Papers

Cite this paper

@article{lu2024sharpnessdiversity,
  title  = {Sharpness-diversity tradeoff: improving flat ensembles with SharpBalance},
  author = {Haiquan Lu and Xiaotian Liu and Yefan Zhou and Qunli Li and Kurt Keutzer and Michael W. Mahoney and Yujun Yan and Huanrui Yang and Yaoqing Yang},
  year   = {2024},
  eprint = {2407.12996},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.12996},
  url    = {http://arxiv.org/abs/2407.12996v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12996.svg)](https://codeofpaper.com/paper/2407.12996)

Discussion