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

Explainable Mapper:使用基于扰动的解释与验证智能体绘制 LLM 嵌入空间图谱

Explainable Mapper: Charting LLM Embedding Spaces Using Perturbation-Based Explanation and Verification Agents

University of Utah(犹他大学);ETH Zürich(苏黎世联邦理工学院)

Xinyuan Yan, Rita Sevastjanova, Sinie van der Ben, Mennatallah El-Assady, Bei Wang

AI总结:

本文提出 Explainable Mapper 框架,利用基于扰动的 LLM 解释与验证智能体,半自动标注并分析 mapper 图所呈现的 LLM 嵌入拓扑结构,且在 BERT 案例中复现并扩展了既有发现。

摘要:

大型语言模型(LLM)会生成高维嵌入,这些嵌入捕捉了词语、句子和概念之间丰富的语义与句法关系。通过 mapper 图研究 LLM 嵌入空间的拓扑结构,使我们能够理解其底层结构。具体而言,mapper 图概括嵌入空间的拓扑结构:每个节点表示一个拓扑邻域(包含一簇嵌入),当两个节点对应的邻域发生重叠时,二者之间由一条边连接。然而,手动探索这些嵌入空间以揭示其中编码的语言属性需要大量人力。为应对这一挑战,我们提出一个用于对这些嵌入属性进行半自动标注的框架。为组织探索流程,我们首先定义 mapper 图中可探索元素的分类体系,例如节点、边、路径、连通分量和轨迹。这些元素的标注由两类可定制的、基于 LLM 的智能体执行,它们采用扰动技术实现可扩展的自动化分析。这些智能体帮助探索并解释 mapper 元素的特征,同时验证所生成解释的稳健性。我们在一个可视化分析工作区中实例化该框架,并通过案例研究证明其有效性。特别地,我们复现了先前关于 BERT 架构各层嵌入属性的研究发现,并对拓扑邻域的语言属性提供了进一步观察。

英文摘要:

Large language models (LLMs) produce high-dimensional embeddings that capture rich semantic and syntactic relationships between words, sentences, and concepts. Investigating the topological structures of LLM embedding spaces via mapper graphs enables us to understand their underlying structures. Specifically, a mapper graph summarizes the topological structure of the embedding space, where each node represents a topological neighborhood (containing a cluster of embeddings), and an edge connects two nodes if their corresponding neighborhoods overlap. However, manually exploring these embedding spaces to uncover encoded linguistic properties requires considerable human effort. To address this challenge, we introduce a framework for semi-automatic annotation of these embedding properties. To organize the exploration process, we first define a taxonomy of explorable elements within a mapper graph such as nodes, edges, paths, components, and trajectories. The annotation of these elements is executed through two types of customizable LLM-based agents that employ perturbation techniques for scalable and automated analysis. These agents help to explore and explain the characteristics of mapper elements and verify the robustness of the generated explanations. We instantiate the framework within a visual analytics workspace and demonstrate its effectiveness through case studies. In particular, we replicate findings from prior research on BERT's embedding properties across various layers of its architecture and provide further observations into the linguistic properties of topological neighborhoods.

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

↑