arXiv(opens in a new tab)cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23268

Dual-Grained Agent Memory and Shapley Context Attribution for Multimodal Agentic Learner

Jieke Wang, Tiancheng Shen, Yibo Yang, Ming-Hsuan Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Frontier multimodal large language models (MLLMs) deliver impressive perception yet still falter on scientific and mathematical reasoning. Parameter-level adaptation is unavailable for closed-weight or on-device backbones, and stateless prompting forfeits any compounding benefit from problems already solved. We propose DG-Mem, a dual-grained agentic memory framework that augments a frozen MLLM with a non-parametric, externally stored memory built once from training-time rollouts and consulted read-only at test time. Motivated by the Complementary Learning Systems (CLS) account of human memory, DG-Mem factors its store into an instance-grounded exemplar memory and a category-level schema memory of IF-THEN rules, with a transient reflection store mediating their construction so that schemas are synthesized only from abstract reflections, never from exemplar text. Two design choices distinguish DG-Mem: an online concept categorizer that grows the category space incrementally during training rather than committing to a predefined taxonomy, and a Shapley context attribution procedure that decomposes correctness across the entire retrieved rule set and yields a per-rule utility that re-weights retrieval at test time. The pipeline introduces no gradient updates and is deployable on closed-weight or on-device backbones. Across MathVista, MMMU, and MMMU-Pro on four open-weight and proprietary backbones (Qwen3.5-27B, Qwen3.5-122B-A10B, GPT-5-Nano, Gemini-3-Flash), DG-Mem improves consistently over no-memory and competitive memory baselines.

1 Introduction

Frontier multimodal large language models (MLLMs) now answer a wide range of vision-language questions [16, 7, 32], yet their failures on scientific and mathematical reasoning benchmarks remain [35, 13, 36]. Closing this gap via parameter-level adaptation, such as instruction tuning or RLHF, requires gradient access and full supervision. This approach is brittle when the backbone model changes. Furthermore, it is often impossible for proprietary or on-device models. Prompt-level adaptation, in contrast, is cheap and modular but stateless: the model receives no compounding benefit from problems it has already seen. Agentic memory frameworks bridge this divide by maintaining an external, non-parametric store that accumulates across problems and conditions a frozen backbone at test time.

Recent agentic memory systems pursue exactly this regime, but most settle for one of two extremes. Trajectory and case banks [47, 20, 28, 5, 46] preserve raw episodes and route by similarity or learned values; the resulting context is rich but instance-bound, and aggregation over many cases tends to amplify rather than abstract their idiosyncrasies. Single-grain prescriptive playbooks [29, 44, 17, 40, 3] swing to the other extreme, distilling experience into a flat list of rules; the resulting context is compact but loses the concrete grounding that an unfamiliar new problem often needs. Systems that do combine grains either pair task- and step-level skills [26] or pair two error-modality streams of the same abstraction level [3], rather than separating instance grounding from cross-case abstraction. Two design questions are left almost entirely open by these systems: (i) how memories should be categorized when the underlying concept space is not known a priori and a fixed taxonomy is either too coarse (e.g. a single “geometry” bucket) or too fine (e.g. a unique bucket per concept signature)? and (ii) how the credit for a correct answer should be distributed across multiple co-retrieved memories so that retrieval ranking can sharpen over time? Existing per-memory utility signals [41, 3] attribute success or failure to a single retrieved item, conflating its contribution with the rest of the context.

A complementary perspective comes from cognitive science. The Complementary Learning Systems (CLS) account of human memory [14, 11] holds that flexible behavior arises from two interacting stores: a fast, instance-specific system that supports exemplar-based generalization [15], and a slow, structured system organized around abstract schemas. Critically, the two are not built in the same way: episodic traces are progressively integrated offline into reusable schemas, a consolidation step that schemas themselves are known to accelerate [25]. Equally relevant is what gets re-activated. Offline replay is preferentially biased toward rewarded experience [22, 21], and the rational analysis of memory holds that retrieval accessibility composes cue-driven match strength with a base-level term that tracks how useful a memory has been historically [1]. Inspired by these claims, we design our agentic memory framework with the granularity separation, schema-mediated consolidation, and value-weighted retrieval.

We propose DG-Mem, a dual-grained agentic memory framework. A frozen MLLM backbone is paired with a non-parametric store factored into an instance-grounded exemplar memory and a category-level schema memory of IF-THEN rules; a transient reflection store acts as the episodic-trace intermediate from which schemas are synthesized, with exemplar text deliberately excluded from schema synthesis to enforce the consolidation constraint. To resolve the taxonomy question, an online concept categorizer grows the category space incrementally during training rather than committing to a predefined set, allowing to track the empirical concept distribution of the corpus. To resolve the credit-assignment question, a second offline pass treats the rules retrieved for each problem as players in a cooperative game and uses Shapley context attribution over rule-subset rollouts to compute a per-rule utility; at test time, retrieval composes cue similarity with this utility, instantiating the rational-analysis prescription of similarity weighted by track record. The entire pipeline runs on a frozen backbone with no gradient updates, making it deployable on closed-weight or on-device models.

Our contributions are summarized as follows:

• We propose DG-Mem, an agentic memory framework that enables multimodal agents to learn and evolve. An exemplar memory and a schema memory of IF-THEN rules, with schemas synthesized exclusively from a transient reflection store so that exemplar text never contaminates the schema, operationalizing CLS-style consolidation from abstract traces.

• We propose Shapley context attribution to handle the credit assignment problem of learned schemas. Rules co-retrieved for a problem are scored as players in a cooperative game. The resulting per-rule utility instantiates the rational-analysis view of accessibility as similarity weighted by historical usefulness.

• Across four backbones (Qwen3.5-27B / 122B-A10B [24], GPT-5-Nano [16], Gemini-3-Flash [7]) and three multimodal benchmarks (MathVista [13], MMMU [35], MMMU-Pro [36]), DG-Mem consistently beats No-memory baseline, and both offline and online ViLoMem.

References (45)