LightGen: Efficient Image Generation through Knowledge Distillation and Direct Preference Optimization

Xianfeng Wu, Yajing Bai, Haoze Zheng, Harold Haodong Chen, Yexin Liu +6 more
3/11/2025
cs.CV

Official code: XianfengWu01/LightGen (132 stars, MIT, last commit 2025-04-18).

Abstract

Recent advances in text-to-image generation have primarily relied on extensive datasets and parameter-heavy architectures. These requirements severely limit accessibility for researchers and practitioners who lack substantial computational resources. In this paper, we introduce \model, an efficient training paradigm for image generation models that uses knowledge distillation (KD) and Direct Preference Optimization (DPO). Drawing inspiration from the success of data KD techniques widely adopted in Multi-Modal Large Language Models (MLLMs), LightGen distills knowledge from state-of-the-art (SOTA) text-to-image models into a compact Masked Autoregressive (MAR) architecture with only $0.7B$ parameters. Using a compact synthetic dataset of just $2M$ high-quality images generated from varied captions, we demonstrate that data diversity significantly outweighs data volume in determining model performance. This strategy dramatically reduces computational demands and reduces pre-training time from potentially thousands of GPU-days to merely 88 GPU-days. Furthermore, to address the inherent shortcomings of synthetic data, particularly poor high-frequency details and spatial inaccuracies, we integrate the DPO technique that refines image fidelity and positional accuracy. Comprehensive experiments confirm that LightGen achieves image generation quality comparable to SOTA models while significantly reducing computational resources and expanding accessibility for resource-constrained environments. Code is available at https://github.com/XianfengWu01/LightGen

View on arXivView PDF

Code Implementations(1)

MIT

An Efficient Text-to-Image Generation Pretrain Pipeline

1328Shell, PythonMar 10, 20251 years agoMIT
aigcaigc2dautoregressive-modelsdiffusiongenai+3 more

Similar Papers

Cite this paper

@article{wu2025lightgen,
  title  = {LightGen: Efficient Image Generation through Knowledge Distillation and Direct Preference Optimization},
  author = {Xianfeng Wu and Yajing Bai and Haoze Zheng and Harold Haodong Chen and Yexin Liu and Zihao Wang and Xuran Ma and Wen-Jie Shu and Xianzu Wu and Harry Yang and Ser-Nam Lim},
  year   = {2025},
  eprint = {2503.08619},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08619v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08619.svg)](https://codeofpaper.com/paper/2503.08619)

Discussion