Equal sign updates can remove a frequency-dependent delay while leaving a persistent prediction error.

Benhaim, Bach and Kunstner’s The Cross-Entropy Gap: Scaling Laws for Sign Descent and Gradient Descent, first public December 1, studies deterministic bigram learning with Zipfian frequencies. Its GD limit and conditional sign-descent limit have different proof assumptions. Here is a separate finite binary calculation.

Fix the parameterization and the population loss

Contexts \(A,B\) occur with probabilities \(\pi_A=3/4\) and \(\pi_B=1/4\). In either context the target probability of outcome one is \(q=3/4\). Optimize one scalar logit \(\beta_j\) per context, keeping the other binary logit fixed at zero:

\[p_j=\sigma(\beta_j)=\frac{e^{\beta_j}}{1+e^{\beta_j}},\qquad L(\beta_A,\beta_B)=\sum_{j\in\{A,B\}}\pi_j f(\beta_j),\] \[f(\beta)=\log(1+e^\beta)-\frac34\beta, \qquad f'(\beta)=\sigma(\beta)-\frac34.\]

These are exact population gradients. Both logits start at zero, so both initial predictions are \(1/2\). Strict convexity gives the common optimum \(\beta_* =\log3\) and \(p_*=3/4\).

This coordinate choice matters. Training two free logits would change the induced log-odds update. All calculations below use the stated single-logit coordinates.

Compute the frequency clock exactly

First consider continuous gradient flow with unit learning-rate multiplier:

\[\dot\beta_j=\pi_j\left(\frac34-\sigma(\beta_j)\right).\]

The factor \(\pi_j\) rescales time. We can also integrate it explicitly. Put \(y=e^{\beta_j}\). Until the optimum \(y=3\),

\[\dot y=\frac{\pi_j y(3-y)}{4(1+y)},\qquad \frac{dt}{dy}=\frac{4(1+y)}{\pi_j y(3-y)} =\frac4{3\pi_j}\left(\frac1y+\frac4{3-y}\right).\]

Use the common threshold \(p=2/3\), which corresponds to \(y=2\). Starting from \(y=1\), its hitting time is

\[T_j=\frac4{3\pi_j}\left[\log y-4\log(3-y)\right]_1^2 =\frac{20\log2}{3\pi_j}.\]

Therefore

\[T_A=\frac{80\log2}{9}\approx6.161308, \qquad T_B=\frac{80\log2}{3}\approx18.483925, \qquad \frac{T_B}{T_A}=3.\]

The rarer context reaches the threshold three times later. The threshold is below the optimum; the flow approaches \(p=3/4\) asymptotically. These are continuous flow times, not iteration counts or wall-clock measurements.

Remove the clock with a sign, then follow the orbit

Now use discrete sign descent with a fixed step \(\eta=\log2\):

\[\beta_j^{t+1}=\beta_j^t -\eta\operatorname{sign}\!\left(\pi_j(p_j^t-3/4)\right) =\beta_j^t-\eta\operatorname{sign}(p_j^t-3/4).\]

Each context has positive frequency, so its magnitude cancels inside the sign. Both coordinates follow exactly the same sequence. The relevant gradients before multiplying by \(\pi_j\) are

\[f'(0)=-\frac14,\qquad f'(\log2)=-\frac1{12},\qquad f'(\log4)=\frac1{20}.\]

Thus

\[0\ \longrightarrow\ \log2\ \longrightarrow\ \log4 \ \longrightarrow\ \log2\ \longrightarrow\ \log4\ \longrightarrow\cdots.\]

After one step both contexts reach \(p=2/3\). Thereafter the predictions alternate exactly:

\[p_j^t= \begin{cases} 2/3,&t\text{ odd},\\ 4/5,&t\geq2\text{ even}. \end{cases}\]

The optimum lies strictly between the two logit values. Running more steps at this fixed step size never hits it. The frequency delay has disappeared, while a discretization error remains.

Quantify the two losses

For a predicted probability \(p\), define the excess binary cross-entropy

\[D(p)=\frac34\log\frac{3/4}{p} +\frac14\log\frac{1/4}{1-p}.\]

It is the KL divergence from the target Bernoulli distribution to the prediction. Because both contexts have the same prediction at each step and their frequencies sum to one, \(L-L_*=D(p)\).

The cycle has two distinct positive losses:

\[\begin{aligned} D(2/3)&=\frac34\log(9/8)+\frac14\log(3/4) \approx0.016416759,\\ D(4/5)&=\frac34\log(15/16)+\frac14\log(5/4) \approx0.007381997. \end{aligned}\]

The last-iterate loss has no ordinary limit. Its period mean, also the long-run time average, is

\[\bar D=\frac{D(2/3)+D(4/5)}2\approx0.011899378.\]

The initial excess is \(D(1/2)=\tfrac34\log3-\log2\approx0.130812036\). The period mean is about \(9.0965\%\) of that initial excess, despite arbitrarily many updates.

Averaging losses is different from averaging predictions

A uniform mixture of the two checkpoint predictors outputs

\[\bar p=\frac12\left(\frac23+\frac45\right)=\frac{11}{15}, \qquad \bar p-q=-\frac1{60}.\]

Its excess loss is

\[D(11/15)=\frac34\log(45/44)+\frac14\log(15/16) \approx0.000720012.\]

Strict convexity of the cross-entropy in \(p\) gives \(0<D(\bar p)<\bar D\). Mixing predictions greatly reduces the error here, but does not recover the target exactly. Averaging the displayed losses only reports \(\bar D\); it does not construct this mixed predictor. Averaging logits would be another operation again.

Read the scaling law with its step-size rule

For sign descent, Assumption 4.4 models output-coordinate residuals as independent uniform variables. With \(\eta=\log(d)/(2T)\) and \(T\gg\log d\), Corollary 4.6 predicts normalized excess \(\sim\log(d)/(12T^2)\), in probability. The step changes between horizons; this is not a claim that one fixed-step run keeps improving as \(T^{-2}\).

Research judgment

For imbalanced language-learning objectives, I would measure arrival to a fixed probability threshold separately from the subsequent residual loss. A sign update can improve the first without solving the second. Even the final reported metric needs care: a last iterate, a two-step mean loss and a mixed predictor answer different questions.

The useful next check is whether output-weighted residual moments support the assumed scaling at the chosen vocabulary size and horizon. A histogram alone cannot establish that an actual trajectory follows a random residual model. I would also compare a single fixed-step trajectory with separately retuned horizons before attributing an apparent error-decay rate to the optimizer.

This toy has two contexts, a non-Zipfian distribution, identical conditional targets, deterministic population gradients, and a fixed reference logit. It illustrates mechanisms rather than the paper’s large-vocabulary theorem. Its synchronized contexts do not challenge an assumption about residuals across output coordinates. Flow time and discrete steps also remain different clocks. Stochastic gradients, shared features and momentum require separate analysis.

Four panels distinguish continuous frequency-dependent flow arrival times from discrete sign steps and their exact alternating binary predictions.

The comic was created with AI.