Efficient Edge-aware Attention Network for Graph Generation

Vincent Jung, Alba Carballo-Castro, Yiming Qin, Lonneke van der Plas, Pascal Frossard

Abstract

Graph generative models commonly use graph-specific Transformer architectures to jointly update node and edge features. However, these architectures do not directly benefit from recent hardware-aware attention implementations, limiting their scalability. This adaptation is non-trivial: edge and graph-level features must be injected into pairwise attention scores, graph masks must be respected, and dynamic edge updates remain a major source of quadratic memory usage. We propose an edge-aware attention layer for graph generation that incorporates structural information through head-wise score modulation, while updating edge representations with a lightweight residual mechanism that retains key attention-score dependent edge updates. This layer can be directly implemented using PyTorch's FlexAttention. We achieve similar generation quality as our baseline while reducing peak GPU memory by around 65\% and substantially improving training and sampling throughput. These results suggest the proposed architecture is a practical step toward scalable graph foundation models.
BibTeX
@inproceedings{jung2026efficient,
  author = {Vincent Jung and Alba Carballo-Castro and Yiming QIN and Lonneke van der Plas and Pascal Frossard},
  title = {{Efficient Edge-aware Attention Network for Graph Generation}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=zJf5SIq74D},
}

Loading related content...

Figure