PUMA: Empowering Unified MLLM with Multi-granular Visual Generation

Rongyao Fang, Chengqi Duan, Kun Wang, Hao Li, Hao Tian, Xingyu Zeng, Rui Zhao, Jifeng Dai, Hongsheng Li, Xihui LiuSubmission to ICLR 2025 · Withdrawn

TL;DR

Existing multimodal large language models (MLLMs) struggle to balance creative diversity with precise controllability when generating images. PUMA resolves this by processing and generating visual features across multiple spatial resolutions (from 1 to 256 tokens) and using a lightweight router to dynamically select the right granularity for each task. With this unified coarse-to-fine approach, an 8B model achieves state-of-the-art multimodal understanding, highly diverse text-to-image generation, and fine-grained image editing and conditional synthesis.

What Problem Does This Paper Address?

Modern MLLMs are increasingly expected to handle both visual understanding (image-to-text) and generation (text-to-image, editing, inpainting). Many cutting-edge systems achieve this by generating continuous latent features autoregressively and feeding them as conditional inputs into a diffusion-based image decoder.

However, these frameworks face a fundamental diversity–controllability trade-off:

  • Coarse-grained conditioning (few visual tokens) focuses on high-level semantics, allowing the diffusion decoder's generative prior to produce diverse, creative variations.
  • Fine-grained conditioning (many visual tokens) locks down spatial layout and local textures, which is essential for editing and inpainting but destroys diversity in text-to-image generation.

Previous unified models typically commit to a single feature granularity, forcing a compromise between open-ended generation and precise visual manipulation.

Methods

PUMA introduces a multi-scale representation and decoding pipeline organized into four core components:

[Input Image] ──> CLIP-Large Encoder ──> f0 (256 tokens)
                                           │
                                2D AvgPool ├──> f1 (64 tokens)
                                           ├──> f2 (16 tokens)
                                           ├──> f3 (4 tokens)
                                           └──> f4 (1 token)
                                                    │
[Instruction] ──> Autoregressive MLLM (LLaMA-3 8B) ──> Predicts text + (f4 -> f0)
                        │
             Granularity Router (2-layer Q-Former)
                        │ (Picks optimal level fi)
                        ▼
             Specialized Diffusion Decoder (Di) ──> Final Image
  1. Multi-granular Feature Extraction: An input image is encoded via a frozen CLIP-Large encoder into a fine feature grid $f_0$ ($16 \times 16 = 256$ tokens). Progressive $2\times2$ average pooling with stride 2 produces coarser levels: $f_1$ (64), $f_2$ (16), $f_3$ (4), and $f_4$ (1 token). Total tokens per image = $341$ (only a 33% increase over standard 256-token representations).
  2. Progressive Autoregressive MLLM: Built on LLaMA-3 8B, the MLLM processes and generates interleaved sequences of text tokens and flattened visual tokens. Visual tokens are regressed progressively from the coarsest level ($f_4$) down to the finest ($f_0$).
  3. Dedicated Multi-Granular Decoders: Pretrained SDXL models are fine-tuned as dedicated decoders ($D_0, \dots, D_4$), each specialized to condition on its respective feature scale $f_i$ via cross-attention.
  4. Automatic Granularity Selection Router: A lightweight two-layer Q-Former inspects the prompt embeddings and multi-granular output features, outputting a classification score to pick the optimal granularity level ($g^*$). It is trained using perceptual loss ($L_p$) on generated outputs:
  5. Diversity tasks: Pick $g^*$ that maximizes perceptual difference across different random seeds.
  6. Precision tasks: Pick $g^*$ that minimizes perceptual distance to the ground truth.
  7. Staged Training:
  8. Stage 1: Fine-tune SDXL decoders on ground-truth multi-scale features.
  9. Stage 2: Pretrain and instruction-tune the MLLM using combined next-token prediction and regression loss.
  10. Stage 3: Train the router on a curated 10,000-sample dataset.

Datasets

  • Pretraining: LAION-2B, LAION-Aesthetics, GRIT, The Pile, OCR-VQA-200K, and LLaVAR.
  • Instruction Tuning:
  • Text-to-Image: LAION-Aesthetics, JourneyDB, and synthetic images from FLUX.1 [dev].
  • Image Editing: SEED-Edit.
  • Conditional Generation (Canny, Inpainting, Colorization): MultiGen-20M subset.
  • Understanding: Subsets of LLaVA-OneVision and Cambrian-1 (excluding math/reasoning data).
  • Evaluation Benchmarks:
  • Image Generation & Diversity: MSCOCO 30K, GenEval.
  • Image Editing: Emu-Edit benchmark.
  • Conditional Generation: MultiGen-20M dev/test sets.
  • Image Reconstruction: ImageNet validation set.
  • Multimodal Understanding: MMBench, MME, GQA, VQAv2, POPE, and VizWiz.

Key Insights and Ideas

  • Granularity directly dictates the diversity-control balance: Decoders conditioned on 1 or 4 tokens rely on diffusion priors to invent missing details (high diversity, low fidelity to input specifics). Decoders conditioned on 256 tokens lock in exact structures.
  • Task-dependent granularity emerges naturally: The router autonomously learns task profiles without manual prompt engineering. Text-to-image selects coarse features ($f_4$ and $f_3$) 98.81% of the time. Editing selects fine features ($f_0$) 98.97% of the time. Edge-conditional generation splits between $f_0$ (43.97%) and $f_1$ (54.10%).
  • Hierarchical tokens add minimal overhead: Representing an image across all 5 scales ($1+4+16+64+256 = 341$ tokens) adds only ~33% sequence length overhead compared to standard 256-token representations, making coarse-to-fine sequence generation computationally practical.

Key Results

  • Fine-Grained Reconstruction: Conditioned on $f_0$, PUMA achieves 18.16 PSNR and 0.221 LPIPS on ImageNet, outperforming Emu2 (15.72 PSNR / 0.253 LPIPS) despite using a 0.3B CLIP encoder compared to Emu2's 4B encoder.
  • Text-to-Image Quality & Diversity:
  • On GenEval, PUMA achieves an overall score of 0.61 (matching SD3 and Janus), while excelling in counting (0.60 vs. Janus's 0.30 and Emu3-Gen's 0.34) and two-object composition (0.73).
  • On MSCOCO 30K, PUMA records high prompt alignment (CLIP-T: 0.321) and high diversity (LPIPS$_d$: 0.603).
  • Image Editing: On the Emu-Edit benchmark, PUMA achieves a CLIP-T score of 0.262, outperforming specialized editing models like EMU-Edit (0.231) and OmniGen (0.233), while retaining strong source consistency (CLIP-I: 0.839).
  • Conditional Generation: Achieves an SSIM of 0.313 on Canny-to-image, outperforming T2I-Adapter (0.231) and matching ControlNet (0.312).
  • Multimodal Understanding: Outperforms or matches unified competitors of similar or larger scale (e.g., SEED-X 17B and Chameleon 34B) with scores of 67.1 on MMBench, 1472.7 on MME, and 60.1 on GQA.

Limitations and Future Work

  • Multiple Decoders Overhead: Maintaining separate dedicated diffusion decoders for multiple granularity levels introduces significant parameter footprint and deployment complexity compared to unified single-decoder approaches.
  • Low-Resolution Visual Conditioning: The vision backbone relies on a standard $224 \times 224$ CLIP input. Scaling to dynamic high-resolution patch inputs could further boost fine detail comprehension and generation.
  • Multi-step Decoupled Denoising: Generating images requires an autoregressive sequence generation pass followed by an external multi-step diffusion process, which is computationally heavier than purely end-to-end discrete token generation.

Summary updated

Abstract

Recent advancements in multimodal foundation models have yielded significant progress in vision-language understanding. Initial attempts have also explored the potential of multimodal large language models (MLLMs) for visual content generation. However, existing works have insufficiently addressed the varying granularity demands of different image generation tasks within a unified MLLM paradigm — from the diversity required in text-to-image generation to the precise controllability needed in image manipulation. In this work, we propose PUMA, emPowering Unified MLLM with Multi-grAnular visual generation. PUMA unifies multi-granular visual features as both inputs and outputs of MLLMs, elegantly addressing the different granularity requirements of various image generation tasks within a unified MLLM framework. Following multimodal pretraining and task-specific instruction tuning, PUMA demonstrates proficiency in a wide range of multimodal tasks, including image understanding, diverse text-to-image generation, editing, inpainting, colorization, and conditional generation. This work represents a significant step towards a truly unified MLLM capable of adapting to the granularity demands of various visual tasks.
BibTeX
@misc{fang2024puma,
  author = {Rongyao Fang and Chengqi Duan and Kun Wang and Hao Li and Hao Tian and Xingyu Zeng and Rui Zhao and Jifeng Dai and Hongsheng Li and Xihui Liu},
  title = {{PUMA: Empowering Unified MLLM with Multi-granular Visual Generation}},
  year = {2024},
  eprint = {2410.13861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13861},
}
Figure