HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yun, Sanggeon, Hassan, Raheeb, Masukawa, Ryozo, Jeong, Sungheon, Imani, Mohsen
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914301632053248
author Yun, Sanggeon
Hassan, Raheeb
Masukawa, Ryozo
Jeong, Sungheon
Imani, Mohsen
author_facet Yun, Sanggeon
Hassan, Raheeb
Masukawa, Ryozo
Jeong, Sungheon
Imani, Mohsen
contents Graph Transformers typically rely on explicit positional or structural encodings and dense global attention to incorporate graph topology. In this work, we show that neither is essential. We introduce HopFormer, a graph Transformer that injects structure exclusively through head-specific n-hop masked sparse attention, without the use of positional encodings or architectural modifications. This design provides explicit and interpretable control over receptive fields while enabling genuinely sparse attention whose computational cost scales linearly with mask sparsity. Through extensive experiments on both node-level and graph-level benchmarks, we demonstrate that our approach achieves competitive or superior performance across diverse graph structures. Our results further reveal that dense global attention is often unnecessary: on graphs with strong small-world properties, localized attention yields more stable and consistently high performance, while on graphs with weaker small-world effects, global attention offers diminishing returns. Together, these findings challenge prevailing assumptions in graph Transformer design and highlight sparsity-controlled attention as a principled and efficient alternative.
format Preprint
id arxiv_https___arxiv_org_abs_2602_02268
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control
Yun, Sanggeon
Hassan, Raheeb
Masukawa, Ryozo
Jeong, Sungheon
Imani, Mohsen
Machine Learning
Graph Transformers typically rely on explicit positional or structural encodings and dense global attention to incorporate graph topology. In this work, we show that neither is essential. We introduce HopFormer, a graph Transformer that injects structure exclusively through head-specific n-hop masked sparse attention, without the use of positional encodings or architectural modifications. This design provides explicit and interpretable control over receptive fields while enabling genuinely sparse attention whose computational cost scales linearly with mask sparsity. Through extensive experiments on both node-level and graph-level benchmarks, we demonstrate that our approach achieves competitive or superior performance across diverse graph structures. Our results further reveal that dense global attention is often unnecessary: on graphs with strong small-world properties, localized attention yields more stable and consistently high performance, while on graphs with weaker small-world effects, global attention offers diminishing returns. Together, these findings challenge prevailing assumptions in graph Transformer design and highlight sparsity-controlled attention as a principled and efficient alternative.
title HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control
topic Machine Learning
url https://arxiv.org/abs/2602.02268