趋同进化:不同语言模型如何学习相似的数字表示
Convergent Evolution: How Different Language Models Learn Similar Number Representations
AI总结:
研究探讨了不同语言模型如何通过不同训练信号学习相似的数字表示,揭示了特征学习中的趋同进化现象。
摘要:
训练于自然文本的语言模型学会用周期性特征表示数字,主导周期为T=2, 5, 10。本文识别出这些特征的双层层次结构:尽管Transformer、线性RNN、LSTM和经典词嵌入在不同方式下训练,它们都学习到在傅里叶域中有周期-T尖峰的特征,但只有部分模型能学习到几何可分的特征,可用于线性分类数字mod-T。为解释这种不一致,我们证明傅里叶域稀疏性是必要但不充分的条件。经验上,我们研究了模型训练如何产生几何可分的特征,发现数据、架构、优化器和分词器都起关键作用。特别是,我们发现模型可通过两种途径获得几何可分的特征:从通用语言数据中的互补共现信号(包括文本-数字共现和跨数字交互)学习,或从多词(而非单词)加法问题学习。总体而言,我们的结果突显了特征学习中的趋同进化现象:不同模型通过不同训练信号学习相似特征。
英文摘要:
Language models trained on natural text learn to represent numbers using periodic features with dominant periods at $T=2, 5, 10$. In this paper, we identify a two-tiered hierarchy of these features: while Transformers, Linear RNNs, LSTMs, and classical word embeddings trained in different ways all learn features that have period-$T$ spikes in the Fourier domain, only some learn geometrically separable features that can be used to linearly classify a number mod-$T$. To explain this incongruity, we prove that Fourier domain sparsity is necessary but not sufficient for mod-$T$ geometric separability. Empirically, we investigate when model training yields geometrically separable features, finding that the data, architecture, optimizer, and tokenizer all play key roles. In particular, we identify two different routes through which models can acquire geometrically separable features: they can learn them from complementary co-occurrence signals in general language data, including text-number co-occurrence and cross-number interaction, or from multi-token (but not single-token) addition problems. Overall, our results highlight the phenomenon of convergent evolution in feature learning: A diverse range of models learn similar features from different training signals.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。