Status of the momentum: why the same learning rate cannot be compared directly to the range of updates

An update of the gradient to calculate the two-wheel belt status, distinguishing between the two common movements under the unimodal agreement.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives . 1 first fix

Try to do it after reading

  • Compute a gradient update of the two-wheel belt status
  • Distinction between two common dynamics of a unimodal agreement

Suggested first

  • Gradient and vector calculations

What's left behind the current gradient

The movement accumulates the historical gradient direction into a state, which is used to update the parameters. Signals in the stabilization direction accumulate and may be offset by frequent reversals, thus changing the trajectories. It does not simply magnify the learning rate, nor does it simply look at the current gradient to guess the scale of the wheel; Optimizer status is part of the calculation and must be dealt with together when training is resumed.

Two rounds of definitive updates

The agreed speed equals the old speed of beta plus the current gradient. Target f(w) = w 2/2, initial w = 2, velocity 0, beta = 0.9, learning rate 0.1. First set of gradient 2, velocity 2, parameter to 1.8. Second set of gradients 1.8 with a speed of 0.9 x 2+1.8 = 3.6 and a parameter to 1.44. The normal gradient drops by the same two rounds to 1.62, with different tracks. But this local comparison does not prove that the momentum is always faster or more stable. Historical accumulation may also cause overshocks and shocks, and stabilization ranges require a combination of learning rates, kinetic coefficients and curves.

It's important to get down to the status quo

Another method is to add a new gradient by subtracting beta at an average rate. The range of numerical updates is usually different if the same learning rate is maintained without adjustment. When comparing software with formulae, checks should be made on whether to use the cumulative or average agreement, how the first round status is initialized and whether there is resistance. Under the constant gradient, the non-distorted speed is gradually approaching the gradient divided by a reduction in beta. This case of beta = 0.9 is a ten-fold gradient measure, so the learning rate in this form cannot be considered as the same effective step directly as the figure without a movement.

State recovery and experiments

Recovering weights without losing speed will cause the next update to change suddenly, even if the learning rate is the same as the input. Cross-frame migration also checks whether speed includes learning rates, where weight decays are added, and cannot be based on an equivalent price based on a field named momentum.

Data and Noise

When small batch gradients are noisey, movements may smooth some short-term changes, but they also follow a continuing deviation. If data distribution or targets change suddenly, the old state may be temporarily slow to adapt. The values of cropping, mixing accuracy and gradient accumulation, which in turn affect the sending state, should be clearly updated. Two rounds of condition are checked using a small sample of certainty, which compares the collection and generalization of real training and makes it easier to distinguish between the achievement of differences and methodological effects. A more smooth training curve should not be interpreted directly as a more probabilistic or business strategy.

vt+1=βvt+gt; wt+1=wt−ηvt+1

Self-measurement and provocator

Why is the second round of the case 3.6 instead of 1.8?

It also retains a previous speed of 0.9 times 2 and is therefore 1.8+1.8 = 3.6.

Will recovery of model weights without restoring momentum be accompanied by identical follow-up training?

Usually not. The historical speed involved in the next update changed the algorithm state when it was lost.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Dive into Deep Learning — Momentum
  2. Mathematics for Machine Learning — author textbook

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.