尽管使用锐度感知最小化(SAM)训练的模型取得了很高的经验泛化性能,但其锐度并不总是与泛化误差相关。本文不再将 SAM 视为通过最小化锐度来提升泛化,而是基于 SAM 的训练动力学提出一种新视角。我们认为,SAM 中的扰动执行的是受扰遗忘:它们丢弃不期望的模型偏差,从而呈现出泛化能力更好的学习信号。我们将这一遗忘概念与信息瓶颈原则联系起来,用它解释诸如较小扰动批次具有更好泛化性等观察结果,并表明受扰遗忘与泛化的相关性可能强于平坦度。标准 SAM 针对由最速上升方向暴露的模型偏差,而我们提出一种新的扰动,针对通过模型输出暴露的偏差。我们的输出偏差遗忘扰动在 ImageNet、鲁棒性基准以及迁移到 CIFAR-{10,100} 的任务上优于标准 SAM、GSAM 和 ASAM,同时有时会收敛到更尖锐的区域。结果表明,SAM 的收益可由不需要损失曲面平坦性的替代机制原则解释。
英文摘要:
Despite attaining high empirical generalization, the sharpness of models trained with sharpness-aware minimization (SAM) do not always correlate with generalization error. Instead of viewing SAM as minimizing sharpness to improve generalization, our paper considers a new perspective based on SAM's training dynamics. We propose that perturbations in SAM perform perturbed forgetting, where they discard undesirable model biases to exhibit learning signals that generalize better. We relate our notion of forgetting to the information bottleneck principle, use it to explain observations like the better generalization of smaller perturbation batches, and show that perturbed forgetting can exhibit a stronger correlation with generalization than flatness. While standard SAM targets model biases exposed by the steepest ascent directions, we propose a new perturbation that targets biases exposed through the model's outputs. Our output bias forgetting perturbations outperform standard SAM, GSAM, and ASAM on ImageNet, robustness benchmarks, and transfer to CIFAR-{10,100}, while sometimes converging to sharper regions. Our results suggest that the benefits of SAM can be explained by alternative mechanistic principles that do not require flatness of the loss surface.
Flattening Sharpness for Dynamic Gradient Projection Memory Benefits Continual Learning
The Chinese University of Hong Kong(香港中文大学);Shenzhen Institute of Advanced Technology(深圳先进技术研究院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Chinese Academy of Sciences(中国科学院);Tianjin University(天津大学)
The Normalization Method for Alleviating Pathological Sharpness in Wide Neural Networks
AIST(产业技术综合研究所);RIKEN CBS(理化学研究所脑科学中心)
规范化方法在提高深度学习性能方面发挥着重要作用,但其理论认识有限。为了从理论上阐明规范化的有效性,我们量化了由费舍尔信息矩阵(Fisher information matrix)确定的参数空间的几何形状,这也对应于在某些条件下损失景观的局部形状。我们分析了具有随机初始化的深度神经网络,当网络变得足够宽时,它会遭受病态的尖锐形状。我们发现,在最后一层的批量归一化有助于大幅降低这种病理锐度,如果宽度和样本数满足特定条件。相比之下,在许多设置中,中间隐藏层中的批量归一化难以减轻病理性锐度。我们还发现,层归一化也不能减轻病理性锐度。因此,我们可以得出结论,最后一层中的批量归一化显著有助于降低由噪声引起的锐度。
University of Tübingen(蒂宾根大学);Tübingen AI Center(蒂宾根人工智能中心);University of Oxford(牛津大学);LIONS, EPFL(洛桑联邦理工学院 LIONS 实验室);AGI Foundations, Amazon(亚马逊 AGI 基金会)
Training Diagonal Linear Networks with Stochastic Sharpness-Aware Minimization
Simons Institute for the Theory of Computing University of California, Berkeley(Simons理论计算研究所 加州大学伯克利分校);Faculty of Mathematics Ruhr University Bochum(数学系 比尔特蒙大学);Faculty of Electrical Engineering, Mathematics, and Computer Science University of Twente(电子工程、数学和计算机科学系 特文特大学)
Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Models
Institute of Image Processing and Pattern Recognition, School of Automation and Intelligent Sensing, Shanghai Jiao Tong University(图像处理与模式识别研究所,自动化与智能感知学院,上海交通大学);MoE Key Laboratory of System Control and Information Processing (Shanghai)(系统控制与信息处理MOE重点实验室(上海))
Membership Privacy Risks of Sharpness Aware Minimization
Department of Computer Science(计算机科学系);Purdue University(普渡大学);Delft University of Technology(代尔夫特理工大学);Department of Industrial and Systems Engineering(工业与系统工程系);University of Southern California(南加州大学)
Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy
School of Mathematics and Statistics(数学与统计学院);Xi’an Jiaotong University(西安交通大学);Centrum Wiskunde & Informatica(国家数学和计算机科学研究院( Centrum Wiskunde & Informatica))
针对 SAM 易陷入鞍点且有效学习率区间有限的问题,本文提出轻量重归一化方法 SSAM,扩展有效学习率区间并在多个数据集和任务上稳定提升性能。
FedSCAM (Federated Sharpness-Aware Minimization with Clustered Aggregation and Modulation): Scam-resistant SAM for Robust Federated Optimization in Heterogeneous Environments
Department of Computer Science, Lahore University of Management Sciences, Lahore, Pakistan(计算机科学系,拉合尔管理科学大学,拉合尔,巴基斯坦)
Efficient Sharpness-aware Minimization for Improved Training of Neural Networks
Centre for Frontier AI Research (CFAR), A*STAR(新加坡科技研究局前沿人工智能研究中心);National University of Singapore(新加坡国立大学);Institute of High Performance Computing (IHPC), A*STAR(新加坡科技研究局高性能计算研究所)
过度参数化的深度神经网络(DNN)通常可以实现惊人的性能,但可能会导致严重的泛化误差。最近,Foret et al.(2020)建立了损失景观的清晰度与泛化误差之间的关系,其中提出了SharpingAware Minimizer(SAM)来减轻泛化的退化。不幸的是,SAM的计算成本大约是基本优化器(如随机梯度下降(SGD))的两倍。因此,本文提出了高效的共享感知最小化器(ESAM),它提高了SAM的效率,而不牺牲其泛化性能。ESAM包括两种新颖有效的训练策略--随机权值扰动和锐度敏感数据选择。在前者中,通过在每次迭代中扰动随机选择的权重集来近似锐度度量;在后者中,仅使用对锐度敏感的明智选择的数据子集来优化SAM损失。我们提供了理论解释,为什么这些策略表现良好。我们还通过对CIFAR和ImageNet数据集的广泛实验表明,ESAM比SAM提高了效率,从需要100%的额外计算到相对于基本优化器的40%,同时保持甚至提高了测试准确度。
TRAM: Bridging Trust Regions and Sharpness Aware Minimization
University of Edinburgh(爱丁堡大学);Kempner Institute, Harvard University(哈佛大学肯普纳研究所);Allen Institute for AI(艾伦人工智能研究所);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
Towards Understanding The Calibration Benefits of Sharpness-Aware Minimization
Northwestern Polytechnical University(西北工业大学);SGIT AI Lab, State Grid Corporation of China(国网SGIT人工智能实验室);Xi’an Jiaotong University(西安交通大学);ETH Zürich(苏黎世联邦理工学院);Chinese University of Hong Kong(香港中文大学)
Stability Analysis of Sharpness-Aware Minimization
Chung-Ang University, South Korea(Chung-Ang 大学,韩国);Korea Institute for Advanced Study, South Korea(韩国高级研究院);Ulsan National Institute of Science(乌山国家科学研究院);Nanyang Technological University (NTU), Singapore(南洋理工大学(NTU),新加坡);Seoul National University, South Korea(首尔国立大学,韩国)
VASSO: Variance Suppression for Sharpness-Aware Minimization
Department of Computer Science at ETH Zürich(苏黎世联邦理工学院计算机科学系);Department of Electrical and Computer Engineering, University of Minnesota(明尼苏达大学电气与计算机工程系)
Gradient Compression May Hurt Generalization: A Remedy by Synthetic Data Guided Sharpness Aware Minimization
Department of Information and Communication Engineering, Zhejiang University(浙江大学信息与通信工程学院);Zhejiang Provincial Key Laboratory of Multi-Modal Communication Networks and Intelligent Information Processing(浙江省多模态通信网络与智能信息处理重点实验室);Department of Electrical and Computer Engineering, North Carolina State University(北卡罗来纳州立大学电子与计算机工程系)
Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimization
CSMT, Wenzhou-Kean University(温州肯恩大学计算机科学与技术学院);International Frontier Interdisciplinary Research Institute, Wenzhou-Kean University(温州肯恩大学国际前沿交叉学科研究院)