Hyperbolic Language Models: From Zipf to Compute-Optimal Scaling
Abstract
Compute-optimal scaling laws have become the central organizing tool of language-model training, yet they have been measured exclusively under Euclidean space. We give the first compute-optimal scaling-law characterization of hyperbolic language modeling. Trained from scratch on OpenWebText across a paired 5×4 grid spanning 86M to 1.32B parameters and 66M to 8.4B tokens, our hyperbolic LM HypTip follows a markedly different scaling law than its Euclidean counterpart. Fitting the Hoffmann form L = E + A·N^(−α) + B·D^(−β) to each track yields a compute-optimal data-to-parameter ratio of D*/N* = 8.4 for the hyperbolic readout versus 20.8 for the Euclidean baseline. The hyperbolic readout therefore lowers the compute-optimal data-to-parameter ratio by 2.5×, favoring a roughly 1.6× larger model at fixed compute, and it achieves lower validation loss in 17 of 20 paired cells across the grid. This shift is mechanistically grounded: across all 20 trained checkpoints, the per-row Lorentzian radius of the LM head correlates with token log-frequency at Spearman ρ down to −0.83, and the strength of this Zipfian token hierarchy scales with training-token count rather than parameter count, indicating that the geometric prior is learned during training. Held-out WikiText-103 perplexity shows the same advantage, with a weaker signal on LAMBADA and PIQA, and the advantage replicates on GPT-2 and DeepSeek-V3 backbones. Changing only the output-layer geometry thus shifts the compute-optimal scaling law of language modeling, and hyperbolic LMs follow the same Hoffmann form as Euclidean ones. Code is available at https://github.com/digailab/hyperbolicscalinglaw.