← Back to article

Equation 4 · How a Model Actually Gets Small Enough to Run on a Phone

What does this equation mean?

σ(z)i=exp⁡(zi/T)∑jexp⁡(zj/T)\sigma(z)_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 toσ(z)_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

σ\sigma

Symbol σ

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

Understand this part →

zz

Symbol z

z is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.

Understand this part →

ii

Symbol i

i occurs above the fraction bar. The numerator is divided by the entire denominator below it.

Understand this part →

ziz_i

Symbol z_i

ziz_i occurs above the fraction bar. The numerator is divided by the entire denominator below it.

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

Distillation recovers it by training the small “student” network against the large “teacher” network’s full output distribution rather than against the label alone. Write the teacher’s and student’s pre-softmax outputs for a given input as ztz_t and zsz_s . A softmax with a temperature T is σ(z)i=exp⁡(zi/T)∑jexp⁡(zj/T)\sigma(z)_i = \frac{\exp(z_i / T)}{\sum_j \exp(z_j / T)}. At T=1 this is the ordinary softmax used for prediction. Raising T flattens the distribution, pulling the small probabilities assigned to wrong classes up toward visibility, which is exactly the dark knowledge the method wants to expose. The training objective blends two terms: ordinary cross-entropy against the true label, and a match between the student’s and teacher’s…
Read the full surrounding passage
Distillation recovers it by training the small “student” network against the large “teacher” network’s full output distribution rather than against the label alone. Write the teacher’s and student’s pre-softmax outputs for a given input as ztz_t and zsz_s . A softmax with a temperature T is σ(z)i=exp⁡(zi/T)∑jexp⁡(zj/T)\sigma(z)_i = \frac{\exp(z_i / T)}{\sum_j \exp(z_j / T)}. At T=1 this is the ordinary softmax used for prediction. Raising T flattens the distribution, pulling the small probabilities assigned to wrong classes up toward visibility, which is exactly the dark knowledge the method wants to expose. The training objective blends two terms: ordinary cross-entropy against the true label, and a match between the student’s and teacher’s temperature-softened distributions, measured by KL divergence:

Read the equation in its article →

Sources cited in the article section

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

Return to How a Model Actually Gets Small Enough to Run on a Phone

See this formula across 1 published context →

Browse the mathematical compendium →