arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14802cs.LGstat.ML
收藏

尺度不变问题中锐度感知最小化的隐式正则化

Implicit Regularization of Sharpness-Aware Minimization for Scale-Invariant Problems

ETH Zurich(苏黎世联邦理工学院)

Bingcong Li, Liang Zhang, Niao He

AI总结:

本文针对尺度不变问题提出均衡度概念,揭示SAM的隐式正则化机制,并据此设计资源高效的BAR方法,在LoRA微调语言模型中节省95%计算开销且提升性能。

摘要:

锐度感知最小化(SAM)提升了各种深度学习任务的泛化能力。受LoRA等流行架构的启发,我们探索了SAM在涉及两组变量的尺度不变问题中的隐式正则化。不同于关注常用的锐度,本文引入了一个称为均衡度的概念,定义为两个变量平方范数之差。这使我们能够刻画SAM更丰富的全局行为。特别地,我们的理论和实证发现表明:i)SAM促进均衡度;ii)对均衡度的正则化是数据响应的——异常值具有更强的影响。后者与实证观察一致,即在存在异常值时SAM优于SGD。利用这一隐式正则化,我们开发了一种资源高效的SAM变体,即均衡度感知正则化(BAR),专为尺度不变问题(如使用LoRA微调语言模型)量身定制。BAR节省了SAM 95%的计算开销,并在RoBERTa、GPT2和OPT-1.3B上的各种任务中提升了测试性能。

英文摘要:

Sharpness-aware minimization (SAM) improves generalization of various deep learning tasks. Motivated by popular architectures such as LoRA, we explore the implicit regularization of SAM for scale-invariant problems involving two groups of variables. Instead of focusing on commonly used sharpness, this work introduces a concept termed balancedness, defined as the difference between the squared norm of two variables. This allows us to depict richer global behaviors of SAM. In particular, our theoretical and empirical findings reveal that i) SAM promotes balancedness; and ii) the regularization on balancedness is data-responsive -- outliers have stronger impact. The latter coincides with empirical observations that SAM outperforms SGD in the presence of outliers. Leveraging the implicit regularization, we develop a resource-efficient SAM variant, balancedness-aware regularization (BAR), tailored for scale-invariant problems such as finetuning language models with LoRA. BAR saves 95% computational overhead of SAM, with enhanced test performance across various tasks on RoBERTa, GPT2, and OPT-1.3B.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑