Papers
Topics
Authors
Recent
Search
2000 character limit reached

Generalized Token Graphs: Theory & Extensions

Updated 9 July 2026
  • 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 kk-token graph Fk(G)F_k(G), in which vertices represent token configurations on a host graph and adjacencies encode admissible token moves. In the classical setting, the vertices are the kk-subsets of V(G)V(G), 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: Fkm(G)F_k^m(G), where mm tokens move simultaneously; token digraphs Fk(D)F_k(D), where the host object is directed; supertoken graphs Fks(G)F_k^s(G) and Fk(G)\mathcal F_k(G), which allow repeated occupancy or distinguish token identities; and, in graph representation learning, a reversible graph-tokenization interface Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G)) 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 Fk(G)F_k(G)0 on Fk(G)F_k(G)1 vertices and an integer Fk(G)F_k(G)2, the classical Fk(G)F_k(G)3-token graph Fk(G)F_k(G)4 has vertex set

Fk(G)F_k(G)5

and two Fk(G)F_k(G)6-subsets are adjacent exactly when their symmetric difference is a pair of adjacent vertices of Fk(G)F_k(G)7. Equivalently, a vertex of Fk(G)F_k(G)8 is a configuration of Fk(G)F_k(G)9 indistinguishable tokens on distinct vertices of kk0, and adjacency corresponds to moving exactly one token along one edge while the other kk1 tokens remain fixed (Dalfó et al., 2020). The same construction is also called the symmetric kk2-th power, and kk3 is the Johnson graph kk4 (Reyes et al., 2023).

This classical model is the common base point for later generalizations. In the directed setting, when the host digraph kk5 is replaced by an undirected graph kk6, the kk7-token digraph construction collapses precisely to the undirected kk8-token graph kk9 (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
V(G)V(G)0 one indistinguishable token moves to an unoccupied neighbor (Dalfó et al., 2020)
V(G)V(G)1 V(G)V(G)2 tokens move along V(G)V(G)3 edges (Herrera-Ramirez et al., 1 Sep 2025)
V(G)V(G)4 host object is a digraph; adjacency is oriented (Fernandes et al., 2024)
V(G)V(G)5, V(G)V(G)6, V(G)V(G)7 repeated occupancy allowed; colored and uncolored variants (Song et al., 6 Apr 2026, Reyes et al., 7 Apr 2026)
V(G)V(G)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 V(G)V(G)9

The paper “Generalized Token Graphs” defines Fkm(G)F_k^m(G)0 for integers Fkm(G)F_k^m(G)1 as the graph whose vertices correspond to configurations of Fkm(G)F_k^m(G)2 indistinguishable tokens placed at distinct vertices of Fkm(G)F_k^m(G)3, where two configurations are adjacent whenever one configuration can be reached from the other by moving Fkm(G)F_k^m(G)4 tokens along Fkm(G)F_k^m(G)5 edges of Fkm(G)F_k^m(G)6. When Fkm(G)F_k^m(G)7, the usual token graph Fkm(G)F_k^m(G)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 Fkm(G)F_k^m(G)9, if mm0 is non-bipartite, then mm1 is connected if and only if mm2 does not contain two or more leaves all sharing the same neighbor. Moreover, if mm3 has exactly mm4 leaves attached to a single vertex mm5, then mm6 has one nontrivial connected component plus mm7 isolated vertices. Likewise, mm8 is bipartite if and only if mm9 is a disjoint union of paths; equivalently, Fk(D)F_k(D)0 contains no cycle and no vertex of degree at least Fk(D)F_k(D)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, Fk(D)F_k(D)2 satisfies Fk(D)F_k(D)3 and Fk(D)F_k(D)4, while

Fk(D)F_k(D)5

and Fk(D)F_k(D)6. For cycles,

Fk(D)F_k(D)7

The paper also gives Fk(D)F_k(D)8, identifies Fk(D)F_k(D)9, and shows that for odd cycles

Fks(G)F_k^s(G)0

Automorphism behavior illustrates another nontrivial departure from the base graph. Every automorphism of Fks(G)F_k^s(G)1 induces one of Fks(G)F_k^s(G)2, so Fks(G)F_k^s(G)3; however, equality need not hold. In the diamond example Fks(G)F_k^s(G)4, Fks(G)F_k^s(G)5, whereas Fks(G)F_k^s(G)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 Fks(G)F_k^s(G)7 is defined for a simple graph Fks(G)F_k^s(G)8, a token count Fks(G)F_k^s(G)9, and a per-vertex capacity Fk(G)\mathcal F_k(G)0. A vertex of Fk(G)\mathcal F_k(G)1 is an unordered multiset Fk(G)\mathcal F_k(G)2 in which no element of Fk(G)\mathcal F_k(G)3 appears more than Fk(G)\mathcal F_k(G)4 times, equivalently an integer vector Fk(G)\mathcal F_k(G)5 with Fk(G)\mathcal F_k(G)6 and Fk(G)\mathcal F_k(G)7. Two vertices are adjacent if and only if their multisets differ by moving a single token along one edge of Fk(G)\mathcal F_k(G)8. The same paper defines the colored supertoken graph Fk(G)\mathcal F_k(G)9, where tokens are distinguishable and vertices are ordered Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))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 Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))1. When Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))2 and tokens are indistinguishable, one gets the reduced power Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))3. When Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))4 and tokens are distinguishable, one gets the Cartesian product Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))5 with Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))6 factors. The order formulas are given explicitly: for indistinguishable tokens,

Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))7

and for distinguishable tokens the paper provides a refined inclusion–exclusion expression Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))8. It also gives corresponding edge-count formulas. For connectivity, if Φ(G)=T(σ(G))\Phi(G)=T(\sigma(G))9 is connected and Fk(G)F_k(G)00, all nontrivial supertoken graphs Fk(G)F_k(G)01 and Fk(G)F_k(G)02 are connected, except Fk(G)F_k(G)03.

A related unrestricted-multiplicity construction appears in “On supertoken graphs,” which defines the Fk(G)F_k(G)04-supertoken graph Fk(G)F_k(G)05 as the graph whose vertices are all multisets of size Fk(G)F_k(G)06 drawn from Fk(G)F_k(G)07, represented as nonnegative integer vectors Fk(G)F_k(G)08 with Fk(G)F_k(G)09. Two vertices Fk(G)F_k(G)10 are adjacent exactly when Fk(G)F_k(G)11 for some edge Fk(G)F_k(G)12 (Reyes et al., 7 Apr 2026). Its order and size are

Fk(G)F_k(G)13

The same paper proves

Fk(G)F_k(G)14

Fk(G)F_k(G)15

and shows that the eigenvalues of Fk(G)F_k(G)16 interlace those of Fk(G)F_k(G)17.

For graph invariants, Fk(G)F_k(G)18 satisfies

Fk(G)F_k(G)19

and the paper develops lower bounds and exact values for Fk(G)F_k(G)20, including explicit formulas for Fk(G)F_k(G)21. It also constructs the Fk(G)F_k(G)22-augmented Fk(G)F_k(G)23-token graphs of cycles Fk(G)F_k(G)24, with

Fk(G)F_k(G)25

and, for odd Fk(G)F_k(G)26,

Fk(G)F_k(G)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.

For a digraph Fk(G)F_k(G)28 of order Fk(G)F_k(G)29 and Fk(G)F_k(G)30, the Fk(G)F_k(G)31-token digraph Fk(G)F_k(G)32 has vertex set

Fk(G)F_k(G)33

and arc set consisting of ordered pairs Fk(G)F_k(G)34 such that Fk(G)F_k(G)35, Fk(G)F_k(G)36, and Fk(G)F_k(G)37 is an arc of Fk(G)F_k(G)38. Equivalently, a single token moves along one arc of Fk(G)F_k(G)39 at each step, keeping the other Fk(G)F_k(G)40 tokens fixed (Fernandes et al., 2024).

This directed version refines several undirected correspondences. If Fk(G)F_k(G)41 is strongly connected then so is Fk(G)F_k(G)42, and in fact Fk(G)F_k(G)43 is strongly connected if and only if Fk(G)F_k(G)44 is. More generally, if Fk(G)F_k(G)45 are the strongly connected components of Fk(G)F_k(G)46 in topological order and a configuration Fk(G)F_k(G)47 places Fk(G)F_k(G)48 tokens in Fk(G)F_k(G)49, then the strongly connected component of Fk(G)F_k(G)50 containing Fk(G)F_k(G)51 is isomorphic to the Cartesian product Fk(G)F_k(G)52. The paper also proves that Fk(G)F_k(G)53 is acyclic if and only if Fk(G)F_k(G)54 is acyclic.

Kernel theory behaves more subtly. If Fk(G)F_k(G)55 has no oriented odd cycle then neither does Fk(G)F_k(G)56; hence, by the theorem of von Neumann–Morgenstern, every such Fk(G)F_k(G)57 has a unique kernel. But the presence of odd cycles breaks any simple lifting principle: the paper gives small examples of Fk(G)F_k(G)58 with a kernel but Fk(G)F_k(G)59 having none, and vice versa. It further shows that deciding whether Fk(G)F_k(G)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

Fk(G)F_k(G)61

with stronger lower bounds on Fk(G)F_k(G)62 when Fk(G)F_k(G)63 and Fk(G)F_k(G)64. Eulerianity is preserved exactly: Fk(G)F_k(G)65 For bidirected clique number,

Fk(G)F_k(G)66

and for dichromatic number,

Fk(G)F_k(G)67

Combined with the bound of Cordero-Michel and Galeana-Sánchez,

Fk(G)F_k(G)68

the same uniform bound follows for Fk(G)F_k(G)69.

A related but distinct reconfiguration literature generalizes token jumping rather than token graphs. Under Fk(G)F_k(G)70-Token-Jumping, one may move several tokens at once provided each travels distance at most Fk(G)F_k(G)71. For connected graphs, the minimal distances guaranteeing reconfigurability of every pair of solutions are Fk(G)F_k(G)72 for Vertex Cover, Fk(G)F_k(G)73 for Dominating Set, and Fk(G)F_k(G)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 Fk(G)F_k(G)75. For Laplacian spectra, if Fk(G)F_k(G)76, then

Fk(G)F_k(G)77

and the inclusion can be proved by lifting eigenvectors through the inclusion matrices Fk(G)F_k(G)78 or via the matrix identity

Fk(G)F_k(G)79

in the formulation of the paper (Dalfó et al., 2020). The same work proves that Fk(G)F_k(G)80 and Fk(G)F_k(G)81 are coupled through the Johnson graph: Fk(G)F_k(G)82 and formulates the conjecture that for every graph Fk(G)F_k(G)83 and every Fk(G)F_k(G)84,

Fk(G)F_k(G)85

The algebraic framework behind this complement relation is developed further in “On two algebras of token graphs.” There, the corrected commutativity statement

Fk(G)F_k(G)86

is used to define the local algebra

Fk(G)F_k(G)87

a unital commutative matrix algebra containing the Bose–Mesner algebra of the Johnson graph Fk(G)F_k(G)88. The same paper then defines a global algebra Fk(G)F_k(G)89, spanned by the adjacency matrices Fk(G)F_k(G)90 attached to single edges Fk(G)F_k(G)91, with

Fk(G)F_k(G)92

and shows that Fk(G)F_k(G)93 contains the adjacency and Laplacian matrices of the Fk(G)F_k(G)94-token graph of any graph Fk(G)F_k(G)95 on Fk(G)F_k(G)96 vertices (Reyes et al., 2024).

Adjacency spectra exhibit similarly rigid patterns. For walk-regular Fk(G)F_k(G)97, “On the spectra and spectral radii of token graphs” proves the exact formula

Fk(G)F_k(G)98

where Fk(G)F_k(G)99 is the common spectral radius of all kk00-vertex-deleted subgraphs. For kk01, this becomes kk02 for any vertex kk03. When kk04 is distance-regular, the partition of kk05 by distances between the two occupied vertices is equitable, and the resulting quotient matrix yields explicit eigenvalues of kk06. The paper also proposes generalized Aldous-type monotonicity conjectures for the “new” eigenvalues kk07 and kk08 that appear when passing from kk09 to kk10 (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 kk11 is serialized by a reversible, deterministic map

kk12

guided by global node–edge–node kk13-gram frequencies kk14, and then compressed by Byte Pair Encoding to obtain

kk15

The paper proves injectivity up to isomorphism, states that the final vocabulary size is kk16, reports that kk17 typically, and gives a token composition of approximately kk18 atomic tokens, kk19 small substructures, kk20 medium substructures, and kk21 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 “kk22–kk23 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 kk24 and a feature-wise loss kk25, combined as

kk26

after projection into the principal-component subspace of the LLM token embedding matrix. A frozen GNN representation kk27 is then mapped by a single affine layer to

kk28

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 kk29 and Cora kk30 in the citation-domain transfer setting, best AUCs on several link-prediction benchmarks, and ablations in which removing kk31 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 kk32 heads can approximate any equivariant linear map kk33, and the resulting architecture is at least as expressive as a kk34-IGN, hence strictly more powerful than standard message-passing GNNs (Kim et al., 2022). On PCQM4Mv2, the paper reports validation MAE kk35 for TokenGT with Laplacian identifiers, compared with kk36 for GIN-VN and kk37 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 kk38, argues that text-only instruction tuning yields only implicit graph–text alignment, and proves

kk39

It then augments the text loss with a graph reconstruction term,

kk40

instantiated as RGLM-Decoder, RGLM-Similarizer, and RGLM-Denoiser (Zhang et al., 2 Mar 2026). On node classification, RGLM-Decoder reports kk41 accuracy on Cora and kk42 on Pubmed, and the paper states that reconstruction losses add only kk43–kk44 training time and memory.

A more extreme compression is provided by the kk45 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

kk46

is aligned with text tokens through synthetic structure question-answering corpora, and the paper reports improvements of kk47 to kk48 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Generalized Token Graph.