TL;DR
This paper explores adapting Vision AutoRegressive (VAR) models for specific image generation tasks, finding they outperform Diffusion Models (DMs) in non-private settings. However, adapting VARs with differential privacy (DP) significantly degrades performance, highlighting a critical area for future research.
What Problem Does This Paper Address?
The field of image generation has largely been dominated by Diffusion Models (DMs). Recently, Vision AutoRegressive (VAR) models have emerged as a promising alternative, offering faster generation. While adapting DMs for downstream tasks (like medical imaging) is well-studied, adapting VARs remains largely unexplored. Furthermore, as fine-tuning data can be sensitive, differentially private (DP) adaptation methods are crucial. While DP adaptations for DMs exist, they are lacking for VARs, creating a gap in privacy-preserving image generation capabilities for this new class of models. This paper aims to bridge this gap by implementing and evaluating various adaptation strategies for VARs, both with and without DP, and comparing them to established DM adaptation techniques.
Methods
The authors investigate several adaptation methods for VAR models:
- Full Fine-Tuning (FFT): Updates all model parameters.
- Parameter-Efficient Fine-Tuning (PEFT): Focuses on updating a subset of parameters to reduce computational cost and memory usage.
- Low-Rank Adaptation (LoRA): Introduces low-rank matrices to update specific layers, particularly effective for Transformer-based architectures.
- LayerNorm Tuning (LNTuning): Updates only the LayerNorm modules within the model.
They also explore Differentially Private (DP) adaptations using DP-SGD, a technique that adds noise to gradients to protect data privacy. To address the challenges of DP training, they investigate the impact of:
- Augmentation Multiplicity: Averaging gradients over multiple augmented views of the data to improve the signal-to-noise ratio.
- Model Size: Examining how larger VAR models (VAR-d16, VAR-d20, etc.) affect DP performance.
- Fine-tuning Strategy: Comparing LoRA and LNTuning under DP.
- Privacy Budget (ε): Analyzing the trade-off between privacy and utility.
A significant part of the work involves technical implementation details to make VARs compatible with DP training frameworks like Opacus. This includes patching buffer handling and modifying the forward pass to accommodate Opacus's requirements.
Datasets
The authors use the following datasets for evaluation:
- Food-101: A dataset of food images.
- CUB-200-2011: A dataset of bird species.
- Oxford Flowers: A dataset of flower species.
- Stanford Cars: A dataset of car models.
- Oxford-IIIT Pet Dataset: A dataset of cat and dog breeds.
These datasets are used for fine-tuning and evaluating the generation quality of the adapted VAR models.
Key Insights and Ideas
- VARs are efficient learners: VAR models converge surprisingly quickly to their fine-tuned performance, likely due to their cross-entropy loss objective which provides a strong gradient signal early in training, unlike the denoising score-matching loss in DMs.
- Non-DP VAR adaptations excel: In standard (non-private) fine-tuning, VAR models, especially with FFT, outperform state-of-the-art DM adaptation methods (like DiffFit) in terms of generation quality (lower FID).
- PEFT methods offer compute savings: LoRA and LNTuning significantly reduce computational costs compared to FFT, with LNTuning being slightly more efficient than LoRA.
- DP adaptation is a major challenge for VARs: While DMs have seen progress in DP adaptation, VARs struggle significantly. DP fine-tuning of VARs leads to a substantial drop in generation quality, even with increased training epochs and careful hyperparameter tuning.
- Layer selection is critical for DP-VAR: For DP adaptations, the choice of which layers to fine-tune is more impactful than simply reducing the number of trainable parameters. Specifically, adapting attention layers (LoRA-AM + LN) yields better results than just tuning LayerNorm (LNTuning).
Key Results
- Non-DP Performance: VAR models, particularly with FFT, achieve better FID scores than DiffFit (a SOTA DM adaptation method) across multiple datasets. For example, on the Oxford Flowers dataset, VAR-d16 with FFT achieves an FID of 13.13, while DiT-XL-2 with DiffFit achieves 0.83M trainable parameters and an FID of 20.18 (Table 1).
- Compute Efficiency: PEFT methods like LoRA and LNTuning offer substantial compute savings. For instance, on the Food-101 dataset, FFT requires ~4.5x more compute than PEFT methods. LNTuning is slightly more compute-efficient than LoRA.
- DP Performance Degradation: DP adaptations of VARs result in significantly lower generation quality. For example, on Oxford Flowers, DP-LoRA with ε=10 yields an FID of 63.24, a substantial increase from the non-DP FID of 13.13 (Table 2). Even with high privacy budgets (low ε), performance remains poor.
- LoRA-AM + LN for DP: The best DP-VAR performance was achieved by adapting attention projections and LayerNorm weights (LoRA-AM + LN), outperforming LNTuning in FID while only updating ~2% of the model's weights.
Limitations and Future Work
- DP Performance Gap: The most significant limitation is the poor performance of DP-adapted VAR models. The authors emphasize that further research is urgently needed to develop effective privacy-preserving adaptation strategies for VARs.
- Dataset Specificity: While evaluated on several datasets, the performance of DP adaptations might vary across different data modalities and complexities.
- Hyperparameter Sensitivity: DP training is known to be sensitive to hyperparameters. While the authors explored some, a more exhaustive search might reveal better configurations.
The authors suggest that their work provides a foundation for future research into VAR adaptations, particularly in the challenging domain of privacy-preserving learning. They hope their released code will aid researchers in developing novel adaptation methods for VARs.
Summary updated