← Back to article

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

What does this equation mean?

s=max⁡(∣x∣)2 b−1−1s = \frac{\max(|x|)}{2^{\,b-1} - 1}

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 withmax(|x|)
Divide by2^b-1 - 1
This relates tos
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

ss

Symbol s

the scale.

Understand this part →

xx

Symbol x

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

Understand this part →

bb

Symbol b

b 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 →
subtraction

subtraction

Subtract the following term or group from the preceding one. A leading minus marks a negative quantity.

Understand this part →

superscript

superscript

A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.

Understand this part →

See an illustrated explanation →
max⁡(∣x∣)\max(|x|)

Numerator: max(|x|)

The complete quantity above the fraction bar.

Understand this part →

2 b−1−12^{\,b-1} - 1

Denominator: 2^b-1 - 1

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

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

For weights, a common simplification is symmetric quantization around zero, with z=0 and the scale set directly by the largest magnitude present: s=max⁡(∣x∣)2 b−1−1s = \frac{\max(|x|)}{2^{\,b-1} - 1}. for a signed integer of b bits. An 8-bit integer has 2^8=256 representable levels; a 4-bit integer has 2^4=16 . That sixteen-fold reduction in available codes is the entire cost of quantization in one number. Treating the rounding error as approximately uniform over one quantization step s , its expected squared magnitude is the classical result

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 →