Papers
Topics
Authors
Recent
Search
2000 character limit reached

Logarithmic-Time Weight-Decay

Updated 6 February 2026
  • The topic introduces logarithmic-time weight-decay, where sublinear L2 regularization decay aligns with information-theoretic and optimization principles to improve training efficiency.
  • It details reciprocal (1/t) and logarithmic decay schedules that, with a warmup phase, prevent singularities and maintain stability in gradient updates.
  • Empirical studies show that this approach yields 10–15% compute savings and robust performance across scales, especially in training language models.

Logarithmic-time weight-decay refers to a class of weight-decay schedules in which the L2L_2-regularization coefficient decays sublinearly, typically either as $1/t$ or as a negative power of the logarithm of the training step, i.e., λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}. Such schedules are motivated both by statistical properties of language and optimization-theoretic considerations, and have demonstrated empirical efficiency gains in large-scale deep learning—especially in LLM training—relative to conventional constant-coefficient schemes (Ferbach et al., 5 Feb 2026, Richemond et al., 2019).

1. Standard Weight-Decay in Deep Nets

Standard practice with modern deep learning optimizers such as AdamW is to maintain an exponential moving average of past gradients (β1\beta_1), their squares (β2\beta_2), and to apply a decoupled L2L_2 weight-decay term with fixed strength λ\lambda at every step. The canonical AdamW update, omitting bias corrections, is: mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned} where γ(t)\gamma(t) is a scheduled learning rate, γ\gamma^* its peak, and $1/t$0 a numerical stabilizer. Across large-scale training tasks, $1/t$1 are almost always held constant (e.g., $1/t$2, $1/t$3, $1/t$4) (Ferbach et al., 5 Feb 2026).

2. Logarithmic-Time Weight-Decay Schedules

Logarithmic-time (log-time) weight-decay schedules replace the fixed $1/t$5 with a function that decays slowly over the course of training. The most common instantiation is the reciprocal rule: $1/t$6 where $1/t$7 is a scale-invariant hyperparameter. To avoid singularities at early steps ($1/t$8), a "warmup" of $1/t$9 is introduced (λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}0 = total training iterations), giving: λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}1 This schedule corresponds to an exponential decay per unit of log-time, i.e., under the substitution λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}2, λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}3, and thus implements a constant attenuation in logarithmic time (Ferbach et al., 5 Feb 2026). An alternative, closely connected to statistical physics models of neural loss landscapes, is: λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}4 with λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}5 and λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}6 as hyperparameters (Richemond et al., 2019).

Schedule Type Formula for λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}7 Hyperparameters
Reciprocal ("1/t") λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}8 λ(t)[log(1+t/τ)]γ\lambda(t) \propto [\log(1 + t/\tau)]^{-\gamma}9, β1\beta_10
Logarithmic β1\beta_11 β1\beta_12, β1\beta_13, β1\beta_14
Power-law β1\beta_15 β1\beta_16, β1\beta_17

Both styles achieve a gradual reduction in regularization, matching the decaying information gain and improved signal-to-noise ratio as learning progresses.

3. Theoretical Motivation: Information-Theoretic and Optimization Perspectives

(a) Power-law Context Memory in Language

Information-theoretic studies (Shannon 1951, Hilberg 1990, Takahira 2016) establish that reductions in per-token uncertainty from increasing context length β1\beta_18 follow a power law, i.e., β1\beta_19 with β2\beta_20. This implies each additional token yields diminishing information, with an effective context horizon that grows sublinearly. Consequently, regularization early in training should be much stronger than late, aligning with the 1/t decay (Ferbach et al., 5 Feb 2026).

(b) Complexity-Matched Weight-Decay

From a statistical physics viewpoint, the loss surface of heavily overparameterized deep nets exhibits isotropic Gaussian properties with critical-point complexity β2\beta_21, a quadratic form in the normalized energy (loss) β2\beta_22 and average Hessian eigenvalue β2\beta_23. Complexity gradient descent prescribes that both energy and penalty decay in lockstep, yielding a "matched" schedule for weight-decay. This justifies closing the form of β2\beta_24 to mirror that of the learning rate, typically via logarithmic or power-law schedules (Richemond et al., 2019).

(c) Riemann-Sum Attenuation

Log-time schedules for β2\beta_25 ensure that each geometric window β2\beta_26 contributes with constant attenuation to the parameter update, as opposed to the exponential attenuation of fixed β2\beta_27, thus better matching the power-law decay in information content (Ferbach et al., 5 Feb 2026).

4. Stability Properties and Coupling to Momentum

Logarithmic-time weight-decay, when used alone, introduces no novel instabilities to AdamW or SGD. The simple reciprocal rule β2\beta_28 requires no damping or adjustment for numerical stability. When pairing log-time decay of β2\beta_29 with time-varying momentum hyperparameters L2L_20—as in the "ADANA" optimizer—exact coordination and shared warmup offsets (L2L_21) across schedules are required to maintain stability and prevent the gradient-momentum balance from being overwhelmed. However, for weight-decay alone, these constraints are relaxed (Ferbach et al., 5 Feb 2026).

5. Empirical Effects and Efficiency Gains

Implementing 1/t weight-decay within AdamW for decoder-only transformers ("Enoki" models) trained on the FineWeb corpus (Chinchilla regime: 20 tokens/parameter) yields consistent empirical gains:

  • Optimal L2L_22 is scale-invariant: A single L2L_23 (determined by a small-scale sweep, e.g., 6-head model) is near-optimal for model sizes from L2L_24 to L2L_25 parameters.
  • Compute-efficiency improvement: For identical validation loss, L2L_26–L2L_27 compute savings over fixed-weight-decay AdamW—quantified as

L2L_28

where L2L_29 is compute required by constant λ\lambda0, and λ\lambda1 by log-time decay.

  • Efficiency gains increase slightly with model scale: λ\lambda2 at λ\lambda3 parameters to λ\lambda4 at λ\lambda5.
  • Robustness: The same warmup offset λ\lambda6 suffices, no hyperparameter re-tuning required for different model sizes, and the gains persist under optimizer replacement (e.g., AdEMAMix: λ\lambda7–λ\lambda8 savings) (Ferbach et al., 5 Feb 2026).

6. Implementation and Practical Guidelines

To deploy logarithmic-time weight-decay:

  • Use decoupled WD (AdamW-type), not inline "L2 regularization."
  • Schedule: λ\lambda9, prefer mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}0.
  • Choose mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}1 on a small model, retain this value across scales.
  • Retain conventional values for mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}2, batch size, and learning-rate schedule.
  • If time-varying mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}3 are employed, all schedules must share the same mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}4.
  • Warmup offset mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}5 is essential to avoid instability at mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}6 (Ferbach et al., 5 Feb 2026).

For SGD-style training, matched logarithmic or power-law scheduling is easily implemented:

γ(t)\gamma(t)0

7. Summary and Outlook

Logarithmic-time weight-decay—with representative formula mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}7—aligns the optimizer's regularization schedule with the power-law memory structure of natural language and the dynamics predicted by complexity-based loss landscape analysis. It is a computationally effective, scalable, minimally invasive modification requiring only a single transferable hyperparameter, and consistently provides mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}8–mt+1=β1mt+(1β1)gt+1 vt+1=β2vt+(1β2)gt+12 θt+1=θtγ(t)[γmt+1vt+1+ϵ+λθt]\begin{aligned} m_{t+1} &= \beta_1 m_t + (1 - \beta_1) g_{t+1} \ v_{t+1} &= \beta_2 v_t + (1 - \beta_2) g_{t+1}^2 \ \theta_{t+1} &= \theta_t - \gamma(t)\left[\gamma^* \frac{m_{t+1}}{\sqrt{v_{t+1} + \epsilon}} + \lambda \theta_t\right] \end{aligned}9 reductions in training compute across transformer scales. This scheme requires no novel stabilization measures, can be incorporated as a drop-in to AdamW and related optimizers, and serves as a robust baseline for further advances in adaptive weight-decay scheduling (Ferbach et al., 5 Feb 2026, Richemond et al., 2019).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Logarithmic-Time Weight-Decay.