学会学习一门语言

·

研究论文 · 2026/10/06

我们提出了Prior-Fitted Language Model (PFLM),一个300M参数的字节级transformer,仅在一个合成的非语言先验样本上预训练。给定真实文本的前缀,它在冻结权重的情况下学习在上下文中预测语言,尽管从未见过任何真实语言的一个词。每个训练序列由一个从这类模型分布中新鲜抽取的循环结构因果模型生成。模型在训练期间从未见过相同的语言两次,因此预测续写的唯一方式是从前缀推断语言。来自该先验的样本具有自然文本的统计特征:齐普夫频率、缓慢的熵率收敛和长程依赖。在六种语言的维基百科上,每字节比特数从均匀的8下降到100万字节上下文时的0.9到2.4之间。给定数字而非文本,PFLM学习计数、比较大小和近似加法。它预测确定性序列如Rudin-Shapiro或素数指示符,并将六个非文本领域(从源代码到语音)压缩到低于gzip和PPMd。该模型没有学习一种语言。它学会了学习一种语言。

这项研究展示了一个模型仅通过合成非语言先验训练,就能在上下文中学习预测真实语言,挑战了传统语言模型需要大量真实文本的假设,并揭示了学习机制的通用性。

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.

阅读原文

参与讨论