| FazBrowse Wikipedia Viewer | Main Page | | |
| Viewing: https://en.wikipedia.org/wiki/Softmax_function |
| Contents |
|---|
| Statistical mechanics |
| Neural networks |
| Reinforcement learning |
| Numerical algorithms |
In general, instead of b > 1, then larger input components will result in larger output probabilities, and increasing the value of b will create probability distributions that are more concentrated around the positions of the smallest input values. Writing β) yields the expressions β=1/kT, where β (or max function: the function whose vector component values are all zero, except that it has a value of 1 corresponding to the location of the tuple's largest element. Because the term "softmax" can also be used for the closely related, but real-valued, LogSumExp function, which is a smooth maximum, some prefer to describe the one-hot version as "softargmax". The term "softmax" is conventional in machine learning.
Formally, instead of considering the arg max function with one-hot representation of the output (assuming there is a unique maximum arg): i is the argzi is the unique maximum value of max values (multiple equal 1k, where argmax(1,5,5)=(0,12,12), since the second and third argument are both the maximum. In case all arguments are equal, this is simply max values are singular points (or singularities, and form the singular set) – while points with a single arg max pointwise, meaning that for each fixed input β→∞, max is not continuous at the singular set where two coordinates are equal, while the uniform limit of continuous functions is continuous. The reason it fails to converge uniformly is that for inputs where two coordinates are almost equal (and one is the maximum), the argσβ(1,0.9999)→(1,0), and min values. In the language of tropical analysis, the softmax is a deformation or "quantization" of arg max or arg max. For example, a difference of 10 is large relative to a temperature of 1: σ1/100(0,10)=(11+e1/10,e1/101+e1/10)≈(0.475,0.525). As T=1/β→0, so eventually all differences become large (relative to a shrinking temperature), which gives another interpretation for the limit behavior.
In statistical mechanics, the softmax function is known as the Boltzmann distribution (or Gibbs distribution): the index set Z; and the factor j-th class given a sample tuple P(y=j∣𝐱)=e𝐱T𝐰j∑k=1Ke𝐱T𝐰k. This can be seen as the composition of 𝐱T𝐰 denotes the inner product of 𝐰 to tuples ℝK.
The standard softmax function is often used in the final layer of a neural-network-based classifier. Such networks are commonly trained under a log loss (or cross-entropy) regime, giving a non-linear variant of multinomial logistic regression.
Since the function maps a tuple and a specific index i,k and thus may also be expressed as β.
See multinomial logit for a probability model which uses the softmax activation function.
In the field of reinforcement learning, a softmax function can be used to convert values into action probabilities. The function commonly used is τ is called a temperature parameter (in allusion to statistical mechanics). For high temperatures (K of possible outcomes is often large, e.g. in case of neural language models that predict the most likely outcome out of a vocabulary which might contain millions of possible words. This can make the calculations for the softmax layer (i.e. the matrix multiplications to determine the O(log2K). In practice, results depend on choosing a good strategy for clustering the outcomes into classes. A Huffman tree was used for this in Google's word2vec models (introduced in 2013) to achieve scalability.
A second kind of remedies is based on approximating the softmax (during training) with modified loss functions that avoid the calculation of the full normalization factor. These include methods that restrict the normalization sum to a sample of outcomes (e.g. importance sampling, target sampling).
The gradient of softmax is 1 if Vj(x), we can ensure both conditions by using a normalised exponential transformation:
| View original on Wikipedia | Back | FazBrowse Home |