arXiv:2610.05874cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05874

Global Communication or Graph-Specific Memory?

Hamed Shirzad, Danica J. Sutherland

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

Abstract

Scalable Graph Transformers are commonly trained and evaluated on static large graphs in a transductive setup. Many scalable Graph Transformer components can be formulated as a constant-size shared memory, similar to virtual nodes, providing compressed information about the whole graph. The counterpart of these models in language models and other domains is justified as the input changes, and this mechanism learns to compress some useful information about the input. In transductive learning on a single fixed graph, however, any shared memory can be seen as a constant at test time. This raises the question of what exactly this shared memory does in this static setup. We give preliminary evidence that optimizing a shared memory directly performs similarly to global communication methods, and so normal local message-passing models can embed similar information in their weights. Thus, these settings may be a poor fit for evaluating global communication in graph neural networks.

1 Introduction

Graph Transformers (GTs) are often motivated by their ability to conduct long-range communication across a large input graph, thereby modeling non-local dependencies which are difficult for more local models to learn [1–6]. In practice, however, these models are commonly evaluated by full-batch transductive node classification on a single graph [7–9]. As these long-range messages will only ever be passed on one graph, it is natural to ask: are they really necessary?

The clearest case is the use of virtual nodes in a Graph Neural Network (GNN) [4, 5, 10], where all nodes are connected to a global fixed-sized shared memory. We can view this as consisting of two mechanisms: all nodes collectively write into a shared memory, constructing some compressed representation of (aspects of) the whole graph; at the next layer, each node reads from this shared memory, learning about the whole input. As we will discuss later, linear and kernelized linear attention models [e.g. 11, 12] variants of efficient Transformers can be mathematically reformulated into an analogous writer/reader setup.

These efficient attention models were originally developed for sequential data trained on many varied inputs, such as processing different textual documents, and thus different information is written and read when the model is applied to different documents; we can think of this as a mapping I↦cθ(I)I \mapsto c_\theta(I). In a transductive fixed-graph setting, as typically used for evaluating GTs, there is only one fixed graph input I∗I^*. For a given setting of model parameters θ\theta, c∗=cθ(I∗)c^* = c_\theta(I^*) is fixed: the function cθc_\theta itself matters only in what single vector c∗c^* it produces. Thus, at inference time, we can think of c∗c^* simply as a parameter of the model. This raises the questions:

• Can an equally useful shared memory c∗c^{*} be learned directly, e.g. with gradient descent on a learnable matrix?

• Do the performance of these models in this static transductive setup imply anything about their ability to do long-range dependency modeling?

(a) Inductive setting. Writing function is shared, but the input graph varies.

Figure

(b) Transductive setting. One graph, one memory shared by training and evaluation.

Figure 1: The role of a shared writer depends on the input domain. (a) In the inductive setting, the writer is trained across multiple graphs and must produce an input-specific memory for each new test graph. (b) In the static transductive setting, training and evaluation use the same graph input ( I∗I^{*}). After training, its memory ( c∗=cθ(I∗)c^{*} = c_{\theta}(I^{*})) is fixed and can be recorded and reused at evaluation, while leaving the reader unchanged.

• What are the optimization and inductive bias implications?

• Can other GNNs learn to embed this cached memory into their weights, without an explicit shared memory mechanism?

• Do these shared writers add value when the input graph changes in small ways?

Prior empirical work has suggested that simple GNNs based on local message-passing can outperform GT variants; Luo et al. [13] specifically study this, while the SGFormer results of Liang et al. [14] also often show these models fall behind basic GNNs. Our paper suggests a plausible explanation: the evaluation framework fundamentally cannot tell what role, if any, the writer plays during learning. Our class of shared-memory models does not cover all scalable GTs; for instance, Exphormer [5] is outside of it (as discussed in Appendix C), and indeed it achieves the best results in [14].

This paper is an early investigation toward the previous questions. We do provide some initial experimental and theoretical results in this work, but our focus is on clearly elaborating the potential problem to the community, and encouraging more caution in what static setups are capable of saying about learning long-range dependencies.

References (44)