Anchoring VAE Fine-Tuning to Its Latent Diffusion Prior
Organizations: ETH Zurich · MPI Informatics · TU Darmstadt
Abstract
Pretrained latent diffusion models are effective priors for transfer learning, from geometry estimation to physics simulation. Existing approaches fine-tune the diffusion backbone but freeze the encoder of the VAE to preserve the latent distribution. However, a frozen encoder may miss salient details in non-RGB inputs and is limited to three channels. We introduce Diffusion Prior Anchoring (DPA), a regularizer applied during VAE fine-tuning that uses a score-distillation update to steer latents toward the high-density manifold on which the pretrained diffusion model denoises accurately. We validate DPA across three image and video models (FLUX 3, LTX-Video, Wan2.2) and four tasks: monocular depth estimation, MRI reconstruction, wind-flow simulation, and surface normal estimation, where DPA lowers the prediction error by 7.5% relative to the frozen VAE, 4.9% to decoder-only fine-tuning, and 4.0% to unanchored VAE fine-tuning. Its gain grows the further the target data lies from the RGB training distribution, from 3.3% on monocular depth estimation to 7.2% on complex-valued MRI. DPA also applies to modified VAEs, including pruned and multi-channel variants. With a four-channel VAE that encodes depth and surface normals, it lowers depth estimation error by 9.3%.
Figures & tables
| VAE adaptation | Rec. | iBims-1 | NYUv2 | ScanNet | Mean |
|---|---|---|---|---|---|
| Frozen | 3.54 | 15.93 | 17.53 | 15.12 | 16.19 |
| Decoder-only | 2.16 | 15.41 | 16.95 | 14.90 | 15.75 |
| Control | 1.54 | 15.33 | 16.87 | 14.64 | 15.61 |
| DPA | 2.89 | 15.12 | 15.81 | 14.02 | 14.98 |
| VAE adaptation | Rec. | Std | Dist. | DiT loss | Normals |
|---|---|---|---|---|---|
| Frozen | 3.54 | 0.83 | 0.00 | 0.136 | 16.19 |
| Control | 1.54 | 0.85 | 0.69 | 0.190 | 15.61 |
| DPA, | 1.83 | 0.64 | 0.64 | 0.074 | 15.34 |
| DPA, | 2.89 | 0.55 | 1.00 | 0.036 | 14.98 |
| DPA, | 5.42 | 0.56 | 1.05 | 0.029 | 15.59 |
| DPA, , one change | |||||
| DiT fine-tuning | Control | DPA | DPA Control |
|---|---|---|---|
| LoRA, rank 8 | 16.43 | 15.70 | |
| LoRA, rank 32 | 16.08 | 15.50 | |
| LoRA, rank 128 | 15.85 | 15.33 | |
| Full | 16.04 | 15.67 |
| Method | Channels | Depth | Normals | |
|---|---|---|---|---|
| Depth | Control | 1 | 5.72 | |
| DPA | 1 | 5.52 | ||
| Normals | Control | 3 | 15.49 | |
| DPA | 3 | 15.14 | ||
| Joint | Control | 4 | 6.63 | 15.45 |
| DPA | 4 | 6.02 | 15.04 |
| Method | Images | Depth | Normals | |
|---|---|---|---|---|
| Depth | Marigold V2 [ 46 ] | 74K | 4.14 | |
| Lotus-2 [ 21 ] | 59K | 5.00 | ||
| FLUX 3 + DPA (ours) | 90K | 4.39 | ||
| Normals | Marigold V2 [ 46 ] | 59K | 18.83 | |
| Lotus-2 [ 21 ] | 59K | 19.20 | ||
| FLUX 3 + DPA (ours) | 61K | 17.84 |
| Method | Rec. | PSNR | SSIM |
|---|---|---|---|
| Zero-filled | – | 26.04 | 0.666 |
| L1-wavelet [ 40 ] | – | 29.18 | 0.720 |
| Langevin [ 27 ] | – | 25.80 | 0.659 |
| Frozen VAE | 28.55 | 28.29 | 0.704 |
| Decoder-only | 29.76 | 28.78 | 0.711 |
| Control | 31.39 | 28.87 | 0.700 |
| Backbone | VAE adaptation | Rec. | Test |
|---|---|---|---|
| LTX-Video | Decoder-only (WinDiNet) [ 47 ] | 0.141 | 0.521 |
| LTX-Video | Control | 0.158 | 0.478 |
| LTX-Video | DPA | 0.164 | 0.453 |
| Wan2.2 | Control | 0.148 | 0.450 |
| Wan2.2 | DPA | 0.165 | 0.428 |
| Indoor | Sintel | |||||
|---|---|---|---|---|---|---|
| Steps | Control | DPA | DPA control | Control | DPA | DPA control |
| 1 | 16.08 | 15.32 | 28.30 | 30.51 | ||
| 2 | 15.61 | 14.98 | 28.04 | 30.03 | ||
| 4 | 16.10 | 15.19 | 28.64 | 30.82 | ||
| 8 | 16.57 | 15.57 | 29.67 | 31.76 | ||
| 16 | 16.94 | 15.93 | 30.43 | 32.46 | ||
| Hypersim | Hypersim and Virtual KITTI 2 | |||||
|---|---|---|---|---|---|---|
| Samples | Control | DPA | Control | DPA | ||
| 1 | 15.73 | 14.97 | 15.55 | 14.87 | ||
| 2 | 15.50 | 14.89 | 15.39 | 14.85 | ||
| 3 | 15.41 | 14.87 | 15.34 | 14.84 | ||
| 4 | 15.37 | 14.85 | 15.31 | 14.83 | ||
| VAE adaptation | Rec. | iBims-1 | NYUv2 | ScanNet | Mean | Sintel |
|---|---|---|---|---|---|---|
| Frozen | 2.98 | 15.79 | 16.10 | 14.54 | 15.48 | 33.94 |
| Decoder-only | 2.15 | 15.81 | 16.26 | 14.61 | 15.56 | 33.83 |
| Control | 2.04 | 15.92 | 16.39 | 14.93 | 15.75 | 31.72 |
| DPA ( ) | 2.34 | 15.56 | 16.52 | 14.79 | 15.62 | 31.87 |
| Variant | Rec. | Std | Normals | |
| DPA ( , mixed levels, , no condition) | 2.89 | 0.55 | 14.98 | – |
| Mixed levels, residual not divided by | 2.14 | 0.73 | 15.27 | |
| Prior conditioned on the task prompt | 2.94 | 0.54 | 15.09 | |
| Noise floor | 3.65 | 0.55 | 15.03 | |
| Angular reconstruction loss | 2.33 | 0.55 | 15.03 | |
| with VSD [ 67 ] | 1.70 | 0.78 | 15.74 |
| VAE | Rec. | Std | Dist. | DiT loss | Indoor | Sintel | All | |
|---|---|---|---|---|---|---|---|---|
| Frozen | 3.54 | 0.83 | 0.00 | 0.136 | 16.19 | 29.13 | 19.43 | |
| Decoder-only | 2.16 | 0.83 | 0.00 | 0.136 | 15.75 | 28.47 | 18.93 | |
| Latent anchoring, 1 | 1.72 | 0.83 | 0.02 | 0.136 | 15.73 | 28.48 | 18.91 | |
| Latent anchoring, 0.1 | 1.63 | 0.83 | 0.07 | 0.134 | 15.70 | 27.91 | 18.76 | |
| Control | 1.54 | 0.85 | 0.69 | 0.190 | 15.61 | 28.04 | 18.72 | |
| Control, rescaled | 1.54 | 0.55 | 0.64 | 0.117 | 15.69 | 28.14 | 18.80 |
| Frozen VAE, images | 0.000 | 0.001 | 0.003 | 0.010 | 0.030 | 0.086 | 0.197 | 0.336 | 1.00 |
|---|---|---|---|---|---|---|---|---|---|
| Frozen | 0.000 | 0.001 | 0.002 | 0.005 | 0.013 | 0.035 | 0.083 | 0.161 | 0.45 |
| Control | 0.000 | 0.001 | 0.003 | 0.007 | 0.021 | 0.057 | 0.133 | 0.248 | 0.71 |
| DPA | 0.000 | 0.000 | 0.000 | 0.001 | 0.008 | 0.045 | 0.141 | 0.264 | 0.69 |
| DPA, uniform levels | 0.000 | 0.000 | 0.001 | 0.002 | 0.005 | 0.012 | 0.030 | 0.072 | 0.19 |
| Gaussian noise | 0.000 | 0.002 | 0.007 | 0.032 | 0.123 | 0.363 | 0.636 | 0.684 | 2.77 |
| Rec. | Error | |||||
| Removed | Time | Control | DPA | Control | DPA | DPA control |
| Normals, FLUX 3: mean angular error (degrees) | ||||||
| 0% | 1 | 1.54 | 2.89 | 15.61 | 14.98 | |
| 22.5% | 0.98 | 1.62 | 2.97 | 15.65 | 15.00 | |
| 50.6% | 0.90 | 2.00 | 3.04 | 15.54 | 15.04 | |
| 71.8% | 0.63 | 2.34 | 3.33 | 15.43 | 14.95 | |
| NYUv2 | KITTI | ETH3D | ScanNet | DIODE | Mean | ||||||||
| Method | Images | AbsRel | AbsRel | AbsRel | AbsRel | AbsRel | AbsRel | ||||||
| MoGe-2 [ 66 ] | 8.9M | 3.1 | 98.4 | 6.9 | 89.9 | 5.0 | 96.2 | 3.1 | 98.3 | 9.6 | 84.5 | 5.54 | 93.46 |
| Marigold [ 29 ] | 74K | 5.5 | 96.4 | 9.9 | 91.6 | 6.5 | 96.0 | 6.4 | 95.1 | 10.0 | 90.7 | 7.66 | 93.96 |
| GeoWizard [ 17 ] | 280K | 5.2 | 96.6 | 9.7 | 92.1 | 6.4 | 96.1 | 6.1 | 95.3 | 12.0 | 89.8 | 7.88 | 93.98 |
| GenPercept [ 70 ] | 90K | 5.2 | 96.6 | 9.4 | 92.3 | 6.6 | 95.7 | 5.6 | 96.5 | – | – | – | – |
| Lotus [ 22 ] | 59K | 5.4 | 96.8 | 8.5 | 92.2 | 5.9 | 97.0 | 5.9 | 95.7 | 9.8 | 92.4 | 7.10 | 94.82 |
| NYUv2 | ScanNet | iBims-1 | Sintel | Mean | |||||||
| Method | Images | Mean | Mean | Mean | Mean | Mean | |||||
| MoGe-2 [ 66 ] | 8.9M | 14.7 | 62.3 | 12.8 | 68.4 | 14.7 | 70.4 | 29.3 | 24.8 | 17.88 | 56.48 |
| DSINE [ 2 ] | 160K | 16.4 | 59.6 | 16.2 | 61.0 | 17.1 | 67.4 | 34.9 | 21.5 | 21.15 | 52.38 |
| GeoWizard [ 17 ] | 280K | 18.9 | 50.7 | 17.4 | 53.8 | 19.3 | 63.0 | 40.3 | 12.3 | 23.98 | 44.95 |
| StableNormal [ 72 ] | 250K | 18.6 | 53.5 | 17.1 | 57.4 | 18.2 | 65.0 | 36.7 | 14.1 | 22.65 | 47.50 |
| Diffusion-E2E-FT [ 42 ] | 74K | 16.5 | 60.4 | 14.7 | 66.1 | 16.1 | 69.7 | 33.5 | 22.3 | 20.20 | 54.63 |
| VAE adaptation | Indoor | Sintel | All |
|---|---|---|---|
| Control | 15.61 | 28.04 | 18.72 |
| DPA | 14.98 | 30.03 | 18.75 |
| Control / DPA, 22.5% removed | 15.65 / 15.00 | 28.01 / 30.34 | 18.74 / 18.83 |
| Control / DPA, 50.6% removed | 15.54 / 15.04 | 29.47 / 28.62 | 19.03 / 18.44 |
| Control / DPA, 71.8% removed | 15.43 / 14.95 | 30.61 / 28.27 | 19.22 / 18.28 |
| (a) Anchor weight | ||||||
|---|---|---|---|---|---|---|
| 0 | 0.01 | 0.1 | 1 | |||
| Test | 27.22 | 28.82 | 29.52 | 28.68 | ||
| Round trip | 31.39 | 30.74 | 28.98 | 25.75 | ||
| (b) Sampler steps (DPA with uniform levels) | ||||||
| 2 | 5 | 10 | 25 | 50 | ||
| Control | 28.29 | 28.58 | 28.87 | 28.45 | 27.22 | |