One Token per Multimodal Evidence: Latent Memory Rethinks RAG Compression
This zhichai.net post analyzes the paper "One Token per Multimodal Evidence: Latent Memory for Resource-Constrained QA" (Zhi Zheng, Ziqiao Meng, Hao Luan, Wei Liu, Wee Sun Lee, arXiv:2606.10572) from the National University of Singapore.
The Problem with Standard RAG
Conventional RAG feeds retrieved evidence verbatim into the context window: a ViT splits one image into 576 visual tokens, and on multimodal WebQA the Full Context baseline exceeds 10,000 tokens—crashing the generator to 0 F1. Retrieval (embedding models like BGE, Qwen-Emb) and generation also operate in two separate representation spaces.
The paper's proposal: compress each evidence item into exactly 1 latent token—a single high-dimensional vector (2048-d text / 4096-d multimodal) used for both retrieval and generation.
How One Token Encodes an Entire Evidence
A small compressor (LLaMA-3.2-1B for text, LLaVA-1.5-7B for multimodal) reads the evidence with a learnable [MEM] token prepended; the last-layer hidden state becomes the latent token. It must simultaneously:
1. Reconstruct the original text/image semantics 2. Retrieve — be comparable to queries in a shared space 3. Answer — drive generation as well as raw evidence
Joint loss: L = 0.5·L_Recon + 0.2·L_Contrast + 1.0·L_Distill
- Reconstruction: autoregressive text decoding; for images, reconstruct the CLIP image embedding, then regenerate via a pretrained unCLIP diffusion model.
- Contrastive retrieval: latent tokens are projected into a 512-dim shared L2-normalized retrieval space; queries use the same compressor backbone but a separate LoRA adapter.
- Distillation (highest weight): a frozen generator (LLaMA-3-8B / Mistral-7B / LLaVA-13B) is trained via KL divergence to behave identically whether prompted with raw evidence or latent tokens (
b_z = W_g zwith a GELU projection, e.g., 2048→4096). The generator never gets fine-tuned. - Text QA (HotpotQA / 2Wiki / MuSiQue): Latent Memory (k=5) averages ~71 tokens vs ~208–219 for dense baselines; OOD average EM (16.5) trails Qwen3-Emb (24.0) with LLaMA-3-8B but edges it (3.2 vs 2.9) with Mistral-7B — the authors frame this as an efficiency-effectiveness Pareto frontier rather than SOTA.
- Multimodal WebQA (the highlight): image QA F1 jumps 53.0 → 69.4 (+31%) while Full Context collapses at 10,013 tokens; average token usage drops to 83 (23x fewer).
- Scaling: using 8 latent tokens per evidence (instead of 1) yields linear gains (e.g., 16.5 → 19.9 EM at k=5) for only 35 extra tokens.
- Compression is lossy — unsuitable for scenarios needing verbatim citation (legal, medical)
- Training requires (question, evidence, answer) triples
- Reconstruction is semantic-level, not pixel-perfect
- The 512-dim retrieval space is untested at million-document scale (experiments use thousand-level corpora)
At inference, top-k latent tokens are retrieved by inner product and injected directly into inputs_embeds — no raw characters or pixels ever reach the generator, explaining the 3–10x token reduction.
Key Results
Interpretability and Engineering Details
Latent tokens are shown to be semantic carriers, not opaque IDs: text reconstruction (cross-entropy ~0.6–0.7) preserves details like counting three display windows in a Burlington Arcade passage that enabled correct answers; image reconstruction via CLIP embedding + unCLIP preserves semantic content (storefronts, signage, layouts).
Only the compressor LoRAs (r=64, α=128), retrieval MLP, projection W_g, and decoder LoRA are trained (~20h text, ~30h multimodal). Text and image share one latent space, so cross-modal retrieval needs no alignment tricks.
Limitations
Why It Matters
Rather than chasing SOTA, the paper redefines RAG's compression boundary, enabling on-device assistants, real-time multimodal QA over video streams, and compact long-term memory stores. The full pipeline closes in latent space — a strong answer to whether RAG can work under resource constraints.
Paper: arXiv:2606.10572 — "One Token per Multimodal Evidence: Latent Memory for Resource-Constrained QA."
Tags: rag, latent-memory, multimodal, llm, on-device-ai, retrieval-augmented-generation, paper-reading, token-compression