NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperbolic Language Models: From Zipf to Compute-Optimal Scaling

Jinrui Lin, Menglin Yang, Rex YingNeurIPS 2026

TL;DR

For years, the "Chinchilla" scaling laws have dictated a golden rule for training language models: feed your model roughly 20 tokens of data for every parameter it has. This paper shows that this rule isn't a fundamental truth of language—it's an artifact of flat, Euclidean geometry. By curving only the final output layer of a Transformer into hyperbolic space, the authors cut the optimal data-to-parameter ratio to 8.4, making models significantly more data-efficient without overhauling standard training stacks.

What Problem Does This Paper Address?

Natural language is famously lopsided. It follows Zipf's law: a tiny handful of words ("the", "of") show up constantly, while a massive long tail of specialized words ("API", "Merkel") barely appears at all.

Standard language models map words into flat, Euclidean space using dot products. Flat space is great for uniform grids, but terrible for tree-like hierarchies and power-law distributions—there just isn't enough "room" as you move outward. Hyperbolic space (which curves like a saddle and expands exponentially from its origin) naturally accommodates these hierarchies, placing common items near the center and rare ones on the vast periphery.

While researchers have built fully hyperbolic Transformers before, they are notoriously slow, numerically finicky, and hard to optimize. More importantly, nobody knew how hyperbolic geometry affects compute-optimal scaling laws—the power-law equations (like Hoffmann et al.'s Chinchilla) used to decide whether to spend a fixed compute budget on a bigger model or more training data. Does a non-Euclidean model even follow standard scaling laws?

Methods

Instead of rebuilding the entire Transformer on a curved manifold, the authors introduce HypTip, a "head-only" surgical modification.

Figure 1: Geometric design paradigms for language modeling. The controlled comparison in this paper is (a) versus (c); (b) defines the design spectrum. (a) Euclidean LM: a flat dot-product codebook with weak hierarchy. (b) Fully-hyperbolic LM (e.g., HELM [17]): geometry is applied throughout the network; we include it as a single matched control (Appendix D). (c) HypTip (proposed): only the LM head is mapped onto the Lorentz hyperboloid via exp0; the body, optimizer, and precision regime remain Euclidean, with the readout as the only change relative to (a). The Zipfian token frequency profile (left) motivates a curved codebook at the readout, where token-level long-tail structure naturally lives.
  • What’s standard: The entire Transformer body—embeddings, RoPE, grouped-query attention, SwiGLU MLPs—and the optimizer (Muon + AdamW) remain 100% Euclidean (using a Qwen3-style architecture).
  • What’s new: Right at the readout layer (the LM head), the final hidden state and the vocabulary weight rows are projected onto a Lorentz hyperboloid—a mathematically stable model of curved space—using an exponential map. Instead of a standard dot product, logits are calculated using the Minkowski inner product, governed by just two new learnable scalar parameters: curvature and logit scale.

Because the body stays flat, HypTip drops into standard mixed-precision pretraining frameworks in about twenty lines of code. To measure scaling laws, the authors trained a paired 5×4 grid of Euclidean and HypTip models from scratch across five model sizes (86M to 1.32B parameters) and four token budgets (66M to 8.39B tokens), fitting the standard Chinchilla power-law equation to both tracks.

Datasets

No new benchmarks were introduced. The authors used established datasets to keep the scaling comparison clean:

  • Training & In-Distribution Eval: A deterministic shuffle of OpenWebText (pre-tokenized with the 152K-vocabulary Qwen3 tokenizer), with a held-out 8,014-document subset for validation loss.
  • Held-out Transfer & Downstream Eval: WikiText-103 (domain-transfer perplexity), LAMBADA (last-word prediction), PIQA (physical commonsense), and HellaSwag.

Key Insights and Ideas

  • Compute-optimal rules depend on output geometry: Changing just the readout layer's geometry leaves the data-scaling exponent untouched ($\beta = 0.50$), but noticeably shifts the parameter-scaling exponent ($\alpha$ drops from 0.62 to 0.46). Hyperbolic space acts as a strong structural prior, making HypTip much better when data is scarce and shifting the optimal compute allocation toward larger models trained on fewer tokens.
  • The model learns Zipf's law radially—from data, not size: In hyperbolic space, distance from the origin acts like tree depth. Across all trained HypTip models, frequent punctuation and function words cluster tightly near the origin, while rare proper nouns get pushed to the outer rim. Crucially, the strength of this organization depends almost entirely on how many tokens the model has seen, regardless of whether the model has 86M or 1.3B parameters.
Figure 3: LM-head radius versus token frequency across the 5×4 grid. One panel per training- token budget. Each line is the smoothed running median for one model size (total parameters, as in Table 2); the grey density pools the five sizes. All cells use the same top-30,000 tokens, with frequency taken from the full training corpus, and the radius θv is divided by each cell’s median so that cells share one scale; this leaves the rank correlation unchanged. Within a budget the five sizes nearly coincide, while across budgets the decrease of radius with frequency becomes tighter and more monotone. Exact ρ and k for every cell are reported in Table 2.
  • Head-only beats body-wide curvature: In a single matched control against HELM (a fully hyperbolic Transformer), HypTip achieved substantially lower loss while avoiding HELM's ~6× per-step training time penalty. Zipf's law is a property of token outputs, so putting the geometric bias solely at the token readout layer does the heavy lifting without bogging down intermediate layers.

Key Results

  • 2.5× Shift in Scaling Ratio: Fitting the Chinchilla form yields an optimal data-to-parameter ratio ($D^*/N^*$) of 8.4 for HypTip versus 20.8 for the Euclidean baseline. At a fixed compute budget, HypTip prescribes training a ~1.6× larger model.
Figure 2: Scaling-law characterization of HypTip versus EUC. (a) Validation loss versus parameter count N, one line per training-token budget D (labeled at the right); HypTip (red, filled) sits below EUC (blue, open) in most cells, with the gap largest at the smallest budget. The star marks the single matched HELM control at 1.32B×263M, which is excluded from the scaling fits. (b) Compute- optimal frontier with Hoffmann-form fits overlaid; the HypTip optimum lies at D∗/N ∗= 8.4 versus 20.8 for EUC, a ∼2.5× lower data-to-parameter ratio (a ∼1.6× larger optimal model at fixed compute) on identical data and recipe.
  • Consistent Loss Dominance: HypTip beat the Euclidean baseline on validation loss in 17 of 20 grid cells (mean improvement of ~0.2 nats), with the largest wins (~0.41 nats) at the smallest 66M-token budget.
  • Strong Zipfian Correlation: Token log-frequency correlated with Lorentzian radius down to Spearman $\rho = -0.83$ at 8.4B tokens (twice as strong as Euclidean weight-norm correlations).
  • Transfer & Architecture Agnosticism: HypTip won 17/20 paired cells on WikiText-103 perplexity and PIQA accuracy, and 12/20 on LAMBADA. Replicating the experiment at ~223M parameters on GPT-2 and DeepSeek-V3 dense backbones reproduced the win ($\Delta = -0.22$ and $-0.11$ nats, respectively).

Limitations and Future Work

  • Scale and Corpus Scope: Experiments top out at 1.32B parameters and 8.4B tokens on English web text. Extrapolating to 10B+ production scales, or testing on code and multilingual corpora (which have different long-tail token distributions), remains open.
  • Undertrained for Downstream Tasks: Because scaling grids require training many low-budget cells, most models sat near random chance on harder benchmarks (HellaSwag stayed flat at chance everywhere, and PIQA margins were within ~1 percentage point).
  • Statistical & Recipe Constraints: The main 20-cell grid used single random seeds (though 3-seed checks at a fixed compute confirmed the shift), and the optimizer recipe was borrowed directly from Euclidean stacks without sweeping hyperbolic curvature initializations. Future work includes exploring mixed-curvature spaces and testing how hyperbolic heads behave during instruction tuning and RLHF.

Summary updated

BibTeX
@inproceedings{lin2026hyperbolic,
  author = {Jinrui Lin and Menglin Yang and Rex Ying},
  title = {{Hyperbolic Language Models: From Zipf to Compute-Optimal Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vB6z4gcTXY},
}
Figure