Generalized Token Graphs: Theory & Extensions
- Generalized token graphs are families of extensions to k-token graphs that redefine vertex configurations by varying move rules, occupancy constraints, and token identity.
- They allow simultaneous moves, directed transitions, and relaxed occupancy, yielding unique connectivity, spectral, and symmetry properties compared to classical models.
- They bridge traditional graph theory with graph representation learning by transforming graphs into token sequences for efficient Transformer training and advanced invariance analysis.
Generalized token graph denotes a family of constructions extending the classical -token graph , in which vertices represent token configurations on a host graph and adjacencies encode admissible token moves. In the classical setting, the vertices are the -subsets of , and two configurations are adjacent when one token moves along one edge to an unoccupied vertex. Recent work uses the term for several non-equivalent extensions: , where tokens move simultaneously; token digraphs , where the host object is directed; supertoken graphs and , which allow repeated occupancy or distinguish token identities; and, in graph representation learning, a reversible graph-tokenization interface that maps a labeled graph to a discrete token sequence without loss of information (Herrera-Ramirez et al., 1 Sep 2025, Fernandes et al., 2024, Song et al., 6 Apr 2026, Reyes et al., 7 Apr 2026, Guo et al., 11 Mar 2026). The phrase therefore refers less to a single canonical graph and more to a program of extending token-based representations of graph structure.
1. Classical foundation and taxonomy
For a simple graph 0 on 1 vertices and an integer 2, the classical 3-token graph 4 has vertex set
5
and two 6-subsets are adjacent exactly when their symmetric difference is a pair of adjacent vertices of 7. Equivalently, a vertex of 8 is a configuration of 9 indistinguishable tokens on distinct vertices of 0, and adjacency corresponds to moving exactly one token along one edge while the other 1 tokens remain fixed (Dalfó et al., 2020). The same construction is also called the symmetric 2-th power, and 3 is the Johnson graph 4 (Reyes et al., 2023).
This classical model is the common base point for later generalizations. In the directed setting, when the host digraph 5 is replaced by an undirected graph 6, the 7-token digraph construction collapses precisely to the undirected 8-token graph 9 (Fernandes et al., 2024). In the multiplicity-based setting, the prohibition on repeated occupancy is relaxed. In the graph-learning setting, the “token” terminology is repurposed to mean discrete symbols or continuous embeddings derived from graph structure rather than vertices of a reconfiguration graph.
| Construction | Distinguishing feature | Source |
|---|---|---|
| 0 | one indistinguishable token moves to an unoccupied neighbor | (Dalfó et al., 2020) |
| 1 | 2 tokens move along 3 edges | (Herrera-Ramirez et al., 1 Sep 2025) |
| 4 | host object is a digraph; adjacency is oriented | (Fernandes et al., 2024) |
| 5, 6, 7 | repeated occupancy allowed; colored and uncolored variants | (Song et al., 6 Apr 2026, Reyes et al., 7 Apr 2026) |
| 8 | graph serialized into a reversible token sequence | (Guo et al., 11 Mar 2026) |
A common misconception is that “generalized token graph” names a unique object. The literature does not support that view. Instead, it comprises several extensions that preserve the token-configuration intuition while changing the admissible moves, occupancy constraints, host category, or even the meaning of “token.”
2. Simultaneous moves: the generalized token graph 9
The paper “Generalized Token Graphs” defines 0 for integers 1 as the graph whose vertices correspond to configurations of 2 indistinguishable tokens placed at distinct vertices of 3, where two configurations are adjacent whenever one configuration can be reached from the other by moving 4 tokens along 5 edges of 6. When 7, the usual token graph 8 is recovered (Herrera-Ramirez et al., 1 Sep 2025).
This extension changes the combinatorics of connectivity and parity in a way that differs sharply from the classical case. For 9, if 0 is non-bipartite, then 1 is connected if and only if 2 does not contain two or more leaves all sharing the same neighbor. Moreover, if 3 has exactly 4 leaves attached to a single vertex 5, then 6 has one nontrivial connected component plus 7 isolated vertices. Likewise, 8 is bipartite if and only if 9 is a disjoint union of paths; equivalently, 0 contains no cycle and no vertex of degree at least 1. These criteria show that classical implications do not transfer unchanged once simultaneous moves are permitted.
The same work analyzes several graph parameters. For complete bipartite hosts, 2 satisfies 3 and 4, while
5
and 6. For cycles,
7
The paper also gives 8, identifies 9, and shows that for odd cycles
0
Automorphism behavior illustrates another nontrivial departure from the base graph. Every automorphism of 1 induces one of 2, so 3; however, equality need not hold. In the diamond example 4, 5, whereas 6. This shows that generalized token graphs can amplify symmetry rather than merely inherit it.
3. Repeated occupancy and colored tokens: supertoken frameworks
A second major line of generalization allows more than one token at a vertex. In “On Generalized Token Graphs,” the indistinguishable-token supertoken graph 7 is defined for a simple graph 8, a token count 9, and a per-vertex capacity 0. A vertex of 1 is an unordered multiset 2 in which no element of 3 appears more than 4 times, equivalently an integer vector 5 with 6 and 7. Two vertices are adjacent if and only if their multisets differ by moving a single token along one edge of 8. The same paper defines the colored supertoken graph 9, where tokens are distinguishable and vertices are ordered 0-tuples subject to the same occupancy constraint (Song et al., 6 Apr 2026).
This framework unifies several classical constructions. The usual token graph is recovered as 1. When 2 and tokens are indistinguishable, one gets the reduced power 3. When 4 and tokens are distinguishable, one gets the Cartesian product 5 with 6 factors. The order formulas are given explicitly: for indistinguishable tokens,
7
and for distinguishable tokens the paper provides a refined inclusion–exclusion expression 8. It also gives corresponding edge-count formulas. For connectivity, if 9 is connected and 00, all nontrivial supertoken graphs 01 and 02 are connected, except 03.
A related unrestricted-multiplicity construction appears in “On supertoken graphs,” which defines the 04-supertoken graph 05 as the graph whose vertices are all multisets of size 06 drawn from 07, represented as nonnegative integer vectors 08 with 09. Two vertices 10 are adjacent exactly when 11 for some edge 12 (Reyes et al., 7 Apr 2026). Its order and size are
13
The same paper proves
14
15
and shows that the eigenvalues of 16 interlace those of 17.
For graph invariants, 18 satisfies
19
and the paper develops lower bounds and exact values for 20, including explicit formulas for 21. It also constructs the 22-augmented 23-token graphs of cycles 24, with
25
and, for odd 26,
27
The supertoken literature makes clear that “generalization” can refer not to more complicated move rules, but to relaxing the exclusion constraint itself. This suggests that occupancy constraints, token identity, and move locality are largely orthogonal design choices.
4. Directed token graphs and related complexity questions
For a digraph 28 of order 29 and 30, the 31-token digraph 32 has vertex set
33
and arc set consisting of ordered pairs 34 such that 35, 36, and 37 is an arc of 38. Equivalently, a single token moves along one arc of 39 at each step, keeping the other 40 tokens fixed (Fernandes et al., 2024).
This directed version refines several undirected correspondences. If 41 is strongly connected then so is 42, and in fact 43 is strongly connected if and only if 44 is. More generally, if 45 are the strongly connected components of 46 in topological order and a configuration 47 places 48 tokens in 49, then the strongly connected component of 50 containing 51 is isomorphic to the Cartesian product 52. The paper also proves that 53 is acyclic if and only if 54 is acyclic.
Kernel theory behaves more subtly. If 55 has no oriented odd cycle then neither does 56; hence, by the theorem of von Neumann–Morgenstern, every such 57 has a unique kernel. But the presence of odd cycles breaks any simple lifting principle: the paper gives small examples of 58 with a kernel but 59 having none, and vice versa. It further shows that deciding whether 60 admits a kernel is NP-complete, via an adaptation of Chvátal’s reduction from NAE-3SAT.
Several directed invariants are preserved or controlled sharply. The oriented girth and circumference satisfy
61
with stronger lower bounds on 62 when 63 and 64. Eulerianity is preserved exactly: 65 For bidirected clique number,
66
and for dichromatic number,
67
Combined with the bound of Cordero-Michel and Galeana-Sánchez,
68
the same uniform bound follows for 69.
A related but distinct reconfiguration literature generalizes token jumping rather than token graphs. Under 70-Token-Jumping, one may move several tokens at once provided each travels distance at most 71. For connected graphs, the minimal distances guaranteeing reconfigurability of every pair of solutions are 72 for Vertex Cover, 73 for Dominating Set, and 74 for Independent Set (Křišťan et al., 2024). This is not a token-graph construction in the strict sense, but it belongs to the same reconfiguration paradigm.
5. Spectral and algebraic structure inherited from classical token graphs
Much of the generalized-token-graph literature is organized around invariants first understood for the classical 75. For Laplacian spectra, if 76, then
77
and the inclusion can be proved by lifting eigenvectors through the inclusion matrices 78 or via the matrix identity
79
in the formulation of the paper (Dalfó et al., 2020). The same work proves that 80 and 81 are coupled through the Johnson graph: 82 and formulates the conjecture that for every graph 83 and every 84,
85
The algebraic framework behind this complement relation is developed further in “On two algebras of token graphs.” There, the corrected commutativity statement
86
is used to define the local algebra
87
a unital commutative matrix algebra containing the Bose–Mesner algebra of the Johnson graph 88. The same paper then defines a global algebra 89, spanned by the adjacency matrices 90 attached to single edges 91, with
92
and shows that 93 contains the adjacency and Laplacian matrices of the 94-token graph of any graph 95 on 96 vertices (Reyes et al., 2024).
Adjacency spectra exhibit similarly rigid patterns. For walk-regular 97, “On the spectra and spectral radii of token graphs” proves the exact formula
98
where 99 is the common spectral radius of all 00-vertex-deleted subgraphs. For 01, this becomes 02 for any vertex 03. When 04 is distance-regular, the partition of 05 by distances between the two occupied vertices is equitable, and the resulting quotient matrix yields explicit eigenvalues of 06. The paper also proposes generalized Aldous-type monotonicity conjectures for the “new” eigenvalues 07 and 08 that appear when passing from 09 to 10 (Reyes et al., 2023).
These results concern the classical exclusion model rather than every generalized variant. Still, they provide the main template for later work on generalized constructions: commutativity, interlacing, quotient matrices, and preserved connectivity parameters are the dominant analytic tools.
6. Terminological extension in graph representation learning
In graph machine learning, “Generalized Token Graph” has acquired a separate meaning. “Graph Tokenization for Bridging Graphs and Transformers” defines a framework in which a labeled graph 11 is serialized by a reversible, deterministic map
12
guided by global node–edge–node 13-gram frequencies 14, and then compressed by Byte Pair Encoding to obtain
15
The paper proves injectivity up to isomorphism, states that the final vocabulary size is 16, reports that 17 typically, and gives a token composition of approximately 18 atomic tokens, 19 small substructures, 20 medium substructures, and 21 larger motifs (Guo et al., 11 Mar 2026). It further reports state-of-the-art results on 14 benchmark datasets, “10× shorter sequences after BPE,” and “22–23 faster Transformer training,” while requiring “No change to standard Transformer or BERT.”
A second line keeps the token notion continuous rather than discrete. TEA-GLM treats graph token embeddings as a small set of continuous vectors aligned with the token embeddings of an LLM. Its GNN is pretrained with an instance-wise contrastive loss 24 and a feature-wise loss 25, combined as
26
after projection into the principal-component subspace of the LLM token embedding matrix. A frozen GNN representation 27 is then mapped by a single affine layer to
28
and these instance-specific soft tokens are inserted into a unified instruction prompt for zero-shot node classification and link prediction (Wang et al., 2024). The paper reports zero-shot node-classification results of PubMed 29 and Cora 30 in the citation-domain transfer setting, best AUCs on several link-prediction benchmarks, and ablations in which removing 31 degrades transfer while removing graph token embeddings collapses zero-shot performance nearly to random.
TokenGT pushes the terminology in yet another direction by treating all nodes and edges as independent tokens and feeding them, with orthonormal node identifiers and type identifiers, into a vanilla Transformer. With sufficiently expressive token embeddings, a single Transformer layer with 32 heads can approximate any equivariant linear map 33, and the resulting architecture is at least as expressive as a 34-IGN, hence strictly more powerful than standard message-passing GNNs (Kim et al., 2022). On PCQM4Mv2, the paper reports validation MAE 35 for TokenGT with Laplacian identifiers, compared with 36 for GIN-VN and 37 for Graphormer.
The alignment problem created by graph tokenization is analyzed explicitly in RGLM. That work models Graph-Tokenizing LLMs as LLMs consuming a fixed-length graph-token sequence 38, argues that text-only instruction tuning yields only implicit graph–text alignment, and proves
39
It then augments the text loss with a graph reconstruction term,
40
instantiated as RGLM-Decoder, RGLM-Similarizer, and RGLM-Denoiser (Zhang et al., 2 Mar 2026). On node classification, RGLM-Decoder reports 41 accuracy on Cora and 42 on Pubmed, and the paper states that reconstruction losses add only 43–44 training time and memory.
A more extreme compression is provided by the 45 line, in which an entire graph topology is quantized into one special token selected by nearest-neighbor assignment in a learned codebook. The resulting vocabulary extension
46
is aligned with text tokens through synthetic structure question-answering corpora, and the paper reports improvements of 47 to 48 over baselines on five graph-level benchmarks (Wu et al., 2 Feb 2026).
In this machine-learning usage, “Generalized Token Graph” no longer denotes a graph whose vertices are token configurations. It denotes an interface between graph structure and sequence models. The coexistence of this usage with the graph-theoretic one is now part of the term’s contemporary meaning.