[Paper Review] ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
ASAM introduces scale-invariant adaptive sharpness and a corresponding optimization method to improve generalization across models and tasks, addressing sharpness scale-dependency in SAM.
Recently, learning algorithms motivated from sharpness of loss surface as an effective measure of generalization gap have shown state-of-the-art performances. Nevertheless, sharpness defined in a rigid region with a fixed radius, has a drawback in sensitivity to parameter re-scaling which leaves the loss unaffected, leading to weakening of the connection between sharpness and generalization gap. In this paper, we introduce the concept of adaptive sharpness which is scale-invariant and propose the corresponding generalization bound. We suggest a novel learning method, adaptive sharpness-aware minimization (ASAM), utilizing the proposed generalization bound. Experimental results in various benchmark datasets show that ASAM contributes to significant improvement of model generalization performance.
Motivation & Objective
- Motivate and address the scale-dependency problem of loss surface sharpness in generalization.
- Define adaptive sharpness as a scale-invariant generalization metric via normalization operators.
- Propose ASAM, an optimization method that minimizes adaptive sharpness via adaptive maximization regions.
- Demonstrate improved generalization on image classification and machine translation tasks across multiple architectures.
- Explore robustness of ASAM to label noise.
Proposed method
- Define a normalization operator T_w to cancel weight re-scaling effects.
- Define adaptive sharpness as max over perturbations with norm defined by T_w, ensuring scale-invariance.
- Derive Theorem 1 showing adaptive sharpness is invariant to invertible loss-preserving scaling.
- Propose ASAM algorithm that alternates between computing a maximizer perturbation and updating weights with a gradient step using the perturbed loss.
- Provide explicit ASAM updates for p=2 and p=∞, with p=2 detailed in Algorithm 1.
- Evaluate ASAM on CIFAR-10/100, ImageNet, and IWSLT’14 DE-EN, comparing against SGD and SAM.
Experimental results
Research questions
- RQ1Does adaptive sharpness provide a stronger correlation with the generalization gap than traditional sharpness?
- RQ2Can a scale-invariant sharpness measure lead to better generalization when used in an optimization objective?
- RQ3Does ASAM improve generalization across diverse architectures and tasks (image classification and machine translation) compared to SAM and SGD?
- RQ4What is the impact of normalization choice (element-wise vs. filter-wise) and p-norm (p=2 vs. p=∞) on ASAM performance?
- RQ5Is ASAM robust to label noise in training data?
Key findings
- Adaptive sharpness is scale-invariant under parameter re-scaling that does not change the loss.
- ASAM yields better generalization than SGD and SAM across CIFAR-10/100 and ImageNet for multiple architectures.
- ASAM improves machine translation BLEU scores on IWSLT’14 DE-EN when combined with Adam compared to Adam and Adam+SAM.
- ASAM demonstrates robustness to label noise, maintaining higher test accuracy than SGD and SAM under varying noise levels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.