Compared to temperature, and not just the curves
For similarities s, make softmax at normal temperature, but the smaller the probability is the more concentrated.
Learning objectives and first steps2 objectives 2 first fixes
Try to do it after reading
- Activate the function of the temperature to the fraction gradient
- Distinguishing Probability Concentration and Effective Gradient Size
Suggested first
- Inner vectors & Parameters
- Classified loss and gradient
Temperature changes both probability and gradient scales
For similarities s, make softmax at normal temperature, but the smaller the probability is the more concentrated. However, the gradient of the loss to the original resemblance is also 1 / and the probability itself varies with temperature. It is therefore not possible to say simply that “small temperatures always make all gradients larger”, which should be calculated under specific fractions.
The positive one is similar, negative one zero. The normal probability at 1 = approximately 0.731059, the regular gradient is p−1/, and about -0.268941; The probability is about 0.88097 at 0.5, and the gradient is about -0.238406. Despite the fact that it has become even larger, the regularity is closer to saturation and the gradient is slightly smaller in absolute terms.
If the positive score is lower than the negative one, smaller temperatures may make the error more competitive and lead to greater correction. Temperature control is the geometry and optimization dynamics of the whole classification, and one “common best value” cannot be selected from the distribution of positive and negative fractions.
Combining with vector parameters and negative cases
If not statized, the model can magnify the score by increasing the vector coefficient and the effect is similar to the change scale. Temperatures and parameters may be compensated for each other, making it difficult to explain only the temperature changes. The unitization can be fixed at a partial scale, but it is still necessary to check the distribution and the number of candidates.
When the negative pool is expanded, the denominator competition changes, as does the probability and gradient distribution at the same temperature. The comparison experiment should also record the size of batch, cross-equipment cases, candidates for weighting and temperature, rather than just one list. If the temperature is ready to learn, it should also be bound to be legal and monitor extreme ranges.
The error shows the difference between the positive and negative points and the corresponding gradient instead of observing the average loss. When most simple positive cases are saturated and a small number of holidays continue to receive a large gradient, further reductions in temperature may exacerbate the data noise problem, the relationship definition should be examined first.
This section uses a generic softmax number to study the original paper in comparison with the original value of the synthesis of two candidate calculations. And =0 is not legal, negative temperatures are inverted and are not usually compared to learning temperature definitions.
Value recovery
import mathfor t,expected in [(1,-0.2689414213699951),(0.5,-0.23840584404423537)]: p=1/(1+math.exp(-1/t)) assert math.isclose((p-1)/t,expected)And from 1 to 0.5, would all the regular gradients be larger?
No, I won't. The probability is more saturated in the example, with the absolute value of the regular gradient falling from about 0.269 to 0.238.
How does failure to normalize the length of the vector affect temperature interpretation?
The internal points scale changes with the parameters and may be confused with temperature scaling and should be jointly checked against the parameters and similarity distribution.
When the temperature is derived from a studyable scale, a distinction is made between the gradient for similarity and the gradient for the temperature itself. The two are different in their parameterization and constraints, and fixed temperature formulas should not be used directly to explain temperature updates.
Sources and reconciliations
Definitions, methods and interfaces are available.
- A Simple Framework for Contrastive Learning of Visual Representations
- Representation Learning with Contrastive Predictive Coding
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.