The Tamed Subgradient Unadjusted Langevin Algorithm beyond Convexity

Iosif Lytras, Nikolaos Makras, Sotirios SabanisarXiv 2026

TL;DR

This paper introduces SG-TULA (Subgradient Tamed Unadjusted Langevin Algorithm), a stable and explicit sampling algorithm designed for complex, non-convex, and non-smooth landscapes with exploding gradients. It achieves a state-of-the-art $O(\lambda^{1/4})$ convergence rate in Wasserstein-2 distance without relying on computationally expensive smoothing techniques. When applied to Large Language Model (LLM) pretraining, a boosted variant of the algorithm performs competitively against heavily tuned industry standards like AdamW and Muon.

What Problem Does This Paper Address?

In machine learning theory, optimization and sampling algorithms are traditionally analyzed under comfortable assumptions: globally Lipschitz gradients (smoothness) and convexity. However, modern deep learning architectures completely shatter these assumptions. Consider a standard transformer network:

  1. Superlinear Gradient Growth: The composition of multiple layers causes gradients to grow polynomially with depth, leading to exploding gradients.
  2. Non-smoothness: Activation functions like ReLU introduce sharp discontinuities where gradients are undefined, forcing the use of subgradients.
  3. Non-convexity: The loss landscapes of deep networks are notoriously complex and full of local minima.

While practitioners use heuristics like gradient clipping to keep training stable, theorists have struggled to provide non-asymptotic convergence guarantees when all three of these challenges—non-smoothness, superlinear growth, and non-convexity—occur simultaneously. This paper bridges that gap.

Methods

The authors propose the Subgradient Tamed Unadjusted Langevin Algorithm (SG-TULA). It is an explicit Euler–Maruyama discretization of Langevin diffusion that operates directly on a measurable selection of subgradients ($h \in \partial u$).

To prevent the numerical instability caused by superlinear gradient growth, the algorithm introduces a taming mechanism. Instead of using a hard threshold like traditional gradient clipping, taming continuously rescales the drift based on the step size $\lambda$:

$$h_\lambda(x) = \frac{h(x) - \mu x}{1 + \lambda^{1/2}|h(x) - \mu x|} + \mu x$$

As the step size $\lambda$ approaches zero, $h_\lambda$ naturally converges back to the true subgradient $h$, ensuring the discretization remains faithful to the underlying continuous dynamics. The authors analyze both a uniform-wise variant (SG-TULAu) and a coordinate-wise variant (SG-TULAc), alongside a boosted version (SG-TheoPouLA) designed to combat vanishing gradients in deep networks.

Datasets

The practical utility of the algorithm was evaluated by pretraining nanochat (a compact transformer language model in the GPT-2 lineage developed by Andrej Karpathy). The model was trained using the ClimbMix-400B corpus, a large-scale dataset mixture designed for language model pretraining.

Key Insights and Ideas

  • Taming vs. Clipping: Traditional gradient clipping requires a fixed threshold and displaces the gradient by an amount that does not vanish as the step size is refined. Taming scales dynamically with the step size, providing a mathematically cleaner foundation for non-asymptotic analysis.
  • Theoretical Superiority: SG-TULA improves the theoretical convergence rate in Wasserstein-2 ($W_2$) distance to $O(\lambda^{1/4})$, a significant leap over the previous best subgradient-based rate of $O(\lambda^{1/8})$.
  • Depth Dictates Growth: The authors mathematically prove that the curvature bound of a transformer potential scales polynomially with an exponent of $12L+2$ (where $L$ is depth). This confirms that superlinear gradient growth is an inherent consequence of network depth, theoretically justifying the necessity of taming mechanisms.

Key Results

The paper provides a comprehensive theoretical comparison against existing Langevin schemes, demonstrating that SG-TULA achieves the best known rate for non-smooth, superlinear, and non-convex potentials simultaneously:

Convergence rates for related Langevin schemes showing SG-TULA's $O(\lambda^{1/4})$ rate.

In practical LLM pretraining benchmarks on nanochat at depth $L=12$, the boosted coordinate-wise variant (SG-TheoPouLA) achieved impressive empirical results:

  • Validation Bits-Per-Byte (bpb): Achieved 0.8163, outperforming both finely tuned AdamW (0.8254) and Muon (0.8199).
  • Downstream Accuracy (CORE score): Reached a competitive 0.1715, matching or exceeding the baselines.

At a greater depth of $L=24$, SG-TheoPouLA remained highly competitive with a validation bpb of 0.7133 (compared to AdamW's 0.7167 and Muon's 0.7067), proving its viability for scaling.

Limitations and Future Work

  • Exponential Temperature Dependence: In the general non-convex setting, the sampling bounds scale exponentially with the inverse temperature $\beta$ due to the difficulty of mixing between distant modes. While this can be relaxed to polynomial dependence under a Polyak–Łojasiewicz (PL) condition, avoiding it entirely remains an open challenge.
  • Lack of Scaling Laws: While AdamW and Muon benefit from well-established hyperparameter scaling laws as models grow, the optimal configurations for the boosted tamed map at larger depths ($L=24$) had to be found via manual tuning. Quantifying a formal scaling law for SG-TULA variants is a key direction for future work.

Summary updated

BibTeX
@misc{lytras2026tamed,
  author = {Iosif Lytras and Nikolaos Makras and Sotirios Sabanis},
  title = {{The Tamed Subgradient Unadjusted Langevin Algorithm beyond Convexity}},
  year = {2026},
  eprint = {2608.06283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.06283},
}
Figure