Saved in:
Bibliographic Details
Main Authors: Jensen, Cristian Perez, Sadat, Seyedmorteza
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.07274
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915189778022400
author Jensen, Cristian Perez
Sadat, Seyedmorteza
author_facet Jensen, Cristian Perez
Sadat, Seyedmorteza
contents While classifier-free guidance (CFG) is essential for conditional diffusion models, it doubles the number of neural function evaluations (NFEs) per inference step. To mitigate this inefficiency, we introduce adapter guidance distillation (AGD), a novel approach that simulates CFG in a single forward pass. AGD leverages lightweight adapters to approximate CFG, effectively doubling the sampling speed while maintaining or even improving sample quality. Unlike prior guidance distillation methods that tune the entire model, AGD keeps the base model frozen and only trains minimal additional parameters ($\sim$2%) to significantly reduce the resource requirement of the distillation phase. Additionally, this approach preserves the original model weights and enables the adapters to be seamlessly combined with other checkpoints derived from the same base model. We also address a key mismatch between training and inference in existing guidance distillation methods by training on CFG-guided trajectories instead of standard diffusion trajectories. Through extensive experiments, we show that AGD achieves comparable or superior FID to CFG across multiple architectures with only half the NFEs. Notably, our method enables the distillation of large models ($\sim$2.6B parameters) on a single consumer GPU with 24 GB of VRAM, making it more accessible than previous approaches that require multiple high-end GPUs. We will publicly release the implementation of our method.
format Preprint
id arxiv_https___arxiv_org_abs_2503_07274
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Distillation of Classifier-Free Guidance using Adapters
Jensen, Cristian Perez
Sadat, Seyedmorteza
Machine Learning
Computer Vision and Pattern Recognition
While classifier-free guidance (CFG) is essential for conditional diffusion models, it doubles the number of neural function evaluations (NFEs) per inference step. To mitigate this inefficiency, we introduce adapter guidance distillation (AGD), a novel approach that simulates CFG in a single forward pass. AGD leverages lightweight adapters to approximate CFG, effectively doubling the sampling speed while maintaining or even improving sample quality. Unlike prior guidance distillation methods that tune the entire model, AGD keeps the base model frozen and only trains minimal additional parameters ($\sim$2%) to significantly reduce the resource requirement of the distillation phase. Additionally, this approach preserves the original model weights and enables the adapters to be seamlessly combined with other checkpoints derived from the same base model. We also address a key mismatch between training and inference in existing guidance distillation methods by training on CFG-guided trajectories instead of standard diffusion trajectories. Through extensive experiments, we show that AGD achieves comparable or superior FID to CFG across multiple architectures with only half the NFEs. Notably, our method enables the distillation of large models ($\sim$2.6B parameters) on a single consumer GPU with 24 GB of VRAM, making it more accessible than previous approaches that require multiple high-end GPUs. We will publicly release the implementation of our method.
title Efficient Distillation of Classifier-Free Guidance using Adapters
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2503.07274