Share from 0:00
0:00
/

"An Evolved Universal Transformer Memory"

The podcast on this paper is generated with Google's Illuminate.

Evolution-based neural network that cleans up transformer's memory while boosting its performance.

Neural Attention Memory Models (NAMMs) introduce a learned network that improves transformer performance while reducing memory usage by intelligently managing the Key-Value cache.

-----

https://arxiv.org/abs/2410.13166

πŸ€” Original Problem:

LLMs face increasing costs and memory constraints with longer contexts, while current solutions that drop parts of contexts lead to performance degradation.

-----

πŸ”§ Solution in this Paper:

β†’ NAMMs use evolution to optimize a neural network that decides which tokens to keep in transformer memory

β†’ The system analyzes attention patterns to determine token importance across different layers

β†’ NAMMs extract features from attention spectrograms, making them universally applicable to any transformer model

β†’ The solution employs backward attention memory (BAM) architecture for efficient information sharing between tokens

β†’ Training happens incrementally on small sets of problems using CMA-ES optimization

-----

πŸ’‘ Key Insights:

β†’ Memory management can improve model performance, not just efficiency

β†’ Token importance varies across transformer layers

β†’ Universal feature extraction enables zero-shot transfer across architectures

β†’ Evolution can effectively optimize non-differentiable memory operations

-----

πŸ“Š Results:

β†’ 11% performance improvement on LongBench while using 75% less memory

β†’ Zero-shot transfer to vision tasks with 1% gain and 28% memory reduction

β†’ 9% improvement in reinforcement learning tasks with 19% memory savings

Discussion about this video

User's avatar

Ready for more?