arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.08734cs.LG
收藏

将提示转化为权重

Transmuting prompts into weights

Google Research(谷歌研究);Cambridge University(剑桥大学)

Hanna Mazzawi, Benoit Dherin, Michael Munn, Adrian Goldwaser, Michael Wunder, Javier Gonzalvo

AI总结:

本文提出一种将提示信息转化为与token无关的思维向量和思维矩阵的算法,为现有基于向量和矩阵的模型编辑技术提供理论解释,并实现文本输入到可复用权重更新的直接转化。

摘要:

越来越多的研究表明,大型语言模型的行为可以在推理时通过直接修改其内部状态来有效控制,无论是通过向激活添加向量还是更新权重矩阵。这些技术虽然强大,但通常由经验启发式指导,例如从对比提示的平均激活中推导出“引导向量”。基于Dherin等人(2025)的基础工作,他们发现提示的影响在数学上映射为与token相关的隐式权重更新,并引入了用于提示压缩的静态思维补丁的初始概念,我们将这一框架提升为一种用于直接模型编辑的鲁棒算法。我们推导出一种原则性方法,将这种瞬态信息压缩为与token无关的思维向量和思维矩阵。这些构造为现有的基于向量和矩阵的模型编辑技术提供了理论解释,并提供了一种直接、基于计算的方法,将文本输入转化为可用于复杂架构和新知识注入的可复用权重更新。

英文摘要:

A growing body of research has demonstrated that the behavior of large language models can be effectively controlled at inference time by directly modifying their internal states, either through vector additions to their activations or through updates to their weight matrices. These techniques, while powerful, are often guided by empirical heuristics, such as deriving ``steering vectors'' from the average activations of contrastive prompts. Building on the foundational work of Dherin et al. (2025), who discovered that a prompt's influence mathematically maps to token-dependent implicit weight updates and introduced the initial concept of a static thought patch for prompt compression, we elevate this framework into a robust algorithm for direct model editing. We derive a principled method for condensing this transient information into token-independent thought vectors and thought matrices. These constructs provide a theoretical explanation for existing vector-and-matrix-based model editing techniques and offer a direct, computationally-grounded method for transmuting textual input into reusable weight updates for complex architectures and new knowledge injection.

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

↑