MEGA Hub

MemeMind: Reference-Guided Trace Construction for Offline Context Optimization

Authors

Do you know Run Yang?You can claim authorship or link another user.Do you know Weihang Wang?You can claim authorship or link another user.Do you know Boheng Sheng?You can claim authorship or link another user.Do you know Yuchen He?You can claim authorship or link another user.Do you know Jielei Zhang?You can claim authorship or link another user.Do you know Pengyu Chen?You can claim authorship or link another user.Do you know Zhiyu Wu?You can claim authorship or link another user.Do you know Qiang Sun?You can claim authorship or link another user.Do you know Huyang Sun?You can claim authorship or link another user.Do you know Longwen Gao?You can claim authorship or link another user.

Abstract

Offline context optimization improves an agent by revising its instructions and examples while keeping the model frozen. This approach learns from rollouts on an adaptation set, but some queries produce only failed rollouts. In these cases, the optimizer sees no successful example of how the available tools can reach the correct answer. We introduce MemeMind, which uses an offline reference answer to recover this missing experience. TraceBuilder identifies the evidence required by the reference, executes text search, image retrieval, and visual grounding, and verifies the resulting tool trace before adding it to the adaptation buffer. ToolGuide then summarizes the collected traces into a shared guide and separate instructions for each tool. The reference answers and constructed traces are used only during adaptation, while inference uses the learned guides with a frozen model. We study this problem through Anime, Comic, and Game meme interpretation. These memes combine edited and ambiguous visual content, overlaid text, long tail franchise knowledge, and culture specific references. Their interpretation can require coordinated visual grounding, image retrieval, and text search, making them a demanding setting in which native rollout groups may fail together. We evaluate MemeMind on MemeX, a benchmark of 1,000 such memes annotated by experts. Across two Qwen3-VL models, two language partitions, and two independent judges, MemeMind improves over the strongest context optimization baseline by 22.0% and 21.1% on Qwen3-VL-30B-A3B, and by 8.1% and 8.0% on Qwen3-VL-235B-A22B under GPT-5 judging. Ablations and held out traces show that constructing successful tool use for failed groups provides the largest component gain and produces more effective evidence acquisition at inference time.

Community

00

Publication notes

Author note
24 pages, 16 figures, 8 tables