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.