Papers › Learning Graph Quantized Tokenizers

Learning Graph Quantized Tokenizers

17 Oct 2024arXiv:2410.13798archive 2025-07-28

Limei Wang, Kaveh Hassani, Si Zhang, Dongqi Fu, Baichuan Yuan, Weilin Cong, Zhigang Hua, Hao Wu, Ning Yao, Bo Long

Transformers serve as the backbone architectures of Foundational Models, where domain-specific tokenizers allow them to adapt to various domains. Graph Transformers (GTs) have recently emerged as leading models in geometric deep learning, outperforming Graph Neural Networks (GNNs) in various graph learning tasks. However, the development of tokenizers for graphs has lagged behind other modalities. To address this, we introduce GQT (\textbf{G}raph \textbf{Q}uantized \textbf{T}okenizer), which decouples tokenizer training from Transformer training by leveraging multi-task graph self-supervised learning, yielding robust and generalizable graph tokens. Furthermore, the GQT utilizes Residual Vector Quantization (RVQ) to learn hierarchical discrete tokens, resulting in significantly reduced memory requirements and improved generalization capabilities. By combining the GQT with token modulation, a Transformer encoder achieves state-of-the-art performance on 20 out of 22 benchmarks, including large-scale homophilic and heterophilic datasets.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.13798")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

limei0307/GQT officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
1ran · fixture could not drive it
5ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from limei0307/GQT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

accuracy limei0307/GQT/gmae2_utils.py official repository ran · our draft was wrong MIT (permissive) · adf3b9c6c22af5ce · report
auc_pair_loss limei0307/GQT/gmae2_models/loss_func.py official repository ran fingerprinted MIT (permissive) · 87767eda0a0d0829 · report
fit_logistic_regression limei0307/gqt/tokenizer/tokenizer.py official repository ran · our draft was wrong MIT (permissive) · 2073c491a6c31e7b · report
get_tokenizer_loader limei0307/GQT/loader.py official repository ran MIT (permissive) · cf1c82d327548c19 · report
get_tokenizer_loader_sign limei0307/GQT/loader.py official repository ran MIT (permissive) · 6f6854c82f6b6dce · report
index2mask limei0307/GQT/data.py official repository ran MIT (permissive) · 942da4a4a8ad2c9d · report
load_tokens limei0307/gqt/tokenizer/tokenizer.py official repository ran · our draft was wrong MIT (permissive) · 12e79787da214324 · report
rocauc limei0307/GQT/gmae2_utils.py official repository ran MIT (permissive) · 4041b7a277523a7e · report
trunc_normal_ limei0307/GQT/gmae2_models/loss_func.py official repository ran · fixture could not drive it MIT (permissive) · 915b71e73a54fc97 · report
get_current_lr limei0307/GQT/gmae2_utils.py official repository unverified MIT (permissive) · c9c9174dc014b586 · report
get_llm_embedding limei0307/GQT/data.py official repository unverified MIT (permissive) · cbe8b34a9538b1ae · report
sce_loss limei0307/GQT/gmae2_models/loss_func.py official repository unverified MIT (permissive) · 6f9bb5eb98ec4887 · report
setup_module limei0307/GQT/gmae2_models/edcoder.py official repository unverified MIT (permissive) · 35589fecfce05259 · report

Tasks

Graph LearningQuantizationSelf-Supervised Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections