NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimization

Haoming Meng, Anton Sugolov, Vardan Papyan

TL;DR

Modern deep networks are built from repeated blocks, yet our optimizers treat each layer as an isolated island. This paper introduces Gradient Smoothing, a simple yet powerful technique that couples updates across depth by averaging them with neighboring layers. This "depth-aware" optimization consistently improves convergence and generalization across LLMs, Vision Transformers, and Diffusion models with negligible computational cost.

What Problem Does This Paper Address?

In architectures like Transformers and ResNets, we stack dozens or hundreds of nearly identical blocks. Recent research has shown that as these models train, their layers don't just learn random things; they develop "alignment," where adjacent layers perform similar transformations and represent data in coordinated ways.

However, standard optimizers (like Adam or SGD) are "depth-blind." They calculate a gradient for Layer 5 and an update for Layer 6 completely independently, ignoring the structural relationship between them. The authors argue that this mismatch between architectural structure and optimization dynamics is a missed opportunity. They ask: If the layers are structurally related, shouldn't their updates be related too?

Methods

The authors propose a framework called Depth-wise Gradient Augmentation. The specific tool they study is Gradient Smoothing.

  1. The Mechanism: Instead of applying the raw update vector $u_\ell$ to layer $\ell$, they replace it with a weighted average of that layer's update and the updates of its immediate neighbors in the stack.
  2. The Math: This is controlled by a smoothing parameter $\alpha$. For a middle layer, the new update is a convex combination: $(1-\alpha)u_\ell + \frac{\alpha}{2}(u_{\ell-1} + u_{\ell+1})$.
  3. Optimizer Agnostic: This isn't a new optimizer; it’s a "wrapper." It sits on top of existing optimizers like AdamW or Muon. It takes the updates the base optimizer produces and "smooths" them across the depth dimension before applying them to the weights.
  4. Normalization: To ensure that smoothing doesn't accidentally shrink the updates too much, they test "Rescaled" and "Directional" versions that maintain the original update's magnitude while only changing its direction to be more aligned with its neighbors.

Datasets

The researchers evaluated Gradient Smoothing across four distinct domains:

  • LLM Reasoning (RLVR): Fine-tuning DeepSeek-R1-Distill-Qwen-1.5B using the Open-RS dataset, evaluated on math benchmarks like AIME24, AIME25, AMC23, and MATH-500.
  • LLM Pretraining: Training GPT-2 style models from scratch using the nanochat recipe.
  • Vision: Training ViT-B/4 on CIFAR-100 using the DeiT recipe.
  • Diffusion: Training U-ViT on CIFAR-10.

Key Insights and Ideas

  • Structured Preconditioning: Mathematically, smoothing acts as a "structured preconditioner." It essentially tells the optimizer to favor update directions that are consistent across the model's depth, which helps stabilize the flow of information.
  • Injecting Inductive Bias: By forcing updates to be similar across layers, the authors are injecting a "depth-regularity" bias early in training. Usually, this regularity only emerges naturally near the end of training; smoothing brings it to the forefront immediately.
  • Representation Linearity: One of the most striking "aha" moments is that smoothing the gradients actually changes the internal geometry of the model. It makes the "trajectories" of tokens through the layers more linear and aligned, suggesting the model organizes its internal logic more efficiently.
  • Variance Reduction: Smoothing acts as a natural noise filter. The authors show it consistently reduces "microbatch gradient variance," leading to more stable training trajectories.

Key Results

The improvements were consistent across every architecture tested, often without any additional hyperparameter tuning:

  • LLM Reasoning: In Reinforcement Learning fine-tuning, Gradient Smoothing boosted average accuracy across math tasks from 53.03% to 57.71%. On the difficult AIME24 benchmark, accuracy jumped from 30.00% to 43.33%.
  • Vision Transformers: On CIFAR-100, the top-1 accuracy of a ViT-B improved from 74.56% to 75.62%.
  • Diffusion Models: The method improved image quality, reducing the FID score (a measure of image realism) from 6.58 to 5.82.
  • Efficiency: Because the operation is a simple tridiagonal matrix multiplication across the number of layers (usually <100), the computational overhead is effectively zero compared to the cost of a standard forward/backward pass.

Limitations and Future Work

  • Hyperparameter Co-optimization: The authors kept all base optimizer settings (like learning rate) the same to prove the method's robustness. However, it's likely that even better performance could be reached if the base optimizer was tuned specifically to work with smoothing.
  • Fixed Smoothing: This paper uses a constant $\alpha$ and a simple local window. Future work could explore adaptive smoothing, where the coupling strength changes over time or varies for different parts of the network (e.g., smoothing attention layers differently than MLP layers).
  • Extreme Scale: While 1.5B parameter models were tested, the behavior on "frontier" models (70B+ parameters) remains an open question, though the authors' theory suggests the benefits might actually increase with depth.

Summary updated

BibTeX
@inproceedings{meng2026gradient,
  author = {Haoming Meng and Anton Sugolov and Vardan Papyan},
  title = {{Gradient Smoothing: Coupling Layer-wise Updates for Improved Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=xOFHGE60fr},
}
Figure