Saved in:
Bibliographic Details
Main Authors: Zhu, Minhong, Zhao, Zhenhao, Cai, Weiran
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2311.04653
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917772029591552
author Zhu, Minhong
Zhao, Zhenhao
Cai, Weiran
author_facet Zhu, Minhong
Zhao, Zhenhao
Cai, Weiran
contents The paradigm of Transformers using the self-attention mechanism has manifested its advantage in learning graph-structured data. Yet, Graph Transformers are capable of modeling full range dependencies but are often deficient in extracting information from locality. A common practice is to utilize Message Passing Neural Networks (MPNNs) as an auxiliary to capture local information, which however are still inadequate for comprehending substructures. In this paper, we present a purely attention-based architecture, namely Focal and Full-Range Graph Transformer (FFGT), which can mitigate the loss of local information in learning global correlations. The core component of FFGT is a new mechanism of compound attention, which combines the conventional full-range attention with K-hop focal attention on ego-nets to aggregate both global and local information. Beyond the scope of canonical Transformers, the FFGT has the merit of being more substructure-aware. Our approach enhances the performance of existing Graph Transformers on various open datasets, while achieves compatible SOTA performance on several Long-Range Graph Benchmark (LRGB) datasets even with a vanilla transformer. We further examine influential factors on the optimal focal length of attention via introducing a novel synthetic dataset based on SBM-PATTERN.
format Preprint
id arxiv_https___arxiv_org_abs_2311_04653
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Hybrid Focal and Full-Range Attention Based Graph Transformers
Zhu, Minhong
Zhao, Zhenhao
Cai, Weiran
Machine Learning
Artificial Intelligence
The paradigm of Transformers using the self-attention mechanism has manifested its advantage in learning graph-structured data. Yet, Graph Transformers are capable of modeling full range dependencies but are often deficient in extracting information from locality. A common practice is to utilize Message Passing Neural Networks (MPNNs) as an auxiliary to capture local information, which however are still inadequate for comprehending substructures. In this paper, we present a purely attention-based architecture, namely Focal and Full-Range Graph Transformer (FFGT), which can mitigate the loss of local information in learning global correlations. The core component of FFGT is a new mechanism of compound attention, which combines the conventional full-range attention with K-hop focal attention on ego-nets to aggregate both global and local information. Beyond the scope of canonical Transformers, the FFGT has the merit of being more substructure-aware. Our approach enhances the performance of existing Graph Transformers on various open datasets, while achieves compatible SOTA performance on several Long-Range Graph Benchmark (LRGB) datasets even with a vanilla transformer. We further examine influential factors on the optimal focal length of attention via introducing a novel synthetic dataset based on SBM-PATTERN.
title Hybrid Focal and Full-Range Attention Based Graph Transformers
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2311.04653