欢迎大家提Issue反馈问题或建议,建设推理王国!
Skip to content

Chapter 23: The Yonglin Corollary — Intelligence, Emergence, and the Ordinary Equation ​

Intelligence is no exception, and neither is emergence; they are names that one ordinary equation takes at different scales.


Suppose a model faces only three answers. Its current belief is

p0=(0.20, 0.30, 0.50),

and the prior anchor left by the training data is

A=(0.70, 0.20, 0.10).

Chapter 12 already proved that, as long as the step size lies in the right window, this belief walks step by step toward A, not toward the true answer A∗. Convergence is settled.

But “it converges” and “how fast it converges” are two different things. What you actually want to know is:

  • How many steps does it take?
  • Do all directions shrink at the same speed?
  • If the prior, the model, or the scale changes, how does the speed change?

Here is what it actually looks like. The table below iterates the inference operator from Chapter 12 with step size η=0.183 (how this number is chosen is 23.3's job; for now, just watch the phenomenon):

tpt‖pt−A‖2error ratio
0(0.200, 0.300, 0.500)0.648—
1(0.573, 0.156, 0.271)0.2170.335
2(0.621, 0.215, 0.163)0.1020.470
3(0.665, 0.223, 0.113)0.04380.429
4(0.684, 0.214, 0.102)0.02110.482
5(0.692, 0.206, 0.102)0.009970.473

After two or three steps, the error is multiplied by about 0.45 each time: 0.648→0.217→0.102→0.0438→0.0211→0.00997. The ratio wobbles around 0.45.

That 0.45 is the protagonist of this chapter. It is called the contraction rate, written ρ∗.

This chapter does one thing: compute this number, then measure it on a real model's belief orbit.

Another famous curve appears here: scaling law. Put loss on log-log axes with scale on the horizontal axis, and it is a straight line. This chapter uses the three-answer simplex for something more basic: first compute ρ∗, then measure the semi-log slope, the fixed point, and the Cauchy tail on a real model's reported beliefs; finally show that semi-log and log-log straight lines are two different laws and cannot impersonate each other.

The Chapter in Five Steps ​

  1. 23.1–23.3: compress “how fast” into one number, ρ∗;
  2. 23.4: show that this number depends only on two endpoints, and where those endpoints come from;
  3. 23.5: draw ρ∗ as a semi-log line and compute the window;
  4. 23.6: measure a Cauchy sequence on a real model;
  5. 23.7: close.

If you are short on time, read 23.1, 23.3, 23.5, and 23.6. Sections 23.2 and 23.4 answer “why.”

The same object will appear again and again:

 ρ∗=κT−1κT+1 

where κT=λmax/λmin is the condition number of the tangent Hessian. Don't worry yet about where it comes from; you only need to know that it measures how many times steeper the steepest direction of the energy surface is than the flattest. This number determines the slope of the error curve, the number of steps needed to reach accuracy ε, and whether an “emergent” jump has a dynamical basis. No second scalar is needed.

Why “corollary”? Because the engine of convergence is still Banach's fixed-point theorem, and the energy surface is still the KL divergence from information theory. This chapter does not replace the engine. It reads off the engine's power.

This is not all of intelligence. But any intelligent system whose output space is the probability simplex cannot avoid this piece of geometry.

The Yonglin Corollary = an information-theoretic energy surface + Banach completeness + one rate.

The completeness used here comes from Banach's fixed-point theorem, which belongs to the Polish school of mathematics between the two world wars. The story of that school — and the methodological question of why convergence should be placed in a complete space — is told in the Polish-school note in Chapter 12. This chapter uses the result and does not retell the history.

Prologue: Inference and Training Are the Same Road ​

Put forward inference and backward training on the same sheet of paper. The output of one forward pass is a point p on the simplex; each step of CoT pushes that point one step further. Chapter 12 already writes this “push” as

F(p)=ΠX(p−ηPT∇E(p)),E(p)=DKL(A∥p).

The anchor A here is not a prior inserted from outside; it is the label distribution left by the training data. For a fixed prompt, A is the conditional label distribution Ptrain(Y∣X); change the prompt and A becomes a different point. This is why per-question experiments found a different anchor for each question.

The objective of backward training is the cross-entropy

L(p)=−∑yAylog⁡py.

Split it open:

L(p)=H(A)+DKL(A∥p).

The data entropy H(A) is constant, so minimizing cross-entropy is minimizing KL. What is loosely called “minimum-entropy training” is, strictly, “minimum relative-entropy training”: making the model distribution p as close as possible to the empirical distribution A. Differentiating with respect to p,

∇pL=−Ap,

which is exactly the gradient of E(p)=DKL(A∥p). So at the level of output distributions, training and inference are not two energy surfaces; they are one.

Then why does the code show the logit gradient p−1y? Because softmax maps logits to the simplex, and the gradient must pass through the softmax Jacobian. For a single sample,

∂L∂z=p−1y;

taking the expectation over the data distribution gives p−A. This is not a different direction; it is the same gradient in another set of coordinates. Softmax maps logits to the simplex, and the chain rule turns −A/p into p−A:

(diag(p)−pp⊤)(−Ap)=p−A.

Backpropagation and forward inference share one energy surface, and both land in the same tangent space. The chapter uses one ruler throughout: the Euclidean norm on the tangent space.

The “empirical simplex” is the set of all possible output distributions: the training data contributes one point A, the model output another point p. Training drags the point toward A; inference, when evidence arrives, pushes it away from A and then lets it fall back. Both move on the same simplex. The constraint ∑ipi=1 makes the direction “add the same number to every component” meaningless — adding a constant to logits does not change the softmax, and PT deletes that normal component. So the directions that actually exist are the tangent space

T={v: ∑ivi=0}.

The backward gradient lands on T automatically after passing through the softmax Jacobian; the inference gradient is projected onto T by PT. Both are forced by the same constraint into the same tangent space, and therefore see the same Hessian:

HT=PTdiag(1Ai)PT.

One boundary of language matters here: a parameter-space update does not itself live on the simplex; it is pushed forward through the output map before it lands in the tangent space. “Tangent-space training” refers to the tangential motion of the output distribution, not to the parameters walking inside the simplex.

Linearize the two dynamics near A: both multiply the error by I−ηHT. HT has K−1 eigenvalues, but the long-run rate is set by only the slowest and the fastest endpoints:

κT=λmaxλmin,ρ∗=κT−1κT+1.

This is the Yonglin Corollary. It is not only “how fast inference returns to the prior”; it is also “how fast the last stretch of training sticks to the label distribution.” Training builds A; inference returns to A; the last stretch of both approaches is priced by the same pair of spectral endpoints.

What is described here is the local dynamics on the output distribution: the tangential motion of the last stretch of training on the simplex. Real training also involves non-convexity, stochasticity, finite samples, and parameterization; the local quadratic picture is a theorem about the last stretch, not a global theory of training. This boundary needs no second theory to state: the chapter uses only the Euclidean norm on the tangent space, and KL serves only as the energy surface, never as a distance.

But the last stretch is enough for what this chapter explains. Training builds the anchor; inference returns to it; one condition number prices both roads.


23.1 Turning “How Fast” into a Number ​

Start with the error

et=pt−A.

Convergence means et→0. “How fast” means: by what factor does et shrink each step?

First, one dimension ​

If the error is a single number and the update is et+1=jet, the answer is simple: j is the per-step multiplier. j=0.5 means halving each step; j=0.9 means losing only a tenth each step.

In a world of K answers, the error is a vector and the update is approximately a matrix:

et+1≈Jet.

A matrix compresses different directions by different amounts. Its eigenvalues ji are the multipliers: along the i-th eigendirection, the error is multiplied by ji each step.

In the long run, the slowest direction decides everything. If one direction multiplies by 0.9 and another by 0.1, after ten steps the first still has 0.35 while the second is down to 10−10. The fast direction left long ago; the shape and speed of the error are now controlled by the slow direction.

So “how fast” is not an average; it is the slowest multiplier:

ρ=maxi|ji|.

Writing down the multiplier matrix ​

The inference operator is still the one from Chapter 12:

F(p)=ΠX(p−ηPT∇E(p)),E(p)=DKL(q∥p).

Each symbol does exactly one job:

  • E is the energy surface, with anchor q=A;
  • ∇E says which way is downhill;
  • PT projects the gradient onto the tangent space, removing the normal component that adds the same amount to every answer;
  • ΠX pulls the point back into the probability simplex.

At the anchor, the curvature of the energy surface is

∇2E(A)=diag(1qi),HT=PT∇2E(A)PT.

HT is the tangent Hessian. It describes how curved the energy surface is along each direction, under the constraint that the probabilities sum to one.

The derivative of one update — the multiplier matrix for the error — is

JT=IT−ηHT.

Its eigenvalues are 1−ηλi (the multidimensional version of the multipliers ji above), where λi are the eigenvalues of HT. Hence

ρ(η)=maxi|1−ηλi|.

Don't mix the two sets of eigenvalues: λi is the curvature of the energy surface HT; 1−ηλi is the multiplier of one update. The first says how steep the slope is; the second says how much error is left after one step.

Why max and not an average? Because if one direction shrinks slowly, it will eventually fill the whole error. Fast directions just leave early; the slow direction decides the ending.

This is not an upper bound. It is the exact value.

Why this is the exact rate, not an upper bound

JT is symmetric on the tangent space, so its operator norm equals its spectral radius:

∥JT∥T→T=ρ(η).

For initial points near A, the asymptotic rate of the linearized error is exactly ρ(η):

limt→∞(∥pt−A∥2∥p0−A∥2)1/t=ρ(η).

(If the initial error has a nonzero component in the dominant eigendirection; otherwise it is only faster.)

Figure 23.1: Geometric compression inside the simplex — after entering the anchor's neighborhood, every step multiplies the error by the same factor

Figure 23.1 draws compression on the probability simplex. The orbit starts at p0 and moves toward the anchor A=q at every iteration. Just after entering the anchor's neighborhood the contraction ratio fluctuates briefly; once inside the range where linearization is valid, every step multiplies the error by the same number ρ∗≈0.454. This is what “geometric convergence” means geometrically: not the same distance removed each time, but the same proportion removed each time.

Which way do the numbers run? Larger ρ means slower. The “rate” here is the fraction of error left after each step, not the amount removed. ρ=0.5 halves the error each step; ρ=0.9 loses only a tenth: 1→0.9→0.81→0.729, with 0.35 left after ten steps. So ρ closer to 1 is slower; smaller is faster. On a semi-log plot the slope is log10⁡ρ, negative; steeper (more negative) is faster, flatter (closer to zero) is slower.

Want larger numbers to mean faster? Use the fraction cleared per step, 1−ρ, or the continuous decay rate, −ln⁡ρ (in nats per step). C3's ρ∗=0.79: 79% remains per step, 21% is cleared, half-life about 3 steps. C4's ρ∗=0.35: 35% remains, 65% is cleared, half-life about 0.67 steps. In −ln⁡ρ, C3 is 0.23 and C4 is 1.04—larger is faster.

Don't confuse it with the step size η. η is how big a step you take; ρ is how much error is left after that step. A larger step is not always better: past η∗ it overshoots and ρ rises again. The “optimal” in ρ∗ means the smallest retention ratio, not the largest rate.

This is also a ledger of learning efficiency. Treat one update as one purchase: the step size η is what you pay—computation, sampling, the risk of overshoot—and the error cleared, 1−ρ, is what you get back. The larger ρ is, the less each step buys. To push the error from d0 to ε you need roughly

N(ε)≈ln⁡(d0/ε)−ln⁡ρ

steps; a larger ρ makes the denominator smaller, the step count larger, and the total cost higher. So ρ is a cost-side parameter: it measures not “how fast it learns” but “how much is still owed after each step.”

The per-step input–output ratio can be written (1−ρ)/η—error cleared per unit of step. But watching only this ratio misses the total bill: on the linearized branch η≤η∗, ρ=1−ηλmin, so this ratio is exactly the constant λmin; single-step efficiency cannot tell step sizes apart, and the difference shows up in how many steps you must pay for. Nor is a larger step always a better deal—past η∗, ρ rises again and both the step count and the overshoot risk climb. ρ∗ is the optimum of this ledger: it minimizes the worst-case retention per step, hence the upper bound on the number of steps needed. Section 23.5 turns this ledger into a step-count formula you can compute.

One sentence: the contraction rate is the retention ratio of the slowest direction; after each step the error is at most ρ times what it was, and this “at most” is attainable.


23.2 Why Only Two Endpoints Matter ​

HT has K−1 eigenvalues. A natural worry: do we have to compute all of them to get the rate?

No.

Start with a simpler question. Fix the step size η and plot

g(λ)=|1−ηλ|.

It is a V-shaped curve, with its minimum at λ=1/η and both arms rising.

We want the maximum of this V over the interval [λmin,λmax]. A V-shape is convex, and a convex function on an interval attains its maximum only at an endpoint. So how many eigenvalues lie in between, and where, does not affect the worst case.

Lemma 23.1. Suppose λmin≤λi≤λmax. For every η>0,

maxi|1−ηλi|=max(|1−ηλmin|, |1−ηλmax|).

Proof. Fix η. The function g(λ)=|1−ηλ| is convex in λ (an absolute value composed with an affine function). A convex function on an interval attains its maximum at an endpoint. Thus g(λi)≤max(g(λmin),g(λmax)) for every λi, and the endpoints are themselves eigenvalues, so equality holds. ◻

This lemma compresses a (K−1)-dimensional spectrum into two numbers: the minimum λmin and the maximum λmax. How many eigenvalues lie in between, and where, does not affect the contraction rate.

It also gives the exact stability window:

ρ(η)<1⟺0<η<2λmax.

Why this boundary? When the step is too large, the fastest mode 1−ηλmax is the first to cross −1: the error starts flipping sign and growing. The boundary is exact, not “approximately here.”

One sentence: watch only the flattest and the steepest directions; the eigenvalues in between change the shape of the spectrum, not the worst case.


23.3 Optimal Step Size: Let the Slowest and the Fastest Arrive Together ​

Now choose the step size.

Too small: the slow direction barely moves and the error stalls early. Too large: the fast direction overshoots, oscillates, and can even diverge. The optimum lies in between.

Draw the two endpoint errors as two lines:

  • slow mode: |1−ηλmin|, falling as η grows;
  • fast mode: |1−ηλmax|, rising as η grows.

One falls, one rises; their intersection is the optimum:

ρ∗=infη>0 max(|1−ηλmin|, |1−ηλmax|).

At the optimum, the two branches are equal:

1−ηλmin=ηλmax−1.

Solving,

η∗=2λmin+λmax,ρ∗=λmax−λminλmax+λmin=κT−1κT+1,κT=λmaxλmin.

This step is the harmonic mean of two reciprocal curvatures. Let

a=1λmax,b=1λmin

be the steps at which the fast and slow modes, taken alone, would hit zero. The optimal step is their harmonic mean:

η∗=2aba+b=2λmin+λmax.

It lies between a and b but closer to a than the arithmetic midpoint: at η∗ the fast mode has already crossed zero, the slow mode has not, and their distances to zero are equal (a direct substitution gives |1−η∗/a|=|1−η∗/b|=(b−a)/(a+b)). This is the Chebyshev-style minimax balance. Given the spectral endpoints, one arithmetic step gives the step size; no binary search, no manual tuning—this is the algorithmic reading of Theorem 23.2.

Do not apply this average to the rates. a,b are step sizes (reciprocals of curvature), not the two rates in [m(η),ρ(η)]. The harmonic mean of m,ρ has no “optimal step” meaning; the optimal step must be computed from λmin,λmax, not read back from the compression-rate band. (What 23.6 infers from the band is the model's actual effective step, not the optimal one.)

The name of κT is the condition number. Here it is just a ratio: how many times steeper the steepest direction is than the flattest.

Theorem 23.2 (the rate form of the Yonglin Corollary). Inside the stability window, the minimum of ρ(η) is ρ∗, attained uniquely at η∗. Moreover,

|1−η∗λmin|=|1−η∗λmax|=ρ∗.

That is, the optimal step size makes the slowest and the fastest modes contract at exactly the same speed.

This rate has four exact properties, each a one-line calculation:

  1. Range. 0≤ρ∗<1. When κT=1 (all tangent eigenvalues equal), ρ∗=0 and one step suffices; as κT→∞, ρ∗→1 and convergence becomes arbitrarily slow.
  2. Monotonicity. dρ∗dκT=2(κT+1)2>0. A larger condition number means a worse rate, without exception.
  3. Invertibility. κT=1+ρ∗1−ρ∗. Rate and condition number correspond one-to-one: knowing the rate is knowing the condition number, and vice versa. In this sense, ρ∗ is a complete invariant of the condition number.
  4. Endpoint dependence. By Lemma 23.1, ρ∗ is determined only by λmin,λmax. The shape of the spectrum in between never enters the formula.

Property 3 is worth a second look. It says that “how fast it converges” and “how anisotropic the energy surface is” are not two independent questions: they are two ways of writing the same number.

Figure 23.2: Three readings of one scalar — the exact V, the rate-condition-number inverse, and the exact linear sandwich for the window

Panel (a) is the V-shape of ρ(η). The left branch is controlled by the slow mode |1−ηλmin|, the right branch by the fast mode |1−ηλmax|, and the intersection is (η∗,ρ∗). The dashed line is the stability boundary 2/λmax.

Panel (b) is ρ∗=(κT−1)/(κT+1). It is monotone, bounded, and invertible.

Panel (c) is the window. Section 23.5 turns it into an exact inequality.

Figure 23.3: The rate–condition-number hyperbola — two directions, one relation

Figure 23.3 isolates the relation. The left panel plots ρ∗=(κT−1)/(κT+1) as a function of κT: a hyperbola branch with horizontal asymptote ρ∗=1. The right panel plots its inverse κT=(1+ρ∗)/(1−ρ∗): as ρ∗→1, the condition number shoots up vertically. The two panels say the same thing — the better the rate, the closer the condition number is to 1; as the rate approaches 1, the condition number explodes.

Back to the opening example. q=(0.70,0.20,0.10) gives

λmin=2.9904,λmax=7.9620,κT=2.6625,η∗=0.18261,ρ∗=0.45393.

These are the 0.183 and 0.45 in the table. Here a=0.1256 and b=0.3344, and their harmonic mean is exactly 0.1826. The first ratio, 0.335, is the residue of the fast direction; after a few steps the slow direction takes over and the ratio settles near 0.454.

The spectral harmonic step. Given local curvature bounds μ≤λ≤L: set a=1/L, b=1/μ, take η=2ab/(a+b)=2/(μ+L), then check η<2/L (not automatic once μ,L are estimates) and confirm the spectral bounds still hold at the current point. In the ideal Euclidean projected-gradient model this is exact; in a general nonlinear network μ,L are local bounds, the curvature moves, and each step needs a re-estimate.

The same algebra appears in ADS's entropy control in Chapter 8: read the barrier α as the curvature, and η(α)=η0/(1+α) is closed under harmonic averaging — the harmonic mean of two steps is the step at the arithmetic mean of the barriers. There the entropy landscape is regulated; here the spectral endpoints are balanced; the coordinate changes, not the structure.

One sentence: the optimal step size is not the fastest step; it is the step that lets the slowest and the fastest arrive together.


23.4 Where the Two Endpoints Come From ​

Only one thing remains: where do λmin and λmax come from?

Take an example with K=6 and anchor

q=(0.35, 0.25, 0.15, 0.12, 0.08, 0.05).

Figure 23.4: Three readings of the Hessian — the raw matrix, the tangent projection, and the tangent spectrum

Read this figure as three panels: the raw Hessian, the projected Hessian, and its spectrum.

Panel (a): The raw Hessian — the “local stiffness” of each answer ​

∇2E(q)=diag(1q1,…,1qK)=diag(2.86, 4.00, 6.67, 8.33, 12.50, 20.00).

The i-th diagonal entry is 1/qi. The rarer the answer, the steeper that direction. Off the diagonal everything is zero: if probabilities could vary independently, the answers would not be coupled.

But probabilities cannot vary independently. They must sum to one. This constraint plants off-diagonal entries.

Panel (b): The tangent Hessian — the constraint couples the answers ​

After projection, each entry of HT is

(HT)ij=δijqi−1K(1qi+1qj)+1K2∑k=1K1qk.

Three readings:

  1. Every row sums to zero. The all-ones direction is normal, HT1=0. Adding the same number to every answer does not change the belief.
  2. Diagonal entries are positive, and the total trace shrinks. tr(HT)=(1−1/K)∑i1/qi=45.30, smaller than the raw trace 54.36. The constraint eats part of the total curvature.
  3. Most off-diagonal entries are negative, but not all. The two rarest answers are strongly negatively coupled (−3.91 between q5 and q6): raise one and you must lower the other. The two most common answers have a small positive coupling (+0.37 between q1 and q2). The only strict statements are: row sums vanish, and the matrix is positive semidefinite on the tangent space.

An analogy: six balls threaded on a rope of fixed total length. Pull one left and the others must move right. The constraint is not background; it is the source of the coupling.

A beautiful special case: when q is uniform, 1/qi=K, so

HT=KPT=K(I−1K11⊤).

This is the graph Laplacian of the complete graph KK, with eigenvalues 0 (normal) and K (tangent, multiplicity K−1). The tangent geometry of a uniform belief is the graph in which every answer has an equal-weight edge to every other answer.

Panel (c): The tangent spectrum — only the two ends matter ​

For this anchor, the tangent spectrum is

λ=(3.32, 5.24, 7.57, 11.13, 18.03).

Hence

λmin=3.32,λmax=18.03,κT=5.43.
  • The smallest eigenvalue is the slow mode: “redistribute mass between the two most likely answers”;
  • The largest eigenvalue is the fast mode: “correct the rarest answer”;
  • The three eigenvalues in between contribute nothing to the optimal rate. This is Lemma 23.1 in action.

Figure 23.5: Interlacing of the tangent spectrum with the raw diagonal; only the two endpoints enter the rate

Panel (a) of Figure 23.5 draws the interlacing of the secular equation: gray levels are the raw diagonal di=1/qi, blue marks are the tangent eigenvalues. Every blue root lies between two adjacent gray levels, d(1)<λ1<d(2)<⋯. Panel (b) switches to three anchors with K=6: the uniform anchor has five equal eigenvalues (κT=1); the baseline anchor gives κT=5.43; an anchor near a vertex pushes all eigenvalues up together, but the ratio only reaches 5.70 — the tangent condition number is pinned near K=6 by the constraint. The eigenvalues in between change the shape of the spectrum, not ρ∗.

If you want to compute it: the tangent spectrum is determined by one scalar equation

Let D=diag(d1,…,dK) with di=1/qi, and HT=PTDPT. For x∈T, HTx=λx is equivalent to PTDx=λx. Since x∈T, PTx=x, so Dx−λx=c1, i.e. xi=c/(di−λ). Using ∑ixi=0 gives the secular equation

∑i=1K1di−λ=0.

Its K−1 roots are the tangent spectrum, interlacing with di:

d(1)<λ1<d(2)<⋯<λK−1<d(K).

To get λmin and λmax, bisect once between the two smallest di and once between the two largest. For K=3, the secular equation becomes

3s3λ2−2s2λ+1=0,s2=q1q2+q1q3+q2q3,s3=q1q2q3,

which is exactly the quadratic that appeared in the “direct evidence” section of Chapter 12.

A beautiful limit: the tangent condition number saturates at K

The raw Hessian explodes at the boundary: as qmin→0, 1/qmin→∞. But the tangent spectrum is pinned by the constraint. Take the symmetric vertex limit

q(t)=1−tK1+te1,t→1.

The full-space condition number qmax/qmin∼1/(1−t) diverges, while the tangent condition number satisfies

κT→K.

Numerically, K=5,10,50,200,1000 give κT=5.0000,10.0000,50.0000,199.9998,999.9990. The reason: the K−1 rare answers have equal di, the secular equation pulls only one root drare/K out of that block, and the remaining K−2 roots coincide. The constraint smears the explosion of “one tiny probability” into a coupling among K answers.

Figure 23.6: The full-space condition number diverges; the tangent condition number saturates at

Panel (a) of Figure 23.6 is the symmetric vertex limit for K=5: the red line is the full-space condition number, diverging logarithmically as t→1; the blue line is the tangent condition number, sitting firmly at K=5. Panel (b) normalizes the spectrum by λmin: the minimum stays at 1, while the other K−2 eigenvalues rise together to K. The divergence has not disappeared; the constraint has redistributed it into a coupling among K answers.

One sentence: the endpoints are not guessed; they are handed over by the matrix. The constraint smears the explosion of “one tiny probability” into a coupling among K answers.


23.5 The Rate Is the Slope of the Log Curve ​

Back to the table. The errors are

0.648, 0.217, 0.102, 0.0438, 0.0211, 0.00997.

From the third step on, each is about 0.45 times the previous one. If the decay were exactly ρt, then

ln∥pt−A∥2=ln∥p0−A∥2+tln⁡ρ.

This is a linear function of t. On a semi-log plot it is a straight line, and the slope is exactly ln⁡ρ.

This is also what “geometric convergence” means: not the same distance removed each time, but the same proportion removed each time.

Two kinds of coordinates must be kept apart:

  • Geometric convergence is a straight line on a semi-log plot;
  • A power law is a straight line on a log-log plot.

They are two different laws, not two ways of drawing the same curve. Figure 23.7 plots the same data twice.

Figure 23.7: A straight line on semi-log axes, a curve on log-log axes

Panel (a) of Figure 23.7 uses semi-log axes: three geometric orbits are exact straight lines, with slopes equal to ln⁡ρ. With too small a step (light blue) the slope is shallow; with the optimal step (dark blue) it is steepest; with too large a step (red), although the slow mode is crushed quickly, the fastest mode drags it down and the overall rate is worse. Panel (b) switches to log-log axes: the same geometric orbit bends into a curve and is no longer straight; the gray dashed line is a genuine power law t−1.5, which is straight on log-log axes. So “a log-log straight line” belongs to power laws; “a semi-log straight line” belongs to geometric convergence.

At rate ρ∗, the continuous number of steps needed to reach accuracy ε is

Nreal(ε)=ln⁡(∥p0−A∥2/ε)ln⁡(1/ρ∗),N(ε)=⌈Nreal(ε)⌉.

For the baseline q=(0.70,0.20,0.10), substituting ρ∗=0.45393 with ∥p0−A∥2=1 and ε=0.1:

Nreal(0.1)=2.915,N(0.1)=3.

That is: about three steps. This matches the opening table — at step 2 the error is still 0.102; at step 3 it is 0.0438.

Here is a harder statement: without first computing ρ∗, the two endpoints alone sandwich the window.

Theorem 23.3 (exact linear bounds on the window). For κT>1,

κT−12ln⁡1ε ≤ Nreal(ε) ≤ κT2ln⁡1ε.

Proof

Let x=2/(κT−1)>0. Since (κT+1)/(κT−1)=1+x,

ln⁡1ρ∗=ln⁡κT+1κT−1=ln⁡(1+x).

Two standard inequalities give

2x2+x≤ln⁡(1+x)≤x.

Substituting x=2/(κT−1):

2κT≤ln⁡1ρ∗≤2κT−1.

Taking reciprocals and multiplying by ln⁡(1/ε) gives the claim. ◻

Both bounds are exact, not asymptotic approximations. They sandwich the window between two lines of slopes (κT−1)/2 and κT/2. Panel (c) of Figure 23.2 draws this sandwich: the blue line is the exact N, and the shaded region is bounded by the two exact lines.

For the baseline q=(0.70,0.20,0.10), the exact bounds give

2.6625−12ln⁡10=1.914 ≤ 2.915 ≤ 2.66252ln⁡10=3.065.

The window falls inside the bounds, and the two bounds differ by only 1.15 steps. This is not “about three steps”; it is “exactly between 1.914 and 3.065.”

One sentence: the rate is the slope; the window is computed, not felt.

The next section brings this distinction to a real model: if the orbit is geometric, semi-log should be straight; if it is a power law, only log-log should be. The same API data is plotted in both coordinates.


23.6 Industrial Verification: Measuring a Cauchy Sequence on a Real Model ​

The previous section separated two coordinate systems: geometric convergence is a straight line on semi-log axes, while a power law is a straight line on log-log axes. Now bring the ruler to a real model and measure an actual belief orbit.

“Industrial” means three things here: the interface is real (DeepSeek chat completions), the protocol is fixed (same prompt, same temperature, same number of steps), and the data is auditable (the collection and analysis code and the figure are in this section). One model, two tasks: a case. Every step of the case can be rerun and refuted.

Why move the ruler to tangent space ​

Start with a metric problem. You might want to measure the KL between consecutive steps:

DKL(pt∥pt+1).

It cannot serve as a distance. KL is asymmetric and does not satisfy the triangle inequality; the open simplex

ΔK−1={p: pi>0, ∑ipi=1}

is not a complete metric space. “Cauchy sequence” has no definition there.

The move is to bring beliefs to tangent space. Let

T={v∈RK: ∑ivi=0},u=(1K,…,1K).

For K=3, take an orthonormal basis

e1=(1,0,−1)2,e2=(1,−2,1)6,

and define coordinates

x(p)=(⟨p−u,e1⟩, ⟨p−u,e2⟩).

Because the difference of any two probability vectors lies in T,

∥x(p)−x(q)∥2=∥p−q∥2.

T is isomorphic to RK−1 and complete. The Cauchy definition finally has ground to stand on:

∀ε>0, ∃N, ∀m>n≥N:∥xm−xn∥2<ε.

Equivalently, define the tail diameter

εN=maxm>n≥N∥xm−xn∥2.

The sequence is Cauchy exactly when εN→0.

If the update map F on T is a contraction, meaning that for some ρ<1,

∥F(x)−F(y)∥2≤ρ∥x−y∥2,

then every orbit is automatically Cauchy:

∥xt−x∗∥2≤ρt∥x0−x∗∥2,

and by Banach's fixed-point theorem the fixed point x∗ is unique. The ρ∗ of 23.1–23.5 is the smallest factor this contraction can have at the optimal step. What we test here is whether the model's reported orbit also contracts like ρt and has a unique fixed point. We measure the rate the model actually walks. ρ∗ is the ideal operator's rate at η∗; whether the model uses η∗ is what the experiment answers.

There is one more ruler worth crossing. The Bregman tangent norm

dH(p,A)2=(p−A)⊤diag(1A)(p−A)

is the second-order principal part of KL near A. The analysis below computes both dE (Euclidean distance in tangent space) and dH; across the six orbits the two rates differ by at most 0.03. Euclidean distance is not a shortcut here; it agrees with Bregman geometry.

Why dH is the second-order principal part of KL

Let p=A+v with ∑ivi=0. Expand each component:

log⁡Aipi=−log⁡(1+viAi)=−viAi+vi22Ai2+O(vi3).

Multiply by Ai and sum. The linear term is −∑ivi=0, and the quadratic term is

∑iAi⋅vi22Ai2=12∑ivi2Ai=12dH(p,A)2.

So DKL(A∥p)=12dH(p,A)2+O(∥p−A∥3). In this ruler ρ∗ is exact.

One sentence: do not measure KL on the simplex; move the belief to tangent space and measure the Cauchy sequence in Euclidean distance.

Experiment design: two tasks, three starts ​

Protocol: each step writes the current belief as one line of text and asks the model not to re-solve the problem but to make one small adjustment in the direction the evidence points, then to box the updated triple in \boxed{}; that triple is the next input. Temperature 0, three starts per task, twelve steps each.

The experiment uses two tasks from the same family with different condition numbers.

Task C3 (two Blue reports). A bag contains 7 red balls, 2 blue balls, and 1 black ball. A detector is correct with probability 0.70; when wrong, it reports each of the other two colors with probability 0.15. Two independent reports are both Blue. The prior is

π=(0.70, 0.20, 0.10),

the likelihood is

ℓ=(0.152, 0.702, 0.152),

and the Bayesian posterior is

Aobs=(πiℓi)i∑jπjℓj=(0.1358, 0.8448, 0.0194).

Task C4 (one Blue report). The same detector, a bag with 4 balls of each color, and a uniform prior; one Blue report. Thus

π=(13,13,13),ℓ=(0.15, 0.70, 0.15),Aobs=(0.1500, 0.7000, 0.1500).

Why these two? They share one geometry but pull the condition number apart: C3 has κT=8.60, ρ∗=0.792; C4 has κT=2.10, ρ∗=0.355. If the model's step is near optimal, C3 should be visibly slower than C4; if the measured rates are about the same, the model is not using η∗ but a step that does not adapt to the task. This contrast diagnoses the model's step size; ρ∗ was proved in 23.3.

Each task starts from three points:

(0.10,0.20,0.70),(13,13,13),(0.70,0.20,0.10).

The first is black-skew, the second neutral, the third red-skew. The starts are far apart, which tests whether they land on the same fixed point. Each task runs twelve steps at temperature 0 with two decimals; the two tasks take 2×3×12=72 API calls.

In this chapter's notation, Aobs plays the role of the anchor A: the point the conditional label distribution should give once the evidence is written into the question. Chapter 12 says the model returns to its A; here we compute that A analytically and then check whether the orbit really lands on it.

One sentence: two condition numbers, three starts, twelve steps; one fixed point and one contraction law are on trial.

Results: geometry holds; the model has its own step size ​

First the table.

TaskκTρ∗ρemp of the three orbitsSemi-log R2
C3 (two Blue reports)8.600.7920.610 / 0.653 / 0.7530.911–0.982
C4 (one Blue report)2.100.3550.711 / 0.754 / 0.7530.831–0.927

The three orbits are the black-skew, uniform, and red-skew starts. ρemp comes from fitting log10⁡d against t separately for each orbit over the near-anchor window 0.01<d<0.5, with ρemp=10b. Each orbit gets its own number; no average rate is formed.

Figure 23.8: A tangent-space Cauchy sequence on a real model — fixed point, semi-log near-line, log-log bend, and tail contraction

Figure 23.8 has four panels.

(a) Tangent plane: is there a common fixed point? The axes are x1 and x2; each polyline is one orbit, the hollow point is its start, and the black star is Aobs. The three starts of a task approach the same star; C3 and C4 have different stars because the evidence differs. This panel answers “is there a fixed point,” not “how fast.”

(b) Semi-log: is convergence geometric? The vertical axis is log10⁡dE and the horizontal axis is step t. If every step multiplies by the same ρ, this is a straight line with slope log10⁡ρ. Each orbit is drawn only until it falls below the two-decimal readout floor (10−2); beyond that the last digit jitters, and plotting it adds only noise. C3's fitted rates are 0.61–0.75, below the theoretical ρ∗=0.792; the reason is the economics interval below. C4's theoretical ρ∗=0.355 calls for a much steeper slope, and the model's orbits do not follow it.

(c) Log-log: is it a power law? The axes are log10⁡(t+1) and log10⁡dE. A power law d∝t−α would be a straight line here. The same data bend downward; the fitted exponent drifts from −3.3 to −1.8 with the start. A genuine power law does not drift like that. Semi-log R2 is 0.83–0.98, log-log R2 is 0.82–0.93; the log-log problem is not merely a slightly lower R2, but an exponent that moves with the start. Geometry is the better description. These panels are also drawn only above the readout floor.

(d) Tail diameter: the Cauchy certificate. The axes are εN and N. The curve falls, so the tail looks more and more like one point; all six orbits cross ε=0.05 within steps 6–11. The flat end comes from the two-decimal readout floor: once distances reach the 10−2 scale, the output can no longer distinguish them. This is the empirical certificate for this window.

The reading order is three words: fixed point, law, certificate. (a) fixed point, (b)(c) law, (d) certificate.

Now the most interesting part. C3's three rates run from 0.610 to 0.753, all below the theoretical ρ∗=0.792; C4's three run from 0.711 to 0.754, all clearly above ρ∗=0.355. Each number says its own thing.

  • ρ∗ is the optimal rate that Theorem 23.2 gives at the optimal step η∗, namely ρ∗=minη>0ρ(η). It is the ideal projected-gradient operator's smallest compression factor and the fastest convergence theory allows.
  • ρemp is the rate the model walks under the “one small adjustment” prompt. The step size is the model's own choice.

C4's gap shows that the model does not sit at η∗. ρ∗ is not wrong; the model does not walk at the optimum. Theory says C3 should be much slower than C4 (0.792 versus 0.355); the measurements put both tasks in almost the same stretch, C3 at 0.610–0.753 and C4 at 0.711–0.754. The model uses its own step, not the theoretical optimum. This is not anomalous: every step in the stability window is legal, and ρ∗ is only the fastest point in it.

Plug in the harmonic mean: C3's a=1/35.8959, b=1/4.1737 give η∗=2ab/(a+b)=0.0499; C4's a=1/6.6667, b=1/3.1746 give η∗=0.2032. The model's common effective step 0.044 is close to C3's optimum and far from C4's; this is exactly why C3's measured rate stays near its own ρ∗, while C4's sits far above its own ρ∗.

The two experiments' m and ρ: two residents at once. Draw each task's own band directly. Fix an effective step η; the linearized matrix JT=I−ηHT has eigenvalues 1−ηλi. Let

m(η)=mini|1−ηλi|,ρ(η)=maxi|1−ηλi|.

After this step the error retains at least m(η) times what it had and at most ρ(η) times; so every step size yields a legal-rate band [m(η),ρ(η)]. The endpoint m is where the most is reclaimed, ρ where the least is; the width ρ−m is the spread between modes at that step, and the cost end is ρ. At η=η∗ the band collapses to a point, m(η∗)=ρ(η∗)=ρ∗; away from η∗ it widens. (Note: m and ρ are rates, not curvature endpoints; the harmonic mean in 23.3 applies to 1/λmax and 1/λmin, not to these two rates.)

The model's step is not written directly in its output. The experiment is designed to test whether it is a step that does not adapt to the task; call that common effective step η and ask whether the data support it. The spectral endpoints are C3's λmin=4.1737, λmax=35.8959 and C4's λmin=3.1746, λmax=6.6667.

Require every orbit in both experiments to land in its own band. The two tightest constraints are: C4's lowest rate requires η≥(1−0.711)/6.6667≈0.0434; C3's lowest rate requires η≤(1+0.610)/35.8959≈0.0449 (C4's η is still left of 1/λmax; C3 has crossed it). Their intersection gives

0.0434≤η≤0.0448

(the upper end rounded down conservatively). Take η=0.044, substitute the two spectra into the definitions, and the table follows:

Experimentm(η)ρ(η)WidthThree orbits' ρemp
C30.580.820.240.610 / 0.653 / 0.753
C40.710.860.150.711 / 0.754 / 0.753

All three C3 orbits lie in their own [0.58,0.82]; all three C4 orbits lie in their own [0.71,0.86]. It is not one large interval holding six orbits; it is two bands existing at once, each experiment succeeding on its own. C3's band is wider and sits lower; C4's is narrower and sits higher. They overlap near [0.71,0.82], but they are two residents, not one. Each orbit goes back to its own band.

This also makes “economics” concrete: the width is not an error bar but the spread of retention ratios left by different modes at one step. m is the optimistic end, ρ the cost end; the step count is set by ρ, while the width tells you how much the step's performance depends on which mode dominates. C3's width is 0.24 and C4's is 0.15: C3's spectral span is larger, so its modes are spread further apart. But width is not cost; cost is read at ρ. At this common step, C4's ρ=0.86 is higher than C3's 0.82: the cost end of both bands falls on 1−ηλmin, and C4 has the smaller λmin and sits farther from its own ρ∗=0.355; so C4's worst case is actually slower. A wider band is not a more expensive one; look at the ρ end.

This also bounds what the experiment can say. A single task's rate cannot pin the step; put both tasks at one common effective step, and two bands each contain their own samples, narrowing the step to 0.0434–0.0448. C3's readings are below its own ρ∗, C4's above its own; both are legal inside their own bands. Pinning the step more finely requires a longer, finer window.

Two existence claims. At a fixed step, a task's legal rate is not a line but a band: m(η)≤ρ≤ρ(η). Now there are two tasks and two bands: C3's [0.58,0.82] and C4's [0.71,0.86]. Each task's three orbits lie in its own band. It is not one large interval holding every sample; it is two residents existing at once—each experiment has its own construction, and both succeed.

Put the two tasks side by side: C3's band is wider and lower, C4's narrower and higher; they overlap on [0.71,0.82]. C3's samples 0.610–0.753 do not press against its lower bound (0.58); C4's 0.711 almost touches its lower bound (0.71), and its other two sit inside. One wide and one narrow, one loose and one tight—two experiments, each succeeding on its own.

A proof, not a precision claim. Write the proposition as a type: there is a common step η such that each task's legal-rate band contains its own orbits. The construction comes from the tangent spectrum and η=0.044: m(η) and ρ(η) are computed, not fitted orbit by orbit; C3 gives [0.58,0.82] and C4 gives [0.71,0.86]. The check is that six orbits, twelve steps each, 72 readouts, do lie in their own bands. Because η was inferred from these readings, this is a consistency check, not an independent prediction; what it proves is that such a common step and two bands exist, not that the bands were given in advance. Both types are inhabited, and two real residents moved into the model. The direction matters: the samples do not witness the optimum; they only show that they fit inside their own band, and neither band requires a sample to sit on ρ∗. The resident is the parent, the samples the children; this time there are two parents and two children, each going home to its own.

The Curry–Howard point. A proof of an existence proposition is the construction of its resident; now there are two existence propositions, so there are two residents. The experiment does not issue each sample a certificate of optimality; it checks whether each task's readings live inside their own band. This is not witness logic: the samples do not witness the optimum, they only have to show they fit inside. C3's three move into C3's band, C4's three move into C4's band; both constructions hold. Conversely, if every sample landed exactly on its own ρ∗, that would look more like fitting than measurement.

What this step proves. It is two existence proofs for these two tasks, six starts, and a twelve-step window. The 72 readouts are not 72 independent experiments but time points of six orbits; nor is this a universal claim about all prompts and temperatures. Changing prompts, changing temperature, adding tasks is the next step from "exists in these two" to "exists on a wider range". The optimal orbit itself can be written down: at η∗, m(η∗)=ρ(η∗)=ρ∗; it is a mathematically constructible orbit. The model need not walk it; the real orbit only has to fall inside the range it licenses.

Two lines per resident are enough. This is an existence construction, not a statistical estimate. Building one task's resident needs only two endpoints: m(η) gives the lower bound and ρ(η) the upper. At η=0.044, draw the two lines and the band exists. Each task draws two lines, giving two bands; each band contains its own three orbits, and the two existence propositions are proved. What is proved is the existence of the resident bands, not the optimality of the samples; the samples merely live inside. More tasks, prompts, and temperatures are not necessary for the construction; they ask how far the residents reach, which is robustness, not existence. Mathematically, constructing an object takes one valid construction; repeated sampling is engineering reinforcement, not a logical requirement.

A healthy band, not a magic interval. The resident band is not fitted point by point; given the common step, it is computed directly from the tangent spectrum and does not fit each orbit's rate. The common step itself is inferred from the data and is the only quantity taken from the data; it is chosen so that the two bands contain all six orbits at once. This is a construction, not a data-free prediction. What the band gives is a healthy range, not a pass saying "inside means optimal." Most positions in the band are merely legal, normal, and convergent; only a very thin line near ρ∗ is optimal. Being inside means the model has not left the healthy range—it does not mean the model is optimal, still less that it guarantees explosive learning or explosive reasoning. Legality is still judged by the step lying in the stability window and each step's rate lying in its task's [m(η),ρ(η)]; a reading outside the interval is not automatically illegal, it may just come from a slower legal step. Every task, and every model satisfying this geometry, has its own legal band; the model lives in the band, not outside it. Treating any point in the band as "optimal" is the shortcut—and there is no such shortcut here.

Top models live in the interval too. This is not "DeepSeek happened to qualify"; it is the construction doing its job: as long as a model makes small Bayesian updates on the simplex, its legal rate lies in its task's [m(η),ρ(η)]. This time DeepSeek's six orbits land in two bands: C3's 0.610–0.753 in [0.58,0.82], C4's 0.711–0.754 in [0.71,0.86]. A real large model moved into both residents. The measured behavior of this top model is inside the healthy band, not on the optimal line. Whether every top model does the same needs more models; the construction itself does not favor any model.

This is the experiment's value: it verifies the geometry and the fixed point, measures how far the model sits from the optimal step, and confirms that both residents are non-empty.

  • Geometry verified. All six orbits contract in tangent space, semi-log is close to straight, the fixed point is the evidence-consistent posterior, and the tail diameter falls.
  • Fixed point verified. C3 and C4 land on their own posteriors; different starts, same landing point.
  • Two residents verified. C3 and C4 each have a band, and all six orbits lie in their own; it is not one large interval barely containing every point, but two bands each holding on its own.
  • Step size measured. The two experiments narrow the common effective step to 0.0434–0.0448. The model walks its own legal step, not the optimum. ρ∗ measures the ideal operator; ρemp measures the model.

Two technical details. First, across the six orbits dH and dE differ by at most 0.03 in rate; the two norms give the same contraction picture. Second, some orbits have not reached ε=0.01 within twelve steps; a longer window is the next experiment.

Code: keep the audit in the text ​

Industrial verification differs from a toy experiment not in length but in whether someone else can walk the same path through the code. The two snippets below collect and analyze; comments are in English and state only the coordinates, boundaries, and reasons for choices.

Beyond the standard library, the two snippets depend only on httpx and numpy; the key is read from an environment variable and never appears in the text.

Collection:

python
import json
import os
import re
import time
from pathlib import Path

import httpx

BOX = re.compile(r"boxed\s*\{([^{}]*)\}", re.I | re.S)
NUM = re.compile(r"-?\d+(?:\.\d+)?")

QUESTION = """Question: A bag contains 7 red balls, 2 blue balls, and 1 black ball.
The balls are otherwise identical. A detector examines a ball drawn at random
and reports its color. The detector is correct with probability 0.70; when it
is wrong, it reports each of the other two colors with equal probability.
The detector reports "Blue" on the first draw and "Blue" on the second draw
(after replacing the ball). Which color is the drawn ball most likely?"""


def ask_once(client, url, key, belief, decimals=2):
    """One API call. Return the reported belief as a probability vector.

    The model sees the current belief and is asked for one small adjustment;
    the boxed triple is the next point of the reported orbit.
    """
    user = (
        QUESTION
        + "\n\nCurrent belief: "
        + f"(red={belief[0]:.4f}, blue={belief[1]:.4f}, "
          f"black={belief[2]:.4f}).\n"
        + "Reconsider the question from the statement and make one small "
          "adjustment to your belief in the direction the evidence points. "
          "Do not re-solve the problem from scratch.\n"
        + f"At the very end, box the updated belief with {decimals} decimals "
          "in the order Red, Blue, Black, summing to 1."
    )
    body = {
        "model": "deepseek-flash",
        "messages": [{"role": "user", "content": user}],
        "thinking": {"type": "disabled"},
        "reasoning_effort": "none",
        "temperature": 0.0,       # greedy decoding; no sampling temperature
        "max_tokens": 2048,
    }
    r = client.post(url, json=body,
                    headers={"Authorization": f"Bearer {key}"}, timeout=120)
    r.raise_for_status()
    text = r.json()["choices"][0]["message"]["content"]
    for box in reversed(BOX.findall(text)):
        nums = [float(x) for x in NUM.findall(box)]
        if len(nums) == 3 and sum(nums) > 0:
            s = sum(nums)
            return tuple(x / s for x in nums)   # tolerate tiny rounding drift
    return None


def run_orbit(client, url, key, start, steps=12):
    """Iterate the reported-belief map and return the orbit."""
    path = [tuple(start)]
    for _ in range(steps):
        q = ask_once(client, url, key, path[-1])
        if q is None:
            break
        path.append(q)
        time.sleep(0.2)       # keep the request rate modest
    return path


STARTS = {
    "black_skew": (0.10, 0.20, 0.70),
    "uniform": (1 / 3, 1 / 3, 1 / 3),
    "red_skew": (0.70, 0.20, 0.10),
}
A_STAR = (0.1358, 0.8448, 0.0194)   # C3 posterior; swap in C4's for task c4


def save_orbit(task, A_star, orbits):
    """Write one experiment file next to this script."""
    path = Path(".") / f"ch23_orbit_{task}.json"
    path.write_text(json.dumps({"task": task, "A_star": A_star,
                                "orbits": orbits}, indent=1),
                    encoding="utf-8")
    return path


key = os.environ["DEEPSEEK_API_KEY"]   # read from the environment; never print it

url = "https://api.deepseek.com/chat/completions"
with httpx.Client() as client:
    orbits = {name: run_orbit(client, url, key, start)
              for name, start in STARTS.items()}
print(save_orbit("c3", A_STAR, orbits))

Run all three starts and write the orbits to ch23_orbit_c3.json; the analysis reads it back from the same directory. For C4, only QUESTION changes to the one-Blue-report version, the starts change to the three points in the table, and the output file is ch23_orbit_c4.json.

Analysis:

python
import json
import math
from pathlib import Path

import numpy as np

HERE = Path(".")
U = np.array([1 / 3, 1 / 3, 1 / 3])
E = np.array([[1, 0, -1], [1, -2, 1]], float)
E /= np.linalg.norm(E, axis=1, keepdims=True)


def load_orbit(task):
    """Read the JSON written by the collector from this directory."""
    path = HERE / f"ch23_orbit_{task}.json"
    with open(path, encoding="utf-8") as f:
        return json.load(f)


def tangent(p):
    """Coordinates of p - U in the orthonormal basis of T."""
    return E @ (np.asarray(p, float) - U)


def spectrum(A):
    """2x2 matrix of P_T diag(1/A) P_T in the tangent basis."""
    m = 1.0 / np.asarray(A, float)
    h11 = 0.5 * (m[0] + m[2])
    h22 = (m[0] + 4 * m[1] + m[2]) / 6
    h12 = (m[0] - m[2]) / math.sqrt(12)
    return np.array([[h11, h12], [h12, h22]])


def rho_star(A):
    """Optimal contraction rate from the two tangent eigenvalues."""
    lam = np.linalg.eigvalsh(spectrum(A))
    kappa = lam.max() / lam.min()
    return kappa, (kappa - 1) / (kappa + 1)


def distances(P, A):
    """Euclidean distance in T; equals ||p - A||_2 because p - A is in T."""
    X = np.array([tangent(p) for p in P])
    return np.linalg.norm(X - tangent(A), axis=1)


def fit_rate(d, floor=1e-2, dmax=0.5):
    """Fit log10 d = a + b t near the anchor; return rho = 10**b."""
    t = np.arange(len(d))
    m = (t >= 1) & (d > floor) & (d < dmax)
    if m.sum() < 2:
        return float("nan")
    b, _ = np.polyfit(t[m], np.log10(d[m]), 1)
    return 10 ** b


for task in ("c3", "c4"):
    data = load_orbit(task)
    A = np.array(data["A_star"], float)
    kappa, rho = rho_star(A)
    print(f"{task}: kappa_T={kappa:.3f}  rho*={rho:.3f}")
    # common effective step inferred from the two bands (see text)
    vals = np.abs(1 - 0.044 * np.linalg.eigvalsh(spectrum(A)))
    print(f"  band at eta=0.044: m={vals.min():.2f}  rho={vals.max():.2f}")
    for name, P in data["orbits"].items():
        d = distances(np.array(P, float), A)
        print(f"  {name:10s} rho_E={fit_rate(d):.3f}")

The code fits each orbit separately; the three numbers in the table are exactly the rho_E it prints. The band at eta=0.044 line prints each task's [m,ρ]; the table's m and ρ come from it, and the width is their difference. Its input is ch23_orbit_c3.json and ch23_orbit_c4.json, written by the collector in the same directory; the same near-anchor window and fit also produce panels (b) and (c) of Figure 23.8.

One sentence: code is not decoration in an appendix; it is the part that lets the conclusion be audited.

What this experiment covers ​

The orbit is the model's reported belief, not an internal activation. The report is all the interface gives, and all a reader can rerun.

It holds for the “small adjustment” map. For the same question, “answer immediately” and “small adjustment” give different fixed points; changing the prompt changes the map. Chapter 12 speaks about a fixed map; here the evidence is written into the question, so the anchor becomes the evidence-consistent posterior.

It is a window of twelve steps and two decimals, one model, two tasks. That is all the data: the empirical rate, the tail diameter, and the fixed point inside this window. Treating these numbers as universal constants is a misreading; moving the method to other models and tasks is the next step.

One sentence: the window is finite and the conclusion is definite: inside this window the orbit is Cauchy, and the geometry holds.


23.7 Conclusion: Intelligence, Emergence, and the Ordinary Equation ​

Back to the opening: three answers, initial error 0.648, three steps to 0.1, each step multiplying by about 0.45.

That number is

ρ∗=κT−1κT+1,κT=λmaxλmin,κT=1+ρ∗1−ρ∗.

Together with the HT behind it, it determines exactly five things:

  1. Slope. The semi-log error curve has slope ln⁡ρ∗.
  2. Steps. The number of steps to reach ε is exactly sandwiched between κT−12ln⁡1ε and κT2ln⁡1ε.
  3. Stability. The stability window is 0<η<2/λmax, and the optimal step is η∗=2/(λmin+λmax).
  4. Empirical readout. A real model's reported beliefs form a Cauchy sequence in tangent space; semi-log is close to straight and log-log bends; the fixed point is the evidence-consistent posterior; the measured ρemp runs over C3 0.610–0.753 and C4 0.711–0.754 on three orbits. This is the rate the model walks under “one small adjustment.” The geometry holds on the real orbit; the step size is the model's own.
  5. The emergence criterion. If ρ∗ is unchanged while the metric jumps, it is a readout; if ρ∗ jumps, it is dynamics.

The whole chain has only three links:

one number, determined by two endpoints; two endpoints, determined by the tangent Hessian; the tangent Hessian, determined by the anchor and the simplex constraint.

Chapter 12 says: inference converges to the prior anchor A, not to the true answer A∗. This chapter adds the “how fast”:

How fast is determined by one condition number; the condition number is determined by two endpoints of the tangent Hessian; the two endpoints are determined by the matrix. Beyond this, there is no second scalar.

Now we can say which part of scaling law is ordinary and which part is not. What is ordinary is its format: as long as the output lies on the simplex, the loss is recorded as KL, and samples are counted, L(s)−L∞ will be a straight line on log-log paper. The format comes from geometry; the numerical values from engineering. What is not ordinary is why it keeps going down: a real system's floor falls with parameters, data, and compute together; what the exponent is, and how long it can keep falling, is a question for empirical science, requiring experiments and time. Separate the two: format belongs to geometry, exponent to experiment.

This chapter does not reproduce any company's curve, nor use a toy to impersonate it. It measures the same geometry behind that curve: a system whose output lies on the simplex converges as ρt, and a real model's reported beliefs do the same. Engineering decides the numbers; geometry decides the necessity. This holds for any system whose output lies on the simplex, and for a real model's belief orbit — which is exactly what it means to call the result universal.

Intelligence and emergence look like miracles mainly when we stare at a single readout; put the readout back on the curve, and they are simply names that one ordinary equation takes at different scales.

One sentence: the curve does not belong to any one company; it belongs to everyone who counts on the simplex.


Open Questions ​

How should the rate be estimated away from the anchor's neighborhood? The ρ∗ here is the exact rate of the linearization near A. A real trajectory carries higher-order terms before it enters that small neighborhood; the first ratio in the opening table being noticeably smaller than ρ∗ is a shadow of this “head start.” Can the tangent spectrum alone give a finite-step, non-asymptotic error bound? If the large components of the initial error happen to lie in fast directions, the actual window will be shorter than ρ∗ predicts — can that gap be computed exactly? This is open.

Can λmin and λmax be measured directly on large models? The spectra here are computed on explicit distributions with K=3 to 2048. A real LLM has a huge vocabulary, and the Hessian cannot be stored explicitly. Can stochastic trace estimation, Lanczos, or implicit differentiation give reliable endpoint estimates? That would turn the diagnosis of whether the slope changes with scale from theory into experiment.

When does ρ∗ change with scale? This chapter gives the criterion but not a model for ρ∗(N). If the appearance of a slow mode has a critical scale, what determines that critical point? This is what the other half of the scaling curve really needs to answer.

Are twelve steps and two decimals enough? The Cauchy certificate in 23.6 covers one finite window; the two-decimal readout floor is around 10−2. Can longer orbits and a finer readout estimate ρemp more stably? Does its gap from ρ∗ come from the model's step not being η∗, the readout precision, or a map that is not projected gradient? These are experimental questions, not algebraic ones.

Why does the fixed point move when the interface changes? The “small adjustment” map in 23.6 converges to the evidence-consistent posterior; the earlier “answer immediately” map converged to a prior-dominated point. Which map is the model's real inference dynamics? This requires treating the interface, the prompt, and the readout as variables, not mistaking one readout for the whole model.


Exercises ​

★ Warm-up

  1. Using the opening table, verify at which step the error ratio settles near ρ∗. Why is the first ratio noticeably smaller?
  2. For K=3 and q=(1/3,1/3,1/3), verify HT=3PT, write down all eigenvalues, and compute ρ∗.
  3. For q=(0.70,0.20,0.10), use the secular equation to compute λmin,λmax,κT, then η∗,ρ∗, and N(0.1).
  4. Using the table in 23.6, compare each C3 orbit's ρemp with ρ∗, then do the same for C4 and compare the two ranges.

★★ Derivations

  1. Prove Lemma 23.1: the convex function g(λ)=|1−ηλ| attains its maximum on an interval at an endpoint.
  2. Prove tr(HT)=(1−1/K)∑i1/qi.
  3. Prove Theorem 23.2: η∗=2/(λmin+λmax) is the unique minimizer, ρ∗=(κT−1)/(κT+1), and the two endpoint branches are equal at the optimum.
  4. Prove the two bounds in Theorem 23.3: 2x2+x≤ln⁡(1+x)≤x.
  5. Prove that for any two probability vectors p,q, p−q∈T and ∥x(p)−x(q)∥2=∥p−q∥2. Then prove that the Euclidean norm on T and the Bregman tangent norm ∥⋅∥HT are equivalent, and give the equivalence constants.
  6. Prove that if F:T→T satisfies ∥F(x)−F(y)∥2≤ρ∥x−y∥2 with ρ<1, then every orbit is Cauchy, the limit is unique, and ∥xt−x∗∥2≤ρt∥x0−x∗∥2.

★★★ Challenge

  1. For K=3, write the secular equation as 3s3λ2−2s2λ+1=0, and verify that it matches the quadratic in Chapter 12.
  2. Design an experiment that uses only the change of ρ∗ with scale to distinguish a “readout effect” from a “spectral bifurcation.” State what you would see in each case and how to rule out confounders.
  3. Try to construct a counterexample showing that away from the anchor's neighborhood, where second-order terms cannot be ignored, the Euclidean linearized rate ρ∗ is no longer the exact rate; then state what extra condition would restore an exact rate formula.
  4. Extend the twelve steps of 23.6 to thirty, or raise the output precision to six decimals, and re-estimate ρemp. If it is stable but far from ρ∗, the model's step is not η∗; if it drifts with the window, the window is still too short. Design a control experiment that separates the two explanations.

Appendix: Core Computation Script ​

The code below does one thing: given an anchor q, it computes the two endpoints of the tangent spectrum via the secular equation, then the exact rate, the optimal step, and the window. It trains no model.

python
import numpy as np

def tangent_spectrum(q, iters=90):
    """Eigenvalues of P_T diag(1/q) P_T on T={sum=0}, via secular equation."""
    d = np.sort(1.0 / np.asarray(q, float))
    K = len(d)
    roots = np.empty(K - 1)
    for j in range(K - 1):
        lo, hi = d[j], d[j + 1]          # one root in each interval
        for _ in range(iters):
            mid = 0.5 * (lo + hi)
            f = np.sum(1.0 / (d - mid))  # sum 1/(d_i - lambda)
            if f > 0: hi = mid
            else:     lo = mid
        roots[j] = 0.5 * (lo + hi)
    return roots


def rate(q, eps=0.1, e0=1.0):
    lam = tangent_spectrum(q)
    lam_min, lam_max = lam.min(), lam.max()
    kappa = lam_max / lam_min
    eta_star = 2.0 / (lam_min + lam_max)
    rho_star = (kappa - 1.0) / (kappa + 1.0)
    n_real = np.log(e0 / eps) / np.log(1.0 / rho_star)
    n_steps = np.ceil(n_real)
    lo = (kappa - 1.0) / 2.0 * np.log(e0 / eps)
    hi = kappa / 2.0 * np.log(e0 / eps)
    return dict(lam_min=lam_min, lam_max=lam_max, kappa_T=kappa,
                eta_star=eta_star, rho_star=rho_star,
                n_real=n_real, n_steps=n_steps, n_lo=lo, n_hi=hi)


print(rate([0.70, 0.20, 0.10]))
# lam_min=2.9904, lam_max=7.9620, kappa_T=2.6625,
# eta_star=0.18261, rho_star=0.45393, n_real=2.915, n_steps=3,
# n_lo=1.914, n_hi=3.065

print(rate([0.35, 0.25, 0.15, 0.12, 0.08, 0.05]))
# kappa_T=5.4268

References

  • Banach, Stefan (1922). “Sur les opérations dans les ensembles abstraits et leur application aux équations intégrales.” Fundamenta Mathematicae 3(1), 133–181. DOI: 10.4064/fm-3-1-133-181. — the original paper on the contraction mapping principle
  • Schaeffer, Rylan; Miranda, Brando; and Koyejo, Sanmi (2023). “Are Emergent Abilities of Large Language Models a Mirage?” arXiv:2304.15004. — emergent abilities as a metric artifact
  • Wei, Jason; Tay, Yi; Bommasani, Rishi; Raffel, Colin; Zoph, Barret; Borgeaud, Sebastian; Yogatama, Dani; Bosma, Maarten; Zhou, Denny; Metzler, Donald; Chi, Ed H.; Hashimoto, Tatsunori; Vinyals, Oriol; Liang, Percy; Dean, Jeff; and Fedus, William (2022). “Emergent Abilities of Large Language Models.” arXiv:2206.07682. — a systematic description of emergent phenomena
  • Nesterov, Yurii (2018). Lectures on Convex Optimization, 2nd edition. Springer Optimization and Its Applications 137. Springer. DOI: 10.1007/978-3-319-91578-4. — strong convexity, smoothness, step size, and condition number
  • Boyd, Stephen; and Vandenberghe, Lieven (2004). Convex Optimization. Cambridge University Press. DOI: 10.1017/CBO9780511804441. — nonexpansiveness of projection and convergence rates
  • Cover, Thomas M.; and Thomas, Joy A. (2006). Elements of Information Theory, 2nd edition. Wiley. — the local quadratic expansion of KL and the covariance of empirical distributions
  • Chapter 12, Yonglin's Formula — the global version of the Yonglin theorem, tangent spectral bounds, and direct evidence