Learning to Learn a Language
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 15 pages, 6 figures, 5 tables, Code: https://github.com/cbl/prior-fitted-language-model, weights: https://huggingface.co/lennartcb/pflm1
Related papers
Disciplined Anthropomorphism: How to Extend Cognitive Language to Artificial Intelligence
Shared title terminologycs.CLMatthieu Queloz
Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting
Shared title terminologycs.CLDmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych
DiCALM: Converting Autoregressive Convolution-Attention Language Models into Discrete Diffusion Language Models
Shared title terminologycs.CLPhong Le, Ngoc-Quan Pham, Dat Quoc Nguyen
Contextual language representations link narrative processing to language and literacy in children
Shared title terminologycs.CLDongyi He, Tian Jiang, Nizhuan Wang et al.
Pitfalls of Dependency-Ready Decoding for Masked Diffusion Language Models
Shared title terminologycs.CLLina Berrayana, Christopher Malon, Yoichi Ishibashi et al.
Multimodal Safety Evaluation of Vision-Language Models in Japanese
Shared title terminologycs.CLSu Myat Noe, Hisami Suzuki, Kouta Nakayama et al.