MMPact: Autonomous Multimodal Context Compaction for LLM Agents

Feng Luo, Yang Zhang, Yujian Liu, Shiyu Chang, Mayank Darbari, Liangjie Hong, Liang WuarXiv 2026

TL;DR

When multimodal AI agents work on long tasks, their memory fills up with text and screenshots—and standard text-only summaries accidentally throw away visual details that turn out to be crucial later. MMPact solves this by letting a vision-language model autonomously act as its own memory editor, deciding what to write down and which screenshots to keep, crop, or shrink based on a high-level budget. Not only does it figure out smart compression strategies on its own, it remembers more useful details for surprise follow-up tasks while spending fewer tokens than verbose text summaries.

What Problem Does This Paper Address?

Imagine asking an AI agent to browse furniture online and compare sofa colors. As it clicks around, its context window rapidly fills with code, reasoning traces, and high-resolution screenshots. To keep going without hitting memory limits, agents use context compaction: condensing past history into a neat summary.

For text-only agents, asking an LLM to summarize its history works great. But for multimodal agents navigating graphical interfaces, text summaries have a blind spot. First, visual layouts and shapes are notoriously hard to describe exhaustively in words. Second, agents often face sequential tasks in the same session. If your next prompt is "Now compare the armrest shapes of those sofas," a text summary written during the color-comparison task almost certainly threw that visual detail away.

Existing multimodal compaction methods rely on rigid rules (like downscaling older screenshots by age) or fixed image limits. What’s missing is the fluid adaptability of text summarization—letting the model itself decide how to trade off text, images, and resolution under any given token budget.

Methods

Enter MMPact (Multi-Modal comPaction), a prompting framework where a Vision-Language Model (VLM) autonomously curates its own multimodal memory without extra training.

Figure 1: Overview of MMPact. Given the current instruction Ic and multimodal trajectory Hc, MMPact produces a multi-modal summary S. Disentangled budget guidance b specifies the overall text-and-image token budget without prescribing a modality or compression operation. The VLM autonomously selects textual and visual information to retain and can retain, crop, downscale, or jointly crop and downscale selected images. The resulting summary supports the current task and follow-up tasks that are unknown during compaction.

Given a task instruction, an interaction history, and a budget level, MMPact prompts the VLM to make two joint decisions:

  1. Modality Selection: Represent history using text, selected original screenshots, or a hybrid of both. The prompt reminds the VLM of basic physics: text is cheap and great for chronology, while images cost more tokens but preserve spatial truth.
  2. Image Compression: For every kept image, the VLM chooses one of four operations: retain full-size, crop to a region of interest, downscale resolution, or crop and downscale.

Crucially, the authors introduce disentangled budget guidance. Instead of micromanaging the model ("use 0 images when budget is tight"), they pass a single high-level sentence specifying one of four budgets: Minimal, Concise, Detailed, or Comprehensive. Every formatting choice emerges autonomously from the model.

Datasets

Because no existing benchmark tested how compaction handles unknown future questions, the authors built TraVQA (Trajectory-based Visual QA):

  • Source: Derived from OSWorld V2 GUI-navigation trajectories (capped at 200 steps), yielding 73 trajectories and 298 multiple-choice questions.
  • Hidden Evaluation: Compaction happens blind—without seeing the test questions. Afterward, a test LLM answers 168 current-task questions (facts needed for the original goal) and 130 follow-up questions (incidental visual details useful for a plausible next step, like reading a nearby landmark off a campus map).
Example follow-up question from TraVQA requiring spatial map details encountered incidentally during an earlier route-planning step.
  • Strict Visual Filtering: Questions were screened so that a model answers them reliably with screenshots ($\ge 80\%$ accuracy) but struggles without them ($> 40\%$ accuracy drop).

Key Insights and Ideas

  • Emergent Economic Rationality: Without explicit rules, the VLM naturally discovers sensible resource allocation. Under Minimal budgets, ~87–92% of its summaries are pure text; when it does keep an image, ~63–67% are downscaled. Under Comprehensive budgets, text-only summaries drop below 6%, it retains ~4 images per trajectory, and keeps >61% of them at full, unscaled resolution.
  • Pictures Beat Words on Non-Textual Details: When questions are split into Screenshot Text vs. Visual Information (color, layout, spatial relationships), MMPact matches text summaries on text-heavy evidence—but blows them away on visual evidence (+14.43 percentage points at the Detailed budget for the exact same ~2,225 token cost).
  • Images Are "Future-Proof" Containers: When ablating the Comprehensive summaries on follow-up tasks, feeding the QA model only the retained images (just 38.9% of the summary's tokens) actually scored slightly higher (57.7%) than the full text+image summary (55.4%), and crushed the text-part alone (47.1%). Raw pixels quietly preserve answers to questions the summarizer didn't know to ask.

Key Results

Using Qwen3.8-27B as the compactor and evaluating QA with both Qwen3.8-27B and Qwen3.8-Flash-Next, MMPact outperforms text-only summaries, caption-then-summarize pipelines, and VERA (a deterministic visual-rendering baseline):

  • Current-Task QA (Comprehensive budget): MMPact hits 94.29% accuracy (Qwen3.8-27B) vs. 90.60% for text-only summaries, while using fewer tokens (3,282 vs. 3,394).
  • Follow-Up QA (Comprehensive budget): MMPact improves accuracy over text-only summaries by +5.53 percentage points (55.38% vs. 49.85% on Qwen3.8-27B) and +7.69 percentage points (55.54% vs. 47.85% on Qwen3.8-Flash-Next), again at lower token cost (3,311 vs. 3,431 tokens).
  • Efficiency vs. Deterministic Rendering: Compared to VERA (~9,065 tokens, 75.60% current / 45.23% follow-up), MMPact delivers dramatically higher accuracy at roughly one-third the token budget.

Limitations and Future Work

The authors note that their study focuses on a specific family of models and desktop screenshot-based GUI trajectories. Real-world multimodal agents operate across diverse interfaces (mobile, robotics, video streams), and exact token-efficiency trade-offs depend heavily on how specific model architectures tokenize and serve images. Expanding autonomous compaction to broader domains and live end-to-end agent deployments remains exciting territory for future work.

Summary updated

BibTeX
@misc{luo2026mmpact,
  author = {Feng Luo and Yang Zhang and Yujian Liu and Shiyu Chang and Mayank Darbari and Liangjie Hong and Liang Wu},
  title = {{MMPact: Autonomous Multimodal Context Compaction for LLM Agents}},
  year = {2026},
  eprint = {2611.36644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36644},
}
Figure