CoMemo: LVLMs Need Image Context with Image Memory

Shi Liu, Weijie Su, Xizhou Zhu, Wenhai Wang, Jifeng Dai
6/1/2025

No official code found. Best implementation: LALBJ/CoMemo (14 stars, last commit 2025-06-18).

Abstract

Recent advancements in Large Vision-Language Models built upon Large Language Models have established aligning visual features with LLM representations as the dominant paradigm. However, inherited LLM architectural designs introduce suboptimal characteristics for multimodal processing. First, LVLMs exhibit a bimodal distribution in attention allocation, leading to the progressive neglect of middle visual content as context expands. Second, conventional positional encoding schemes fail to preserve vital 2D structural relationships when processing dynamic high-resolution images. To address these limitations, we propose CoMemo - a dual-path architecture that combines a Context image path with an image Memory path for visual processing, effectively alleviating visual information neglect. Additionally, we introduce RoPE-DHR, a novel positional encoding mechanism that employs thumbnail-based positional aggregation to maintain 2D spatial awareness while mitigating remote decay in extended sequences. Evaluations across seven benchmarks,including long-context comprehension, multi-image reasoning, and visual question answering, demonstrate CoMemo's superior performance compared to conventional LVLM architectures. Project page is available at https://lalbj.github.io/projects/CoMemo/.

View on arXivView PDF

Code Implementations(1)

LALBJ/CoMemoCommunity60%

[ICML 2025] CoMemo: LVLMs Need Image Context with Image Memory

141Shell, PythonJun 8, 20251 years ago

Similar Papers

Cite this paper

@article{liu2025comemo,
  title  = {CoMemo: LVLMs Need Image Context with Image Memory},
  author = {Shi Liu and Weijie Su and Xizhou Zhu and Wenhai Wang and Jifeng Dai},
  year   = {2025},
  eprint = {2506.06279},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2506.06279},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.06279.svg)](https://codeofpaper.com/paper/2506.06279)

Discussion