arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.01687cs.CLcs.AI
收藏

功能子空间,语言模型可以使用向量代数来解决问题

Functional Subspace, where language models can use vector algebra to solve problems

Pacific Northwest National Laboratory(太平洋西北国家实验室);School of Neuroscience(神经科学学院)

Jung H. Lee, Sujith Vijayan

AI总结:

研究探讨语言模型通过子空间和向量代数解决复杂任务的机制,发现模型能创建子空间并利用简单代数运算完成提示学习任务。

摘要:

大型语言模型(LLMs)最初被设计用于自然语言任务,如翻译,但它们已证明能够跨领域执行高度复杂的功能。此外,人们认为它们可以发展新技能而无需专门训练。这些学习能力使LLMs在广泛领域得到应用。因此,理解其运行机制和限制对于正确诊断和修复至关重要。早期研究提出高级概念编码为LLMs激活空间中的线性方向,嵌入的几何具有语义意义。受此启发,我们假设LLMs可能使用子空间和子空间中的向量代数来执行任务。为验证这一假设,我们分析了参与上下文学习(ICL)的LLMs的功能模块和残差流。我们的分析表明:1)LLMs能够创建子空间,其中证据可以累积;2)ICL任务可通过子空间中的简单代数运算解决。

英文摘要:

Large language models (LLMs) were invented for natural language tasks such as translation, but they have proved that they can perform highly complex functions across domains. Additionally, they have been thought to develop new skills without being trained on them. These learning capabilities lead to LLMs adoption in a wide range of domains. Thus, it is imperative that we understand their operating mechanisms and limitations for proper diagnostics and repair. The earlier studies proposed that high level concepts are encoded as linear directions in LLMs activation space and that the geometry of embeddings have semantic meanings. Inspired by these studies, we hypothesize that LLMs may use subspaces and vector algebra in subspaces to perform tasks. To address this hypothesis, we analyze LLMs' functional modules and residual streams collected from LLMs engaging in in-context learning (ICL), one of the emergent abilities. Our analyses suggest that 1) LLMs can create subspaces, where evidence can be accumulated and 2) ICL tasks can be solved via simple algebraic operations in subspaces.

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

↑