Euclidean Fast Attention -- Machine Learning Global Atomic Representations at Linear Cost

J. Thorben Frank, Stefan Chmiela, Klaus-Robert Müller, Oliver T. Unke
12/11/2024
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Long-range correlations are essential across numerous machine learning tasks, especially for data embedded in Euclidean space, where the relative positions and orientations of distant components are often critical for accurate predictions. Self-attention offers a compelling mechanism for capturing these global effects, but its quadratic complexity presents a significant practical limitation. This problem is particularly pronounced in computational chemistry, where the stringent efficiency requirements of machine learning force fields (MLFFs) often preclude accurately modeling long-range interactions. To address this, we introduce Euclidean fast attention (EFA), a linear-scaling attention-like mechanism designed for Euclidean data, which can be easily incorporated into existing model architectures. A core component of EFA are novel Euclidean rotary positional encodings (ERoPE), which enable efficient encoding of spatial information while respecting essential physical symmetries. We empirically demonstrate that EFA effectively captures diverse long-range effects, enabling EFA-equipped MLFFs to describe challenging chemical interactions for which conventional MLFFs yield incorrect results.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{frank2024euclidean,
  title  = {Euclidean Fast Attention -- Machine Learning Global Atomic Representations at Linear Cost},
  author = {J. Thorben Frank and Stefan Chmiela and Klaus-Robert Müller and Oliver T. Unke},
  year   = {2024},
  eprint = {2412.08541},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.08541v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.08541.svg)](https://codeofpaper.com/paper/2412.08541)

Discussion