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

解读大语言模型中的token组合性:一项鲁棒性分析

Interpreting token compositionality in LLMs: A robustness analysis

Department of Computer Science, University of Manchester(曼彻斯特大学计算机科学系);Idiap Research Institute(Idiap研究机构);National Biomarker Centre, CRUK-MI, Univ. of Manchester(国家生物标记中心,CRUK-MI,曼彻斯特大学)

Nura Aljaafari, Danilo S. Carvalho, André Freitas

AI总结:

该研究提出成分感知池化(CAP)方法分析大语言模型的组合性语言结构处理机制,发现Transformer存在信息处理碎片化问题且随模型规模扩大加剧,揭示了其架构在组合语义处理与可解释性上的根本局限。

摘要:

理解大语言模型(LLM)的内部机制对于提升其可靠性、可解释性和推理过程至关重要。我们提出了成分感知池化(Constituent-Aware Pooling,CAP),这是一种用于分析大语言模型如何处理组合性语言结构的方法。CAP以组合性、机制可解释性和信息论原理为基础,通过在不同模型层级进行基于成分的池化操作,系统性地干预模型激活。我们在逆定义建模、上下位词预测和同义词预测任务上开展的实验,揭示了Transformer在处理组合性抽象方面的关键局限性:没有特定层会根据token的组成部分将其整合为统一的语义表征。我们观察到碎片化的信息处理现象,且该现象会随模型规模扩大而加剧,这表明更大的模型在应对这些干预时更吃力,表现出更严重的信息分散。这种碎片化很可能源于Transformer的训练目标和架构设计,导致其无法形成系统且连贯的表征。我们的发现凸显了当前Transformer架构在组合语义处理和模型可解释性方面的根本局限,强调了在大语言模型设计中亟需新方法来解决这些挑战。

英文摘要:

Understanding the internal mechanisms of large language models (LLMs) is integral to enhancing their reliability, interpretability, and inference processes. We present Constituent-Aware Pooling (CAP), a methodology designed to analyse how LLMs process compositional linguistic structures. Grounded in principles of compositionality, mechanistic interpretability, and information theory, CAP systematically intervenes in model activations through constituent-based pooling at various model levels. Our experiments on inverse definition modelling, hypernym and synonym prediction reveal critical insights into transformers' limitations in handling compositional abstractions. No specific layer integrates tokens into unified semantic representations based on their constituent parts. We observe fragmented information processing, which intensifies with model size, suggesting that larger models struggle more with these interventions and exhibit greater information dispersion. This fragmentation likely stems from transformers' training objectives and architectural design, preventing systematic and cohesive representations. Our findings highlight fundamental limitations in current transformer architectures regarding compositional semantics processing and model interpretability, underscoring the critical need for novel approaches in LLM design to address these challenges.

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

↑