arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.07070cs.LGcond-mat.dis-nnstat.ML
收藏

简单层级语言中的缩放定律与表征学习:Transformers 与卷积架构的比较

Scaling Laws and Representation Learning in Simple Hierarchical Languages: Transformers vs. Convolutional Architectures

Scuola Internazionale Superiore di Studi Avanzati (SISSA)(国际先进研究学院(SISSA));Institute of Physics, École polytechnique fédérale de Lausanne (EPFL)(洛桑联邦理工学院物理研究所);University College London(伦敦大学学院);Johns Hopkins University(约翰霍普金斯大学)

Francesco Cagnetta, Alessandro Favero, Antonio Sclocchi, Matthieu Wyart

AI总结:

本文基于 RHM 合成语言扩展表征学习理论,推导并实证卷积网络相较 transformer 在下一 token 预测任务中具有更快缩放定律。

摘要:

神经语言模型在为下一 token 预测而训练时,如何习得一种语言的结构?我们通过推导神经网络在由 Random Hierarchy Model(RHM,随机层级模型)生成的合成数据集上性能的理论缩放定律来回答这一问题。RHM 是一组概率上下文无关文法,旨在捕捉自然语言的层级结构,同时保持解析上的可处理性。此前,我们建立了一种基于数据相关性的表征学习理论,解释深度学习模型如何逐层、顺序地捕捉数据的层级结构。在本文中,我们扩展该理论框架以说明架构差异。具体而言,我们预测并通过实验验证:卷积网络凭借局部性和权重共享,使其结构与生成过程的结构相一致,因此相较于依赖全局自注意力机制的 transformer 模型,具有更快的性能缩放。这一发现阐明了神经缩放定律背后的架构偏置,并强调表征学习如何由模型架构与数据统计属性之间的相互作用所塑造。

英文摘要:

How do neural language models acquire a language's structure when trained for next-token prediction? We address this question by deriving theoretical scaling laws for neural network performance on synthetic datasets generated by the Random Hierarchy Model (RHM) -- an ensemble of probabilistic context-free grammars designed to capture the hierarchical structure of natural language while remaining analytically tractable. Previously, we developed a theory of representation learning based on data correlations that explains how deep learning models capture the hierarchical structure of the data sequentially, one layer at a time. Here, we extend our theoretical framework to account for architectural differences. In particular, we predict and empirically validate that convolutional networks, whose structure aligns with that of the generative process through locality and weight sharing, enjoy a faster scaling of performance compared to transformer models, which rely on global self-attention mechanisms. This finding clarifies the architectural biases underlying neural scaling laws and highlights how representation learning is shaped by the interaction between model architecture and the statistical properties of data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑