Reproduce “Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

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

About this paper

Amir Yazdanbakhsh, Ashkan Moradifirouzabadi, Zheng Li, Mingu Kang

SPRINT, a hardware-software co-design from Google Research, Brain Team and UC San Diego, accelerates Transformer self-attention by performing approximate in-memory pruning using ReRAM, followed by precise on-chip recomputation. This approach yields up to 19.6x energy reduction and 7.5x speedup with a mere 0.36% average accuracy degradation, significantly reducing main memory data movement by up to 98.9%.

Key insights

  • Self-attention can be decomposed into an approximate, memory-centric pruning phase and a precise, compute-centric recomputation phase for efficiency.
  • Approximate analog in-memory computing using ReRAM can effectively filter data early, significantly reducing data transfer and energy consumption.
  • Exploiting dynamic spatial locality in pruned attention patterns further minimizes redundant data fetches and boosts overall system efficiency.

Summary by alphaXiv.

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