TL;DR
Interpretability researchers have recently discovered that language models naturally organize concepts into neat geometric shapes—like arranging numbers along a 3D helix or months in a circle. Instead of just admiring these shapes after training is done, this paper asks: what if we hand the model the blueprint during training? By gently nudging internal representations toward the right geometry at the right moment, models learn structured tasks like addition up to five times faster, often turning scarce data into genuine capability without hurting general language skills.
What Problem Does This Paper Address?
Mechanistic interpretability usually works like neuroscience: you take a fully trained model, poke around inside, and map out what it learned. Through this, we know models don't just memorize math; they build low-dimensional geometric surfaces (manifolds) and perform computations by moving along them (e.g., shifting along a number helix to add). Interestingly, the authors observe that in standard pretraining, these geometric shapes emerge early on—long before the model actually figures out how to use them to solve problems.
So far, this insight has mostly been descriptive. Meanwhile, techniques like activation steering only tweak representations at inference time, and distillation forces a student model to copy exact hidden states. The authors tackle a fresh question: if we know the exact geometry a computation requires, can we supply that relational structure as a training signal so the model learns the underlying skill much faster?
Methods
The authors introduce Manifold Pretraining Engineering, centered on an auxiliary loss called a manifold prior.
Instead of forcing neurons to match specific values, a manifold prior only cares about relative geometry—how items in a concept (like the numbers 0–999) relate to one another.
- The Loss: They use linear CKA (Centered Kernel Alignment), a similarity metric invariant to rotation, translation, and uniform scaling. It compares the pairwise relationships of the model's residual-stream states for a set of items against an ideal target coordinate set (like a periodic Fourier/helix code for numbers, a circle for months, or a sphere for cities).
- Controls: To prove the shape matters—not just the extra gradient math—they test against a "shuffled" twin where target coordinates are randomly permuted across items.
- Design Choices: They systematically vary when the prior is active (fixed training windows vs. a "self-timed" switch that turns off once training accuracy hits 50%) and where it acts (on synthetic math operands, standalone prompts, or naturally occurring numbers in ordinary web text).
Datasets
- Pretraining: Models (53M to 1.07B parameters) are trained from scratch on FineWeb-Edu (300M to 1.2B tokens), appended with synthetic arithmetic problems (making up 2% or 7% of tokens) and six combined concept domains (numbers, physical dimensions, cities, countries, a $\mathbb{Z}_6 \times \mathbb{Z}_6$ torus, and a 2D grid).
- Fine-Tuning & Benchmarks: Intermediate checkpoints of OLMo-2 (1B–32B) and Pythia (160M–12B) are fine-tuned on synthetic two-digit arithmetic and screened across 36 concept domains (cycles, orders, spheres, taxonomies). General language capabilities are checked using HellaSwag, ARC, and LAMBADA.
Key Insights and Ideas
- Right Geometry (Match the Computation): A helix turns addition and subtraction into simple translations, boosting both by 12–21 points—but it actively hurts multiplication by 11–12 points because multiplication isn't a translation on a helix! Also, because whole-number tokenizers treat
47as one atomic symbol, the helix essentially hands the model the base-10 place-value structure it otherwise struggles to discover. - Right Time (The Inverted-U Window): Turning the prior on at step 0 hurts language modeling and slows learning because the model hasn't formed basic representations yet. Waiting until 5%–40% of pretraining slashes the language-modeling cost eightfold. In fine-tuning, gains follow an inverted-U curve: the prior supercharges skills the model is actively forming (peaking around 50–75% base capability) and slightly hurts once the model has already mastered the task.
- Right Place (A Plug-In for Ordinary Text): You don't need synthetic math worksheets to apply the prior. Applying the helix loss only to numbers naturally floating around in standard web text—never touching arithmetic problems—still significantly speeds up addition.
- Synergy Across Manifolds: Training six different geometric priors simultaneously causes zero detected interference. Even wilder: training torus and grid priors alongside physical dimensions lifts dimension accuracy by +13.5 points over its own prior alone, because the model wires up a shared internal subspace across structurally similar concepts.
Key Results
- Pretraining Speedups: With scarce arithmetic data (2%), a helix prior jumps held-out addition accuracy (averaged over training) from 18.4% to 69.9% at 53M parameters, and 24.4% to 77.4% at 505M. With 7% arithmetic data fixed at 300M tokens, it beats the baseline across all 8 seeds at all nine sizes up to 1.07B.
- Six Priors at Scale: Pretraining a 1.07B model with six priors at once boosts held-out accuracy across every seed—gaining +49.9 points on numbers, +49.2 on grids, and +45.0 on dimensions—at 0.0% average cost to validation bits-per-byte. Models with priors hit the baseline's final accuracy in just 8–30% of training.
- Fine-Tuning Checkpoints: On an early OLMo-2-7B checkpoint (9B tokens), fine-tuning with a helix prior hits 90% addition accuracy ~5x sooner (1,400 steps vs. >4,150) and finishes at 99.9% vs. ~95% without it, leaving HellaSwag, ARC, and LAMBADA untouched (within 0.7 points).
Limitations and Future Work
The experiments operate in a controlled sandbox: synthetic tasks in fixed formats, and pretraining runs up to 1.2B tokens (~23 tokens per parameter, far short of modern trillion-token LLM runs). Given enough data and time, baseline models often catch up on simple addition. Furthermore, designing targets requires knowing what geometry a task actually uses—in a broad fine-tuning screen of 36 domains (using targets that don't directly encode answers), only numbers and months saw robust gains, and no tested geometry (even logarithms) helped multiplication.
Future work aims to scale these priors to trillion-token pretraining runs, test compatibility with non-AdamW optimizers (like Muon), and automatically extract or discover the exact geometric manifolds needed for messier, real-world reasoning skills.
Summary updated