Manuscript Offprint

arXiv:2611.22962

Hierarchical Diffusion Transformer for End-to-End Image Generation

Xiaoyu Wu, Yifei Wang, Weihang Guo, Chen Wei, Lydia E Kavraki, Niloofar Mireshghallah, Steven Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Pixel-space diffusion learns visual representations and image generation jointly in a single end-to-end training stage, without a separately pretrained visual encoder. However, plain pixel-space Transformers still trail leading two-stage latent diffusion models in generation quality and training efficiency. We hypothesize that part of this gap arises from retaining one token per patch throughout the backbone, which does not explicitly encourage a visual hierarchy that summarizes related content at progressively coarser levels. To address this, we introduce Hierarchical Diffusion Transformers (HiT), which progressively group related tokens and represent each group with a single token. The main Transformer bottleneck processes these compact group tokens, and ungrouping restores features to their original image positions. A compression budget regulates the average compression ratio across the batch, allowing group memberships and counts to vary across images and diffusion timesteps during both training and generation. The model exhibits emergent semantic structure, learning to group coherent objects and object parts without segmentation labels. In text-to-image generation, HiT further learns to group caption words with image patches depicting the same concepts, without region annotations. HiT achieves 1.48 FID on ImageNet 256×256256\times 256 and reaches comparable generation quality to JiT using approximately 40% of its cumulative training FLOPs. For text-to-image generation, HiT exceeds UniLiP’s average score across five benchmarks with roughly 6×6\times fewer denoiser parameters and 3×3\times fewer forward FLOPs. These results suggest that learning a visual hierarchy within the generator breaks down the barrier to stronger image generation without external visual pretraining.

1 Introduction

Latent diffusion models exploit a hierarchy between pixels and compact visual representations [31, 30, 47, 44]. A separately trained encoder organizes image information into a feature space, where a diffusion model subsequently learns its distribution. This hierarchy reduces the burden of direct pixel modeling and supplies an organizational prior. Despite their benefits for generation quality and convergence, latent diffusion models inherit visual organization shaped by encoder architectures and pretraining objectives outside generative training. Their hierarchical modeling therefore depends on a separate visual representation learning stage.

Pixel-space diffusion removes this separate stage by learning to generate images directly through end-to-end training [17, 18, 8, 45, 24]. This simplifies the training pipeline, yet matching leading latent-space models in generation quality and convergence speed remains challenging. We hypothesize that part of this gap concerns how visual information is organized. During encoder pretraining, latent-space models learn a visual hierarchy that progressively aggregates fine-grained image information into compact, higher-level representations. Pixel-space generators must instead develop such organization within generative training itself. This raises the central question of this paper: Can a pixel-space model learn a useful visual hierarchy within generative training, while retaining an end-to-end visual pipeline?

Figure

Figure 1: HiT learns image–text associations without region annotations and converges faster. (a) On a clean input (t=1t=1), HiT groups patches with similar representations. (b) The corresponding group map. Spatially disconnected patches from both bananas share the yellow group. Darker blue caption words indicate stronger soft routing connections from the banana patch outlined in green. (c) For the selected word “boy”, the image heatmap shows its group’s soft pooling weights, emphasizing the boy’s face and upper body. (d) FID-50k on a log scale for HiT-XL/16 and JiT-H/16 on ImageNet-256, using guidance scales 2.62.6 and 2.42.4, respectively, plotted against optimizer updates (top) and estimated cumulative training compute (bottom). At FID ≈2.16\approx 2.16, HiT uses 2.4×2.4\times less training compute and 2.3×2.3\times fewer updates.

Learning such a hierarchy requires deciding which information can share a representation and where finer distinctions are needed. By contrast, a regular patch grid fixes this allocation spatially, assigning the same number of tokens to equally sized regions despite differences in their perceptually relevant content [12]. This suggests learning the allocation itself rather than prescribing it through a fixed spatial partition. This motivates a learnable computational bottleneck that jointly determines how image information is organized and how many units are used to represent it.

To this end, we introduce Hierarchical Diffusion Transformers (HiT), a new architecture that learns a visual hierarchy within a single end-to-end pixel-space generator inspired by H-Net [20, 4]. Our central idea is to group image patch features at successive stages and process the resulting group tokens in deeper Transformer bottlenecks. To realize this design, we use a learned router to group these features and soft aggregation to form compact tokens, so deeper Transformer stages operate on progressively shorter sequences. We then use ungrouping to return processed group features to finer positions and refine them with the remaining Transformer blocks. We use an aggregate compression budget to regulate the average token reduction across a batch, allowing the model to allocate different numbers of groups according to each image’s content and diffusion timestep.

This architecture leads to several striking emergent behaviors. Without segmentation data, the model learns to consolidate large background regions into a few units and to group coherent objects and object parts. It also groups semantically related but spatially disconnected regions. For the same image, the model learns to reorganize group memberships and adjust group counts across diffusion timesteps as the noisy input evolves.

We further extend HiT to text-to-image generation [38] and observe additional emergent behavior. We let image and text features enter a shared grouping hierarchy, allowing compact representations to combine information across modalities. As shown in Fig. 1, HiT learns semantic associations in both directions. A selected banana patch assigns high soft routing weight to the caption word “banana”. Conversely, the group containing “boy” pools features from the boy’s face and upper body. These associations emerge even without explicit word–region annotations.

Alongside these emergent behaviors, HiT achieves substantial gains in generation quality and training efficiency. On ImageNet 256×256256\times 256, HiT reaches generation quality comparable to JiT [24] with approximately half as many optimizer updates and 40% of the cumulative training FLOPs. After 600 epochs, HiT achieves 1.48 FID, even surpassing pixel-space models that use external visual supervision. On text-to-image benchmarks, HiT substantially outperforms the similarly sized MiniT2I-B/16 baseline [38] and surpasses UniLiP-3B’s average score [35] with roughly 6×6\times fewer denoiser parameters and 3×3\times fewer forward FLOPs. These results show that the barrier to stronger image generation is never the lack of external alignment, but the lack of a correct architecture that learns a visual hierarchy by itself.

References (38)