← Back to article

Equation 8 · Serving a Frontier Model: The KV Cache, Batching, and What a Token Actually Costs

What does this equation mean?

2N2N

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.

This mathematical expression combines the displayed quantities; its precise role follows from the surrounding article text. 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

NN

Symbol N

N is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Understand this part →

How to interpret it

Read this expression with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Now count the work. Generating a single token for a single request performs roughly 2N floating-point operations for N parameters, while requiring that all N parameters plus the request’s cache be read from memory. The arithmetic intensity — operations per byte moved — is therefore close to one, which is one to two orders of magnitude below the ratio at which modern accelerators become compute bound. The hardware trend has made this worse rather than better: Gholami and colleagues report that peak server FLOPS have scaled at roughly 3.0× every two years while DRAM and interconnect bandwidth have scaled at only about 1.6× and 1.4× respectively, and argue that memory has consequently become…
Read the full surrounding passage
Now count the work. Generating a single token for a single request performs roughly 2N floating-point operations for N parameters, while requiring that all N parameters plus the request’s cache be read from memory. The arithmetic intensity — operations per byte moved — is therefore close to one, which is one to two orders of magnitude below the ratio at which modern accelerators become compute bound. The hardware trend has made this worse rather than better: Gholami and colleagues report that peak server FLOPS have scaled at roughly 3.0× every two years while DRAM and interconnect bandwidth have scaled at only about 1.6× and 1.4× respectively, and argue that memory has consequently become the dominant bottleneck for decoder inference [ 7 ] .

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 Serving a Frontier Model: The KV Cache, Batching, and What a Token Actually Costs

See this formula across 1 published context →

Browse the mathematical compendium →