Weight decay with L2: Why not equal prices after adjustment to scaling

Put the target on the ground. w Two-two, which increases the gradient. w 。

Thematic shorts • In-depthCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives 2 first fixes

Try to do it after reading

  • Compare punishment gradient with independence decay
  • Manual update on fixed preconditioner

Suggested first

  • Vector and Matrix Operations
  • Counts and chain rules

The same coefficient does not necessarily mean the same update

Put the target on the ground. w Two-two, which increases the gradient. w 。 Another approach would be to multiply the weight directly by a factor slightly less than one. (a) General, non-moveable SGD which can be written into the same update under specific parameters; When self-adaptation preconditionors exist, the punishment gradient may also be scaled and the loss of independence may not necessarily pass through the same route.

Use fixed scalar preconditioner 4, not full Adam. With w=2, data gradient 3, rate 0.1 and λ=0.1, coupled L2 gives 3.2/4 and updates to 1.92. Decoupled decay uses gradient 3/4, then subtracts 0.1×0.1×2, giving 1.905.

The results differ because λw is also divided by 4 in the coupled method. Real Adam adds momentum, second moments and bias correction, so differences depend on history. This example isolates one structural distinction, not which method will improve a real model.

Without preconditioning and with the same λ convention, both give 2−0.1×(3+0.2)=1.68. Equivalence depends on optimizer and parameterization. Some implementations define decay as a per-step multiplier without a learning-rate factor, making configuration values nonportable. Inspect update equations, not just names.

It is also important to identify which parameters are accepted for decay. (b) The preference, unipolation and the use of different argument groups in Embedding in some programmes; This is an experimental design and should be documented rather than claimed to have a single generic rule. Parameters that have been misdirected into two groups, omitted a layer or mishandled after freezing may leave the cross-references unexplainable.

The self-adaptation pre-conditions apply different scales to different parameters, so that the penalty gradient is placed in the pre-conditioner and the parameters are reduced independently from the update, usually at no equivalent price. The framework should be used to check the schedules of releases, argument groups and learning rates, as the cumulative effect of each step of decay is also influenced by the number of training steps.

When training is interrupted and restored, the history of the optimist is also preserved, and the single recovery parameter cannot re-establish the trajectories of the coupon after its self-adaptation. The first step against the update and the results after several steps are worth recording.

Why is the decline in the coupling case even less?

The penalty gradient in this particular case was narrowed by the fixed preconditioner 4; This is not a general numerical conclusion of any true self-adaptation.

Does a smaller weighting rule necessarily mean more generalization?

Not necessarily, the parameters are influenced by parameterization and reclassification, and the targeted effects need to be compared under an independent validation agreement.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Decoupled Weight Decay Regularization
  2. CS231n — Setting up the data and model

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.