GEMS: Agent-Native Multimodal Generation with Memory and Skills

Zefeng He, Siyuan Huang, Xiaoye Qu, Yafu Li, Tong Zhu, Yu Cheng, Yang YangarXiv 2026

TL;DR

GEMS (Agent-Native Multimodal Generation with Memory and Skills) is a novel framework that treats text-to-image generation as an iterative, multi-agent optimization problem. By combining a closed-loop refinement loop, hierarchically compressed trajectory memory, and on-demand domain expertise, GEMS enables lightweight open-source models (like the 6B Z-Image-Turbo) to outperform prominent closed-source giants on complex instruction-following benchmarks.

What Problem Does This Paper Address?

While modern text-to-image (T2I) foundation models excel at generating visually stunning images from straightforward prompts, they frequently stumble when faced with complex, multi-faceted instructions (e.g., precise spatial layouts, specific text rendering, or highly detailed attribute binding). This is often referred to as the "long-tail" challenge of multimodal generation.

Existing methods try to fix this at inference time using prompt rewriting or basic iterative feedback loops. However, these approaches suffer from two major flaws:

  1. Context Bloat or Loss: They either blindly accumulate entire conversation histories (leading to massive token overhead and informational noise) or only look at the immediate previous step (losing the global optimization trajectory).
  2. Rigid Architectures: They are often heavily customized for a single downstream task (like academic illustration), making them difficult to integrate into general-purpose generative pipelines.

Methods

GEMS introduces an "agent-native" architecture built on three core pillars:

Figure 2: The system architecture of GEMS. The framework consists of three primary pillars: Agent Loop, Agent Memory, and Agent Skill. The user prompt is augmented with domain-specific expertise from Agent Skill, and then iteratively refined within the Agent Loop, with Agent Memory managing the historical context to guide the generation process.
  1. Agent Loop: A structured multi-agent workflow that drives closed-loop optimization.
  2. A Planner uses relevant skills to enhance the initial prompt.
  3. A Decomposer breaks the user prompt into atomic, binary (yes/no) visual criteria.
  4. A Verifier (powered by a Multimodal LLM) evaluates the generated image against these criteria.
  5. A Refiner evolves the prompt based on what failed, continuing until all criteria are met or the maximum iteration limit ($N_{max}$) is reached.
  6. Agent Memory (Hierarchical Compression): Instead of saving everything or nothing, GEMS splits memory into two tiers. Factual artifacts (prompts, images, and verification feedback) are stored in their raw form. Conversely, verbose and redundant reasoning traces (Chain-of-Thought logs) are processed by a Compressor module into short, high-level strategic "Experiences." This eliminates noise while preserving a global view of the optimization path.
  7. Agent Skill: An extensible repository of domain-specific expertise (e.g., Spatial Intelligence, Text Rendering, Creative Drawing). To maintain token efficiency, it uses an on-demand loading mechanism: only skill names and descriptions are permanently loaded into a lightweight manifest, while dense domain instructions are fetched only when a specific skill is triggered.

Datasets

The authors evaluated GEMS across nine distinct benchmarks:

  • Mainstream Benchmarks: GenEval, GenEval2, DPG-Bench, OneIG (both English and Chinese subsets), and WISE.
  • Specialized Downstream Tasks: LongText-Bench (text rendering), SpatialGenEval (spatial intelligence), CREA (creative drawing), and ArtiMuse (aesthetic drawing).

Key Insights and Ideas

  • More Information $\neq$ Better Memory: Simply dumping raw Chain-of-Thought logs into the agent's memory actually hurts performance due to informational noise. Distilling thoughts into condensed "experiences" yields a significant performance boost (+2.5 points on GenEval2).
  • Efficiency Through Intelligence: Integrating Memory and Skill modules shifts the iteration distribution toward earlier rounds. The system successfully fixes errors faster, meaning it generates fewer total images to achieve a successful result, significantly cutting down computational overhead during inference scaling.
  • Empowering Smaller Models: The paper proves that a well-designed agentic harness can effectively compensate for a model's parameter limitations, pushing a distilled 6B model past state-of-the-art closed-source models.

Key Results

GEMS was validated using two open-source backends: Z-Image-Turbo (6B) and Qwen-Image-2512 (20B), with Kimi K2.5 acting as the MLLM verifier/refiner.

Figure 1: Overall Performance of GEMS with Z-Image-Turbo. GEMS enables a lightweight, distilled 6B model Z-Image-Turbo to outperform prominent closed-source models, such as Nano Banana and GPT-Image, across various mainstream benchmarks.
  • GenEval2 Breakthrough: GEMS elevated the lightweight 6B Z-Image-Turbo model from a baseline score of 31.0 to 63.5, successfully surpassing the closed-source powerhouse Nano Banana 2 (63.4).
  • Average Gains: For Z-Image-Turbo, GEMS delivered an average performance leap of 14.22 on mainstream benchmarks and 14.03 on downstream tasks.
  • Generalizability: On the larger Qwen-Image-2512 model, GEMS achieved average improvements of 16.24 (mainstream) and 7.96 (downstream), proving the framework scales across different architectures.

Limitations and Future Work

  • Inference Latency: Even though GEMS optimizes the number of iterations required, running an iterative multi-agent loop with an MLLM verifier inherently introduces noticeable inference latency compared to single-shot generation.
  • Predefined Workflows: The system currently relies on static, predefined coordination mechanisms between agents rather than allowing fully autonomous tool use or dynamic multi-agent planning.
  • Lack of Natively Integrated Editing: The base generation models used do not natively support image editing. The authors note that a promising future direction is expanding GEMS into a unified loop capable of seamless reasoning, generation, and localized image editing, as well as extending the framework to video generation.

Summary updated

BibTeX
@misc{he2026gems,
  author = {Zefeng He and Siyuan Huang and Xiaoye Qu and Yafu Li and Tong Zhu and Yu Cheng and Yang Yang},
  title = {{GEMS: Agent-Native Multimodal Generation with Memory and Skills}},
  year = {2026},
  eprint = {2603.28088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.28088},
}
Figure