Multi-Vector Cross-Attention Memory Routing for Complex Multi-Hop Queries
Implement multi-vector late-interaction indexing to enable fine-grained token matching between multi-intent queries and compressed memory chunks without increasing layer-wise decoding compute.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Section 3.2 and Appendix B.1, MemOnce performs query-conditioned long-term memory retrieval by projecting only the single terminal token hidden state phi(h_t^L) of the input turn and measuring cosine similarity against terminal chunk descriptors phi(h_{i,-1}^L).
Limitation
Compressing multi-token queries and memory chunks into single terminal token vectors creates a representation bottleneck, leading to retrieval failures on complex queries with multiple distinct sub-questions or distant entity links.
Proposed Solution
Develop a multi-vector late-interaction indexing layer (similar to ColBERT) that maintains a small set of K query descriptors per chunk, evaluating max-sim token interactions during the single-pass routing phase while keeping multi-layer KV decoding constant.
Why This Matters
Multi-vector memory routing could substantially resolve multi-hop query failures in multi-session conversations while retaining single-pass efficiency.
How to Get Started
How to test it: Test on HotpotQA-1M and LoCoMo multi-hop split against single-vector phi projection. Measure Recall@K and end-to-end multi-hop QA accuracy target of +5% accuracy improvement.
- Extract query token hidden states for multi-intent questions in HotpotQA-1M.
- Implement a token-level MaxSim indexing layer in PyTorch replacing the single dot-product in Eq. 8.
- Train the multi-vector projection using InfoNCE loss over ground-truth evidence spans from MemOnce-1M.
- Benchmark retrieval latency and precision across 128K context trajectories.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
The listed results explore multi-vector information retrieval, agentic memory architectures, and hypergraph retrieval for multi-hop RAG, but none of them detail a multi-vector late-interaction indexing layer with max-sim token interactions for a single-pass memory routing phase.
- ESPN: Memory-Efficient Multi-vector Information Retrieval · 2024 · 21 citations
- Read the Route: Attention-Steered Hypergraph Retrieval for Multi-hop RAG · 2026 · 0 citations
We searched OpenAlex and arXiv for “multi vector memory retrieval late interaction long context query routing memory architectures” and “Multi-Vector Cross-Attention Memory Routing for Complex Multi-Hop Queries” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
MemOnce: A Scalable Memory Architecture for Large Language ModelsChang Nie, Chaoyou Fu, Songlin Liu +2 more · 2026
MemOnce introduces a scalable foundation memory architecture for large language models that maintains reusable memory states without linear memory growth or quadratic prefill complexity. It compresses context by caching a small subset of final-layer hidden states as global memory representations and decodes them on-demand via lightweight MLPs into multi-layer key-value caches. By computing query-conditioned sparse attention routing indices only once across all layers, MemOnce maintains a constant active memory cache footprint and achieves linear-time inference while outperforming full-context baselines.
Related Ideas
- Efficient Input-Dependent Queries for Attention ResidualsAttention Residuals🟠Medium
- Dual-Axis KV Sharing: Integrating Joint-KV with Cross-Layer and Prefix-Shared AttentionMulti-Branch Transformer🟠Medium
- Prompt-Relevant Historical Memory Retrieval and Entropy-Calibrated Layer-Head KV CompressionMovieRoll: A Systematic Framework for Rolling Out Long-Form Videos🟡Fairly easy
- Dynamic Multi-Step Retrieval for Long-Horizon TasksRemember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolution🟠Medium
- Importance-Weighted Semantic Memory Compaction for Ultra-Long Horizon TasksGamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent🟡Fairly easy