HeadMem uses a language model’s own attention heads for compact memory
In an arXiv preprint, the authors of HeadMem describe a way to store long documents and chat histories for questions that arrive later. The method uses a subset of the model’s attention heads to select which tokens to reread for each question, without additional training. On Llama-3.1-8B, the authors report that HeadMem used about one-290th of the memory of the full key-value cache and outperformed four cache compression methods on multi-question benchmarks.
Why it matters
The benchmark results show how a compact memory can support repeated questions about the same long input without scanning the full context each time.
Sources
- OpenAI expands ChatGPT dots to Plus users worldwide
- OpenAI adds Salesforce marketing and quoting workflows to ChatGPT beta
- GitHub adds per-model Copilot token counts to its billing API
- GitHub adds account IDs to AI usage and premium request reports
- Hugging Face adds Voice Code Bench to its speech recognition leaderboard