Towards General Continuous Memory for Vision-Language Models
Organizations: University of California, San Diego.
Abstract
Language models (LMs) and their extension, vision-language models (VLMs), have achieved remarkable performance across various tasks. However, they still struggle with complex reasoning tasks that require multimodal or multilingual real-world knowledge. To support such capabilities, an external memory system that can efficiently provide relevant multimodal information is essential. Existing approaches generally concatenate image and text tokens into a long sequence as memory, which, however, may drastically increase context length and even degrade performance. In contrast, we propose using continuous memory, a compact set of dense embeddings to more effectively and efficiently represent multimodal and multilingual knowledge. Our key insight is that a VLM can serve as its own continuous memory encoder. We empirically show that this design improves performance on complex multimodal reasoning tasks. Building on this, we introduce a data-efficient and parameter-efficient method to fine-tune the VLM into a memory encoder, requiring only 1.2% of the model's parameters and a small corpus of 15.6K self-synthesized samples. Our approach CoMEM utilizes VLM's original capabilities to encode arbitrary multimodal and multilingual knowledge into just 8 continuous embeddings. Since the inference-time VLM remains frozen, our memory module is plug-and-play and can be flexibly integrated as needed. Extensive experiments across eight multimodal reasoning benchmarks demonstrate the effectiveness of our approach.
Figures & tables
| Properties | Scenarios | Training Cost | |||||
| Category | Method | Continuous | Pulg-and-Play | Multimodal | Multilingual | Data | Parameters |
| Multimodal-RAG | EchoSight Yan and Xie (2024) | ✗ | ✓ | ✗Text | ✗ | 900K | 300M |
| ReflectiVA Cocchi et al. (2024) | ✗ | ✗ | ✓Image+Text | ✗ | 6.82M | 8B | |
| RoRA-VLM Qi et al. (2024) | ✗ | ✗ | ✓Image+Text | ✗ | 1M | 7B | |
| Context-Compression | xRAG Cheng et al. (2024) | ✓ | ✓ | ✗Text | ✗ | 3M | 40M |
| KV-Distill Chari et al. (2025) | ✗ | ✓ | ✗Text | ✗ | 500K+ | 150M | |
| InfoSeek | OKVQA | AOKVQA | ||||
| Backbone Model | Method | Query | Entity | All | ||
| Qwen2.5-VL-Instruct | - | 22.5 | 22.4 | 22.5 | 35.0 | 39.8 |
| +RAG | 17.7 | 18.8 | 18.2 | 31.3 | 34.9 | |
| +FastV | 26.2 | 22.6 | 24.2 | 31.5 | 34.9 | |
| +VLM-as-Memory | 29.3 | 28.0 | 28.6 | 37.3 | 44.4 | |
| +VLM-as-Memory+AS | 30.0 | 25.3 | 27.5 | 37.9 | 41.8 | |
| InfoSeek | OVEN | MRAG | OKVQA | AOKVQA | ViQuAE | Avg. | |||
| Model | Q | E | Q | E | |||||
| LLaVA-v1.5 | 8.3 | 8.9 | 20.0 | 3.4 | 34.6 | 17.0 | 17.4 | 11.1 | 15.1 |
| LLaVA-v1.6 | 10.3 | 9.1 | 17.9 | 1.8 | 33.4 | 31.4 | 31.7 | 18.7 | 19.3 |
| LLaMA3 | 10.7 | 8.6 | 16.8 | 0.8 | 33.5 | 23.7 | 25.3 | 17.2 | 17.1 |
| InternLM-2.5vl | 13.4 | 10.8 | 14.5 | 3.3 | 34.8 | 29.1 | 32.8 | 29.7 | 19.5 |
| mPLUG-Owl3 | 9.6 | 6.4 | 20.7 | 1.9 | 45.0 | 31.9 | 33.0 | 23.1 | 21.4 |
| Language | Method | Qwen2.5-Instruct-VL | Qwen2-Instruct-VL | ||||||
| Multilingual InfoSeek | CVQA | Multilingual InfoSeek | CVQA | ||||||
| Unseen-Q | Unseen-E | All | Unseen-Q | Unseen-E | All | ||||
| Chinese | - | 17.4 | 13.8 | 15.4 | 82.32 | 15.1 | 10.9 | 12.6 | 74.60 |
| + RAG | 14.8 | 9.8 | 11.8 | 74.60 | 11.5 | 8.9 | 10.1 | 72.35 | |
| + CoMEM | 22.5 | 21.5 | 22.0 | 78.46 | 23.1 | 19.5 | 21.1 | 73.31 | |
| Russian | - | 15.6 | 14.7 | 15.1 | 66.50 | 13.0 | 13.8 | 13.4 | 71.00 |
| InfoSeek(%) | OVEN(%) | ||||||
| LLM | Unseen-Q | Unseen-E | All | Query | Entity | All | Avg. |
| Qwen2.5-Instruct | 5.0 | 4.8 | 4.9 | 2.4 | 0.1 | 1.3 | 3.1 |
| Qwen2.5-Instruct + RAG | 13.4 | 10.3 | 11.9 | 1.8 | 2.7 | 2.2 | 7.0 |
| Qwen2.5-Instruct + CoMEM (using VLM) | 29.3 | 27.4 | 28.3 | 6.8 | 7.7 | 7.2 | 17.8 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Metric | 4-Emb | 8-Emb | 16-Emb | 24-Emb |
| Unseen Question Score | 29.32% | 32.80% | 31.95% | 31.37% |
| Unseen Entity Score | 29.64% | 32.33% | 30.03% | 30.83% |
| Final Score | 29.48% | 32.74% | 30.96% | 31.10% |
| Model | Method | BLEU-1 | BLEU-4 | METEOR | CIDEr | ROUGE-L | BERTScore-F | Trigram Diversity |
| qwen2.5-VL | Original | 0.26 | 0.04 | 0.18 | 0.24 | 0.26 | 0.81 | 0.92 |
| +RAG | 0.30 | 0.05 | 0.20 | 0.45 | 0.27 | 0.81 | 0.94 | |
| +CoMEM | 0.34 | 0.07 | 0.21 | 0.64 | 0.32 | 0.81 | 0.86 | |
| qwen2-VL | Original | 0.34 | 0.08 | 0.21 | 0.79 | 0.34 | 0.81 | 0.84 |
| +RAG | 0.34 | 0.07 | 0.20 | 0.64 | 0.32 | 0.81 | 0.83 | |
| +CoMEM | 0.36 | 0.08 | 0.23 | 0.76 | 0.32 | 0.82 | 0.88 |
| Metrics | Method | Accounting | Architecture | Clinical Med | Computer | Economics | Electronics | Management | Materials | Pharmacy |
| Accuracy | Qwen2.5-VL | 26.7 | 23.3 | 43.3 | 26.7 | 46.7 | 23.3 | 40.0 | 30.0 | 30.0 |
| +RAG | 23.3 | 26.7 | 40.0 | 33.3 | 33.3 | 16.7 | 36.7 | 33.3 | 40.0 | |
| +CoMEM | 40.0 | 26.7 | 43.3 | 40.0 | 46.7 | 30.0 | 36.7 | 33.3 | 40.0 | |
| Similarity | Qwen2.5-VL | 26.7 | 26.7 | 43.3 | 26.7 | 46.7 | 26.7 | 40.0 | 30.0 | 30.0 |
| +RAG | 23.3 | 26.7 | 40.0 | 33.3 | 33.3 | 16.7 | 36.7 | 33.3 | 40.0 | |
| +CoMEM | 40.0 | 33.3 | 43.3 | 40.0 | 50.0 | 30.0 | 43.3 | 33.3 | 43.3 |
| Metrics | Method | Math | Textbook QA | Visual QA | Figure QA |
| Accuracy | Qwen2.5-VL | 59 | 50 | 34 | 46 |
| +RAG | 63 | 53 | 37 | 54 | |
| +CoMEM | 65 | 46 | 39 | 56 | |
| Similarity | Qwen2.5-VL | 62 | 55 | 35 | 48 |
| +RAG | 63 | 57 | 37 | 56 | |
| +CoMEM | 66 | 49 | 41 | 57 |
| Token per Second | InfoSeek | OVEN | MRAG | OKVQA | AOKVQA | ViQuAE |
| Qwen2 models | ||||||
| Qwen2-VL | 55.93 | 100.91 | 39.54 | 45.81 | 53.38 | 99.53 |
| Qwen2-VL+RAG | 40.71 | 49.27 | 8.38 | 34.66 | 23.60 | 37.50 |
| Qwen2-VL+COMEM | 48.93 | 53.29 | 18.61 | 40.42 | 51.60 | 41.50 |
| Qwen2.5 models | ||||||
| Qwen2.5-VL | 53.44 | 72.71 | 42.13 | 45.64 | 42.87 | 53.49 |
| Token Number (Accuracy%) | Infoseek | Oven | MRAG | OKVQA | AOKVQA | ViQuAE |
| Qwen2-VL | 357.6 (17.8) | 408.6 (25.5) | 84.5 (39.3) | 404.8 (36.3) | 418.4 (41.8) | 424.7 (34.5) |
| Qwen2-VL+RAG | 6163.8 (19.0) | 6481.5 (24.7) | 5882.4 (40.4) | 6803.8 (41.9) | 6715.4 (45.3) | 6943.2 (33.6) |
| Qwen2-VL+COMEM | 416.8 (33.1) | 492.9 (30.5) | 176.9 (35.1) | 453.8 (57.7) | 478.3 (60.6) | 489.2 (36.3) |
| Infoseek | ||||
| Training Settings | Unseen-Q | Unseen-E | All | |
| Original | 32.8 | 28.5 | 30.7 | |
| Data | 4x | 34.8 | 28.4 | 31.3 |
| 2x | 32.2 | 29.8 | 30.9 | |
| 0.5x | 26.5 | 24.4 | 25.4 | |
| 0.25x | 17.8 | 17.5 | 17.6 | |
Memory-Augmented VLMs
Memory-augmented vision-language models use persistent or retrieved context to improve reasoning across long inputs and interactions.
See all 165 papers