arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06065stat.MLcond-mat.dis-nncs.CLcs.LG
收藏

深度网络从局部统计中学习解析均匀深度的上下文无关语言

Deep networks learn to parse uniform-depth context-free languages from local statistics

Jack T. Parley, Francesco Cagnetta, Matthieu Wyart

AI总结:

通过引入可调类概率上下文无关文法并设计基于深度卷积网络的推理算法,揭示了语言结构从局部统计中涌现的机制,并验证了深度卷积和Transformer架构的预测。

摘要:

理解语言结构如何仅从句子中学习是认知科学和机器学习中的一个核心问题。大型语言模型(LLMs)内部表征的研究支持其在预测下一个词时解析文本的能力,同时独立于表面形式表示语义概念。然而,哪些数据统计使这些成就成为可能,以及需要多少数据,仍然在很大程度上未知。概率上下文无关文法(PCFGs)为研究这些问题提供了一个可处理的测试平台。然而,先前的工作要么侧重于训练网络使用的类解析算法的后验表征,要么侧重于具有固定语法(无需解析)的PCFGs的可学习性。在这里,我们(i)引入了一个可调的PCFGs类别,其中歧义程度和跨尺度的相关结构都可以被控制;(ii)提供了一种学习机制——一种受深度卷积网络结构启发的推理算法——将可学习性和样本复杂度与特定语言统计联系起来;(iii)在深度卷积和基于Transformer的架构上经验性地验证了我们的预测。总体而言,我们提出了一个统一框架,其中不同尺度的相关性消除了局部歧义,使数据的层次化表征得以涌现。

英文摘要:

Understanding how the structure of language can be learned from sentences alone is a central question in both cognitive science and machine learning. Studies of the internal representations of Large Language Models (LLMs) support their ability to parse text when predicting the next word, while representing semantic notions independently of surface form. Yet, which data statistics make these feats possible, and how much data is required, remain largely unknown. Probabilistic context-free grammars (PCFGs) provide a tractable testbed for studying these questions. However, prior work has focused either on the post-hoc characterization of the parsing-like algorithms used by trained networks; or on the learnability of PCFGs with fixed syntax, where parsing is unnecessary. Here, we (i) introduce a tunable class of PCFGs in which both the degree of ambiguity and the correlation structure across scales can be controlled; (ii) provide a learning mechanism -- an inference algorithm inspired by the structure of deep convolutional networks -- that links learnability and sample complexity to specific language statistics; and (iii) validate our predictions empirically across deep convolutional and transformer-based architectures. Overall, we propose a unifying framework where correlations at different scales lift local ambiguities, enabling the emergence of hierarchical representations of the data.

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

↑