HieraQuery: Bridging Multimodal Understanding and High-Quality Generation through Multi-Scale Query Learning

DanDan Zheng, Weilong Chai, libin wang, Rui Liu, Ziyuan Huang, Xinyu Xiao, Jianxin Sun, Biao Gong, Hu Yu, Qingpei Guo, Jingdong Chen, Ming Yang, Jun Zhou, Xianjun DengOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

HieraQuery introduces a hierarchical approach to image generation within unified Multimodal Large Language Models (MLLMs). By replacing a single set of visual queries with a multi-scale "coarse-to-fine" learning strategy, the model achieves state-of-the-art image generation quality and precise editing capabilities without sacrificing its ability to understand visual inputs.

What Problem Does This Paper Address?

We are currently in the era of "omni-models" like GPT-4o, which aim to handle both visual understanding (answering questions about an image) and generation (creating an image from text) within a single framework. However, a persistent gap remains: unified models usually produce lower-quality images compared to specialized, dedicated generation models.

The core challenge lies in how these models interface with image decoders. Most current unified models use a single set of learnable "query tokens" to represent an entire image in one go. The authors argue that this is a bottleneck; it is incredibly difficult for a single set of tokens to capture everything from global composition to microscopic textures in a single inference step. This often leads to "error accumulation" and a plateau in visual quality, where simply adding more tokens doesn't result in better images.

Methods

The authors propose HieraQuery, which breaks the generation process down into a hierarchy. The two primary innovations are:

  1. Multi-Scale Query Learning: Instead of one big block of tokens, HieraQuery uses several sets of learnable queries ($Q_{s1}, Q_{s2}, \dots, Q_{sK}$) corresponding to different resolutions (e.g., $4 \times 4$, $8 \times 8$, and $16 \times 16$). The LLM processes these sequentially. The first set of tokens focuses on the "big picture"—global layout and color distribution—while subsequent sets refine the fine-grained details and textures.
  2. Multi-Scale Representation Alignment: To ensure that the "coarse" version of an image actually matches the "fine" version, the authors introduce an alignment strategy. They align the intermediate hidden states of the Diffusion Transformer (DiT) with the latent space of the model’s visual encoder. This enforces cross-scale consistency and helps the model converge faster during training.

The architecture uses a Ming-Lite-Omni backbone (an MoE-based MLLM) connected to a Diffusion Transformer (either SD3-Medium or SANA-1.6B) via a Qwen2.5-0.5B connector.

Datasets

The model was trained and evaluated on a massive collection of data:

  • Pre-training: A mix of LAION-5B, Wukong (4M), Midjourney (5M), and Blip3o (3M) for a total of roughly 14 million image-text pairs.
  • Image Editing: Over 5 million samples from datasets like InstructPix2Pix, MagicBrush, Ultra-edit, and HQ-edit.
  • Style Transfer: WikiArt and StyleBooth (approx. 160k samples).
  • Benchmarks: Evaluation was performed using GenEval and DPG-Bench (for prompt following), MJHQ-30K (for aesthetic quality/FID), and GEdit-Bench-EN (for editing precision).

Key Insights and Ideas

  • Breaking the Token Plateau: In single-scale models, increasing the number of tokens eventually stops helping. HieraQuery proves that by organizing tokens hierarchically, you can effectively scale up the number of tokens to achieve significantly higher detail.
  • Coarse-to-Fine is Natural: This approach mimics "Chain-of-Sight" reasoning. By letting the model decide the layout before worrying about the texture of a bird's feathers, the optimization problem becomes much more manageable for the LLM.
  • Consistency via Alignment: The representation alignment is the "glue" that holds the scales together. Without it, the model might generate a global structure that the fine-grained queries can't realistically fill in, leading to visual artifacts.

Key Results

HieraQuery sets a new high bar for unified multimodal models:

  • State-of-the-Art Generation: It achieved a 0.87 overall accuracy on GenEval, outperforming other unified models like Janus-Pro (0.73) and MetaQuery-XL (0.80).
  • Superior Aesthetics: On the MJHQ-FID metric (where lower is better), HieraQuery scored 4.85, a massive improvement over Janus-Pro’s 14.33 and even beating specialized models like SDXL (6.63).
  • Precision Editing: In the GEdit-Bench evaluation, HieraQuery outperformed existing open-source models in both semantic consistency and perceptual quality, showing a particular knack for maintaining character identity during edits.

Limitations and Future Work

While HieraQuery shows impressive results, the authors note a few hurdles:

  • Data Quality: The model's editing performance is still tethered to the quality of open-source editing datasets, which can be inconsistent.
  • Human Figures: While it performs well, maintaining perfect "ID consistency" (keeping a person looking like the same person) across complex edits remains a challenging frontier.
  • Future Directions: The team suggests that further scaling the number of scales and improving data filtering criteria are the most promising paths for reaching "dedicated model" quality in a unified framework.

Summary updated

BibTeX
@misc{zheng2026hieraquery,
  author = {DanDan Zheng and Weilong Chai and libin wang and Rui Liu and Ziyuan Huang and Xinyu Xiao and Jianxin Sun and Biao Gong and Hu Yu and Qingpei Guo and Jingdong Chen and Ming Yang and JUN ZHOU and Xianjun Deng},
  title = {{HieraQuery: Bridging Multimodal Understanding and High-Quality Generation through Multi-Scale Query Learning}},
  year = {2026},
  url = {https://openreview.net/forum?id=pObX7pIjF1},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure