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

SLASH the Sink: 在大语言模型中 sharpening 结构性注意力

SLASH the Sink: Sharpening Structural Attention Inside LLMs

Shanghai Jiao Tong University(上海交通大学);Institute of Geographical Science and Natural Resources Research(地理科学与自然资源研究所);Chinese Academy of Sciences(中国科学院)

Yiming Liu, Bin Lu, Xinbing Wang, Chenghu Zhou, Meng Jin

AI总结:

本文研究了大语言模型内部机制,发现其能自发重构图拓扑,但受注意力sink影响导致结构理解被削弱。提出SLASH方法,通过插件式注意力重分布增强内部结构理解,实验表明在纯图任务和分子预测中性能显著提升。

摘要:

大型语言模型(LLMs)在处理图拓扑时表现出显著的语义理解能力,但往往在结构理解上遇到困难。现有解决方案依赖于训练外部图结构适配器或微调,这导致成本高且失去泛化能力。本文研究了LLMs的内部机制,发现LLMs会自发地在内部重构图的拓扑结构,这在注意力图中表现为明显的“锯齿”模式,与“token级邻接矩阵”结构一致。然而,这种内在的结构理解被注意力sink所稀释。我们理论上将这种稀释定义为一个表示瓶颈,源于一个根本性的矛盾:模型的各向异性偏见,对于语言任务是必要的,却抑制了图推理所需的拓扑感知局部聚合。为了解决这个问题,我们提出了一种无需训练的解决方案,名为StructuraL Attention SHarpening(SLASH),通过插件式注意力重分布来增强这种内部结构理解。在纯图任务和分子预测实验中验证,SLASH在多种LLM上都带来了显著且一致的性能提升。

英文摘要:

Large Language Models (LLMs) show remarkable semantic understanding but often struggle with structural understanding when processing graph topologies in a serialized format. Existing solutions rely on training external graph-based adapters or fine-tuning, which incur high costs and lost generalizability. In this work, we investigate the internal mechanisms of LLMs and present a critical finding: LLMs spontaneously reconstruct the graph's topology internally, evidenced by a distinct "sawtooth" pattern in their attention maps that structurally aligns with the "token-level adjacency matrix". However, this intrinsic structural understanding is diluted by the attention sink. We theoretically formalize this dilution as a representation bottleneck, stemming from a fundamental conflict: the model's anisotropic bias, essential for language tasks, suppresses the topology-aware local aggregation required for graph reasoning. To address this, we propose a training-free solution, named StructuraL Attention SHarpening (SLASH), which amplifies this internal structural understanding via a plug-and-play attention redistribution. Experiments on pure graph tasks and molecular prediction validate that SLASH delivers significant and consistent performance gains across diverse LLMs.

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

↑