RMSProp: Why should the history of the square gradient fade

Calculates the average square gradient status of the index, explaining the effective memory under the non-stable gradient.

• 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

  • Calculate the average index square gradient status
  • Explain effective memory under a flat gradient

Suggested first

  • Gradient and vector calculations

From permanent accumulation to decaying memory

RMSProp uses index average rather than permanent search and record gradient squares to try to keep denominators following the closer scale. The impact of the older information is gradually reduced over the longer history of the factor of decay per wheel. It is not a normal sample variance for the estimation of gradients, since the mean square value is not subtracted from the mean square; Some of the central variants would have to deal with this part separately.

Single-coordinate three-wheel status

Beta = 0.9, initial status 0, gradient 2 first. The first round of squares averaged 0.4, with a level of 2/sqrt(0.4), or about 3.1623, for the unicoded gradient when negligible. The learning rate of 0.1 corresponds to an updated range of about 0.31623 and cannot be extrapolated to 0.2 based on the original gradient 2. (a) A second gradient of 0 and a state decay to 0.36, and the parameters are not moved by the zero gradient in the current cycle; The third round of the gradient was again 2 and the status was 0.9 x 0.36 + 0.1 × 4 = 0.724. It is different from the square sum of AdaGrad, as the old contribution in the middle has been gradually discounted.

First round with numerical agreement

Zero at the beginning affects the early denominators, and the alternative correction depends on algorithms and realizations. Very small amounts vary before and after root numbers, especially when the gradient is very small. The two pools cannot be considered to produce a consistent output based on the zillion beta and the learning rate alone.

Forget it fast or slow

Large beta retained a longer history and a more smooth state, but a slower adaptation to the new scale; A smaller beta is more sensitive and may also cause denominator fluctuations. The intuition of effective memory cannot substitute for precise weights, and the old gradient has contributed several times after several rounds, rather than suddenly expired. If there are strong cycles in the sequence of data, the status may also follow the cycle rather than the estimation of fixed overall attributes.

Training agreement

These configurations should be clear when different variables can be formed in combination with momentum, centralization or weight decline. The gradient crop changes the cumulative information before or after the square state is updated. If the gradient is sent under the mix, which has not been inversed, the denominator and the range of steps may deviate completely from expectations. RMSProp provides for alignment by coordinates and does not guarantee resolution of saddle points, error gradients or inappropriate targets. A check of the status with a deterministic sequence should be used before real training curves and independent mission indicators are examined. The preservation of a square average and optional motion state at the time of the resumption of training is necessary in order to avoid a seemingly normal breakpoint that alters the memory of the optimist.

vt=βvt−1+(1−β)gt2

Self-measurement and provocator

Is the square average going to zero?

No, this example has been reduced from 0.4 to 0.36, and old memories still exist.

Is RMSProp status the gradient?

Usually not. The basic form records the average index of the square, without subtracting the average gradient square.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. PyTorch — RMSprop
  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.