Sharpness-Aware Minimization Enhances Feature Quality via Balanced Learning
<|reference_start|>Sharpness-Aware Minimization Enhances Feature Quality via Balanced Learning: Sharpness-Aware Minimization (SAM) has emerged as a promising alternative optimizer to stochastic gradient descent (SGD). The originally-proposed motivation behind SAM was to bias neural networks towards flatter minima that are believed to generalize better. However, recent studies have shown conflicting evidence on the relationship between flatness and generalization, suggesting that flatness does fully explain SAM's success. Sidestepping this debate, we identify an orthogonal effect of SAM that is beneficial out-of-distribution: we argue that SAM implicitly balances the quality of diverse features. SAM achieves this effect by adaptively suppressing well-learned features which gives remaining features opportunity to be learned. We show that this mechanism is beneficial in datasets that contain redundant or spurious features where SGD falls for the simplicity bias and would not otherwise learn all available features. Our insights are supported by experiments on real data: we demonstrate that SAM improves the quality of features in datasets containing redundant or spurious features, including CelebA, Waterbirds, CIFAR-MNIST, and DomainBed.<|reference_end|>
@article{springer2024sharpness-aware,
    title={Sharpness-Aware Minimization Enhances Feature Quality via Balanced
  Learning},
    author={Jacob Mitchell Springer, Vaishnavh Nagarajan, Aditi Raghunathan},
    journal={arXiv preprint arXiv:2405.20439},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.20439},
    primaryClass={cs.LG}
}