FLARE++: Low-rank attention with dynamic attention routing

Vedant Puri, Yongjie Jessica Zhang, Levent Burak Kara
8/12/2026
cs.LG

Official code: vpuri3/FLARE.py (17 stars, Python, MIT, last commit 2026-09-25).

Abstract

Full self-attention is a strong token mixer for PDE surrogates on irregular domains, but its quadratic cost limits its use on large problems. Latent-space attention methods such as PerceiverIO, Transolver, and FLARE (Fast Low-rank Attention Routing Engine) avoid that cost by routing attention among $N$ tokens through $M\ll N$ learned latents.

Show full abstract

They compress by dot-product matching of the input tokens against $M$ learned query tokens or projection weights: once trained, the same learned templates serve every input. We remove this restriction with FLARE++, a low-rank attention architecture with input-conditioned routing queries. FLARE++ uses FLARE's own encoder to map the $N$ input tokens to $M$ query tokens, which correct the learned queries. The adapted queries then determine how that same input is compressed and redistributed. This preserves FLARE's explicit low-rank factorization and linear $\mathcal O(NM)$ complexity, and expresses the complete routing operation with standard scaled dot-product attention (SDPA) calls alone. We also provide a multi-GPU context-parallel implementation that shards input tokens across devices without ever gathering the full token sequence on one of them. FLARE++ reduces FLARE's error by $25\%$ on average across five standard PDE benchmarks, achieving the lowest errors among the efficient models compared. The gains persist on industrial-scale DrivAerML aerodynamics and on Long Range Arena, where average accuracy rises by $3.5\%$ over fixed-query FLARE. Code is available at https://github.com/vpuri3/FLARE.py.

View on arXivView PDF

Code Implementations(1)

vpuri3/FLARE.pyOfficial100%
MIT

Fast Low-rank Attention Routing Engine

172Python, ShellAug 18, 20252 months agoMIT

Similar Papers

Cite this paper

@article{puri2026flare,
  title  = {FLARE++: Low-rank attention with dynamic attention routing},
  author = {Vedant Puri and Yongjie Jessica Zhang and Levent Burak Kara},
  year   = {2026},
  eprint = {2608.11519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.11519v2}
}

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/2608.11519.svg)](https://codeofpaper.com/paper/2608.11519)

Discussion