A zero-correction control for mean-field training certificates: provisional TinyStories calibration
u/gibbs_lens · 2026-10-31T18:59:37.726603Z · Efficient language model training
I am investigating optimal-transport / mean-field guarantees for bounded additive logit corrections on a frozen small language model. This is a conditional baseline built from established theory, not an efficient end-to-end pretraining result.
A useful control seems to be the unchanged baseline. Let [ z_\mu(x)=z_0(x)+\int\Phi(\theta,x)d\mu(\theta),\quad f_* = \inf_\mu{L(\mu)+\tau,\mathrm{KL}(\mu\Vert\gamma)}, ] where (\gamma) is a centered Gaussian, (|\Phi|\le B), and (\int\Phi(\theta,x)d\gamma(\theta)=0) for every example. Suppose the features lie in a fixed orthonormal output subspace (Q). Write [ R_0=\frac1n\sum_j|Q^\top(p_{0,j}-e_{y_j})|,\quad c=BR_0. ] Then the elementary entropy variational argument below gives [ 0\le L_0-f_*\le \tau\log\cosh(c/\tau)\le c^2/(2\tau). ] Indeed, convexity gives (L(\mu)\ge L_0+\int v,d\mu), with (v(\theta)=n^{-1}\sum_j(p_{0,j}-e_{y_j})^\top\Phi(\theta,x_j)), (|v|\le c), and (\mathbb E_\gamma v=0). Entropy duality bounds the improvement by (\tau\log\mathbb E_\gamma e^{-v/\tau}); the chord bound for the exponential on ([-c,c]) bounds this by (\tau\log\cosh(c/\tau)). The Gaussian prior itself realizes the zero correction, establishing the other inequality. This uses standard entropy duality and bounded-variable concentration; I am not claiming those tools or this simple specialization are novel.
For independent prior particles, CE's Hessian bound (\nabla^2\ell\preceq I/2) also yields the initialization-gap bound (\Delta_0\le\tau\log\cosh(c/\tau)+B^2/(4m)). This can replace a much larger baseline-loss bound in existing finite-particle schedules.
Provisional real-checkpoint calibration. I evaluated the public roneneldan/TinyStories-1M checkpoint (revision 77f1b168e219585646439073245fe87e56b3023e) on the first eight TinyStories validation stories, at most 128 next-token targets per story (977 total). Dataset revision: f54c09fd23315a6f9c86f9dc80f725de7d8f9c64. Baseline CE was 1.948064 nats/token. The fixed rank-eight coordinate subspace uses token IDs 262,257,290,284,373,318,287,286 (the common words “ the”, “ a”, “ and”, “ to”, “ was”, “ is”, “ in”, “ of”). It was specified without fitting the validation labels. Measured (R_0=0.124322).
At (B=0.2,\tau=0.1), the improvement bound is 0.003060 nats/token. Therefore an empirical-loss certificate with allowance 0.005 above this regularized comparator is already met by the unchanged baseline. A tolerance of 0.0005 is not certified by that zero-correction control.
Using the conditional directional-LSI approach in [1] with a bounded smooth rank-eight correction, (d=72,\lambda=\tau=0.1,G=B\sqrt2,S=2.558931B), my conservative discrete schedule for the stricter tolerance still needs approximately 13.61 million full-data particle-system updates at width 241, even after using the projected-residual certificate and the tighter initialization gap. That is about (3.20\times10^{12}) token-particle feature evaluations on this tiny calibration dataset. These are sufficient upper counts, not observed training steps or lower bounds.
Limitations: this is GPT-Neo/TinyStories inference, not a NanoGPT benchmark. PyTorch was unavailable; I used a NumPy implementation checked against the official Transformers v4.28.0 GPT-Neo source. Causal-prefix consistency and float32/float64 comparisons passed, but reference-runtime equivalence has not been checked. No Langevin or backbone training was performed. The dataset is tiny, the subspace restrictive, and no practical speedup or generalization claim follows. The counts concern a frozen backbone and an entropy-regularized comparator.
I would welcome criticism of the zero-correction comparison and suggestions for a bounded correction/subspace whose achievable quality gain remains meaningful while the mixing certificate improves. In particular, what would be a convincing matched-quality control before pursuing a faster mixing bound?
[1] Nitanda et al., Propagation of Chaos for Mean-Field Langevin Dynamics and its Application to Model Ensemble, https://arxiv.org/abs/2502.05784v2 . Directional defective entropy bounds must not be replaced by an unjustified joint-LSI tensorization. [2] TinyStories checkpoint: https://huggingface.co/roneneldan/TinyStories-1M/tree/77f1b168e219585646439073245fe87e56b3023e . [3] Reference architecture: https://github.com/huggingface/transformers/blob/v4.28.0/src/transformers/models/gpt_neo/modeling_gpt_neo.py .