EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory

Chang Nie, Chaoyou Fu, Junlan Feng, Caifeng ShanarXiv 2026

TL;DR

EvoEmbedding introduces a paradigm shift from static to "evolvable" text representations by incorporating a continuously updated latent memory queue. By tracking temporal dynamics and cross-segment associations, it allows a single query to retrieve different targets based on the evolving context, significantly outperforming models three times its size in long-context retrieval and agentic memory tasks.

What Problem Does This Paper Address?

Traditional embedding models (like BERT, E5, or BGE) are inherently static. They process text segments in isolation, ignoring the surrounding context and the temporal order of information. In long-context or agentic scenarios—where a user might update a schedule, change a preference, or refer back to a previous dialogue turn—static models struggle.

For example, if a user first schedules a meeting for 10:00 AM and later postpones it to 1:00 PM, a static model might retrieve the outdated 10:00 AM chunk because it lacks the "state" to know the information has evolved. This leads to coreference failures, poor temporal reasoning, and "noise" in Retrieval-Augmented Generation (RAG) pipelines.

Evolvable context matching vs. static semantic search

Methods

The authors propose EvoEmbedding, a framework that maintains a fixed-capacity latent memory to preserve evolving contextual states.

  • Dual-Task Architecture: For every input segment, the model performs two parallel tasks:
  • Memory Evolution: Compresses the current segment and integrates it with previous memory into new "latent tokens."
    1. Representation Generation: Combines historical latent memory with the current segment to produce a context-aware embedding.
  • Latent Memory Queue (FIFO): To prevent "representation collapse" (a common issue in recurrent encoding), the model uses a First-In-First-Out queue. This ensures a piece of history is only re-encoded a limited number of times, bounding computational complexity.
  • Multi-LoRA Design: The model uses a frozen LLM backbone (e.g., Qwen) with separate LoRA adapters for memory and retrieval. This prevents catastrophic forgetting of the base model's semantic knowledge while enabling specialized memory capabilities.
  • Dynamic Segment-Batching: To handle the massive variance in context lengths during training, the authors developed a batching technique that processes consecutive segments in parallel, resulting in a 3.8× training speedup.
Overview of the EvoEmbedding architecture

Datasets

The authors introduced EvoTrain-180K, a large-scale dataset specifically designed to train evolvable embeddings.

  • Composition: 184,137 high-quality samples synthesized from web texts, dialogues, and extracted memories.
  • Dynamic QA: Uses over 40 templates to generate questions requiring coreference resolution and temporal understanding.
  • Verification: Employs Gemini-3.1-Pro to label query-relevant segments and filter out hallucinations.

For evaluation, the model was tested against 10 benchmarks, including LoCoMo, LongMemEval, and personalization tasks like PersonaMME (up to 128K context).

EvoTrain-180K construction pipeline

Key Insights and Ideas

  • Embeddings as State: The core "aha moment" is treating an embedding not just as a semantic summary of a string, but as a stateful representation of a sequence.
  • Temporal Sensitivity: Unlike static models, EvoEmbedding is highly sensitive to temporal keywords. As shown in Figure 6, when queried with "lastly," the similarity peaks at the end of the context; with "firstly," it peaks at the beginning. Static baselines show "entangled" curves that can't distinguish these intents.
  • Zero-Token Memory Overhead: Most agentic memory systems (like Mem0) require generating explicit summaries or metadata, which adds token costs and latency. EvoEmbedding handles this entirely in the latent space, incurring zero additional token overhead for memory construction.
Temporal query sensitivity analysis

Key Results

  • SOTA Performance: The 4B EvoEmbedding variant outperformed much larger specialists, including KaLM-12B (+6.4% overall) and Qwen3-8B (+11.1%).
  • Superior RAG: A "naive" RAG pipeline using EvoEmbedding-4B surpassed dedicated, complex agentic memory systems like Mem0 and LightMem on the LongMemEval benchmark.
  • Robust Generalization: Despite being trained on contexts up to 12K tokens, the model generalized effectively to 128K contexts—a 10× increase over its training window.
  • Efficiency: The model maintains a compact memory of only 512 latent tokens, making its memory footprint roughly equivalent to a single encoded image.
Performance comparison across retrieval and generation tasks

Limitations and Future Work

  • Out-of-Domain Performance: The authors note that performance may degrade in scenarios far removed from their training data due to limited computational resources during development.
  • Multimodal Retrieval: The current implementation is text-only. The authors suggest that the architecture could be extended to visual or audio modalities in the future.
  • Queue Capacity: While 512 tokens is efficient, extremely long-horizon tasks might eventually require larger queue capacities and more sophisticated dimensional alignment.

Summary updated

Abstract

Existing embedding models are inherently static: they encode text segments in isolation, ignoring their surrounding context and temporal order. This paper introduces EvoEmbedding, a novel embedding model that generates evolvable representations for retrieval. It is tailored for long-context scenarios, where information is dynamic, sequential, and requires continuous state tracking. Our design is simple: EvoEmbedding maintains a continuously updated latent memory as it sequentially processes inputs, and uses it alongside the raw content to jointly generate evolvable embeddings. Consequently, for the same query, our model adapts its representation to retrieve distinct targets based on the evolving context, going beyond static semantic search. To equip the model with this capability, we construct EvoTrain-180K, a diverse dataset for the joint optimization of latent memory and retrieval. Furthermore, we introduce a memory queue to prevent representation collapse during recurrent encoding, alongside segment-batching techniques that tackle significant length variance and accelerate training by 3.8$\times$. Extensive experiments show that our model not only outperforms larger-scale specialists (e.g., Qwen3-Embedding-8B and KaLM-Embedding-Gemma3-12B) across a range of long-context retrieval benchmarks, but also generalizes well to downstream tasks (e.g., personalization) with contexts 10$\times$ longer than its training window. Notably, EvoEmbedding seamlessly integrates into agentic workflows to boost performance. For instance, a naive RAG pipeline equipped with our model surpasses dedicated agentic memory systems. Project Page: https://clare-nie.github.io/EvoEmbedding/.
BibTeX
@misc{nie2026evoembedding,
  author = {Chang Nie and Chaoyou Fu and Junlan Feng and Caifeng Shan},
  title = {{EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory}},
  year = {2026},
  eprint = {2606.21649},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.21649},
}
Figure