Xavier Initialization: considering the size of connection to output

An output from the full connection layer will add many input items; In reverse, an input may also receive the lead contribution of many outputs.

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

Try to do it after reading

  • Convert the variance between fan_in and fan_out
  • Identify scale assumptions under saturation activation

Suggested first

  • Vector and Matrix Operations
  • Counts and chain rules

One level of input is stable. It doesn't mean it's inverted or stable

An output from the full connection layer will add many input items; In reverse, an input may also receive the lead contribution of many outputs. The initialization scale is therefore associated not only with the input dimension, but also with the number of output connections. The Xavier initialization attempted to balance the two sides and to avoid rapid magnification or reduction of the signal along layers under appropriate linear or near linear assumptions.

A common symmetric initialization uses variance 2/(fan_in+fan_out). For dimensions 4 and 12, variance is 1/8 and standard deviation≈0.353553. Uniform U(−a,a) has variance a²/3, so a=√(3/8)≈0.612372. A normal standard deviation and uniform bound are different parameters.

Why don't you just take one off the input dimension? The emphasis on forward versus on reverse would have different scales, and the compromise approach considered the size of the two connections. This is particularly noteworthy when the output dimensions of the input vary significantly. The specific library may also provide gain fixes to adapt to activation functions; A change in non-linearity cannot continue to assume that all original conditions of deduction are in place.

Using four separate, zero-average, one-variety input and independent zero-average weights, for example, an output variance of about 4 x 1/8 = 0.5. This is not a "should be equal to 1" certificate because it uses an input output discount and the actual input may be relevant. Writing the empirical formula into strict adherence to the law of serenity makes the wrong direction wrong.

(a) The saturation activation of tanh etc., which is too large to allow many units to enter a very small-conductor area; Too small may also lead to an almost linear expression. The distribution, gradients and data standardization checks should be activated in conjunction with the interlayers, instead of looking at the overall standard deviation of a random sample. The sample variance of the small matrix is not necessarily equal to the defined distribution variance.

The figures in this chapter are calculations of the distribution parameters. The scope of application is based on the course and the initialization instructions for D2L; Volumes, group connections and transfer weight layouts must confirm the meaning of fan according to the actual connection structure and cannot be based on mere second-dimensional conjecture.

Can the standard deviation 0.35355 be used directly as an even sample boundary?

No. A uniform distribution's standard deviation is its bound divided by √3; the bound here is approximately 0.612372.

If you enter a strong correlation, must the output variance be fan_in multiplied by three?

There will also be a gap. The formula relies on approximate conditions such as independence, and the input in question requires the actual activation of statistical checks.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. D2L — Numerical Stability and Initialization
  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.