Even Sparser Graph Transformers

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shirzad, Hamed, Lin, Honghao, Venkatachalam, Balaji, Velingker, Ameya, Woodruff, David, Sutherland, Danica
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909403824783360
author Shirzad, Hamed
Lin, Honghao
Venkatachalam, Balaji
Velingker, Ameya
Woodruff, David
Sutherland, Danica
author_facet Shirzad, Hamed
Lin, Honghao
Venkatachalam, Balaji
Velingker, Ameya
Woodruff, David
Sutherland, Danica
contents Graph Transformers excel in long-range dependency modeling, but generally require quadratic memory complexity in the number of nodes in an input graph, and hence have trouble scaling to large graphs. Sparse attention variants such as Exphormer can help, but may require high-degree augmentations to the input graph for good performance, and do not attempt to sparsify an already-dense input graph. As the learned attention mechanisms tend to use few of these edges, such high-degree connections may be unnecessary. We show (empirically and with theoretical backing) that attention scores on graphs are usually quite consistent across network widths, and use this observation to propose a two-stage procedure, which we call Spexphormer: first, train a narrow network on the full augmented graph. Next, use only the active connections to train a wider network on a much sparser graph. We establish theoretical conditions when a narrow network's attention scores can match those of a wide network, and show that Spexphormer achieves good performance with drastically reduced memory requirements on various graph datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2411_16278
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Even Sparser Graph Transformers
Shirzad, Hamed
Lin, Honghao
Venkatachalam, Balaji
Velingker, Ameya
Woodruff, David
Sutherland, Danica
Machine Learning
Graph Transformers excel in long-range dependency modeling, but generally require quadratic memory complexity in the number of nodes in an input graph, and hence have trouble scaling to large graphs. Sparse attention variants such as Exphormer can help, but may require high-degree augmentations to the input graph for good performance, and do not attempt to sparsify an already-dense input graph. As the learned attention mechanisms tend to use few of these edges, such high-degree connections may be unnecessary. We show (empirically and with theoretical backing) that attention scores on graphs are usually quite consistent across network widths, and use this observation to propose a two-stage procedure, which we call Spexphormer: first, train a narrow network on the full augmented graph. Next, use only the active connections to train a wider network on a much sparser graph. We establish theoretical conditions when a narrow network's attention scores can match those of a wide network, and show that Spexphormer achieves good performance with drastically reduced memory requirements on various graph datasets.
title Even Sparser Graph Transformers
topic Machine Learning
url https://arxiv.org/abs/2411.16278