atlas

Research map / Architectures and efficiency / Attention and transformers

An Evolved Universal Transformer Memory

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Evolves a tiny (~4k parameter) learned KV-cache eviction network (NAMM) with CMA-ES on top of a frozen Llama 3 8B, improving long-context performance while shrinking the cache, and transfers zero-shot to other transformers and modalities.

Problem

Hand-designed KV cache eviction heuristics reduce memory cost of transformers but typically trade off performance; the paper asks whether a learned memory management policy can improve both performance and efficiency.

Approach

Neural Attention Memory Models (NAMMs) score each KV cache token from a spectrogram (STFT with Hann window, EMA-reduced) of its column in the attention matrix, using a small backward-masked attention network (BAM) and evolved with CMA-ES; because inputs depend only on attention values, one shared network applies to any attention layer and transfers zero-shot across architectures and modalities.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use evolved NAMM memory managementLlama 3 8B · LongBench (all tasks)performance: 28.86 -> 29.33Helped
Use evolved NAMM memory managementLlama 3 8B · InfiniteBench (all tasks)performance: 1.05 -> 11.00Helped
Use evolved NAMM memory managementLlama 3 8B · ChouBun (all tasks)performance: 21.21 -> 24.44Helped
Transfer evolved NAMM memory management zero-shotLlama 3 70B · LongBench (all tasks)performance: 35.22 -> 34.70Hurt
Transfer evolved NAMM memory management zero-shotLlava Next Video 7B · LongVideoBench and MLVU (all tasks)performance: 43.84 -> 44.38Helped
Transfer evolved NAMM memory management zero-shotDecision Transformer · D4RL (all tasks)performance: 29.04 -> 31.73Helped
Replace BAM with a 2-layer MLP (ablation)NAMM on Llama 3 8B · InfiniteBench (all tasks)performance: 11.00 -> 4.00Hurt
Stop backward-attention NAMM evolution after stage 1 rather than stage 3 (ablation)NAMM on Llama 3 8B · LongBench (all tasks)performance: 29.33 -> 28.91Hurt
Stop backward-attention NAMM evolution after stage 2 rather than stage 3 (ablation)NAMM on Llama 3 8B · InfiniteBench (all tasks)performance: 9.78 -> 11.00No clear effect
Stop backward-attention NAMM evolution after stage 1 rather than stage 3 (ablation)NAMM on Llama 3 8B · ChouBun (all tasks)performance: 24.44 -> 22.73Hurt
Replace BAM with a 2-layer MLP (ablation)NAMM on Llama 3 8B · LongBench (all tasks)performance: 29.33 vs 29.22Mixed

Surprising findings

Limitations

Experimental setup

Datasets: LongBench InfiniteBench ChouBun LongVideoBench MLVU D4RL

Benchmarks: LongBench InfiniteBench ChouBun LongVideoBench MLVU D4RL

Metrics: normalized performance relative to full-cache base average cache size

Baselines: H2O L2 FastGen full-context base model NAMM (MLP)

Builds on: CMA-ES NTK-aware positional interpolation H2O FastGen

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy