← Back to article

Equation 10 · A History of Small and On-Device AI

What does this equation mean?

qi=exp⁡(zi/T)∑jexp⁡(zj/T)q_i = \frac{\exp(z_i / T)}{\sum_j \exp(z_j / T)}

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Start withexp(z_i / T)
Divide bysum_j exp(z_j / T)
This relates toq_i
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

qiq_i

Symbol q_i

qiq_i is part of the quantity the equation computes from the expression on the right.

Understand this part →

ziz_i

Symbol z_i

the teacher’s pre-softmax logits.

Understand this part →

TT

Symbol T

T is an input to the expression that computes the quantity on the left.

Understand this part →

jj

Symbol j

j occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

zjz_j

Symbol z_j

zjz_j occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
fraction

fraction

Divide the expression above the line by the one below it.

Understand this part →

See an illustrated explanation →
subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

exp⁡(zi/T)\exp(z_i / T)

Numerator: exp(z_i / T)

The complete quantity above the fraction bar.

Understand this part →

See an illustrated explanation →
∑jexp⁡(zj/T)\sum_j \exp(z_j / T)

Denominator: sum_j exp(z_j / T)

The complete quantity below the fraction bar; it must be nonzero for this division.

Understand this part →

See an illustrated explanation →
jj

Starting index or lower bound: j

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Understand this part →

How to interpret it

With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Hinton, Vinyals and Dean’s 2015 paper, “Distilling the Knowledge in a Neural Network,” is the one the field actually cites, and it earned that position by generalizing the 2006 idea and giving it a mechanism simple enough to fit into any neural network’s training pipeline. Instead of training a small model against a large model’s hard output labels, distillation trains it against the large “teacher” model’s full, softened probability distribution over classes — the softmax output computed at a raised temperature T : qi=exp⁡(zi/T)∑jexp⁡(zj/T)q_i = \frac{\exp(z_i / T)}{\sum_j \exp(z_j / T)}. where ziz_i are the teacher’s pre-softmax logits. “Using a higher value for T produces a softer probability distribution over classes” [ 4 ] , and it is…
Read the full surrounding passage
Hinton, Vinyals and Dean’s 2015 paper, “Distilling the Knowledge in a Neural Network,” is the one the field actually cites, and it earned that position by generalizing the 2006 idea and giving it a mechanism simple enough to fit into any neural network’s training pipeline. Instead of training a small model against a large model’s hard output labels, distillation trains it against the large “teacher” model’s full, softened probability distribution over classes — the softmax output computed at a raised temperature T : qi=exp⁡(zi/T)∑jexp⁡(zj/T)q_i = \frac{\exp(z_i / T)}{\sum_j \exp(z_j / T)}. where ziz_i are the teacher’s pre-softmax logits. “Using a higher value for T produces a softer probability distribution over classes” [ 4 ] , and it is precisely that softness — the relative probabilities the teacher assigns to the wrong answers, not only the single correct label — that carries information a hard label discards: how confidently a teacher model preferred one wrong answer over another says far more about the shape of its decision boundary than one correct label does. The paper states the mechanism directly: “Knowledge is transferred to the distilled model by training it on a transfer set and using a soft target distribution for each case in the transfer set that is produced by using the cumbersome model with a high temperature in its softmax” [ 4 ] . On a speech-recognition acoustic model, the authors reported that “more than 80% of the improvement in frame classification accuracy achieved by using an ensemble of 10 models is transferred to the distilled model” [ 4 ] — most of what ten expensive models knew, recovered in a single model built to run where the ensemble could not.

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to A History of Small and On-Device AI

See this formula across 1 published context →

Browse the mathematical compendium →