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

论大语言模型中线性表示的起源

On the Origins of Linear Representations in Large Language Models

University of Chicago(芝加哥大学);Carnegie Mellon University(卡内基梅隆大学);Booth School of Business, University of Chicago(芝加哥大学布斯商学院);Data Science Institute, University of Chicago(芝加哥大学数据科学研究所)

Yibo Jiang, Goutham Rajendran, Pradeep Ravikumar, Bryon Aragam, Victor Veitch

AI总结:

该研究通过构建潜变量模型形式化下一词元预测的概念动态,证明预测目标与梯度下降隐式偏置共同催生大语言模型的线性概念表示,并通过实验及LLaMA-2验证了理论结论与模型普适性。

摘要:

近期研究认为,高层语义概念在大语言模型的表示空间中以“线性”方式编码。本文研究此类线性表示的起源。为此,我们提出一个简单的潜变量模型,对下一词元预测的概念动态进行抽象与形式化。我们借助该形式化体系证明,下一词元预测目标(带交叉熵的softmax)与梯度下降的隐式偏置共同促进了概念的线性表示。实验表明,当从符合潜变量模型的数据中学习时,线性表示会出现,证实这种简单结构已足以产生线性表示。我们还利用LLaMA-2大语言模型验证了该理论的部分预测,证明这一简化模型能带来具有普适性的洞见。

英文摘要:

Recent works have argued that high-level semantic concepts are encoded "linearly" in the representation space of large language models. In this work, we study the origins of such linear representations. To that end, we introduce a simple latent variable model to abstract and formalize the concept dynamics of the next token prediction. We use this formalism to show that the next token prediction objective (softmax with cross-entropy) and the implicit bias of gradient descent together promote the linear representation of concepts. Experiments show that linear representations emerge when learning from data matching the latent variable model, confirming that this simple structure already suffices to yield linear representations. We additionally confirm some predictions of the theory using the LLaMA-2 large language model, giving evidence that the simplified model yields generalizable insights.

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

↑