arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.01506cs.CLcs.AIcs.LGstat.ML
收藏

大型语言模型中分类概念与层级概念的几何

The Geometry of Categorical and Hierarchical Concepts in Large Language Models

University of Chicago(芝加哥大学)

Kiho Park, Yo Joong Choe, Yibo Jiang, Victor Veitch

AI总结:

本文扩展线性表征假说,将特征表示为向量、分类概念表示为多面体,并证明概念层级与表征几何的关系,且在 Gemma、LLaMA-3 上基于 WordNet 验证。

摘要:

线性表征假说指这样一种非正式观点:语义概念在大型语言模型(LLM)的表征空间中被编码为线性方向。先前工作已经表明,对于具有天然对照的二元概念(例如 {male, female}),如何将这一概念精确表述为表征空间中的方向。然而,许多自然概念并不具有天然对照(例如输出是否关于动物)。在本工作中,我们展示如何扩展线性表征假说的形式化,以将特征(例如 is_animal)表征为向量。这使我们能够立即将分类概念的表征形式化为表征空间中的多面体。此外,我们利用该形式化证明了概念的层级结构与其表征几何之间的关系。我们在 Gemma 和 LLaMA-3 大型语言模型上验证了这些理论结果,并使用来自 WordNet 的数据估计了 900 多个具有层级关联的概念的表征。

英文摘要:

The linear representation hypothesis is the informal idea that semantic concepts are encoded as linear directions in the representation spaces of large language models (LLMs). Previous work has shown how to make this notion precise for representing binary concepts that have natural contrasts (e.g., {male, female}) as directions in representation space. However, many natural concepts do not have natural contrasts (e.g., whether the output is about an animal). In this work, we show how to extend the formalization of the linear representation hypothesis to represent features (e.g., is_animal) as vectors. This allows us to immediately formalize the representation of categorical concepts as polytopes in the representation space. Further, we use the formalization to prove a relationship between the hierarchical structure of concepts and the geometry of their representations. We validate these theoretical results on the Gemma and LLaMA-3 large language models, estimating representations for 900+ hierarchically related concepts using data from WordNet.

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

↑