Label smooth: indicate to whom the probability is assigned

The labels for multiple categories are often one-hot.

• 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

  • Construct a clear soft target distribution
  • Gradient to calculate even predictions

Suggested first

  • Vector and Matrix Operations
  • Counts and chain rules

Both are called smooth targets. They may be different values

The labels for multiple categories are often one-hot. The smoothing of the label assigns some quality to other possibilities and alters the preference for extreme self-confidence in training targets. It is not randomly modified and cannot automatically fix the mislabel. The first is to write a smooth distribution, otherwise the same entanglement may have different objectives.

For three exclusive classes, true class 0 and ε=0.1, define q=(1−ε)one_hot+ε/K, giving [0.933333,0.033333,0.033333]. Distributing ε only among incorrect classes instead gives [0.9,0.05,0.05]. Both sum to one but have different losses and gradients; hand calculations cannot be mixed.

When logits is predicted to be zero, the probability is one third. The gradient for cross entropy to logits is p−q, which is defined here as [-0.6, 0.3, 0.3]. If there is no smoothness, it is [−2/3, 1/3, 1/3). At this even projection point, the cross entropy value for both targets is log3, but the gradient is different, indicating that the same metric loss does not prove the same target for training.

Target q is an artificial training distribution that should not be interpreted directly to mean that each sample has a real probability of about three percent belong to the other two categories. The improvement of calibration, probity or final accuracy rates requires independent evaluation. If the data themselves are multiple labels rather than mutually exclusive, then instead of using the corresponding targets, the K can not directly be reclassified to the unicoded distribution.

Class weights, neglect labels and soft target interfaces can also affect the unified calibre. It's not possible to smooth out the outside once, and then make the loss API smooth inside again. When moving the code, check whether the type index or the probabilistic vector is transferred, and the shape, sum and non-negativeness of the probabilities vector should be clearly verified.

The label_smoothing parameters for different frames need to be compared to the actual soft target vector. The same name does not guarantee the same probability for the wrong category, and in particular the number of categories is recalculated when changed. The priority given to printing a physical target vector and corresponding gradient during the screening exercise is more persuasive than looking at the platinum in the two configuration files.

The smoothing strength may also vary with the task or sample. If different sources use different labelling reliabilitys, the entire sample cannot be given the same distribution without being described; The purpose should be defined and compared with the fixed verification slices.

Do you have the same goal as the two smooth definitions?

Unlike this, whether or not to allocate even quality to the real category changes each and requires a full distribution formula.

Can you ignore the gradient differences if the loss is identical?

(a) No, loss at one point is not the same function; Next parameter updates are determined by the number of guides.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Rethinking the Inception Architecture for Computer Vision
  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.