atlas

Research map / Large language models / Language, safety and interpretability

Avoiding spurious sharpness minimization broadens applicability of SAM

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows SAM underperforms AdamW in language modeling because its sharpness reduction is dominated by the logit path, and proposes Functional SAM (perturbing only the Jacobian) plus Adam preconditioning, which improves C4 language modeling across model sizes.

Problem

Sharpness Aware Minimization (SAM) improves generalization in vision but degrades performance in language modeling, even with twice the compute of AdamW. The paper asks why and how to make sharpness minimization work for NLP.

Approach

Decomposes the SAM sharpness gradient into a logit path (via GGN) and a functional path (via functional Hessian), finds the logit path dominates in language modeling, and proposes Functional SAM, which perturbs only the network Jacobian, plus preconditioning the perturbation with Adam's second-moment matrix.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use funcSAM with AdamW preconditioning instead of AdamWNanodo Transformer · C4, 23.9M–1208M, fixed-length trainingeval loss: 3.57 -> 3.53; 3.45 -> 3.41; 3.28 -> 3.25; 3.08 -> 3.05Helped
Use funcSAM with AdamW preconditioning instead of AdamWNanodo Transformer · C4, 23.9M–1208M, Chinchilla-style trainingeval loss: 3.69 -> 3.63; 3.45 -> 3.41; 3.12 -> 3.10; 2.63 -> 2.61Helped
Use SAM instead of AdamWNanodo Transformer · C4 language modelingeval loss: 3.57 -> 3.59; 3.45 -> 3.46; 3.28 -> 3.29Hurt
Add preconditioning to funcSAM (ablation)funcSAM · C4, 2M, fixed-lengtheval loss: 3.88 -> 3.86Helped
Add preconditioning to SAM (ablation)SAM · C4, 2M, fixed-lengtheval loss: 3.91 -> 3.89Helped
Replace GeLU with ReLU (ablation)Preconditioned funcSAM · C4, 2Meval loss: 3.8614 -> 3.8777Mixed
Increase the SAM perturbation radius beyond the best small radius (ablation)SAM · C4 language modelingeval lossHurt
Warm up the perturbation radius (ablation)Preconditioned SAM and SAM · C4, 1208M, fixed-lengtheval loss: 3.07; 3.08Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4 ImageNet-1K JFT ImageNet-21K

Benchmarks: C4 validation loss

Metrics: evaluation loss maximum Hessian eigenvalue Hessian trace GGN trace one-shot pruning degradation

Baselines: AdamW SAM preconditioned SAM

Builds on: Sharpness Aware Minimization Adam Nanodo Chinchilla scaling laws Fisher SAM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy