MM-ContextFold: Context Folding for Multimodal Agentic Retrieval
Yang Tian, Fan Liu, Jingyuan Zhang, Zhenyang Li, Yupeng Hu, Liqiang Nie
Abstract
Multimodal Agentic Retrieval (MAR) requires agents to solve complex information-seeking tasks by iteratively invoking external tools. Typical frameworks such as ReAct maintain raw multimodal inputs and the accumulating interaction history in a single, ever-growing context, leading to the context explosion problem. While existing methods alleviate this issue by compressing redundant text, effective strategies for managing token-intensive visual content remain largely underexplored. To address this gap, we first conduct a systematic empirical study of approximately 10,000 trajectories. The results show that as visual cues are progressively extracted through external tools and textualized into the context, raw images become increasingly redundant. Continued image retention is associated with higher output entropy and can even degrade task accuracy. Motivated by these findings, we propose MM-ContextFold, a training-free framework that loads raw images only when needed. It maintains a persistent, text-only main context for high-level planning and spawns ephemeral branch contexts for image-dependent subtasks. Within each branch, the agent loads the relevant images, completes the subtask, and folds the result back into the main context as a concise textual summary; the images and branch trace are then discarded. Experiments on seven MAR benchmarks across five backbone models show that MM-ContextFold improves average accuracy by 6.3 percentage points over ReAct while reducing the working context length by 27.5\%.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.IR, cs.MM
Related papers
SPARC: Semantic Calibration with Latent Multimodal Knowledge for Robust Image-Text Retrieval
Shared title terminologycs.CVZhongkuan Mao, Wenzhuo Zhao, Haidong Chen et al.
Document Retrieval-Aware Chunking (D-RAC): Universal Retrieval-Aware Ingestion of Enterprise Documents via PDF Normalization and Multimodal Markdown Conversion
Shared title terminologycs.CVUday Allu, Abhivanth Sivaprakash, Pratik Singh et al.
PRISM-RAG: Multimodal Hypergraph Retrieval-Augmented Generation for Tobacco Product and Legislative Policy Reasoning
Shared title terminologycs.CVManuel Serna-Aguilera, Raegan Anderes, Page Dobbs et al.
Tracking Any Point with Agentic Visual Reasoning
Shared title terminologycs.CVXuweiyi Chen, Jin Yao, Linzhan Mou et al.
Agentic LongLive: Asynchronous Agentic Memory for Long Video Generation
Shared title terminologycs.CVShaoteng Liu, Shuai Yang, Wei Huang et al.
Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Shared title terminologycs.CVDezhi Luo, Fengyuan Yu, Haotian Zhang et al.