Learning Graph Quantized Tokenizers

Limei Wang, Kaveh Hassani, Si Zhang, Dongqi Fu, Baichuan Yuan +5 more
10/17/2024
cs.NEcs.AIcs.LG

No official code found. Best implementation: limei0307/GQT (31 stars, MIT, last commit 2025-04-02).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

limei0307/GQTCommunity100%
MIT

The repository implements the paper "Learning Graph Quantized Tokenizers for Transformers".

315PythonOct 10, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024learning,
  title  = {Learning Graph Quantized Tokenizers},
  author = {Limei Wang and Kaveh Hassani and Si Zhang and Dongqi Fu and Baichuan Yuan and Weilin Cong and Zhigang Hua and Hao Wu and Ning Yao and Bo Long},
  year   = {2024},
  eprint = {2410.13798},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.13798v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13798.svg)](https://codeofpaper.com/paper/2410.13798)

Discussion