EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contexts

Subhajit Chaudhury, Payel Das, Sarathkrishna Swaminathan, Georgios Kollias, Elliot Nelson +4 more
2/20/2025
cs.CLcs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

Recent advances in Large Language Models (LLMs) have yielded impressive successes on many language tasks. However, efficient processing of long contexts using LLMs remains a significant challenge.

Show full abstract

We introduce \textbf{EpMAN} -- a method for processing long contexts in an \textit{episodic memory} module while \textit{holistically attending to} semantically relevant context chunks. The output of \textit{episodic attention} is then used to reweigh the decoder's self-attention to the stored KV cache of the context during training and generation. When an LLM decoder is trained using \textbf{EpMAN}, its performance on multiple challenging single-hop long-context recall and question-answering benchmarks is found to be stronger and more robust across the range from 16k to 256k tokens than baseline decoders trained with self-attention, and popular retrieval-augmented generation frameworks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chaudhury2025epman,
  title  = {EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contexts},
  author = {Subhajit Chaudhury and Payel Das and Sarathkrishna Swaminathan and Georgios Kollias and Elliot Nelson and Khushbu Pahwa and Tejaswini Pedapati and Igor Melnyk and Matthew Riemer},
  year   = {2025},
  eprint = {2502.14280},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.14280v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.14280.svg)](https://codeofpaper.com/paper/2502.14280)

Discussion