Summary (Overview)
- Unify-Agent is the first end-to-end unified multimodal agent for world-grounded image synthesis, reformulating text-to-image generation as an agentic pipeline of Think → Research → Recaption → Generate rather than a single-pass mapping.
- The model is built upon Bagel, a Mixture-of-Transformers (MoT) unified multimodal model, and is fine-tuned on 143K curated agent trajectories covering 12 categories of long-tail, knowledge-intensive concepts (Celebrity, Animation, Game, Comic, Mythology, etc.).
- The authors introduce FactIP, a new benchmark with 2,462 curated prompts (500 test split) specifically designed to evaluate factual fidelity and identity consistency for rare and culturally significant concepts.
- Unify-Agent achieves an Overall score of 73.2 on FactIP, surpassing its base model (Bagel, 50.9) by more than 22 points and outperforming strong generation-only baselines like FLUX.1-dev (28.9) and SD-3.5-large (27.5).
- The work demonstrates a key architectural insight: in unified multimodal models, generative priors (VAE latents) enhance multimodal understanding, enabling superior evidence recaptioning compared to decoupled pipelines.
Introduction and Theoretical Foundation
Background and Motivation
Recent advances in Text-to-Image (T2I) generation have significantly improved visual realism, controllability, and stylistic diversity. However, a growing challenge is whether models can faithfully depict entities grounded in the real world—including real people, cultural symbols, rare intellectual properties (IPs), historical scenes, and scientific phenomena. Success requires not just visually plausible outputs but factual and visual fidelity to the intended entity.
Unified multimodal models (UMMs) offer a promising approach by unifying visual understanding and image generation within a shared architecture. However, existing models rely primarily on frozen parametric knowledge, which is often insufficient to recover the correct appearance and identity-defining visual cues of long-tail concepts. This reflects a fundamental constraint: world knowledge embedded in fixed model parameters cannot be updated at inference time.
Key Insight: From Closed-Book to Open-Book Generation
The authors argue that addressing this bottleneck requires moving beyond closed-book generation toward open-book, agentic generation, where models access external world knowledge at inference time. Existing agentic T2I systems fall short because they are brittle, multi-stage pipelines that loosely connect LLM planners, retrieval tools, and standalone generators. The key challenge is not simply retrieving external knowledge, but turning it into visual guidance that preserves fidelity to source knowledge while remaining aligned with user intent.
Theoretical Foundation: Problem Formulation
Standard T2I models the conditional distribution , where an image is synthesized from a user prompt relying strictly on parametric memory . For world-grounded synthesis involving rare entities, this is intractable due to knowledge deficits in .
The authors formulate world-grounded synthesis as an interleaved generative trajectory over an augmented state space with four intermediate variables: cognitive gap assessment , textual evidence trace , visual evidence trace , and evidence-grounded recaption :
This factorization defines four cognitive phases: (1) detecting knowledge gaps, (2) acquiring multimodal evidence, (3) recaptioning evidence into structured constraints, and (4) evidence-grounded visual synthesis.
Methodology
3.1 Base Architecture: Bagel
Unify-Agent is built upon Bagel, which employs a Mixture-of-Transformers (MoT) architecture integrating a ViT encoder. The model disentangles two core capabilities:
Multimodal Understanding (autoregressive next-token prediction):
Multimodal Generation (rectified flow in VAE latent space):
3.2 Motivating Evidence
A preliminary training-free study on 200 examples from FactIP categories (scene, character, object) compared four inference settings: (1) prompt-only, (2) text injection, (3) visual injection, and (4) text+visual injection. Results showed:
- Both textual and visual knowledge improve over prompt-only baseline
- Visual injection yields substantially larger gains than text injection
- Naive text+visual injection is slightly weaker than visual alone, motivating the recaption paradigm
4. Data Pipeline
Training Data Construction — Each training sample is represented as:
The pipeline has three stages:
- Task Source and Prompt Collection: 456K curated IPs across 12 domains, with structured metadata from GPT-4o and manual verification
- Multimodal Research Trace Construction: Using Claude Opus 4.6 as teacher agent, constructing textual research traces and visual research traces , where visual candidates are scored via:
and top-2 images are selected as visual evidence:
- Evidence-Grounded Recaption Annotation: Using Nano Banana Pro for generation-based validation with reject-sampling (up to 5 trials), yielding 143K high-quality trajectory-image pairs
FactIP Benchmark — 2,500 samples through manual filtering, with a 500-sample test split. Evaluated on four dimensions: Clarity, Content, Aesthetics, and Relevance.
5. Fine-Tuning and Inference
Training Objective (dual-loss design):
Text supervision uses autoregressive next-token prediction with upweighted special tokens (thinking, tool_call, recaption tags). Image supervision uses latent flow-matching. A hybrid attention masking strategy regulates information flow across reasoning traces, reference images, recaption tokens, and generation tokens.
Inference Pipeline (Think → Research → Recaption → Generate):
- Think: Structured prompt understanding with cognitive gap detection , representing missing knowledge as units
- Research: Sequential textual-then-visual evidence acquisition
- Recaption: Transform evidence into identity-preserving and scene-compositional constraints, then integrate into recaption
- Generate: Final synthesis conditioned solely on recaption and visual anchors:
Empirical Validation / Results
FactIP Benchmark Results
Unify-Agent achieves the highest Overall score of 73.2 among Unified MLLMs, with exceptional performance on the Relevance dimension (Character: 67.3, Object: 71.8, Scene: 78.2). It vastly surpasses generation-only models like FLUX.1-dev (28.9) and SD-3.5-large (27.5).
| Model | Clarity | Content | Aesthetics | Relevance | Overall |
|---|---|---|---|---|---|
| Bagel (base) | 91.3 | 64.2 | 84.0 | 44.9 | 50.9 |
| Unify-Agent (Ours) | 92.4 | 75.8 | 83.3 | 67.3 | 73.2 |
| FLUX.1-dev | 92.5 | 51.9 | 78.4 | 17.0 | 28.9 |
| Nano Banana-2 | 96.6 | 86.3 | 92.2 | 85.5 | 88.5 |
WiSE Benchmark
Unify-Agent attains the best Overall score of 0.77 within the Unified MLLM category, exceeding BAGEL+CoT (0.70) and excelling in cultural (0.82), biological (0.72), and chemistry (0.70) knowledge.
KiTTEN Benchmark
Unify-Agent establishes a new state of the art with an overall score of 4.08, outperforming strong baselines like Imagen-3 (3.50), with highest text alignment (4.22) and entity alignment (3.93).
T2I-FactBench
Within the unified MLLM group, Unify-Agent achieves top scores in SKCI (77.4) and MKCC (71.5), with SKCM concept score of 69.2 comparing favorably against commercial models like DALLE-3 (55.5).
Ablation Study
| Variant | Clarity | Content | Aesthetics | Relevance | Overall |
|---|---|---|---|---|---|
| Baseline (Vanilla Bagel) | 91.3 | 64.2 | 84.0 | 44.9 | 50.9 |
| w/o Text-Search | 90.7 | 70.9 | 84.3 | 64.6 | 65.4 |
| w/o Image-Search | 92.1 | 73.1 | 85.0 | 50.8 | 56.2 |
| w/o Recaption | 83.0 | 69.0 | 74.5 | 60.2 | 62.9 |
| Recaption w/o Identity-preserving | 91.5 | 72.6 | 83.4 | 65.9 | 67.7 |
| Recaption w/o Scene-compositional | 90.7 | 70.8 | 80.7 | 68.6 | 68.2 |
| Recaption w/o VAE | 90.9 | 74.3 | 84.5 | 70.8 | 71.2 |
| Recaption w/o ViT | 88.6 | 68.4 | 81.1 | 58.7 | 61.4 |
| Unify-Agent (Full) | 91.2 | 75.2 | 85.2 | 72.4 | 73.2 |
Key findings:
- Removing image search causes the largest degradation (Overall 56.2), especially on Relevance (72.4 → 50.8)
- Removing ViT (Recaption w/o ViT) is more damaging than removing VAE, confirming that high-level semantic tokens are critical for understanding
- The full model improves Relevance from 44.9 to 72.4, showing the main advantage lies in factual grounding
Theoretical and Practical Implications
Generation Helps Understanding in Unified Models
A central insight is that generation can improve understanding in unified understanding-generation models. The recaption stage requires transforming retrieved reference images into structured textual specifications—a multimodal understanding problem requiring identification of identity-critical attributes. In Bagel-style architectures, visual inputs are tokenized through a dual VAE+ViT design:
- ViT captures high-level semantics (global context, entity identity)
- VAE provides low-level perceptual latents (texture, material, structural geometry)
Together, these enable superior multimodal reasoning during evidence recaptioning, demonstrating a mutually reinforcing synergy between understanding and generation capabilities.
Practical Implications
- Agentic Paradigm for T2I: Reframing generation as a sequential decision process (Think, Research, Recaption, Generate) enables reliable synthesis of rare, long-tail, and knowledge-intensive concepts that closed-book models cannot handle.
- Evidence-Grounded Recaptioning: The recaption serves as a structured interface that filters noisy raw evidence and reorganizes it into generation-compatible constraints, resolving the modality conflict of naive injection.
- Unified Architecture Advantage: End-to-end unified models eliminate the cascading errors of brittle multi-API pipelines, enabling genuine reasoning-driven generation.
Conclusion
Unify-Agent pioneers agentic modeling for world-grounded image synthesis, demonstrating that tightly coupling reasoning, searching, and generation enables reliable open-world image synthesis. Key contributions include:
- A Novel Agentic Paradigm: The first end-to-end unified multimodal agent reformulating T2I as an active, inference-time sequential decision process
- Architectural Insights: Revealing that unifying understanding and generation creates mutually reinforcing synergy, where generative latents enhance multimodal reasoning
- Comprehensive Benchmark: FactIP, a curated benchmark for evaluating identity consistency and factual faithfulness of rare and long-tail concepts
- Superior Performance: Setting new records among open-source unified models across FactIP, WiSE, KiTTEN, and T2I-FactualBench, approaching the world knowledge capabilities of leading commercial models
Future Directions: The work highlights the value of open-book, evidence-grounded generation and suggests that further improvements could come from expanding the agentic pipeline to more complex multi-step reasoning, broader knowledge sources, and more sophisticated evidence integration strategies.
Related papers
- MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement
MathForm's retrieval-augmented, verification-guided iterative refinement framework produces an 8B model that outperforms 32B baselines, achieving 72.37% average semantic consistency on autoformalization benchmarks.
- When Context Gets Root: Privilege Escalation in LLM Harnesses
Instruction privilege escalation, a novel attack exploiting agent-side context reconstruction, achieves all 13 attack objectives across six coding-agent harnesses, bypassing both instruction hierarchy and automatic permission review defenses.
- EVOMAL: Self-Poisoning in Self-Evolving Coding Agents
Self-evolving LLM coding agents are vulnerable to self-poisoning, where agents unknowingly author and propagate malicious skills, achieving attack success rates up to 86.7% and forming self-sustaining worms.