arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.03933cs.CLcs.LG
收藏

语言模型是隐式连续的

Language Models Are Implicitly Continuous

University of Oxford(牛津大学);University of Bologna(博洛尼亚大学);ETH Zurich(苏黎世联邦理工学院)

Samuele Marro, Davide Evangelista, X. Angelo Huang, Emanuele La Malfa, Michele Lombardi, Michael Wooldridge

AI总结:

本文发现Transformer语言模型隐式地将句子表示为连续时间函数,并正式扩展Transformer以刻画输入输出空间的时空连续性,挑战了LLMs以离散方式理解语言的传统观点。

摘要:

语言通常被建模为离散序列。然而,最成功的语言建模方法,即神经网络,是连续且平滑的函数逼近器。在这项工作中,我们表明基于Transformer的语言模型隐式地学习将句子表示为定义在连续输入空间上的连续时间函数。这一现象出现在大多数最先进的大语言模型(LLMs)中,包括Llama2、Llama3、Phi3、Gemma、Gemma2和Mistral,并表明LLMs对语言的推理方式与人类存在根本性差异。我们的工作正式扩展了Transformer,以捕捉输入和输出空间中时间和空间连续性的细微差别。我们的结果挑战了对LLMs如何理解语言的传统解释,并具有若干语言学和工程学意义。

英文摘要:

Language is typically modelled with discrete sequences. However, the most successful approaches to language modelling, namely neural networks, are continuous and smooth function approximators. In this work, we show that Transformer-based language models implicitly learn to represent sentences as continuous-time functions defined over a continuous input space. This phenomenon occurs in most state-of-the-art Large Language Models (LLMs), including Llama2, Llama3, Phi3, Gemma, Gemma2, and Mistral, and suggests that LLMs reason about language in ways that fundamentally differ from humans. Our work formally extends Transformers to capture the nuances of time and space continuity in both input and output space. Our results challenge the traditional interpretation of how LLMs understand language, with several linguistic and engineering implications.

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

↑