MemRouter: Memory-as-Embedding Routing for Long-Term Conversational Agents

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Hu, Tianyu, Lin, Weikai, Zhang, Weizhi, Ma, Jing, Wang, Song
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914524151414784
author Hu, Tianyu
Lin, Weikai
Zhang, Weizhi
Ma, Jing
Wang, Song
author_facet Hu, Tianyu
Lin, Weikai
Zhang, Weizhi
Ma, Jing
Wang, Song
contents Long-term conversational agents must decide which turns to store in external memory, yet recent systems rely on autoregressive LLM generation at every turn to make that decision. We present MemRouter, a write-side memory router that decouples memory admission from the downstream answer backbone and replaces per-turn memory-management decoding with an embedding-based routing policy. MemRouter encodes each turn together with recent context, projects the resulting embeddings through a frozen LLM backbone, and predicts whether the turn should be stored using lightweight classification heads while training only 12M parameters. Under a controlled matched-harness comparison on LoCoMo, where the retrieval pipeline, answer prompts, and QA backbone (Qwen2.5-7B) are held identical, MemRouter outperforms an LLM-based memory manager on every question category (overall F1 52.0 vs 45.6, non-overlapping 95% CIs) while reducing memory-management p50 latency from 970ms to 58ms. Descriptive factorial averaging further shows that learned admission improves mean F1 by +10.3 over random storage, category-specific prompting adds +5.2 over a generic prompt, and retrieval contributes +0.7. These results suggest that write-side memory admission can be learned by a small supervised router, while answer generation remains a separate downstream component in long-horizon conversational QA.
format Preprint
id arxiv_https___arxiv_org_abs_2605_00356
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MemRouter: Memory-as-Embedding Routing for Long-Term Conversational Agents
Hu, Tianyu
Lin, Weikai
Zhang, Weizhi
Ma, Jing
Wang, Song
Computation and Language
Artificial Intelligence
Long-term conversational agents must decide which turns to store in external memory, yet recent systems rely on autoregressive LLM generation at every turn to make that decision. We present MemRouter, a write-side memory router that decouples memory admission from the downstream answer backbone and replaces per-turn memory-management decoding with an embedding-based routing policy. MemRouter encodes each turn together with recent context, projects the resulting embeddings through a frozen LLM backbone, and predicts whether the turn should be stored using lightweight classification heads while training only 12M parameters. Under a controlled matched-harness comparison on LoCoMo, where the retrieval pipeline, answer prompts, and QA backbone (Qwen2.5-7B) are held identical, MemRouter outperforms an LLM-based memory manager on every question category (overall F1 52.0 vs 45.6, non-overlapping 95% CIs) while reducing memory-management p50 latency from 970ms to 58ms. Descriptive factorial averaging further shows that learned admission improves mean F1 by +10.3 over random storage, category-specific prompting adds +5.2 over a generic prompt, and retrieval contributes +0.7. These results suggest that write-side memory admission can be learned by a small supervised router, while answer generation remains a separate downstream component in long-horizon conversational QA.
title MemRouter: Memory-as-Embedding Routing for Long-Term Conversational Agents
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2605.00356