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

面向线性表示假设的基于最大似然估计的灵活框架

Toward a Flexible Framework for Linear Representation Hypothesis Using Maximum Likelihood Estimation

University of Texas at Austin(德克萨斯大学奥斯汀分校);McCombs School of Business, University of Texas at Austin(德克萨斯大学奥斯汀分校麦库姆斯商学院)

Trung Nguyen, Yan Leng

AI总结:

本文提出SAND方法,利用最大似然估计和激活差异计算概念方向,扩展线性表示假设框架,在LLaMA模型上实现更灵活高效的激活工程。

摘要:

线性表示假设认为,高层概念被编码为大语言模型(LLM)表示空间中的线性方向。Park等人(2024)通过使用因果内积统一线性表示的多种解释(如一维子空间表示和干预)来形式化这一概念。然而,他们的框架依赖于单令牌反事实对,无法处理模糊的对比对,限制了其对复杂或上下文相关概念的适用性。我们引入了一种新的二元概念定义,将其视为规范表示空间中的单位向量,并利用LLM的(神经)激活差异以及最大似然估计(MLE)来计算概念方向(即引导向量)。我们的方法——基于激活的归一化差异之和(SAND)——将激活差异建模为来自von Mises-Fisher(vMF)分布的样本,从而形式化了激活差异的使用,为推导概念方向提供了原则性方法。我们通过消除对非嵌入表示和单令牌对的依赖,扩展了Park等人(2024)的适用性。通过使用LLaMA模型在多种概念和基准上的实验,我们证明了我们的轻量级方法在监控和操作等激活工程任务中提供了更大的灵活性和更优的性能。

英文摘要:

Linear representation hypothesis posits that high-level concepts are encoded as linear directions in the representation spaces of LLMs. Park et al. (2024) formalize this notion by unifying multiple interpretations of linear representation, such as 1-dimensional subspace representation and interventions, using a causal inner product. However, their framework relies on single-token counterfactual pairs and cannot handle ambiguous contrasting pairs, limiting its applicability to complex or context-dependent concepts. We introduce a new notion of binary concepts as unit vectors in a canonical representation space, and utilize LLMs' (neural) activation differences along with maximum likelihood estimation (MLE) to compute concept directions (i.e., steering vectors). Our method, Sum of Activation-base Normalized Difference (SAND), formalizes the use of activation differences modeled as samples from a von Mises-Fisher (vMF) distribution, providing a principled approach to derive concept directions. We extend the applicability of Park et al. (2024) by eliminating the dependency on unembedding representations and single-token pairs. Through experiments with LLaMA models across diverse concepts and benchmarks, we demonstrate that our lightweight approach offers greater flexibility, superior performance in activation engineering tasks like monitoring and manipulation.

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

↑