Adaptive Tokenization: On the Hop-Overpriority Problem in Tokenized Graph Learning Models

Zhibiao Wang, Yunlong Zhou, Ziwei Zhang, Mengmei Zhang, Shirui Pan, Chunming Hu, Xiao WangarXiv 2025 · DOI

Introduction

Tokenized Graph Learning Models (TGLMs) have emerged as a scalable solution for applying powerful architectures like Graph Transformers and Large Language Models (LLMs) to large-scale graph data. By converting complex graph structures into fixed-length sequences of tokens, TGLMs avoid the quadratic complexity of full attention mechanisms. However, the effectiveness of these models is heavily dependent on the quality of the tokenization strategy. Current methods rely on hand-designed templates that aggregate neighborhood information into discrete hop-based tokens. This paper identifies a fundamental limitation in these static templates: the hop-overpriority problem, which causes significant performance degradation on heterophilic graphs.

The Hop-Overpriority Problem

The hop-overpriority problem refers to the inherent bias in standard tokenization templates toward immediate (1-hop) neighbors. Templates such as Hop-field Overview (HO) and Neighborhood Detail (ND) are designed under the assumption of homophily—the principle that connected nodes are likely to share similar properties. In homophilic datasets like Cora, this assumption holds true, and prioritizing local neighborhoods provides a strong signal for classification tasks.

Figure 1: Homophily analysis on the Cora dataset. Standard templates (HO and ND) perform better on nodes with high local homophily, while failing on nodes with low homophily.

However, in heterophilic graphs (e.g., Cornell, Texas, or Actor), where connected nodes often belong to different classes, this rigid prioritization becomes a liability. Forcing the model to focus on 1-hop neighbors introduces noise and conflicting signals, often resulting in performance that is worse than using no graph information at all. Theoretical analysis confirms that these templates cause attention to decay exponentially with distance, regardless of the actual informational value of the nodes at different hops.

Learnable Graph Token List (LGTL)

To address these limitations, the authors propose the Learnable Graph Token List (LGTL), a plug-and-play module designed to replace static tokenization templates. LGTL introduces adaptivity through two learnable components:

  1. Gate Module (Hop-level Weighting): Utilizing a Graph Attention Network (GAT), this module evaluates the central node's local subgraph to dynamically assign importance scores to different hops. This allows the model to down-weight noisy 1-hop neighbors and up-weight more informative 2-hop or global signals when necessary.
  2. Selection Module (Node-level Weighting): Within each hop, LGTL employs another GAT layer to calculate attention scores for individual neighbors. Instead of simple averaging, it selects and aggregates only the most task-relevant nodes to construct the final hop token.

By making the tokenization process learnable, LGTL allows the model to adapt its receptive field based on the specific structural characteristics of the input graph.

Experimental Evaluation

The LGTL framework was evaluated across a diverse set of benchmarks, including both homophilic and heterophilic graphs. The results demonstrate that learnable tokenization is particularly critical for heterophilic datasets where static templates fail to capture meaningful patterns.

Figure 4: Homophily analysis on the Cornell dataset. The lower overall homophily illustrates why static templates struggle to provide useful signals in heterophilic contexts.

Key Results

  • Graph LLMs: Integrating LGTL into the LLaGA framework resulted in a 10.39% average improvement in node classification accuracy across six text-attributed datasets. Link prediction tasks also saw an average boost of 4.67%.
  • Graph Transformers: When applied to models like NAGphormer and VCR-Graphormer, LGTL yielded performance gains of 10.5% to 11.14% on heterophilic datasets, while maintaining competitive performance on homophilic benchmarks.
  • Ablation Studies: Experiments confirmed that both the Gate and Selection modules are essential. Removing either component led to significant performance drops, especially in heterophilic scenarios where precise node selection and hop weighting are paramount.

Conclusion

The hop-overpriority problem highlights a critical weakness in current TGLM research. By replacing rigid, hand-crafted templates with the Learnable Graph Token List (LGTL), we enable models to dynamically navigate the trade-off between local and global structural signals. LGTL not only mitigates the noise inherent in heterophilic graphs but also enhances the generalizability of Graph LLMs and Transformers across diverse graph topologies.

Summary updated

BibTeX
@misc{wang2025adaptive,
  author = {Zhibiao Wang and Yunlong Zhou and Ziwei Zhang and Mengmei Zhang and Shirui Pan and Chunming Hu and Xiao Wang},
  title = {{Adaptive Tokenization: On the Hop-Overpriority Problem in Tokenized Graph Learning Models}},
  year = {2025},
  eprint = {2505.15845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.15845},
}
Figure