Paper commentary
Adversarial Flow Models
Adversarial flow models stabilize GAN-style training on transformers
- Problem Adversarial training diverges on standard transformers because the transport map is not fixed.
- Method Adversarial flow models add an optimal transport loss to the generator. This loss favors one deterministic noise-to-data map, and its weight decays during training so it guides early optimization.
- Results AFM-XL/2 reaches an FID-50k of 2.38 in single-step generation, compared to 2.81 for AlphaFlow-XL/2, the best consistency-based entry in the table.
Why adversarial training is hard to stabilize
Adversarial training from scratch struggled on standard transformers, because earlier adversarial models relied on non-standard architectures or frozen feature networks. When the authors switched to a standard transformer architecture, training simply diverged. The authors locate one cause in the objective itself: the adversarial loss only asks that generated and real distributions match.
Because that matching never constrains the transport map, there are infinitely many valid maps the generator may choose.
Flow matching avoids this drift because it has a unique ground-truth probability flow set by the interpolation function. That spends model capacity and introduces error accumulation. Pointwise or moment-matching losses can also produce blurriness when models run in fewer steps, which is why strong few-step systems still rely on adversarial refinement.
The question, then, is whether an adversarial objective can be given a deterministic target. The authors' answer is adversarial flow models, which are trained with an adversarial objective and learn a deterministic transport map like flow matching. Such a model can train on a standard transformer without modification, and it doesn't need to supervise intermediate timesteps for one-step generation.
Fixing the transport map with an optimal transport loss
Adversarial flow models keep the adversarial game and add one extra term, the optimal transport loss LGot. The loss averages the squared distance between each generated sample G(z) and its prior sample z, scaled by 1/n. Minimizing this loss with the scaling factor λot shrinks the total transport cost, which biases G toward that unique map.
The adversarial objective already matches the marginals at the global optimum, so the transport loss mainly selects which valid map G learns.
The two terms compete, because the loss favors the identity map G(z) = z, so λot needs careful tuning. Figure 2 illustrates this trade-off across different λot scales, with λot = 0 equivalent to GANs. The authors therefore decay λot during training, so the transport term guides early optimization and then fades. Table 2 shows that a constant λot of 0.2 reaches an FID of 29.4, while cosine decay from 0.2 to 0.01 reaches 8.51.
Table 1 shows that without the OT loss, training diverges regardless of λgp.
Standard GANs in the same toy setting produced different transport mappings. This toy result shows the behavior the regularizer is meant to produce. The authors didn't test transformer models in this experiment, so the toy result doesn't show the transformer case directly.
Training the generator and discriminator with gradient normalization
The discriminator is trained with a relativistic objective, where the score of each sample is compared against the score of the other. The loss f(a, b) equals −log(sigmoid(a−b)), which the authors pick because it yields a better loss landscape. Gradient penalties R1 and R2 are applied to D, keeping G from being pushed away from equilibrium and constraining the Lipschitz constant of D.
Exact double backpropagation is expensive, so the authors use a finite-difference approximation with ϵ set to 0.01. A logit-centering penalty LDcp keeps the discriminator logits from drifting unboundedly, with λcp fixed at 0.01.
The adversarial gradient that D passes to G can vary in magnitude, depending on architecture, weight initialization and gradient-penalty strength. Traditional GANs avoid this issue, since adaptive optimizers rescale each parameter update and make G largely invariant to the absolute gradient scale. The rescaling divides the gradient by the EMA of its squared norm, then by the square root of that average and by √n, where n is the data dimensionality.
The authors describe this as an extension of Adam to the backward path, using the same β2 as Adam for the EMA decay. After normalizing the adversarial gradient to a unit scale, a value of λot can work well across model sizes.
The generator and discriminator use the same DiT size, and G and D are updated alternately with separate dataloaders. The discriminator is nearly identical to the generator, with a learnable [CLS] token prepended to its input. A final LayerNorm and a linear projection on the [CLS] token produce the logit. The authors set weight decay to 0.01 and EMA decay to 0.9999.
Table 1 shows that without the optimal transport loss, training diverges regardless of λgp. Table 2 shows that decaying λot over 100 epochs reaches an FID of 8.51, versus 29.4 with a constant λot of 0.2.
Multi-step training and classifier guidance
Multi-step training starts from the linear interpolation that flow matching uses, with x_t set to (1-t)x plus tz. The generator receives the source state and both timesteps, so it outputs G(x_s, s, t) for a jump from s to t. The discriminator sees only the target state and target timestep, written D(x_t, t). The adversarial losses keep their form, with expectations taken over x, z, s and t.
The R1 and R2 penalties are weighted by w(s, t), the maximum of |s−t| and δ. A floor of δ = 0.001 keeps this weight numerically stable. During training, s is drawn from U(0,1) and t from U(0, s), so the model learns transport with t below s. Alternatively, the model trains only on the discrete steps of a fixed few-step schedule, which saves capacity and iterations.
The discriminator must not see the source sample, because x and z are drawn independently during training. Conditioning on the source would promise D a pairing that G can't produce, so training oscillates or diverges.
Flow-based guidance instead uses a time-conditioned classifier on samples interpolated to random timesteps t′. This version matches the effect of CFG, and the t′ range can be chosen to run CFG on selected timesteps.
Applying the classifier only at t′ = 0 at the same scale gave an FID-50k of 2.40, so the gain is modest. The authors attribute the small gain to adversarial models already producing good samples without guidance.
Ablations on λot and its decay
The authors grid-searched the initial λot and λgp on the B/2 single-step model, reporting FID-50k measured on 20 epochs as an average of two runs. Every run without the OT loss diverged, whatever the λgp value was. The authors take this as evidence that the OT objective stabilizes adversarial training in transformers. Training diverges without the OT term, so the term is not optional in this setting.
The best initial values in the grid sit between 0.1 and 0.2 for λot, depending on λgp. Holding λot constant at 0.2 gave an FID-50k of 29.4 at 100 epochs. Cosine decay from 0.2 to 0.01 over the same 100 epochs gave 8.51, and decay to 0.0 gave 8.69. So the schedule, not only the presence of the OT term, separates a poor run from a good one in this setting.
The decay table reports single FID values without a run count, so its gaps carry less statistical weight than the grid.

Table 2 .Decay of λot.B/2 model 1NFE. FID-50k measured on 100 epochs. Decay is critical for achieving peak performance.
Original paper · CC BY 4.0The authors also report that the terminal OT scale can be lowered further when the learning rate is reduced. That result sits in an appendix table, so this section doesn't quote it. The ablations therefore support two claims: the OT term is needed for stability, and its decay is needed for peak FID.
Single-step ImageNet results
Under the exact latent space and architectures, marked with a bullet, AFM beats every single-step entry in Table 4 on FID-50k. AFM-XL/2 with classifier guidance and discriminator augmentation reaches an FID-50k of 2.38 at 1 NFE, compared to 2.81 for AlphaFlow-XL/2, the lowest consistency-based entry in the table. The XL/2 model was trained for 125 epochs, and Table 8 shows the same model at 3.98 without guidance.
Adding only discriminator augmentation gives 3.86, and adding only classifier guidance gives 2.54, so both components contribute to the 2.38 result.

Table 4 .Single-step generation on ImageNet 256px. 1245
Original paper · CC BY 4.0The authors say this small model surpasses many XL/2 consistency-based models, because B/2 models are capacity-limited and AFM doesn't spend capacity on other timesteps. The AFM-M/2 and AFM-L/2 models score 2.82 and 2.63, so the FID falls steadily as model size grows.
AFM is restricted by the VAE and the DiT patch size 2, so the authors don't claim a win over StyleGAN-XL. The authors compare mainly against methods that use the same settings, marked with a bullet, so the comparison stays fair. Among the GAN entries, GAT-XL/2+REPA reaches 2.96 with pretrained feature help, which AFM beats at every size.
Deep single-step models
The authors start from the view that generator depth matters, since prior work ties effective depth to capturing the nonlinear transformations behind high-quality samples. They also suspect that too little depth drives many artifacts in single-step models. To test this, they build extra-deep single-step generators by repeating transformer blocks, following Dehghani et al.
The hidden state from the first pass gets recycled into the next repetition, so the network never projects back into data space between passes. A timestep-like embedding only marks which repetition is running, and the whole stack trains end-to-end with the single-step objective and no intermediate supervision.

Figure 4 .Deep architecture using transformer block repetition. Extra-deep models are trained end-to-end using single-step objec- tive without any intermediate supervision.
Original paper · CC BY 4.0 · Shanchuan Lin, Ceyuan Yang, Zhijie Lin, Hao Chen, Haoqi Fan · Adversarial Flow Models · Original paper figure · Extracted the figure area from page 6 of the original PDF.They add the extra depth only to G, and D stays at its standard depth. The learning rate of G shrinks by the repetition factor. Training runs from scratch on class-conditional ImageNet at 256×256, in a 32×32×4 latent space from a pre-trained VAE. The authors match parameter counts and model behavior with the multi-step counterpart, so the comparison isolates the effect of depth.
The 56-layer model reaches an FID-50k of 2.08 at 1NFE. Its 28-layer counterpart reaches 2.11 with two forward passes, so the single pass wins. The 112-layer model reaches 1.94 at 1NFE, below the 2.02 of the 28-layer model at 4NFE.
The authors read this as evidence that generator depth can limit single-step quality more than the training method does. They didn't test post-training of existing models, so the depth result covers training from scratch only. The authors flag depth scaling as a promising direction for future research.
Generation without guidance
Without guidance, AFM-XL/2 reaches an FID-50k of 2.36 with 2NFE, and the 1NFE model reaches 3.98. The smaller AFM models follow the same pattern, with AFM-B/2 at 6.07, AFM-M/2 at 5.21 and AFM-L/2 at 4.36 at 1NFE. Flow-matching rows in the same latent space sit higher, for example SiT-XL/2 at 8.30 with 250 NFE. DiT-XL/2 reaches 9.62 and ADM reaches 10.94, and both also use 250 NFE without guidance.
The table marks rows that share the same latent space and architecture with a dot.
The authors link the gap to how each objective measures distance from the data. Flow matching uses a squared L2 criterion, which measures isotropic Euclidean distance instead of semantic distance on the data manifold. Flow matching is connected to DDPM and minimizes forward KL divergence, which pushes it toward mode coverage. The authors argue that these properties lead to frequent out-of-distribution samples when no guidance is applied.
Adversarial training instead uses a discriminator as a learned criterion, which the authors say can capture manifold structure better than Euclidean distance.
The adversarial objective is also closer to JS divergence, and it is less sensitive to outliers. The authors hypothesize that these factors help explain why their models outperform flow matching without guidance. The paper doesn't run a controlled test of this cause, and the table reports only final FID values. Guidance results appear separately in Table 8, where AFM-XL/2 moves from 3.98 with no guidance to 2.38 with CG and DA.
Where the costs and untested settings limit the results
Any-step training performed worse than training on designated timesteps, which the authors attribute to diluted capacity and batch size.
The discriminator increases memory consumption, which is one of the listed costs of the method. The XL/2 1NFE model requires 1.88× the training compute of AlphaFlow. The authors suggest this regularization cost could be reduced in future work.
The work explores training from scratch only, so post-training of existing flow models is left for future work. The models are discrete-time flow models, and extending them to continuous-time flow modeling is a stated future direction. The models use classifier guidance (CG) instead of classifier-free guidance (CFG), which the authors list as a limitation.
Adversarial flow still needs techniques to mitigate gradient vanishing, which the authors cover in Appendix C.
Paper info
- Authors
- Shanchuan Lin, Ceyuan Yang, Zhijie Lin, Hao Chen, Haoqi Fan
- Venue
- arXiv · Preprint
- First published
- 2025-11-27
- Added
- 2026-10-29
- Updated
- 2026-5-11
- Version
- v3
- arXiv
- 2511.22475
- Category
- cs.LG · cs.CV
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
We present adversarial flow models, a class of generative models that belongs to both the adversarial and flow families. Our method supports native one-step and multi-step generation and is trained with an adversarial objective. Unlike traditional GANs, in which the generator learns an arbitrary transport map between the noise and data distributions, our generator is encouraged to learn a deterministic noise-to-data mapping. This significantly stabilizes adversarial training. Unlike consistency-based methods, our model directly learns one-step or few-step generation without having to learn the intermediate timesteps of the probability flow for propagation. This preserves model capacity and avoids error accumulation. Under the same 1NFE setting on ImageNet-256px, our B/2 model approaches the performance of consistency-based XL/2 models, while our XL/2 model achieves a new best FID of 2.38. We additionally demonstrate end-to-end training of 56-layer and 112-layer models without any intermediate supervision, achieving FIDs of 2.08 and 1.94 with a single forward pass and surpassing the corresponding 28-layer 2NFE and 4NFE counterparts with equal compute and parameters. The code is available at https://github.com/ByteDance-Seed/Adversarial-Flow-Models
Quote from the paper
Shanchuan Lin, Ceyuan Yang, Zhijie Lin, Hao Chen, Haoqi Fan (2025). Adversarial Flow Models. arXiv:2511.22475v3. https://arxiv.org/abs/2511.22475v3
BibTeX
@misc{lin2025adversarial,
title = {{Adversarial Flow Models}},
author = {Shanchuan Lin and Ceyuan Yang and Zhijie Lin and Hao Chen and Haoqi Fan},
year = {2025},
eprint = {2511.22475},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2511.22475v3}
}