Pooling Representation Autoencoders for Efficient Diffusion
Organizations: University of Geneva · University of Geneva and Meta
Abstract
Representation Autoencoders (RAEs) generate images from pre-trained visual fea- tures, but their dense token grids make generative modeling expensive. Motivated by local feature correlations, we introduce PoolDINO, a learned affine pooling operator that merges neighboring tokens. Training the pooling operator jointly with the RGB decoder preserves the standard two-stage RAE procedure without a separate feature auto-encoder. On ImageNet-256, 4x token compression retains comparable generation quality under internal guidance, while 16x compression trades some quality for greater efficiency. At a fixed budget of 100 sampling steps, latent-sampling throughput increases by 3.7x and 9.0x, respectively, relative to the unpooled baseline. Classification and dense prediction evaluations show that comparable guided generation quality can coexist with weaker performance on other tasks.
Figures & tables
| Spatial pooling | Tokens | rFID | sFID | PSNR | LPIPS |
|---|---|---|---|---|---|
| RAEv2 baseline | 256 | 0.32 | 2.29 | 22.74 | 0.15 |
| Learned | 64 | 0.36 | 2.61 | 22.25 | 0.17 |
| Learned | 32 | 0.39 | 2.76 | 21.88 | 0.18 |
| Learned | 32 | 0.39 | 2.82 | 21.85 | 0.18 |
| Learned | 16 | 0.41 | 2.99 | 21.45 | 0.19 |
| Average | 64 | 0.65 | 4.97 | 19.58 | 0.25 |
| Unguided | IG | IG + CFG | |||||
| Spatial pooling | Tokens | FID | IS | FID | IS | FID | IS |
| RAEv2 baseline | 256 | 1.53 | 226.63 | 1.08 | 262.00 | 1.07 | 267.15 |
| Learned | 64 | 3.00 | 184.49 | 1.09 | 250.36 | 1.07 | 268.50 |
| Learned | 32 | 4.91 | 161.42 | 1.19 | 249.58 | 1.16 | 273.06 |
| Learned | 32 | 4.97 | 159.67 | 1.21 | 249.96 | 1.19 | 273.98 |
| Learned | 16 | 8.16 | 132.67 | 1.44 | 247.07 | 1.35 | 282.29 |
| Unguided | IG | ||||
| Pooling | Epochs | FID | IS | FID | IS |
| (unpooled) | 80 | 1.53 | 226.63 | 1.08 | 262.00 |
| 80 | 3.00 | 184.49 | 1.09 | 250.36 | |
| 180 | 2.78 | 192.37 | 1.05 | 272.00 | |
| 80 | 8.16 | 132.67 | 1.44 | 247.07 | |
| 300 | 7.19 | 146.13 | 1.29 | 258.04 | |
| ImageNet-1K | ADE20K | NYUv2 | ||
| Spatial pooling | Window | Linear top-1 (%) | mIoU (%) | AbsRel |
| Unpooled | 85.31 | 46.86 | 0.0817 | |
| Learned | 83.47 | 39.38 | 0.0895 | |
| Average | 85.33 | 42.59 | 0.0869 | |
| Learned | 80.80 | 38.61 | 0.1022 | |
| Average | 85.33 | 36.76 | 0.0997 |
Appendix figures & tables35 assets
Supplementary material from the paper’s appendix.
Appendix
| Pooling window | Latent grid | Tokens | Compression | |
|---|---|---|---|---|
| (control) | 256 | 8 | ||
| 64 | 4 | |||
| 32 | ||||
| 32 | ||||
| 16 | 2 |
| Hyperparameter | Image decoder | Flow encoder | Flow decoder |
|---|---|---|---|
| Transformer blocks | 28 | 28 | 2 |
| Hidden size | 1,152 | 1,440 | 2,048 |
| MLP width | 4,096 | 3,840 | 5,461 |
| Attention heads | 16 | 20 | 16 |
| Time tokens | – | 4 | – |
| Class tokens | – | 8 | – |
| Hyperparameter | Decoder Stage | Flow-Model Stage |
|---|---|---|
| Training epochs | 16 | 80 |
| Training steps | 40,032 | 100,080 |
| Global batch size | 512 | 1,024 |
| Optimizer | AdamW | Muon (AdamW fallback) |
| Base learning rate | ||
| Learning rate schedule | Cosine decay to | Constant through epoch 25; linear decay to at epoch 50 |
| Window | Tokens | Generator | Internal head | Repr. path | Decoder | Unguided generation |
|---|---|---|---|---|---|---|
| 256 | 473.182G | 2.887G | 0.756G | 224.216G | 47.542T | |
| 64 | 128.653G | 0.722G | 1.292G | 224.216G | 13.090T | |
| 32 | 72.531G | 0.361G | 1.292G | 224.216G | 7.477T | |
| 16 | 44.612G | 0.180G | 1.292G | 224.216G | 4.685T |
| 180 epochs | 222 epochs | |||
|---|---|---|---|---|
| IG scale | FID | IS | FID | IS |
| 1.000 | 2.7805 | 192.37 | 2.7682 | 193.79 |
| 1.250 | 1.7069 | 218.79 | 1.7269 | 220.06 |
| 1.500 | 1.2237 | 240.43 | 1.2330 | 242.09 |
| 1.750 | 1.0603 | 257.87 | 1.0645 | 259.57 |
| 1.875 | 1.0462 | 265.43 | 1.0476 | 266.27 |
| 300 epochs | 390 epochs | |||
|---|---|---|---|---|
| IG scale | FID | IS | FID | IS |
| 1.000 | 7.1942 | 146.13 | 6.7782 | 150.30 |
| 1.250 | 4.7407 | 171.29 | 4.4667 | 176.07 |
| 1.500 | 3.1969 | 194.26 | 3.0450 | 198.28 |
| 1.750 | 2.2363 | 214.17 | 2.1802 | 218.03 |
| 2.000 | 1.7026 | 229.57 | 1.6962 | 233.37 |
| FID | Latent samples/s | |||||
|---|---|---|---|---|---|---|
| Pooling | Epochs | 100 steps | 50 steps | 100 steps | 50 steps | |
| 80 | 1.75 | 1.0890 | 1.1164 | |||
| 180 | 2.00 | 1.0525 | 1.0629 | |||
| 80 | 2.00 | 1.1913 | 1.2283 | |||
| 80 | 2.75 | 1.4442 | 1.4429 | |||
| 300 | 2.75 | 1.2882 | 1.2981 | |||
| k-NN | Linear probe | |||||||
|---|---|---|---|---|---|---|---|---|
| Window | Learned | Average | PCA | Random | Learned | Average | PCA | Random |
| Uncompressed | 76.03 | 85.31 | ||||||
| 72.16 | 76.00 | 76.67 | 83.47 | 85.33 | 84.35 | |||
| 68.50 | 76.00 | 76.58 | 82.35 | 85.33 | 84.10 | |||
| 68.17 | 76.00 | 76.59 | 82.35 | 85.34 | 84.12 | |||
| 63.22 | 76.00 | 76.39 | 80.80 | 85.33 | 83.77 | |||
| Spatial pooling | Best epoch | Val. loss | mIoU | Mean acc. | Pixel acc. |
|---|---|---|---|---|---|
| Uncompressed | 75 | 0.671 | 46.860 | 58.060 | 81.260 |
| Learned | 75 | 0.807 | 39.380 | 50.100 | 77.480 |
| Average | 65 | 0.735 | 42.591 | 53.477 | 78.905 |
| Learned | 80 | 0.863 | 38.610 | 48.850 | 77.780 |
| Average | 75 | 0.866 | 36.758 | 46.969 | 75.715 |
| Spatial pooling | Best epoch | AbsRel | RMSE | Log RMSE | SiLog | |||
|---|---|---|---|---|---|---|---|---|
| Uncompressed | 12 | 0.082 | 0.409 | 0.122 | 0.122 | 94.170 | 99.030 | 99.780 |
| Learned | 21 | 0.090 | 0.455 | 0.134 | 0.134 | 92.780 | 98.700 | 99.720 |
| Average | 14 | 0.087 | 0.434 | 0.131 | 0.131 | 93.200 | 98.720 | 99.730 |
| Learned | 27 | 0.102 | 0.490 | 0.148 | 0.148 | 90.440 | 98.260 | 99.610 |
| Average | 15 | 0.100 | 0.486 | 0.149 | 0.149 | 90.580 | 98.060 | 99.560 |
| Spatial pooling | Tokens | Compression | Best epoch | Val. loss | mIoU | Mean acc. | Pixel acc. |
|---|---|---|---|---|---|---|---|
| Uncompressed | 256 | 80 | 0.694 | 47.810 | 58.850 | 81.770 | |
| Learned | 64 | 60 | 0.709 | 45.380 | 56.420 | 81.010 | |
| Learned | 16 | 80 | 0.788 | 42.500 | 53.240 | 79.960 |
| Spatial pooling | Best epoch | AbsRel | RMSE | Log RMSE | SiLog | |||
|---|---|---|---|---|---|---|---|---|
| Uncompressed | 14 | 0.081 | 0.411 | 0.123 | 0.123 | 94.330 | 98.980 | 99.750 |
| Learned | 27 | 0.089 | 0.456 | 0.133 | 0.133 | 92.800 | 98.720 | 99.700 |
| Learned | 24 | 0.101 | 0.495 | 0.147 | 0.147 | 90.610 | 98.220 | 99.610 |
| Unguided | CFG | IG | CFG + IG | |||||
| Variant | FID | IS | FID | IS | FID | IS | FID | IS |
| 1.53 | 226.63 | 1.45 | 237.80 | 1.08 | 262.00 | 1.07 | 267.15 | |
| 3.00 | 184.49 | 1.99 | 228.10 | 1.09 | 250.36 | 1.07 | 268.50 | |
| 4.91 | 161.42 | 2.33 | 238.80 | 1.19 | 249.58 | 1.16 | 273.06 | |
| 4.97 | 159.67 | 2.41 | 237.63 | 1.21 | 249.96 | 1.19 | 273.98 | |
| 8.16 | 132.67 | 2.87 | 249.72 | 1.44 | 247.07 | 1.35 | 282.29 | |
| CFG | IG | CFG + IG | ||
| Variant | ||||
| 3.00 | 1.75 | 2.50 | 1.78 | |
| 3.00 | 1.75 | 1.75 | 1.75 | |
| 3.00 | 2.00 | 1.50 | 2.00 | |
| 3.00 | 2.00 | 1.50 | 2.00 | |
| 3.00 | 2.75 | 1.75 | 2.25 | |
| Method | Euler steps | Guidance scale | Guidance interval | Neutral value |
|---|---|---|---|---|
| Unguided | 100 | – | – | CFG 1 |
| Internal guidance | 100 | Swept | 1 | |
| Encoder-reconstruction guidance | 100 | Swept | 0 |
| Encoder-reconstruction guidance | Internal guidance | |||
| Variant | FID | IS | FID | IS |
| 1.06 | 272.83 | 1.07 | 268.50 | |
| 1.17 | 279.68 | 1.16 | 273.06 | |
| 1.20 | 280.14 | 1.19 | 273.98 | |
| 1.35 | 295.39 | 1.35 | 282.29 | |
| Window | Average alignment | PCA alignment | Energy captured (% of PCA) |
|---|---|---|---|
| 0.5000 | 0.2798 | 67.60 | |
| 0.3530 | 0.2114 | 52.16 | |
| 0.3501 | 0.2082 | 52.05 | |
| 0.2268 | 0.1524 | 38.16 |
| Average overlap | PCA overlap | |||||
|---|---|---|---|---|---|---|
| Window | Random | Raw | Adjusted | Raw | Adjusted | Energy (% PCA) |
| 0.2500 | 0.6250 | 0.5000 | 0.4598 | 0.2798 | 67.60 | |
| 0.1250 | 0.4339 | 0.3530 | 0.3100 | 0.2114 | 52.16 | |
| 0.1250 | 0.4313 | 0.3501 | 0.3072 | 0.2082 | 52.05 | |
| 0.0625 | 0.2751 | 0.2268 | 0.2054 | 0.1524 | 38.16 | |