dc-ae-recon-gen-eval
Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models — Chen et al. (2024) (arXiv:2410.10733, 2024)
What this evaluates
Evaluates the reconstruction fidelity of high-spatial-compression autoencoders and the generation quality and efficiency of latent diffusion models that utilize them. It benchmarks performance across multiple datasets and resolutions to assess trade-offs between compression ratio, image quality, and computational throughput.
Datasets
- ImageNet — total ?; splits: train (-1)
- FFHQ — total ?; splits: test (-1)
- MapillaryVistas — total ?; splits: test (-1)
- MJHQ — total ?; splits: test (-1)
Metrics
rFID (primary) — range: other
- Fréchet Inception Distance computed between the feature distributions of original and reconstructed images. Lower values indicate better reconstruction fidelity.
FID (primary) — range: other
- Fréchet Inception Distance computed between generated images and real images. Lower values indicate better generation quality.
PSNR — range: other
- Peak Signal-to-Noise Ratio in decibels, measuring pixel-wise reconstruction error. Higher values indicate better quality.
SSIM — range: [0, 1]
- Structural Similarity Index, measuring perceptual similarity in luminance, contrast, and structure. Range [0, 1].
LPIPS — range: [0, 1]
- Learned Perceptual Image Patch Similarity, measuring perceptual distance using deep features. Range [0, 1].
CLIP Score — range: other
- Cosine similarity between CLIP image and text embeddings. Higher values indicate better alignment.
Input / output format
Input: Original images for reconstruction tasks; class labels or text prompts for generation tasks.
Output: Reconstructed images or generated images.
Scoring recipe
def evaluate(original_imgs, reconstructed_imgs, generated_imgs=None, prompts=None):
rfid = compute_fid(original_imgs, reconstructed_imgs)
psnr = compute_psnr(original_imgs, reconstructed_imgs)
ssim = compute_ssim(original_imgs, reconstructed_imgs)
lpips = compute_lpips(original_imgs, reconstructed_imgs)
metrics = {'rFID': rfid, 'PSNR': psnr, 'SSIM': ssim, 'LPIPS': lpips}
if generated_imgs is not None:
fid = compute_fid(generated_imgs, original_imgs)
clip = compute_clip_similarity(generated_imgs, prompts)
metrics['FID'] = fid
metrics['CLIP Score'] = clip
return metrics
Common pitfalls
- rFID measures autoencoder reconstruction quality, not generative model performance; confusing it with standard FID leads to incorrect conclusions about generation capability.
- Comparisons across autoencoders must account for patch size (p1 vs p2/p4) and latent channel count, as these drastically change token count, memory, and throughput.
- NFE (Number of Functional Evaluations) is fixed for most models but adaptive for SiT/USiT, making throughput/latency comparisons sensitive to the evaluation scheduler used.
Evidence (verbatim from paper)
Table 2 summarizes the results of DC-AE and SD-VAE (Rombach et al., [2022]) under various settings (f represents the spatial compression ratio and c denotes the number of latent channels). DC-AE provides significant reconstruction accuracy improvements than SD-VAE for all cases. For example, on ImageNet 512×512, DC-AE improves the rFID from 16.84 to 0.22 for the f64c128 autoencoder and 100.74 to 0.23 for the f128c512 autoencoder.
Citation
@misc{chen2024deepcompressionautoencoder,
title={Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models},
author={Chen et al. (2024)},
year={2024},
note={arXiv:2410.10733}
}
1---2name: dc-ae-recon-gen-eval3description: Evaluates the reconstruction fidelity of high-spatial-compression autoencoders and the generation quality and efficiency of latent diffusion models that utilize them. It benchmarks performance across multiple datasets and resolutions to assess trade-offs between compression ratio, image quality, and computational throughput. Use when the user wants to benchmark on ImageNet, FFHQ, MapillaryVistas, MJHQ, or asks about evaluating this task. Reports rFID, FID.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/dc-ae-recon-gen-eval6 skill_kind: dataset_eval7 source_arxiv: 2410.107338 bibtex_key: chen2024deepcompressionautoencoder9 confidence: high10---1112# dc-ae-recon-gen-eval1314> Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models — Chen et al. (2024) (arXiv:2410.10733, 2024)1516## What this evaluates1718Evaluates the reconstruction fidelity of high-spatial-compression autoencoders and the generation quality and efficiency of latent diffusion models that utilize them. It benchmarks performance across multiple datasets and resolutions to assess trade-offs between compression ratio, image quality, and computational throughput.1920## Datasets2122- **ImageNet** — total ?; splits: train (-1)23- **FFHQ** — total ?; splits: test (-1)24- **MapillaryVistas** — total ?; splits: test (-1)25- **MJHQ** — total ?; splits: test (-1)2627## Metrics2829- `rFID` **(primary)** — range: other30 - Fréchet Inception Distance computed between the feature distributions of original and reconstructed images. Lower values indicate better reconstruction fidelity.31- `FID` **(primary)** — range: other32 - Fréchet Inception Distance computed between generated images and real images. Lower values indicate better generation quality.33- `PSNR` — range: other34 - Peak Signal-to-Noise Ratio in decibels, measuring pixel-wise reconstruction error. Higher values indicate better quality.35- `SSIM` — range: [0, 1]36 - Structural Similarity Index, measuring perceptual similarity in luminance, contrast, and structure. Range [0, 1].37- `LPIPS` — range: [0, 1]38 - Learned Perceptual Image Patch Similarity, measuring perceptual distance using deep features. Range [0, 1].39- `CLIP Score` — range: other40 - Cosine similarity between CLIP image and text embeddings. Higher values indicate better alignment.4142## Input / output format4344**Input**: Original images for reconstruction tasks; class labels or text prompts for generation tasks.4546**Output**: Reconstructed images or generated images.4748## Scoring recipe4950```python51def evaluate(original_imgs, reconstructed_imgs, generated_imgs=None, prompts=None):52 rfid = compute_fid(original_imgs, reconstructed_imgs)53 psnr = compute_psnr(original_imgs, reconstructed_imgs)54 ssim = compute_ssim(original_imgs, reconstructed_imgs)55 lpips = compute_lpips(original_imgs, reconstructed_imgs)56 metrics = {'rFID': rfid, 'PSNR': psnr, 'SSIM': ssim, 'LPIPS': lpips}57 if generated_imgs is not None:58 fid = compute_fid(generated_imgs, original_imgs)59 clip = compute_clip_similarity(generated_imgs, prompts)60 metrics['FID'] = fid61 metrics['CLIP Score'] = clip62 return metrics63```6465## Common pitfalls6667- rFID measures autoencoder reconstruction quality, not generative model performance; confusing it with standard FID leads to incorrect conclusions about generation capability.68- Comparisons across autoencoders must account for patch size (p1 vs p2/p4) and latent channel count, as these drastically change token count, memory, and throughput.69- NFE (Number of Functional Evaluations) is fixed for most models but adaptive for SiT/USiT, making throughput/latency comparisons sensitive to the evaluation scheduler used.7071## Evidence (verbatim from paper)7273> Table 2 summarizes the results of DC-AE and SD-VAE (Rombach et al., [2022]) under various settings (f represents the spatial compression ratio and c denotes the number of latent channels). DC-AE provides significant reconstruction accuracy improvements than SD-VAE for all cases. For example, on ImageNet 512×512, DC-AE improves the rFID from 16.84 to 0.22 for the f64c128 autoencoder and 100.74 to 0.23 for the f128c512 autoencoder.7475## Citation7677```bibtex78@misc{chen2024deepcompressionautoencoder,79 title={Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models},80 author={Chen et al. (2024)},81 year={2024},82 note={arXiv:2410.10733}83}84```8586- arXiv: 2410.10733