LoFT: LoRA-fused Training Dataset Generation with Few-shot Guidance
Jae Myung Kim, Stephan Alaniz, Cordelia Schmid, Zeynep Akata
TL;DR
LoFT tackles the distribution mismatch between synthetic and real data in supervised learning with diffusion models by introducing per-image LoRA adapters and a fusion mechanism at generation time. It learns a separate LoRA ΔW^(i) for each real image and fuses two such adapters via h_out = W h_in + λ ΔW^(i) h_in + (1−λ) ΔW^(j) h_in to produce high-fidelity yet diverse samples. Extensive experiments across ImageNet and nine fine-grained datasets show LoFT often outperforms zero-shot and other few-shot synthetic-data methods in CLIP fine-tuning, and can surpass real k-shot baselines with modest synthetic data; ablations confirm the effectiveness of two-LoRA fusion with λ ≈ 0.5. This approach enables scalable, high-quality synthetic dataset generation with practical impact for data-scarce domains, while highlighting trade-offs between fidelity, diversity, and computational overhead.
Abstract
Despite recent advances in text-to-image generation, using synthetically generated data seldom brings a significant boost in performance for supervised learning. Oftentimes, synthetic datasets do not faithfully recreate the data distribution of real data, i.e., they lack the fidelity or diversity needed for effective downstream model training. While previous work has employed few-shot guidance to address this issue, existing methods still fail to capture and generate features unique to specific real images. In this paper, we introduce a novel dataset generation framework named LoFT, LoRA-Fused Training-data Generation with Few-shot Guidance. Our method fine-tunes LoRA weights on individual real images and fuses them at inference time, producing synthetic images that combine the features of real images for improved diversity and fidelity of generated data. We evaluate the synthetic data produced by LoFT on 10 datasets, using 8 to 64 real images per class as guidance and scaling up to 1000 images per class. Our experiments show that training on LoFT-generated data consistently outperforms other synthetic dataset methods, significantly increasing accuracy as the dataset size increases. Additionally, our analysis demonstrates that LoFT generates datasets with high fidelity and sufficient diversity, which contribute to the performance improvement. The code is available at https://github.com/ExplainableML/LoFT.
