Exploring Flat Minima for Domain Generalization with Large Learning
Rates
- URL: http://arxiv.org/abs/2309.06337v1
- Date: Tue, 12 Sep 2023 15:55:14 GMT
- Title: Exploring Flat Minima for Domain Generalization with Large Learning
Rates
- Abstract summary: Domain Generalization aims to generalize to arbitrary unseen domains.
One typical method for this task is SWAD, which involves averaging weights along the training trajectory.
We observe that leveraging a large learning rate can simultaneously promote weight diversity and facilitate the identification of flat regions.
- Score: 33.770970763959355
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Domain Generalization (DG) aims to generalize to arbitrary unseen domains. A
promising approach to improve model generalization in DG is the identification
of flat minima. One typical method for this task is SWAD, which involves
averaging weights along the training trajectory. However, the success of weight
averaging depends on the diversity of weights, which is limited when training
with a small learning rate. Instead, we observe that leveraging a large
learning rate can simultaneously promote weight diversity and facilitate the
identification of flat regions in the loss landscape. However, employing a
large learning rate suffers from the convergence problem, which cannot be
resolved by simply averaging the training weights. To address this issue, we
introduce a training strategy called Lookahead which involves the weight
interpolation, instead of average, between fast and slow weights. The fast
weight explores the weight space with a large learning rate, which is not
converged while the slow weight interpolates with it to ensure the convergence.
Besides, weight interpolation also helps identify flat minima by implicitly
optimizing the local entropy loss that measures flatness. To further prevent
overfitting during training, we propose two variants to regularize the training
weight with weighted averaged weight or with accumulated history weight. Taking
advantage of this new perspective, our methods achieve state-of-the-art
performance on both classification and semantic segmentation domain
generalization benchmarks. The code is available at
https://github.com/koncle/DG-with-Large-LR.
Related papers
- Improving Neural Network Training by Decoupling the Magnitude and Direction of Weight Vectors [110.10775872372047]
We propose emphMagnitude-Direction-Direction (MD) Decoupling.<n>It factorizes each weight into a fixed-norm direction on a hypersphere and learnable per-row and per-column magnitude gains, updated at separate learning rates.<n>Across both Adam and Muon, MD Decoupling improves on well-tuned baselines, transfers the optimal LR across model width without retuning, and continues to help at scale on large Mixture-of-Experts models.
arXiv Detail & Related papers (2026-06-24T15:40:26Z) - Beyond Perplexity: A Geometric and Spectral Study of Low-Rank Pre-Training [11.118638230247951]
We show that low-rank methods are not equivalent to full-rank training, nor to one another, even when validation perplexity is close.<n>Low-rank activations diverge from full-rank in later layers as training progresses, with GaLore tracking full-rank most closely.
arXiv Detail & Related papers (2026-05-13T15:11:37Z) - Learning to Learn Weight Generation via Local Consistency Diffusion [30.945131775280792]
We propose Mc-Di, which integrates the diffusion algorithm with meta-learning for better generalizability.<n>Our theory and experiments demonstrate that it can learn from local targets while maintaining consistency with the global optima.<n>We validate Mc-Di's superior accuracy and inference efficiency in tasks that require frequent weight updates.
arXiv Detail & Related papers (2025-02-03T07:13:59Z) - AutoScale: Scale-Aware Data Mixing for Pre-Training LLMs [61.13296177652599]
We show that data mixtures that perform well at smaller scales may not retain their advantage at larger scales.
We propose AutoScale, a two-stage, scale-aware data composition framework.
arXiv Detail & Related papers (2024-07-29T17:06:30Z) - Lookaround Optimizer: $k$ steps around, 1 step average [36.207388029666625]
Weight Average (WA) is an active research topic due to its simplicity in ensembling deep networks and the effectiveness in promoting generalization.
Existing weight average approaches, however, are often carried out along only one training trajectory in a post-hoc manner.
We propose Lookaround, a straightforward yet effective SGD-based generalization leading to flatter minima with better generalization.
arXiv Detail & Related papers (2023-06-13T10:55:20Z) - Exploring Weight Balancing on Long-Tailed Recognition Problem [32.01426831450348]
Recognition problems in long-tailed data, in which the sample size per class is heavily skewed, have gained importance.
Weight balancing, which combines classical regularization techniques with two-stage training, has been proposed.
We analyze weight balancing by focusing on neural collapse and the cone effect at each training stage.
arXiv Detail & Related papers (2023-05-26T01:45:19Z) - PA&DA: Jointly Sampling PAth and DAta for Consistent NAS [8.737995937682271]
One-shot NAS methods train a supernet and then inherit the pre-trained weights to evaluate sub-models.
Large gradient variance occurs during supernet training, which degrades the supernet ranking consistency.
We propose to explicitly minimize the gradient variance of the supernet training by jointly optimizing the sampling distributions of PAth and DAta.
arXiv Detail & Related papers (2023-02-28T17:14:24Z) - Compound Batch Normalization for Long-tailed Image Classification [77.42829178064807]
We propose a compound batch normalization method based on a Gaussian mixture.
It can model the feature space more comprehensively and reduce the dominance of head classes.
The proposed method outperforms existing methods on long-tailed image classification.
arXiv Detail & Related papers (2022-12-02T07:31:39Z) - Adaptive Distribution Calibration for Few-Shot Learning with
Hierarchical Optimal Transport [78.9167477093745]
We propose a novel distribution calibration method by learning the adaptive weight matrix between novel samples and base classes.
Experimental results on standard benchmarks demonstrate that our proposed plug-and-play model outperforms competing approaches.
arXiv Detail & Related papers (2022-10-09T02:32:57Z) - Learning to Re-weight Examples with Optimal Transport for Imbalanced
Classification [74.62203971625173]
Imbalanced data pose challenges for deep learning based classification models.
One of the most widely-used approaches for tackling imbalanced data is re-weighting.
We propose a novel re-weighting method based on optimal transport (OT) from a distributional point of view.
arXiv Detail & Related papers (2022-08-05T01:23:54Z) - Long-Tailed Recognition via Weight Balancing [66.03068252811993]
Naive training produces models that are biased toward common classes in terms of higher accuracy.
We investigate three techniques to balance weights, L2-normalization, weight decay, and MaxNorm.
Our approach achieves the state-of-the-art accuracy on five standard benchmarks.
arXiv Detail & Related papers (2022-03-27T03:26:31Z) - Robust Training of Neural Networks using Scale Invariant Architectures [70.67803417918854]
In contrast to SGD, adaptive gradient methods like Adam allow robust training of modern deep networks.
We show that this general approach is robust to rescaling of parameter and loss.
We design a scale invariant version of BERT, called SIBERT, which when trained simply by vanilla SGD achieves performance comparable to BERT trained by adaptive methods like Adam.
arXiv Detail & Related papers (2022-02-02T11:58:56Z) - AdaScale SGD: A User-Friendly Algorithm for Distributed Training [29.430153773234363]
We propose AdaScale SGD, an algorithm that reliably adapts learning rates to large-batch training.
By continually adapting to the gradient's variance, AdaScale achieves speed-ups for a wide range of batch sizes.
This includes large-batch training with no model degradation for machine translation, image classification, object detection, and speech recognition tasks.
arXiv Detail & Related papers (2020-07-09T23:26:13Z) - AdamP: Slowing Down the Slowdown for Momentum Optimizers on
Scale-invariant Weights [53.8489656709356]
Normalization techniques are a boon for modern deep learning.
It is often overlooked, however, that the additional introduction of momentum results in a rapid reduction in effective step sizes for scale-invariant weights.
In this paper, we verify that the widely-adopted combination of the two ingredients lead to the premature decay of effective step sizes and sub-optimal model performances.
arXiv Detail & Related papers (2020-06-15T08:35:15Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.