TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Self-Attention in Colors: Another Take on Encoding Graph S...

Self-Attention in Colors: Another Take on Encoding Graph Structure in Transformers

Romain Menegaux, Emmanuel Jehanno, Margot Selosse, Julien Mairal

2023-04-21Graph Regression
PaperPDFCode(official)

Abstract

We introduce a novel self-attention mechanism, which we call CSA (Chromatic Self-Attention), which extends the notion of attention scores to attention _filters_, independently modulating the feature channels. We showcase CSA in a fully-attentional graph Transformer CGT (Chromatic Graph Transformer) which integrates both graph structural information and edge features, completely bypassing the need for local message-passing components. Our method flexibly encodes graph structure through node-node interactions, by enriching the original edge features with a relative positional encoding scheme. We propose a new scheme based on random walks that encodes both structural and positional information, and show how to incorporate higher-order topological information, such as rings in molecular graphs. Our approach achieves state-of-the-art results on the ZINC benchmark dataset, while providing a flexible framework for encoding graph structure and incorporating higher-order topology.

Results

TaskDatasetMetricValueModel
Graph RegressionZINCMAE0.056CSA
Graph RegressionZINC-500kMAE0.056CSA

Related Papers

Graph Neural Networks for Jamming Source Localization2025-06-01Improving the Effective Receptive Field of Message-Passing Neural Networks2025-05-29A Benchmark Dataset for Graph Regression with Homogeneous and Multi-Relational Variants2025-05-29GotenNet: Rethinking Efficient 3D Equivariant Graph Neural Networks2025-04-24Power Spectrum Signatures of Graphs2025-03-12Pre-training Graph Neural Networks on Molecules by Using Subgraph-Conditioned Graph Information Bottleneck2025-02-20Unlocking the Potential of Classic GNNs for Graph-level Tasks: Simple Architectures Meet Excellence2025-02-13Learning Efficient Positional Encodings with Graph Neural Networks2025-02-03