Reproduce “Towards Interpretable and Efficient Attention: Compressing All by Contracting a Few” 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

Qishuai Wen, Zhiyuan Huang, Chun-Guang Li

The Contract-and-Broadcast Self-Attention (CBSA) framework, derived from a modified Maximal Coding Rate Reduction objective, achieves linear computational complexity while providing inherent interpretability. This approach yields a unified formula that encompasses various existing attention mechanisms and demonstrates improved efficiency and comparable or superior performance on image classification and semantic segmentation tasks.

Key insights

  • Attention mechanisms can be designed with inherent interpretability by deriving them from an explicit, mathematically grounded optimization objective.
  • Linear computational complexity for attention is achievable by intelligently compressing input tokens through a small set of representative elements.
  • Various seemingly disparate attention mechanisms can be unified under a single theoretical framework, revealing their underlying connections and trade-offs.

Summary by alphaXiv.

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