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

VISTA: 通过高效分析实现令牌归因的可视化

VISTA: Visualization of Token Attribution via Efficient Analysis

Infosys Limited(印孚瑟斯有限公司)
Syed Ahmed, Bharathi Vokkaliga Ganesh, Jagadish Babu P, Karthick Selvaraj, Praneeth Talluri, Sanket Hingne, Anubhav Kumar, Anushka Yadav, Pratham Kumar Verma, K… 展开作者

Syed Ahmed, Bharathi Vokkaliga Ganesh, Jagadish Babu P, Karthick Selvaraj, Praneeth Talluri, Sanket Hingne, Anubhav Kumar, Anushka Yadav, Pratham Kumar Verma, Kiranmayee Janardhan, Mandanna A N

AI总结:

本文提出了一种轻量且通用的方法,用于可视化令牌重要性,以理解生成式AI系统如何感知和优先处理输入文本信息,无需额外计算成本。

摘要:

理解大型语言模型(LLMs)如何处理提示中的信息仍然是重大挑战。为了揭示这个“黑箱”,已经开发了注意力可视化技术来捕捉神经层面的感知并解释模型如何关注输入数据的不同部分。然而,许多现有技术针对特定模型架构,尤其是Transformer家族,并且通常需要反向传播,导致GPU内存使用几乎翻倍且计算成本增加。本文介绍了一种通用的令牌重要性可视化技术,以更好地理解生成式AI系统如何感知和优先处理输入文本信息,而无需额外计算成本。我们的方法结合了扰动策略和三矩阵分析框架,生成相关性图,以说明令牌对模型预测的贡献。该框架包括:(1)角度偏差矩阵,捕捉语义方向的变化;(2)幅度偏差矩阵,测量语义强度的变化;(3)维度重要性矩阵,评估跨个体向量维度的贡献。通过系统地移除每个令牌并测量这些三个互补维度上的影响,我们推导出一个综合的重要性评分,提供了一种细致且数学上严谨的令牌重要性的度量。为了支持可重复性和促进更广泛的应用,我们提供了所有提出和使用的可解释性技术的开源实现,代码和资源可在https://github.com/Infosys/Infosys-Responsible-AI-Toolkit公开获取。

英文摘要:

Understanding how Large Language Models (LLMs) process information from prompts remains a significant challenge. To shed light on this "black box," attention visualization techniques have been developed to capture neuron-level perceptions and interpret how models focus on different parts of input data. However, many existing techniques are tailored to specific model architectures, particularly within the Transformer family, and often require backpropagation, resulting in nearly double the GPU memory usage and increased computational cost. A lightweight, model-agnostic approach for attention visualization remains lacking. In this paper, we introduce a model-agnostic token importance visualization technique to better understand how generative AI systems perceive and prioritize information from input text, without incurring additional computational cost. Our method leverages perturbation-based strategies combined with a three-matrix analytical framework to generate relevance maps that illustrate token-level contributions to model predictions. The framework comprises: (1) the Angular Deviation Matrix, which captures shifts in semantic direction; (2) the Magnitude Deviation Matrix, which measures changes in semantic intensity; and (3) the Dimensional Importance Matrix, which evaluates contributions across individual vector dimensions. By systematically removing each token and measuring the resulting impact across these three complementary dimensions, we derive a composite importance score that provides a nuanced and mathematically grounded measure of token significance. To support reproducibility and foster wider adoption, we provide open-source implementations of all proposed and utilized explainability techniques, with code and resources publicly available at https://github.com/Infosys/Infosys-Responsible-AI-Toolkit

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

↑