Direction Curvature for Hessian: A positive-angled line is no substitute for an overall judgement

A second-order curve is calculated by hand along a given direction, distinguishing a local secondary approximation from the global contour.

• 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 second-order curvature along a given direction
  • Distinguishing local dichotomy from global contour

Suggested first

  • Vector and Matrix Operations

Second-level information is not just extrapolating the gradient

The gradient tells us which direction the current position changes most, and Hessian describes how the gradient changes with the position. For a multi-variant metric function, it contains a second-order bias for each pair of coordinates. What really determines the degree of bending over a certain direction is the direction vector and the secondary shape of the entire matrix, and cross-items cannot be thrown away at will. When the local minimum is judged, it is possible to look at each coordinates for a single bend up and then miss the direction of the tilt.

We're going to take a line to reduce the multidimensional problem to one dimension

Taking Functions f(x,y) = x ²+ xy+2y ²。 At (1,1) the function value is 4, the gradient is (3,5) and Hessian is [2,1], [1,4]. Moved along the direction v = (1,-1), which was replaced by f(1+t,1-t) = 4-2 t+2t2. The first order of the direction is therefore two and the second is four, which also corresponds to the direct calculation of the v and Hessian secondary. Take t = 0.1, with a function value of 3.82. If one step is used, 3.8; The addition of second order 0.02 is fully consistent, as the original function is inherently a secondary function. For a function with three or more entries, the second step is still open and the accuracy cannot be extended to any distance.

Direction length and curvature unit

If the direction vector is multiplied twice, the corresponding real position shift for the same parameter t is also multiplied twice, and the second step is multiplied four times. The curves of different directions are usually compared to the re-alignment of the direction, otherwise the length of the vector itself will create differences. The characteristic value of Hessian gives the extreme value of the unit orientation curve, but this requires a built-in agreement between symmetry and the corresponding volume.

Details in the actual check

The blending bias of the smooth function is equal under appropriate conditions, so that the Hessian should be called; Where values are estimated to be not fully symmetrical, the difference is checked and realized before symmetricalization is decided. Symmetry is not a common method of repairing the wrong target, nor can it bring the structure that was not inflamed to the top. A large network typically does not visibly form a complete Hessian, but calculates the product of Hessian with vectors for curvature detection or second-order algorithms. Observing one direction is positive and does not prove that the whole direction is positive; The observation of a negative direction is sufficient to negate the semi-precipitated curvature assumption of that point. The local Hessian of the loss is subject to variations in parameters, batches and patterns, and these conditions should be fixed in the report, and the conclusions of a small batch cannot be described as the global nature of the entire model.

g(t)=f(x+tv); g′′(0)=vTH(x)v

Self-measurement and provocator

Why is the first order 2 t when this example moves along v?

The current position gradient (3,5) accumulates to 2 points (1,-1), so the first step on the line changes to 2 t.

What does finding a negative curve direction mean?

This is a good explanation for the fact that Hessian is not semi-consequential; But it does not give the best advantage of a distance, nor does it mean that the entire function is bending downwards.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Mathematics for Machine Learning — author textbook
  2. MIT 18.02SC Multivariable Calculus

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.