Parameter group: How different layers of step are used

Relocation learning may lead to lower learning rates for the base and faster updates of new tasks; It may also apply only a partial decay of weight.

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

Try to do it after reading

  • Updates of different learning rates by hand
  • Audit omission and duplication of parameters group

Suggested first

  • Python Basic Syntax:
  • Thick shape with Index

The tiered learning rate requires a list of objects, not just a configuration

Relocation learning may lead to lower learning rates for the base and faster updates of new tasks; It may also apply only a partial decay of weight. This is usually expressed through the argument group. What group does a parameter actually belong to? It is more important than how many group names are written in the configuration file. The group conditions also need to be re-audited after the model structure has changed.

Both metric parameters are set from 1 and the data gradient is 2. Base learning rate 0.01, head learning rate 0.1, with no momentum and decay being used. One update was 0.98 and 0.8, respectively. They share the same loss and do not require the same step length; However, this is already a well-defined layered updating programme, which should be retained in the experimental records.

If the parameter does not enter any group, even if grad exists, it may not be updated by this optimizer. In the event of accidental repetition, conventional realization may be rejected or warned that a particular performance cannot be relied upon to define the algorithm of “repeating twice” or “updating twice”. The intersection and combination of inspection teams can be identified directly by omissions and repetitions.

Grouping by name is prudent. Changing a module name, adding prefixes or sharing parameters may render string rules ineffective. The shared parameters have only one object and should not be treated as two separate weights, even if visited from two modules. The identity and name of the object are worth recording.

The learning rate scheduler may function in multiple groups, and the sequence of the groups and related status will also need to be matched to the training. A separate load and re-establishment of an optimist for a different group does not constitute a continuation of the original training. There should also be a clear strategy for the historical movement of the re-freezing parameters once frozen.

The scope of application is based on a parameter object model for training and Module management information. This document is only two standard TAQ updates for SGD. The actual code can print the number of parameters, learning rates, decays and representative names for each group and be verified by a small step of the actual parameter deviation.

The same gradient is updated by two learning ratesBoth parameters are initially one, gradient two, small learning rate updated to 0.98, and large learning rate updated to 0.08.Backbone η=0.01: 1 → 0.98Head η=0.1: 1 → 0.8Line length is drawn by parameter change volume and does not contain momentum or decay
Updated rules for both sets of parameters require explicit registration and cannot be inferred by name alone.
grad does not have zero but does not change parameters, and what may be the reasons for the array of parameters?

It may not be held by an optimist, or the corresponding learning rate is zero; Object members should be checked, not just model parameter names.

Shared parameters appear in two modules, should they be accompanied by two different learning rates?

The same object cannot be updated vaguely in two sets of general rules at the same time, requiring the definition of the only updated strategy and avoiding duplication of clustering.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. PyTorch — Quickstart
  2. PyTorch — Building Models

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.