Revisiting Random Weight Perturbation for Efficiently Improving Generalization

Tao Li, Qinghua Tao, Weihao Yan, Zehao Lei, Yingwen Wu +3 more
3/30/2024
cs.LG

Official code: nblt/mARWP (12 stars, last commit 2024-10-18).

Abstract

Improving the generalization ability of modern deep neural networks (DNNs) is a fundamental challenge in machine learning. Two branches of methods have been proposed to seek flat minima and improve generalization: one led by sharpness-aware minimization (SAM) minimizes the worst-case neighborhood loss through adversarial weight perturbation (AWP), and the other minimizes the expected Bayes objective with random weight perturbation (RWP). While RWP offers advantages in computation and is closely linked to AWP on a mathematical basis, its empirical performance has consistently lagged behind that of AWP. In this paper, we revisit the use of RWP for improving generalization and propose improvements from two perspectives: i) the trade-off between generalization and convergence and ii) the random perturbation generation. Through extensive experimental evaluations, we demonstrate that our enhanced RWP methods achieve greater efficiency in enhancing generalization, particularly in large-scale problems, while also offering comparable or even superior performance to SAM. The code is released at https://github.com/nblt/mARWP.

View on arXivView PDF

Code Implementations(1)

nblt/mARWPOfficial100%

[TMLR 2024] Revisiting Random Weight Perturbation for Efficiently Improving Generalization

121Shell, PythonMar 21, 20242 years ago

Similar Papers

Cite this paper

@article{li2024revisiting,
  title  = {Revisiting Random Weight Perturbation for Efficiently Improving Generalization},
  author = {Tao Li and Qinghua Tao and Weihao Yan and Zehao Lei and Yingwen Wu and Kun Fang and Mingzhen He and Xiaolin Huang},
  year   = {2024},
  eprint = {2404.00357},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00357v1}
}

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/2404.00357.svg)](https://codeofpaper.com/paper/2404.00357)

Discussion