High-resolution synthesis with Latent Diffusion Models (LDMs) faces a fundamental trade-off between computational cost and generative fidelity. This trade off is largely governed by the latent compression factor f (e.g. f8 denotes f=8 and f32 f=32). While aggressive compression (f32) significantly improves efficiency, it suffers from severe information loss and ambiguity compared to standard f8 models. We propose UltraDiff, a framework that reformulates this challenge as joint latent diffusion learning followed by marginal score distillation. We introduce MixTeacher, a dual branch DiT that models the joint f8-f32 distribution, utilizing shared attention to resolve the ambiguity of the compressed space with high fidelity f8 priors. Crucially, we propose vector field distillation in the native f32 space. Theoretically, this compels the student to learn the conditional expectation of the teacher trajectory, effectively filtering out compression artifacts. Across the evaluated 1K to 4K settings, UltraDiff approaches f8 level quality while preserving f32 efficiency. With 20 sampling steps on a single A100 GPU, it generates a 2K image in 6.2 seconds over 40 times faster than our f8 baseline.
Figures & tables
Figure 1: Our UltraDiff generates high-quality images across a variety of scenes, showcasing rich details and diverse content. Please zoom in to view the details. Additional images are provided in the supplementary materials.
Figure 2: Effectiveness of Cross-Space Knowledge Transfer. GenEval scores during training. UltraDiff bridges the gap to the f8 teacher.
Figure 3: Overview of UltraDiff. (Left) The MixTeacher models the joint distribution of f8 and f32 latents via a dual-branch DiT with shared attention. It acts as an omniscient supervisor that sees both high-fidelity (f8) and high-efficiency (f32) views of the data. (Right) The Student is a standard f32 DiT trained via Marginal Score Distillation . It learns to approximate the teacher’s optimal denoising direction projected onto the f32 subspace with a flow-matching objective.
Method
CLIP ↑
IR ↑
GenEval ↑
Token
f32 from scratch
27.21
0.70
0.54
32H×32W
f32 after f8 initialization
28.91
0.91
0.61
32H×32W
UltraDiff f32 student
29.27
0.98
0.72
32H×32W
f8 anchor
29.25
1.08
0.73
8H×8W
Table 1: Controlled comparison under the same framework. All f32 variants use the same f32 VAE and DiT backbone. Initialization alone transfers part of the f8 prior, whereas marginal score distillation recovers most of the left gap.
Stage
Steps
Compute
Output
f32 transfer
120K
66.7 GPU-days
f32 initialization
MixTeacher training
5K
29.6 GPU-days
Joint f8–f32 teacher
Student distillation and scaling
50K + 10K
366.7 GPU-days
Standalone f32 student
UltraDiff adaptation total
185K
463.0 GPU-days
Final UltraDiff model
Table 2: Stage-wise training resources. Compute is aggregated over 64 NVIDIA A100 GPUs.
Figure 6
Figure 5: Visual comparison of (a) the f8 base model, (b) f32 model distilled from an f8 teacher ( Ren et al., 2025a ) , (c) f32 model distilled from DINOv2 features via REPA ( Yu et al., 2024 ) , and (d) f32 model distilled from our MixTeacher.
Model
DPG ↑
GenEval ↑
HPSv3 ↑
FID ↓
Aesthetic ↑
CLIP ↑
No distillation + high-res
74.02
0.602
7.68
149.59
6.16
29.31
UltraDiff
85.40
0.680
9.39
146.60
6.34
30.14
Table 6: Controlled attribution of the high-resolution gains. Both models use the same f8-initialized f32 backbone and the same mixed-resolution scaling stage. DPG, GenEval, and HPSv3 are evaluated at 1K; FID, aesthetic score, and CLIP similarity are evaluated at 4K.
Figure 6: High-resolution image synthesis comparison at 2K and 4K. UltraDiff produces sharper details, cleaner textures, and stronger text–image alignment than competing high-resolution models.
Resolution
Method
Params(B)
Latent( C×H×W )
Latency(s) / Step
FID ↓
pFID ↓
Aesthetic ↑
CLIP ↑
20482
Ultrapixel ( Ren et al., 2024 )
5.1
16×32H×32W
12 / 20
46.60
43.03
6.24
30.21
Diffusion-4k ( Zhang et al., 2025 )
12
16×42H×42W
23 / 50
37.79
42.43
6.28
29.21
Sana-2K ( Xie et al., 2024 )
1.6
32×32H×32W
5.8 / 20
45.99
42.99
6.18
30.13
Hunyuan-2.1 ( Team, 2025 )
17
64×32H×32W
82 / 50
43.45
48.72
6.44
30.17
Ours
2.0
64×32H×32W
6.2 / 20
39.52
42.17
6.40
30.53
40962
Ultrapixel ( Ren et al., 2024 )
5.1
16×42H×42W
73 / 20
155.17
57.14
5.91
27.39
Table 7: Comparison with other T2I models on higher resolution of 2048×2048 and 4096×4096 .
Method
Token
Params(B)
DPG ↑
GenEval ↑
HPSv3 ↑
SDXL ( Podell et al., 2023 )
8H×8W
2.6
74.6
0.55
7.87
PlayGroundv2.5 ( Li et al., 2024 )
8H×8W
2.6
75.5
0.56
9.90
PixArt Σ ( Chen et al., 2024 )
16H×16W
0.6
80.5
0.54
9.20
SD3-medium ( Esser et al., 2024 )
16H×16W
2.0
84.1
0.62
9.08
FLUX-dev ( Black Forest Labs, 2024 )
16H×16W
12
83.8
0.67
10.15
FLUX-schnell ( Black Forest Labs, 2024 )
16H×16W
12
84.8
0.71
9.37
Table 8: Comparison with other T2I models on 10242 .
Resolution
f8 anchor
UltraDiff
Speedup
10242
27.3s
3.2s
8.5×
20482
249.8s
6.2s
40.3×
40962
OOM
28.3s
–
Table 9: Controlled inference efficiency. Time per image with 20 sampling steps on one NVIDIA A100 GPU.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Value
Model Depth ( N )
28 layers
Hidden Dimension ( D )
2048
Attention Heads
16
KV Heads
16
Head Dimension
2048/16=128
FFN Multiplier
1.3 (SwiGLU variant)
Appendix
Table 10: UltraDiff DiT Architecture Specifications. The model follows a standard Transformer backbone with Rotary Positional Embeddings (RoPE) and QK-Norm.
VAE
Scale
Channels
PSNR ↑
SSIM ↑
LPIPS ↓
rFID ↓
PatchFID ↓
Ours (f8)
f8
16
30.9588
0.8719
0.0343
2.1645
3.7048
Ours (f32)
f32
64
26.6258
0.7416
0.0681
6.7395
3.2330
SANA 1.5 DC-AE [ Xie et al., 2024 ]
f32
32
25.3647
0.6888
0.0930
7.8557
4.2969
FLUX.2 autoencoder [ Black Forest Labs, 2025 ]
f8
32
33.8557
0.9242
0.0144
1.1360
0.9926
HunyuanImage-2.1 VAE [ Team, 2025 ]
f32
64
29.4606
0.8217
0.1111
9.7390
10.1938
Stable Diffusion 3.5 VAE [ Esser et al., 2024 ]
f8
16
30.6493
0.8609
0.0298
2.4047
1.3692
Appendix
Table 11: VAE reconstruction quality. Scale and channels describe the native VAE latent output. All models are evaluated under the same reconstruction protocol.
Configuration
f8 VAE (Teacher Anchor)
f32 VAE (Target)
Type
2D KL-VAE
2D KL-VAE
Latent Space
Continuous (Gaussian)
Continuous (Gaussian)
Downsampling Factor
8×
32×
Latent Channels ( C )
16
64
Encoder
Channel Base
128
128
Appendix
Table 12: Detailed Hyperparameters for f8 and f32 VAEs. Both models utilize 2D KL-regularized architectures with continuous latent spaces. The f32 model features a deeper network and larger latent channels to handle the 32× compression rate.
Parameter
Value
Optimizer
AdamW
Adam β1,β2
0.9, 0.95
Learning Rate (LR)
1×10−4
Weight Decay
0.01
LR Schedule
Linear Warmup + Cosine Decay
Warmup Steps
500
Appendix
Table 13: Training hyperparameters. Common optimizer settings and stage-specific training lengths used in the UltraDiff pipeline.
Ultra-high-resolution text-to-image generation is increasingly vital for applications requiring fine-grained textures and global structural fidelity, yet state-of-the-art text-to-image diffusion models such as FLUX and SD3 remain confined to sub 2MP (< 1K×2K) resolutions due to the quadratic complexity of attention mechanisms and the scarcity of high-quality high-resolution training data. We present UltraImageGen, a novel framework that introduces hierarchical local attention with low-resolution global guidance, enabling efficient, scalable, and semantically coherent image synthesis at ultra-high resolutions. Specifically, high-resolution latents are divided into hardware aligned fixed-size local windows to reduce attention complexity from quadratic to near-linear, while a low-resolution latent equipped with scaled positional embeddings injects global semantics as an anchor. A lightweight LoRA adaptation bridges global and local pathways during denoising, ensuring consistency across structure and detail. To maximize inference efficiency and achieve scalable ultra-high-resolution generation, we repermute token sequence in window-first order, so that the GPU-friendly dense local blocks in attention calculation equals to the fixed-size local window in 2D regardless of resolution. Together ourwork reliably scales the pretrained model to resolutions higher than 8K with more than 10× speed up and significantly lower memory usage. Extensive experiments demonstrate that ourwork achieves superior quality while maintaining computational efficiency, establishing a practical paradigm for advancing ultra-high-resolution image generation.
Modern ultra-high-resolution image synthesis relies heavily on the robust generative capacity of large-scale pre-trained Latent Diffusion Models (LDMs). While recent representation alignment methods have proven effective by distilling visual priors from foundation models (e.g., SAM or DINO) into generative latent features, scaling these approaches to pre-trained LDMs at extreme resolutions exposes a critical learnability-fidelity conflict. Specifically, forcing direct patch-wise feature distillation inherently perturbs the pre-trained latent manifold, ultimately leading to generation degradation. To address this bottleneck, we propose Spatial Gram Alignment (SGA), a novel framework that explicitly leverages the representation priors of vision foundation models while preserving the native generative capacity of LDMs. Moving beyond restrictive direct alignment, SGA imposes a non-invasive spatial constraint by aligning the internal self-similarities of the generative features with those of the foundation priors. This spatial constraint effectively establishes macroscopic structural coherence, while the native generative objectives retain the microscopic pixel-level fidelity inherent to the original LDMs. Notably, this versatile strategy integrates seamlessly across both intermediate diffusion features and VAE latents within pre-trained LDMs. Extensive experiments demonstrate that SGA achieves state-of-the-art performance for ultra-high-resolution text-to-image synthesis, yielding an effective reconciliation between global structural integrity and fine-grained visual details. Code is available at https://github.com/zhang0jhon/SGA.
We present Unified Latents (UL), a framework for learning latent representations that are jointly regularized by a diffusion prior and decoded by a diffusion model. By linking the encoder's output noise to the prior's minimum noise level, we obtain a simple training objective that provides a tight upper bound on the latent bitrate. On ImageNet-512, our approach achieves competitive FID of 1.4, with high reconstruction quality (PSNR) while requiring fewer training FLOPs than models trained on Stable Diffusion latents. On Kinetics-600, we set a new state-of-the-art FVD of 1.3.