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

框架表示假说:多词LLM可解释性与概念引导的文本生成

Frame Representation Hypothesis: Multi-Token LLM Interpretability and Concept-Guided Text Generation

University of Tsukuba(筑波大学);National Institute of Advanced Industrial Science and Technology (AIST)(产业技术综合研究所)

Pedro H. V. Valois, Lincon S. Souza, Erica K. Shimomoto, Kazuhiro Fukui

AI总结:

本文提出框架表示假说,通过多词建模提升LLM的可解释性,利用概念引导解码实现更安全透明的文本生成。

摘要:

可解释性是促进大型语言模型(LLM)信任的关键挑战,其根源在于从模型参数中提取推理的复杂性。我们提出了框架表示假说,这是一个理论稳健的框架,基于线性表示假说(LRH),通过建模多词词来解释和控制LLM。先前研究探索了LRH将LLM表示与语言概念连接起来,但局限于单个词分析。由于大多数词由几个词组成,我们扩展了LRH到多词词,从而能够使用任何具有数千个概念的文本数据。为此,我们提出词可以被解释为框架,即有序的向量序列,能够更好地捕捉词-词关系。然后,概念可以表示为共享相同概念的词框架的平均值。我们通过Top-k概念引导解码展示了这些工具,可以直观地使用所选概念来引导文本生成。我们验证了这些想法在Llama 3.1、Gemma 2和Phi 3系列上的效果,展示了性别和语言偏见,暴露了有害内容,但也展示了潜在的修复能力,从而导致更安全和透明的LLM。代码可在https://github.com/phvv-me/frame-representation-hypothesis.git获取。

英文摘要:

Interpretability is a key challenge in fostering trust for Large Language Models (LLMs), which stems from the complexity of extracting reasoning from model's parameters. We present the Frame Representation Hypothesis, a theoretically robust framework grounded in the Linear Representation Hypothesis (LRH) to interpret and control LLMs by modeling multi-token words. Prior research explored LRH to connect LLM representations with linguistic concepts, but was limited to single token analysis. As most words are composed of several tokens, we extend LRH to multi-token words, thereby enabling usage on any textual data with thousands of concepts. To this end, we propose words can be interpreted as frames, ordered sequences of vectors that better capture token-word relationships. Then, concepts can be represented as the average of word frames sharing a common concept. We showcase these tools through Top-k Concept-Guided Decoding, which can intuitively steer text generation using concepts of choice. We verify said ideas on Llama 3.1, Gemma 2, and Phi 3 families, demonstrating gender and language biases, exposing harmful content, but also potential to remediate them, leading to safer and more transparent LLMs. Code is available at https://github.com/phvv-me/frame-representation-hypothesis.git

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

↑