atlas

Research map / Large language models / Language, safety and interpretability

Human-inspired Episodic Memory for Infinite Context LLMs

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations

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.

Introduces EM-LLM, a training-free method that segments the KV cache into surprise-based, graph-refined episodic events and retrieves them via similarity and temporal contiguity buffers, enabling near-infinite context in pretrained LLMs.

Problem

Pretrained LLMs struggle to process extremely long contexts; softmax attention is costly and diluted, and existing retrieval methods (e.g., InfLLM fixed-size blocks) or RAG are limited in precision and efficiency.

Approach

Segment the token stream into episodic events using Bayesian-surprise thresholds, refine boundaries by optimizing graph modularity/conductance over attention-key similarity, and retrieve events per layer with a two-stage similarity plus temporal-contiguity buffer, all without fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use EM-LLM instead of InfLLMMistral-7B-Instruct-v0.2 · LongBench Avg. scorescore: 41.90 -> 43.47Helped
use EM-LLM instead of InfLLMLLaMA-3.1-8B-Instruct · ∞-Bench Avg. scorescore: 64.00 -> 66.69Helped
use EM-LLM instead of InfLLMLLaMA-3-8B-Instruct · ∞-Bench Avg. scorescore: 50.31 -> 49.00Hurt
use EM-LLM SM instead of RAG with NV-Embed-v2LLaMA-3-8B-Instruct · LongBench Avg. scorescore: 39.27 -> 47.24Helped
use EM-LLM S instead of full-context processingLLaMA-3.1-8B · LongBench Avg. scorescore: 39.30 -> 51.58Helped
add modularity boundary refinement to surprise-based segmentation (ablation)EM-LLM · LongBench and ∞-Bench taskstask score: best performance in 60% of tasksHelped
add a contiguity buffer to surprise-based retrieval (ablation)EM-LLM · LongBench and ∞-Bench taskstask score: best performance in 44% of tasksMixed
use surprise-based boundaries instead of fixed-size segmentation (ablation)event segmentation · PG-19 and human-annotated podcast scriptssimilarity metricsHelped
use surprise-based chunking for RAG instead of fixed-size chunking (ablation)RAG · LongBenchscoreHurt

Surprising findings

Limitations

Experimental setup

Datasets: PG-19 human-annotated podcast transcripts

Benchmarks: LongBench ∞-Bench

Metrics: accuracy F1 ROUGE modularity conductance intra/inter-similarity ratio Wasserstein distance

Baselines: InfLLM RAG (NV-Embed-v2) RAG (all-mpnet-base-v2) full-context

Builds on: InfLLM RoPE attention sinks (StreamingLLM) k-NN attention retrieval

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