arXiv:2610.05879cs.CLOct 2026

Manuscript Offprint

arXiv:2610.05879

Learning to Learn a Language

Lennart Carstens-Behrens, Holger Fröhlich

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We present the Prior-Fitted Language Model (PFLM), a 300M-parameter byte-level transformer pretrained only on samples from a synthetic non-linguistic prior. Given a prefix of real text, it learns to predict the language in context with frozen weights, having never seen a word of any real language. Every training sequence is generated by a recurrent structural causal model drawn fresh from a distribution over such models. The model never sees the same language twice during training, so the only way to predict the continuation is to infer the language from the prefix. Samples from this prior share the statistical signatures of natural text: Zipfian frequencies, slow entropy-rate convergence, and long-range dependence. On Wikipedia in six languages, bits per byte fall from the uniform eight to between 0.9 and 2.4 at one million bytes of context. Given numerals instead of text, PFLM learns to count, to compare magnitudes, and to add approximately. It predicts deterministic sequences like Rudin–Shapiro or the prime indicator, and it compresses six non-text domains, from source code to speech, below gzip and PPMd. The model has not learned a language. It has learned to learn one.

A PREPRINT

Figure

(a) Natural language.

Figure

(b) Deterministic sequences.

Figure 1: PFLM, trained only on the synthetic non-linguistic prior of Section 2, learns to predict real languages and deterministic sequences in context with frozen weights. (a) Bits per byte against bytes of context seen, for English, Chinese, Hindi, Arabic, Japanese, and Korean Wikipedia (UTF-8). Each curve is the mean over 32 held-out windows of one million bytes, averaged in log-spaced bins. Every curve falls from the uniform rate of eight bits to between 0.9 and 2.4 bits at one million bytes. (b) Bits per symbol against symbols seen for four binary sequences. By 10610^{6} symbols Rudin–Shapiro costs 0.04 bits, Kolakoski 0.13, and the prime indicator 0.28, against 0.37 for a predictor that knows only the density of primes at that position; π\pi stays at 1.00 throughout.

A PREPRINT

1 Introduction

What evolution gives a child is not a language but the ability to acquire one. After tens of millions of words, a child is fluent in whichever language surrounds them. A modern language model is trained on tens of trillions. This six-order-of-magnitude gap is not a fact about language. It is a fact about how much prior knowledge each brings to the data.

The child’s prior is not knowledge of any specific language but expectations about what any language can be: wide enough to admit any of them, narrow enough to learn one. Human languages occupy a bounded region in the space of possible symbol systems, and the child’s hypothesis space is that region. A language model begins with no such prior. Its inductive biases are architectural: generic pressures toward smoothness and compositionality that say nothing about what a language can be. Every regularity it learns about language must be inferred from the corpus alone.

This is why models lag at inferences humans do effortlessly. A baby learns whichever language surrounds them from the speech they hear. A child, born with a sense of quantity, gradually learns to count, compare, and do arithmetic. A mathematician recognizes the rule producing an unfamiliar sequence from its first terms. Each rests on prior knowledge of what languages, what numbers, or what sequences can be: evolution and experience supply the structure on which finite evidence rests. The model has neither, and must extract from trillions of tokens what humans inherit or learn.

The asymmetry suggests a recipe. Equip the model with a prior, not over one language but over the family of possible languages. Sample a fresh language for every pretraining sequence; the model never sees the same one twice. It cannot memorize any specific language, only learn to acquire one from a prefix. The pretraining task is meta-learning by construction. The trained network performs amortized Bayesian inference over the prior. Prior-Fitted Networks [16, 25] establish the recipe on tabular classification and regression, since extended to various settings such as in-context regression of function classes [11], survival analysis [32], and algorithmic sequences from random programs [13]. We carry it to language: a prior over synthetic “languages” (where we use the term “language” to indicate the domain of structured sequences) whose samples pre-train a transformer, the Prior-Fitted Language Model (PFLM). 1^{1} To the best of our knowledge, no prior work has shown a language model learning to predict natural language in context after pretraining only on samples from a constructed non-linguistic prior. Every language model to date, however synthetic its curriculum, has been trained on natural language [10, 14, 22].

Our prior is a recurrent structural causal model (SCM). One independently sampled SCM defines one synthetic language. The SCM evolves latent state through a random graph of structural equations, emitting one token per step. Each token depends, by construction, on the tokens before it. The prior's samples reproduce the signature statistics of natural text: Zipfian token frequencies, slow entropy-rate convergence, mutual-information decay at multiple scales. The prior is constructed, not fit; its samples occupy the same statistical neighborhood as natural text without sharing any specific script.

A byte-level transformer trained on samples from this prior infers natural language in context. Its training data contains no natural-language text. On every language we evaluate, bits per byte falls steadily with increasing context (Figure 1), from the uniform rate of eight to between 0.9 and 2.4 at one million bytes.

Given numerals in context, the same model learns to count, to compare quantities, and to add approximately, the pattern of number sense seen in children before they can calculate [2, 7]. Beyond language and number, the model predicts deterministic sequences like Rudin–Shapiro [1], Kolakoski [37], or the prime indicator, where each term follows from a generating rule rather than a frequency.

References (40)