Manuscript Offprint

arXiv:2610.31572

On the Token Collapse Phenomenon in Textual Graph Soft Prompting

Andrea Giuseppe Di Francesco, Rishabh Jain, Franco Maria Nardini, Nicola Tonellotto, Pietro Liò, Fabrizio Silvestri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

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. A major development in this line of work is G-Retriever, which combines graph soft prompts with a verbalized description of the same graph to strengthen the textual prompt signal. In this paper, 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 to G-Retriever, 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 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 is using 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 actually leverage. 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.

1 INTRODUCTION

Large language models (LLMs) store knowledge in their parameters, making information outside or newer than their pre-training data hard to access or update (Lewis et al., 2020). Such external knowledge may be organised as text-attributed graphs (He et al., 2024). We can incorporate this information into an LLM either by textualizing the graphs, i.e., constructing verbalized descriptions of nodes and edges, or through graph soft prompting, i.e., providing a learned representation generated by a graph neural network (GNN). Verbalisation has two limitations: its token cost grows with the amount of graph content included, and serialisation imposes a sequence order on facts that have no intrinsic order. Expressive Graph soft prompting aims to offer an alternative interface for conveying relational information without verbalising every node and edge. G-Retriever (He et al., 2024) supplies the same underlying graph via both channels. However, this design introduces an identifiability issue: because the graph content is already present in textual form, improvements in answer accuracy alone cannot distinguish whether the model relies on the graph token, the verbalized graph, or both. Furthermore, the training objective does not explicitly enforce that the graph-derived token encodes graph-specific information when the textual channel suffices. Consequently, a token computed from the graph may degenerate into a graph-invariant soft prompt.

G-Retriever interprets its ablations as evidence that the graph encoder and verbalised graph provide complementary graph representations (He et al., 2024). We revisit this interpretation by testing what the graph token contains and whether the LLM uses it.

This study evaluates the proposed mechanism by quantifying both the information encoded in graph-derived tokens and the information that the large language model (LLM) causally exploits during inference. The experimental protocol integrates token-space statistical analyses with fixed-weight causal interventions: individual tokens are substituted with (i) the training-set mean token, (ii) a token sampled from a different example, or (iii) a token recomputed from corrupted or different graph inputs. In addition to answer accuracy, we assess gold-answer log-likelihood to capture subtler shifts in the model's output distribu-

Figure

Figure 1: Graph tokens of all 1,628 WebQSP test questions, projected onto two principal components after removing the mean token μ\mu, with pairwise cosines shown below.

tion, and we employ decoding-based probes to measure the recoverability of question, answer, and graph attributes from internal representations. Graph-free control conditions preserve the projector architecture and the full training pipeline while ablating the graph input itself.

Applying this protocol to G-Retriever uncovers an unanticipated phenomenon that we call token collapse, which also recurs in subsequent graph-prompting methods. Specifically, across several graph encoders, benchmark datasets, LLM families, and fine-tuning regimes, the token representations generated by G-Retriever are nearly invariant with respect to the input graph (Figure 1). Moreover, substituting these input-dependent projected tokens with a fixed alternative yields no resolved answer-level effect under the default configuration; indeed, a learned constant token that never observes any graph matches or even surpasses the performance of the full model. These results indicate that the collapsed token operates primarily as a soft prompt rather than as a carrier of graph-specific information. Although likelihood-based analyses show that perturbing the token can modulate the output distribution, such sensitivity alone is insufficient to demonstrate input- or graph-conditioned utilization.

We associate collapse with two factors: a projector that suppresses variation in the encoder representations and an answer objective that does not require this variation to be preserved. Our ablations implicate both factors, although they do not isolate either as the sole cause. We address them with a two-stage pipeline that first aligns and freezes the graph encoder, then trains separate graph-token and prompt-token pathways. The resulting tokens no longer collapse, but non-collapse alone guarantees neither graph use nor improved accuracy. Depending on the benchmark and training configuration, they may encode the question, an answer prior, graph information made redundant by the text, or graph information that the LLM uses to answer. This distinction matters because task improvements may otherwise be attributed to graph-language alignment even when they arise from the verbalised graph or a graph-independent soft prompt. By separating token variation, graph content, and downstream use, our protocol makes alignment empirically testable and provides concrete criteria for developing graph-language models that preserve and use task-relevant graph information beyond what is already supplied by the textual channel.

Contributions. We identify token collapse across G-Retriever benchmarks, graph encoders, LLM families, and tuning regimes, and find the same failure in recent graph-prompting methods. Using matched graph-free controls and fixed-weight interventions, we show that the collapsed token acts primarily as a soft prompt rather than as a graph representation used to answer. We associate collapse with the projector and end-to-end answer training, and propose a two-stage pipeline that mitigates it across the tested settings. Finally, we show that a non-collapsed token may encode question or answer priors, unused graph information, or graph information that changes the answer. Together, these results provide a practical protocol for testing graph-token alignment rather than inferring it from task accuracy.

References (32)