TL;DR
VisMem introduces a cognitively-aligned framework that equips Vision-Language Models (VLMs) with dual-component latent vision memories: a short-term module for fine-grained perceptual retention and a long-term module for abstract semantic consolidation. By dynamically invoking these latent memories during autoregressive generation, VisMem overcomes the "visual processing bottleneck," delivering an average 11.0% performance boost across diverse benchmarks while maintaining low inference latency.
What Problem Does This Paper Address?
Despite the impressive capabilities of modern Vision-Language Models (VLMs), they frequently stumble during tasks requiring prolonged generation or multi-step reasoning. This issue stems from a "visual processing bottleneck": as a VLM generates text token-by-token, it naturally prioritizes the accumulating textual context over the initial visual evidence. Over time, the model loses its visual grounding, leading to hallucinations or logical errors.
Prior attempts to fix this fall into a few categories, each with distinct trade-offs:
- Direct training/fine-tuning: Often leads to catastrophic forgetting of general capabilities.
- Image-level paradigms (e.g., redrawing or cropping images): Highly expressive but computationally expensive and slow.
- Token-level selection: Efficient, but limited to re-surfacing already encoded tokens without generating new context.
VisMem tackles this by operating in the latent space paradigm, introducing continuous latent contexts during sequential inference without incurring the massive overhead of image-space modifications.
Methods
Inspired by human cognitive psychology (specifically the Dennis Norris Theory), VisMem splits visual memory into two distinct storage systems: a visually-dominant short-term memory for immediate perceptual details and a semantically-dominant long-term memory for abstract knowledge.
The architecture implements this via three main components:
- Vocabulary Extension: The VLM's vocabulary is expanded with four special memory-operation tokens:
<ms_I>,<ms_E>(short-term invocation/end) and<ml_I>,<ml_E>(long-term invocation/end). - Query Builder: A lightweight transformer encoder that assesses the model's current multi-modal hidden states to formulate a context-aware memory query ($Q$).
- Latent Memory Formers: Two specialized, lightweight LoRA modules ($F_s$ and $F_l$) that generate continuous latent memory tokens based on the query. These tokens are seamlessly inserted directly into the generation stream.
To train this system without damaging the base VLM's general capabilities, the authors use a two-stage training recipe powered by Group Relative Policy Optimization (GRPO):
- Stage I (Memory Formation): Optimizes the query builder and memory formers to produce high-quality memory content while keeping the core VLM frozen.
- Stage II (Memory Invocation): Freezes the memory modules and trains the VLM policy to efficiently and accurately decide when and which memory type to invoke.
Datasets
The authors evaluated VisMem across 12 prominent benchmarks spanning three core capabilities:
- Visual Understanding: MMStar, MMVet, MMT, BLINK, and MuirBench.
- Visual Reasoning: MMMU, LogicVista, MathVista, and MV-Math.
- Visual Generation: HallBench, MultiTrust, and MMVU.
For the cross-domain generalization and continual learning experiments, the models were trained on Visual CoT and Mulberry datasets before being tested on unseen benchmarks.
Key Insights and Ideas
- Task-Dependent Memory Allocation: The dual-memory system is highly self-adaptive. Short-term memory is invoked more frequently in multi-image or detail-heavy scenarios (like MuirBench) to preserve fine-grained details. Conversely, long-term memory takes over during complex mathematical or logical reasoning tasks (like MV-Math) to provide abstract semantic context.
- Mitigating Catastrophic Forgetting: Unlike direct parameter fine-tuning (which often overwrites prior knowledge), VisMem's frozen core and lightweight memory adapters effectively shield the model from catastrophic forgetting during sequential training stages.
- Latent Space Efficiency: By avoiding external visual tools or pixel-space image generation, VisMem achieves performance gains comparable to heavy image-level paradigms but at a fraction of the computational latency.
Key Results
- State-of-the-Art Performance: VisMem achieved an average performance boost of 11.0% relative to the vanilla Qwen2.5-VL-7B model, outperforming top-tier RL baselines like Vision-R1 (+3.0%) and VLM-R1 (+4.2%).
- Cross-Domain Generalization: When restricted to training on only two datasets, VisMem maintained a substantial performance lead (2.7%–6.8%) over all baselines on completely unseen target benchmarks.
- Broad Architecture Compatibility: The framework proved highly versatile, delivering consistent visual capability enhancements across 9 different base models from three distinct families (Qwen, LLaVA, and InternVL), spanning parameter scales from 3B to 38B.
- Low Latency Overhead: VisMem introduced only minor, controllable computational latency increments (8.2% to 43.8% relative to the vanilla model), running nearly twice as fast as image-level reasoning alternatives.
Limitations and Future Work
The authors note a clear trade-off between performance and computational efficiency regarding sequence lengths: increasing the length of the memory query ($K$) or the latent memory tokens ($Ns, Nl$) generally improves accuracy but scales up the computational cost.
Additionally, while the framework successfully handles static multi-image contexts, extending this dual-latent memory architecture to video understanding or continuous streaming inputs remains an open and promising direction for future research.
Summary updated