Stop-gradient: The target branch is fixed by the gradient path

Stop-gradient retains a forward value but does not transmit a path upstream when it is reversed.

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

  • Distinguishing the stop gradient from the stop value update
  • Interpret independent update rules for target encoder

Suggested first

  • Inner vectors & Parameters
  • Classified loss and gradient

Both branches are not necessarily updated by the same loss

Stop-gradient retains a forward value but does not transmit a path upstream when it is reversed. It does not set the vector at zero, nor does it permanently freeze all the relevant targets. The target encoder may not receive the current loss gradient, but may be updated by another rule such as moving the average.

Description by volume: p = w, target t = v, loss L = (p−stop(t)) 2/2. w = 2, v = 5, loss is 4.5, w gradient −3, and v is 0 along this path gradient. If stop is not available, the v gradient is 3. The forward values are exactly the same, and the parameters are updated in different ranges.

If the target parameter is v_new = 0.9 v+0.1 w, then the original w = 2, v =5 get 4.7. This is a visible state update, not a gradient from the loss just now on v. Actual algorithms that indicate whether the online parameters are used prior to or after updating, as well as the average time to move, cannot simply state that “target network is not trained”.

The mechanism cannot be separated from the full algorithm

BYOL and SimSiam have specific designs in terms of structure, forecast head and target update, and cannot be used as the same method because they all involve stop-gradient. Stopping the gradient itself is not a universal tenet against collapse under any data and structure. It should be understood in the light of the complete terms of the original paper and the experimental discussions.

Sharing parameters would make the problem more subtle. A parameter may still be updated if it is present in another path that has not been stopped; Only on one output is detach, which does not mean that the entire module is frozen. It is necessary to draw the parameter object with all the paths used, not just the name of the module.

The error allows the two branches to check for the gradient to be empty or zero, respectively, and to perform a step-by-step update of the comparison parameters. The constant value may be due to a learning rate of 0, a freeze or an actual gradient of 0, which cannot be reversed from the results of a single step. The average mobile update should be tested separately for arithmetic.

This section uses the concept of the gradient boundary of the original paper, 4.5, 1-3, 3 and 4.7. Storage aliases for different frames detach or stop_gradient should be checked and memory should not be extrapolated from mathematical symbols.

Does stop(t) make forward target 5 zero?

No, the forward is still five, and only the reverse contribution of the path is blocked.

The target branch does not have a loss gradient. Why are parameters still subject to change?

Updates may be made by moving averages or other visible status rules, requiring separate records of the updates.

Target branches may also include non-parametric states, such as statisticalization. The average movement of parameters does not automatically indicate how these state(s) are updated and should be examined separately by specific algorithms at the time of recurrence, avoiding treating the entire state as the same rule.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Bootstrap Your Own Latent: BYOL
  2. Exploring Simple Siamese Representation Learning: SimSiam

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.