Transfer between Modalities with MetaQueries

Xichen Pan, Satya Narayan Shukla, Aashu Singh, Zhuokai Zhao, Shlok Kumar Mishra, Jialiang Wang, Zhiyang Xu, Jiuhai Chen, Kunpeng Li, Felix Juefei-Xu, Ji Hou, Saining Xie · DOI

Introduction

The AI community has long sought "unified" models capable of both deep understanding (textual output) and rich generation (pixel output). However, building these systems usually involves a "monolithic" approach: training a single, massive transformer to handle both modalities. This presents major challenges, including complex training recipes, capability trade-offs where generation degrades understanding, and high computational costs that risk "forgetting" pre-trained world knowledge.

This paper introduces MetaQueries, a modular interface designed to bridge frozen Multimodal Large Language Models (MLLMs) with diffusion decoders. The authors propose a simpler philosophy: "Render unto diffusion what is generative, and unto LLMs what is understanding."

The MetaQuery Architecture

The core innovation is the MetaQuery, a set of $N$ learnable tokens (e.g., $N=256$) that act as an interface between two specialized models. The system keeps a pre-trained MLLM (like LLaVA-OneVision or Qwen2.5-VL) completely frozen, preserving its state-of-the-art reasoning capabilities.

The MetaQueries framework separates understanding and generation, using a frozen MLLM backbone and a trainable connector to interface with diffusion blocks.

As illustrated in the architecture, MetaQueries are fed into the frozen backbone to "query out" latent multimodal conditions. These conditions are then passed through a trainable Connector (a 24-layer transformer) which aligns them with the input space of a diffusion decoder (like Sana or Stable Diffusion). Through ablation studies, the authors found an "Enc-Proj" design—using a transformer encoder to align conditions in the MLLM's high-dimensional space before projecting them—to be the most effective and parameter-efficient.

Scaling and Knowledge Transfer

A key insight of this work is the power of scaling tokens. The paper demonstrates a clear scaling law: as the number of MetaQuery tokens increases, both prompt alignment and image reconstruction quality consistently improve.

Scaling the number of MetaQuery tokens leads to significant improvements in FID score (lower is better) and alignment metrics like GenEval and DPG (higher is better).

Because the MetaQueries interact with the LLM's deep layers, they can "tap into" complex reasoning. For example, the model can generate an image of the U.S. flag when prompted with "the national flag of the country where Yellowstone National Park is located"—a task requiring internal world knowledge before pixel generation. This knowledge transfer allows the generative component to benefit from the LLM's extensive pre-training without needing to re-learn those concepts in the pixel domain.

Instruction Tuning and Datasets

To enable advanced tasks like image editing and subject-driven generation, the authors developed an automated pipeline. They used an MLLM to analyze naturally occurring image pairs from the web (curating a 2.4M image-pair dataset), generating "thinking" steps and instructions that describe how one image transforms into another. This provides natural supervision for visual associations without requiring human-annotated datasets.

Key Results

MetaQueries achieve state-of-the-art performance while maintaining the integrity of the base model:

  • SOTA Generation: MetaQuery-XL achieved a COCO FID of 8.69, setting a new record for Stable Diffusion v1.5-based unified models.
  • Superior Reasoning: On the WISE benchmark, MetaQuery significantly outperformed other unified models (e.g., Janus-Pro, Emu3), proving it effectively transfers LLM reasoning to the image domain.
  • Zero-Shot Subject Generation: The instruction-tuned version achieved a 0.737 DINO score on DreamBench, outperforming models specifically fine-tuned for subject-driven tasks.
  • Efficiency: The method matches the performance of full MLLM tuning while being significantly easier to train and maintaining 100% of the original model's understanding scores.

Conclusion and Future Work

MetaQueries demonstrate that modularity is a viable and efficient path toward unified multimodal AI. By treating the MLLM as a frozen feature extractor, the system avoids the pitfalls of monolithic training. Future work could explore extending the MetaQuery interface to other modalities like video, audio, or 3D, and integrating more advanced, larger-scale generative backbones to overcome current diffusion bottlenecks.

Summary updated

BibTeX
@misc{pan2025transfer,
  author = {Xichen Pan and Satya Narayan Shukla and Aashu Singh and Zhuokai Zhao and Shlok Kumar Mishra and Jialiang Wang and Zhiyang Xu and Jiuhai Chen and Kunpeng Li and Felix Juefei-Xu and Ji Hou and Saining Xie},
  title = {{Transfer between Modalities with MetaQueries}},
  year = {2025},
  eprint = {2504.06256},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.06256},
}
Figure