We study the problem of training image diffusion models while preserving pixel-exact reconstruction. Prior works typically address this problem by directly modeling images in pixel space, requiring modifications to the diffusion training objective or model architecture. In this work, we introduce a different paradigm: rather than modifying diffusion models, we construct a lossless transformation that maps pixels into a representation more amenable to diffusion modeling. We term our approach the Lossless Latent Diffusion Model (LLDM). We construct LLDM using residual latent transformation and uneven latent scaling, and explain its effectiveness through a proposed metric, semantic rank priority (SRP). Empirically, LLDM substantially outperforms prior pixel-space diffusion models in generation quality and even surpasses several widely used lossy VAEs. Furthermore, we show that SRP is strongly correlated with downstream generative performance.
Figures & tables
Figure 2: Reconstruction comparison across different VAEs. Both pixel-space diffusion models and our LLDM achieve pixel-exact reconstruction with infinite PSNR.
Figure 3: Correlation of ImageNet classification accuracy (Acc@1, Acc@5) and our semantic rank priority (SRP@1, SRP@5) with SiT-XL gFID without CFG. SRP exhibits stronger correlations with gFID across PCC, SRCC, and KRCC. @1, @5 denotes top 1, top 5 accuracy.
Flow Model
PSNR ↑
gFID ↓
-
∞
104.29
NICE Flow
∞
181.92
RealNVP Flow
NaN
NaN
NICE Flow + VF loss
56
103.77
Table 1: Ablation study of the learned normalizing flow hθ(⋅) . Introducing a normalizing flow does not improve generation quality.
Latent Space
Acc@1
SRP@1 (k=100, Ours)
gFID ↓
Pixel x
0.013
0.018
104.29
Res. [z,r]
0.066
0.062
52.31
Res. + Scale [z,rˉ]
0.064
0.167
11.66
FLUX2 z
0.190
0.182
10.18
Table 2: Relationship between classification accuracy and gFID. Linear classification accuracy fails to capture the effects of uneven latent scaling, whereas our semantic rank priority (SRP) metric correlates strongly with generation quality. @1 denotes top 1 accuracy.
Method
Transform
Residual Processing
PSNR ↑
gFID w/o CFG ↓
FLUX2
z^=z
-
34.33
10.18
FLUX2 + Padding
z^=[z,0]
-
34.33
11.71
Pixel
z^=PixelUnshuffle(x)
-
∞
104.29
FLUX2 + Residual
z^=[z,r]
-
∞
52.31
FLUX2 + Residual
z^=[z,rˉ]
-
∞
48.37
FLUX2 + Residual
z^=[z,rˉ]
Dropout (UAE)
∞
23.33
Table 3: Ablation study of LLDM components. Both residual decomposition and uneven latent scaling improve generation quality. Gray indicates lossy reconstruction (PSNR =∞ ).
Scale γ
PSNR
Base VAE (Base PSNR)
gFID
Base VAE (Base PSNR)
gFID
Base VAE (Base PSNR)
gFID
1.0
∞
RAE (18.82)
38.52
VTP-L (26.85)
200.01
FLUX2 (34.33)
52.31
0.1
67.70
12.91
19.89
0.01
177.38
15.17
11.66
0.001
204.33
166.71
11.79
Table 4: Ablation study of the scaling parameter γ . The optimal γ varies across base lossy VAEs with different reconstruction quality (PSNR). Bold : Best result.
Base VAE
base PSNR
base gFID
PSNR ↑
gFID ↓
RAE
18.82
4.25
∞
38.52
VTP-L
26.85
5.87
∞
12.91
FLUX2
34.33
10.18
∞
11.66
Table 5: Ablation study of the base lossy VAE. Despite achieving better generation quality, some lossy VAEs have lower reconstruction fidelity (PSNR), which can degrade the final generation performance of LLDM.
Method
PSNR ↑
SiT/XL w/o CFG
SiT/XL w/ CFG
gFID ↓
IS ↑
Pre. ↑
Rec. ↑
gFID ↓
IS ↑
Pre. ↑
Rec. ↑
SD-VAE
25.91
26.02
53.90
0.60
0.62
6.31
178.64
0.84
0.43
SD3-VAE
29.57
26.56
50.39
0.59
0.62
7.32
189.94
0.87
0.36
FLUX1
31.09
33.50
41.57
0.54
0.63
8.45
160.82
0.84
0.38
QW-VAE
30.27
23.43
55.86
0.61
0.61
7.27
180.18
0.85
0.41
EQ-VAE
24.92
20.79
63.14
0.65
0.60
6.34
201.39
0.88
0.39
Table 6: Comparison of PSNR and class-to-image generation performance. LLDM achieves generation quality comparable to lossy VAEs while substantially outperforming other lossless methods (PSNR =∞ ). Gray : Lossy reconstruction (PSNR =∞ ). Bold : Best among lossless methods.
Table 9
Figure 4: Comparison of generated samples across VAEs. LLDM achieves generation quality comparable to lossy LDMs while substantially outperforming pixel-space diffusion models.
Latent diffusion models rely on a decoder to map denoised latents to pixels, adding complexity and inference cost. We introduce Decoding Without a Decoder (DWD), which lets a finetuned diffusion transformer produce final pixels directly through a linear head. Unlike previous methods, where the denoising output leads to final pixels, DWD separates the two roles: the original denoising head continues to drive sampling, then the new DWD head predicts the pixels at the final step. We extend pretrained latent models with DWD efficiently by finetuning only the last few transformer blocks, training the DWD head with pixel quality losses while anchoring the denoising head to the pretrained model to preserve the sample trajectory. Across latent image and video generators, DWD removes the decoder while maintaining or even improving pixel quality. On Wan video generation, it visibly reduces detail distortion and flickering, lowering warping error by 23%. Remarkably, the same separation also improves pixel diffusion models that do not even use a decoder: a final-step DWD head produces substantially better texture detail in text-to-image generation, and improves ImageNet FID from 1.55 to 1.43, a new state of the art among pixel flow models.
Hansheng Chen, Shengqu Cai, Jan Ackermann +4
Stanford University · Luma AI · California Institute of Technology
Pixel diffusion models have recently regained attention for visual generation. However, training advanced pixel-space models from scratch demands prohibitive computational and data resources. To address this, we propose the Latent-to-Pixel (L2P) transfer paradigm, an efficient framework that directly harnesses the rich knowledge of pre-trained LDMs to build powerful pixel-space models. Specifically, L2P discards the VAE in favor of large-patch tokenization and freezes the source LDM's intermediate layers, exclusively training shallow layers to learn the latent-to-pixel transformation. By utilizing LDM-generated synthetic images as the sole training corpus, L2P fits an already smooth data manifold, enabling rapid convergence with zero real-data collection. This strategy allows L2P to seamlessly migrate massive latent priors to the pixel space using only 8 GPUs. Furthermore, eliminating the VAE memory bottleneck unlocks native 4K ultra-high resolution generation. Extensive experiments across mainstream LDM architectures show that L2P incurs negligible training overhead, yet performs on par with the source LDM on DPG-Bench and reaches 93% performance on GenEval.
Zhennan Chen, Junwei Zhu, Xu Chen +7
Nanjing University · Tencent Youtu Lab · Hainan-biuh +1
We present Scalable Pixel-anchored End-to-end Diffusion (SpeeDiff), a latent diffusion method that jointly trains the VAE and the diffusion model from scratch. In principle, joint training allows the diffusion loss gradient to directly guide the VAE encoder, encouraging the formation of a generation-friendly latent space and potentially yielding faster convergence than the conventional two-stage approach with a pretrained frozen VAE. However, a naive end-to-end implementation severely degrades performance, as unrestricted backpropagation of the diffusion loss leads to latent space collapse. Our main technical contribution is a simple yet effective Tweedie Pixel Reconstruction (TPR) loss, which provides additional pixel-level feedback by decoding a predicted clean latent from an intermediate noisy state using Tweedie's formula, thereby alleviating collapse. Furthermore, our method enables jointly scaling a fully transformer-based architecture and enhances representation alignment within the end-to-end framework. Our SpeeDiff-XL model achieves over 140x and 61x faster training compared to Vanilla SiT and REPA, respectively, while attaining an FID of 1.50 without guidance on ImageNet 256x256 generation. With a more efficient 32x compressed VAE, our model further reaches an FID of 1.53 without guidance on ImageNet 512x512 generation.
Bingliang Zhang, Wenda Chu, Yizhuo Li +5
ByteDance Seed · California Institute of Technology · Meta