论文本图软提示中的令牌坍缩现象
研究论文 · 2026/10/27
近期将图结构注入LLM提示的方法包括图软提示,其中图神经网络(GNN)学习图特定令牌以捕获文本提示中实体间的关系信息。G-Retriever将图软提示与同一图的言语化描述结合以增强文本提示信号。我们对G-Retriever进行深入分析,发现一种称为令牌坍缩的病态行为。在三个基准、三种图编码器、两个LLM系列以及冻结和LoRA适配模型上,G-Retriever的图令牌在不同输入间几乎无法区分。我们提供证据表明后续方法即使采用多令牌池化也继承了相同的失败。在标准设置下,将令牌替换为数据集均值、来自另一示例的令牌或来自损坏图的令牌,在答案级准确率上均未产生可分辨的影响。此外,一个从不访问图的学习常量提示在所有三个基准上匹配或超越G-Retriever。这些发现表明,坍缩的令牌并非如预期传达图内容,而主要充当通用软提示。我们还检查了与这种坍缩相关的条件,并提出一种两阶段程序,在大多数情况下产生非坍缩令牌同时保持竞争性性能。然而,令牌可变性本身并不能证明模型使用了图信息:通过干预和解码探针,我们表明根据配置不同,令牌可以反映问题、答案先验或LLM可能使用或不使用的图衍生内容。总体而言,我们的结果提供了一种评估图令牌对齐的实用方法,而非仅从任务准确率推断。重现实验的代码见https://github.com/difra100/Token_Collapse_KGQA。
该文揭示了图软提示中普遍存在的令牌坍缩问题,挑战了现有方法有效利用图信息的假设,并提供了评估图令牌对齐的实用方法,对图增强LLM的研究具有重要警示和指导意义。
Recent methods for injecting graph structure into LLM prompts include graph soft prompting, in which a graph neural network (GNN) learns graph-specific tokens that capture relational information among entities in textual prompts. G-Retriever combines graph soft prompts with a verbalized description of the same graph to strengthen the textual prompt signal. We conduct an in-depth analysis of G-Retriever and uncover a pathological behavior we term token collapse. Across three benchmarks, three graph encoders, two LLM families, and both frozen and LoRA-adapted models, G-Retriever's graph tokens become almost indistinguishable across inputs. We provide evidence that the same failure is inherited by subsequent methods, even with multi-token pooling. Under the standard setup, swapping a token with the dataset mean, a token from another example, or one derived from a corrupted graph produces no resolved answer-level effect in accuracy. Moreover, a learned constant prompt that never accesses the graph matches or surpasses G-Retriever on all three benchmarks. These findings indicate that, rather than conveying graph content as intended, the collapsed token functions primarily as a generic soft prompt. We also examine conditions linked to this collapse and propose a two-stage procedure that yields non-collapsed tokens while maintaining competitive performance in most cases. However, token variability alone does not prove that the model uses graph information: via interventions and decoding probes, we show that depending on the configuration, a token can reflect the question, an answer prior, or graph-derived content that the LLM may or may not use. Overall, our results offer a practical approach to evaluating graph-token alignment rather than inferring it from task accuracy alone. Code to reproduce our experiments is available at https://github.com/difra100/Token_Collapse_KGQA.