Why Do Autoregressive Models Struggle to Generate Graph Cycles?
Graph foundation models need a way to turn graphs into discrete tokens. Current one-pass generators miss edges that fall outside their serialization window.
The Serialization Problem
A graph is a set of nodes and edges. Turning it into a token sequence means choosing an order for the nodes. Breadth-first serialization visits neighbours before distant nodes. Edges that connect a node to something far away in that order land outside the current generation window. The model never sees them in one pass. Cycles vanish.
The paper states this plainly: one-pass autoregressive generators systematically under-produce cycles. A single global condition cannot tell candidate edges apart either. Both obstacles stem from the same root: the condition is too coarse.
How GraphVQ Tokenizes Node Contexts
GraphVQ builds a tokenizer first. Each node gets a context: its features plus a local edge mask derived from multi-order breadth-first serialization. These contexts enter a VQ-VAE with a shared codebook. The decoder uses BCE-calibrated Bernoulli edge decoding.
The tokenizer reconstructs node features at 0.86--0.99 accuracy. It decodes local edges at AUROC >= 0.89 with ECE <= 0.007. Quantization happens once. The codebook becomes the vocabulary for the second stage.
Why Pair Features Are Necessary
A structure-aware decoder takes the token sequence. It emits the global adjacency matrix conditioned on token-derived pair features. The paper formalizes why any global-summary condition fails: a scoped impossibility result shows pair features are necessary. Pair-level context turns the quantized vocabulary into a usable capacity axis. Distribution-faithful generation becomes possible. Future token-level pretraining gets a foothold.
Results on Four Datasets
Under one same-split protocol on four datasets pair conditioning improves orbit MMD 0.248 -> 0.174 on PROTEINS and 3.4x on a ring stress test. The gain vanishes on a random-label control. That vanishing is the signature of attribute-topology coupling. The improvement is claimed exactly where attributes carry edge-relevant signal.
On PROTEINS, GraphVQ ranks first among learned generators. It ties for first on SYN-COMM. Orbit MMD improves 2.7--17x over one-stage generation on three datasets. Seed-level bootstrap intervals confirm the rankings are not seed noise.
On MUTAG the unweighted edge target under-generates and is reported as such. The paper does not say how many graphs remain in deployment.
The sources this article was written from
- arXiv:2609.37604v1
https://arxiv.org/abs/2609.37604v1