FAIL: Flow Matching Adversarial Imitation Learning for Image Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ma, Yeyao, Li, Chen, Zhang, Xiaosong, Hu, Han, Xie, Weidi
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915794957369344
author Ma, Yeyao
Li, Chen
Zhang, Xiaosong
Hu, Han
Xie, Weidi
author_facet Ma, Yeyao
Li, Chen
Zhang, Xiaosong
Hu, Han
Xie, Weidi
contents Post-training of flow matching models-aligning the output distribution with a high-quality target-is mathematically equivalent to imitation learning. While Supervised Fine-Tuning mimics expert demonstrations effectively, it cannot correct policy drift in unseen states. Preference optimization methods address this but require costly preference pairs or reward modeling. We propose Flow Matching Adversarial Imitation Learning (FAIL), which minimizes policy-expert divergence through adversarial training without explicit rewards or pairwise comparisons. We derive two algorithms: FAIL-PD exploits differentiable ODE solvers for low-variance pathwise gradients, while FAIL-PG provides a black-box alternative for discrete or computationally constrained settings. Fine-tuning FLUX with only 13,000 demonstrations from Nano Banana pro, FAIL achieves competitive performance on prompt following and aesthetic benchmarks. Furthermore, the framework generalizes effectively to discrete image and video generation, and functions as a robust regularizer to mitigate reward hacking in reward-based optimization. Code and data are available at https://github.com/HansPolo113/FAIL.
format Preprint
id arxiv_https___arxiv_org_abs_2602_12155
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle FAIL: Flow Matching Adversarial Imitation Learning for Image Generation
Ma, Yeyao
Li, Chen
Zhang, Xiaosong
Hu, Han
Xie, Weidi
Computer Vision and Pattern Recognition
Post-training of flow matching models-aligning the output distribution with a high-quality target-is mathematically equivalent to imitation learning. While Supervised Fine-Tuning mimics expert demonstrations effectively, it cannot correct policy drift in unseen states. Preference optimization methods address this but require costly preference pairs or reward modeling. We propose Flow Matching Adversarial Imitation Learning (FAIL), which minimizes policy-expert divergence through adversarial training without explicit rewards or pairwise comparisons. We derive two algorithms: FAIL-PD exploits differentiable ODE solvers for low-variance pathwise gradients, while FAIL-PG provides a black-box alternative for discrete or computationally constrained settings. Fine-tuning FLUX with only 13,000 demonstrations from Nano Banana pro, FAIL achieves competitive performance on prompt following and aesthetic benchmarks. Furthermore, the framework generalizes effectively to discrete image and video generation, and functions as a robust regularizer to mitigate reward hacking in reward-based optimization. Code and data are available at https://github.com/HansPolo113/FAIL.
title FAIL: Flow Matching Adversarial Imitation Learning for Image Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2602.12155