Reproduce “Addressing Some Limitations of Transformers with Feedback Memory” 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

Angela Fan, Thibaut Lavril, Edouard Grave, Armand Joulin, Sainbayar Sukhbaatar

The Feedback Transformer re-engineers the Transformer architecture by introducing a shared feedback memory that allows all layers to access high-level representations from previous timesteps, effectively integrating recurrence into the attention mechanism. This architecture improves performance on tasks requiring long-term state tracking and achieves faster inference speeds with shallower models compared to standard Transformers.

Key insights

  • Integrating a feedback memory, a weighted sum of all layers' representations, allows lower layers to access the highest-level abstract representations from previous timesteps, enabling richer contextual understanding.
  • The feedback mechanism introduces a form of recursive computation, allowing the model to continuously update and track an internal 'belief state' over long sequences, similar to RNNs but within the Transformer framework.
  • Sharing key and value projections across layers and for the feedback memory significantly reduces the model's memory footprint, allowing for larger training batch sizes and substantially faster inference speeds.

Summary by alphaXiv.

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