Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Task-Aware Structured Memory for Dynamic Multi-modal In-Context Learning

About

Multi-modal large language models (MLLMs) depend on in-context learning (ICL) for rapid task adaptation, but their scalability is severely limited by finite context windows and the growing cost of key-value (KV) caches in long multi-modal sequences. Existing memory compression approaches typically rely on rigid token removal or sample-dependent importance estimation, which introduces bias, disrupts semantic structure, particularly for visual representations, and yields static memories that cannot adapt to new queries. We introduce TASM (Task-Aware Structured Memory), a training-free framework that addresses these limitations through task-aware, structure-preserving, and dynamically accessible memory construction. TASM employs task-vector guided compression to replace sample-specific signals with a task-level direction that captures shared relevance across demonstrations. To preserve the underlying manifold, it applies semantics-aware token merging via bipartite graph matching, aggregating tokens without destructive pruning. Finally, TASM structures memory into a hierarchy comprising a compact Core Memory and a Latent Bank, facilitating query-adaptive dynamic retrieval. Evaluations confirm TASM maintains high performance under heavy compression, effectively balancing efficiency with adaptability.

Zhirui Chen, Ziwei Chen, Ling Shao• 2026

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-100
Accuracy65
206
GUI GroundingScreenSpot
Avg Acc19.5
169
Video UnderstandingVideo-MME without subtitles
Overall Score61.5
145
Multimodal ReasoningMME-RW
Accuracy43.5
19
Visual Question AnsweringIllusionVQA
Accuracy42
9
Video Question AnsweringYouCook2
Score109.5
7
Visual Information RetrievalV-NIAH
R@1095.8
5
Showing 7 of 7 rows

Other info

Follow for update