Reproduce “Linear Memory SE(2) Invariant Attention” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ethan Pronovost, Neha Boloor, Peter Schleede, Noureldin Hendy, Andres Morales, Nicholas Roy

Researchers at Zoox developed "Linear Memory SE(2) Invariant Attention," a mechanism that enables SE(2) invariant attention in transformer architectures with linear memory complexity. It extends rotary position embeddings using a Fourier approximation for relative x and y coordinates, demonstrating improved performance for challenging turning trajectories in agent simulation by achieving a minADE of 2.60.

Key insights

  • By factoring the relative pose encoding (ϕ) into query- and key-dependent components (ϕ_q, ϕ_k), SE(2) invariance can be achieved with linear memory by avoiding explicit quadratic tensor materialization.
  • A Fourier series approximation successfully bridges the gap for SE(2)'s non-abelian nature, allowing the factorization of complex relative x and y terms into components suitable for linear-memory attention.
  • The Fourier approximation maintains a practical error level (around 10^-3, matching float-16 precision) provided the number of basis terms increases proportionally with the magnitude of key positions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.