AdvFD: Boosting Visual Generation via
Adversarial Fréchet Distance Loss

1Peking University     2KlingAI Research
*Equal contribution    Corresponding author

Abstract

Fréchet distance has recently emerged as an effective distribution-level objective for generator post-training. However, directly optimizing it can cause Fréchet hacking: the target metric keeps improving while visual quality and Fréchet alignment in other feature spaces stagnate or deteriorate. We attribute this to the static pretrained feature spaces used by existing Fréchet losses, which give incomplete and fixed views of the gap between real and generated distributions. We propose Adversarial Fréchet Distance (AdvFD), which complements those static targets with a learnable representation that adversarially maximizes the Fréchet discrepancy while the generator minimizes it in the resulting adaptive space. To stop the representation from inflating the objective through feature amplification, we add real-feature whitening, normalizing its scale and covariance geometry to stabilize the min–max optimization. AdvFD consistently improves one-step generator post-training across JiT and pMF backbones and model scales.

Fréchet Hacking

Implicit assumption in FD-Loss: aligning generated and real samples in a static pretrained feature space could improve visual quality.

This does not always hold. Supervised only by static feature spaces, the generator corrects the discrepancies those representations detect and leaves the rest weakly constrained, so the optimized FD keeps falling while visual quality degrades. Adding more frozen encoders widens the supervision but the comparison spaces stay static, which motivates a representation that evolves with the generated distribution.

Fréchet hacking under a static Inception representation.

Fréchet hacking under a static Inception representation. Left: a universal perturbation optimized only for Inception FID adds visible artifacts yet cuts FID from 3.25 to 2.56, exposing a blind direction of the static representation. Right: during JiT-B post-training from 50k to 75k steps, FD-r-Inception drops 29.4% while FD-r-CLIP rises 8.5%.

Method

With \(p\) the real distribution, \(q_{\theta}\) the generator distribution, and \(\mathcal{F}\) a set of frozen encoders (SigLIP, MAE, Inception), FD-Loss defines the static objective \(D_{\mathrm{static}}(p,q_{\theta}) = \sum_{\phi \in \mathcal{F}} \lambda_{\phi} D_{\mathrm{FD}}^{\phi}(p, q_{\theta})\). We add a trainable representation \(\psi_{\omega}\), initialized from a pretrained encoder, and the generator minimizes

\[ \mathcal{L}_{t}(\theta; \omega_t) = D_{\mathrm{static}}(p, q_{\theta}) + \lambda_{\mathrm{adv}}\, D_{\mathrm{adv}}(p, q_{\theta}; \omega_t). \]

The two updates alternate: the generator reduces the discrepancy the current representation measures, and the representation raises \(D_{\mathrm{adv}}\) to expose what remains. This is a GAN-like game in feature space.

feature space of ψω
Real and generated feature distributions Dadv
real generated

Our adaptive training, one step at a time. In the G-step the generator minimizes the static and adaptive Fréchet objectives while both representations stay frozen, pulling the two distributions together. In the D-step the generator is frozen and the adverse representation maximizes the Fréchet discrepancy, pushing them apart to re-expose what the static encoders miss.

Real-Feature Whitening

Raw FD in a trainable feature space admits a trivial scale direction, since \(D_{\mathrm{FD}}^{c\psi_{\omega}} = c^{2} D_{\mathrm{FD}}^{\psi_{\omega}}\) for \(c>0\). The representation could then raise FD just by enlarging its feature norm. We remove this degeneracy by whitening against the real-feature statistics \(\mu_{p}^{\psi}, \Sigma_{p}^{\psi}\):

\[ \bar{\psi}_{\omega}(x) = \left(\psi_{\omega}(x) - \mu_{p}^{\psi}\right) \left(\Sigma_{p}^{\psi} + \epsilon I\right)^{-1/2}, \qquad D_{\mathrm{adv}} = D_{\mathrm{FD}}^{\bar{\psi}_{\omega}}(p, q_{\theta}). \]

Under exact whitening a common rescaling of \(\psi_{\omega}\) cancels against the change in real-feature statistics, so \(D_{\mathrm{adv}}\) cannot be increased by global rescaling alone.

Effect of feature whitening on adversarial feature stability.

Effect of whitening on feature stability. (a) Without whitening, samples degrade severely. (b) Pre-whitening RMS norm ratio of adaptive to frozen-reference features, log scale. Whitening suppresses feature-norm inflation.

Results

Class-conditional generation on ImageNet 256×256. Lower is better for all metrics.

Method NFE Space #Params FID ↓ FD-r6 ↓ FD-r3 ↓
reference (real images)
50k validation imagesN/AN/AN/A1.681.001.00
discrete-space models
VAR-d3010×2discrete2B1.976.706.77
BAR-L256×2×4discrete1.1B1.013.573.35
latent-space models, multi-step
 without semantic distillation
SiT-XL/2250×2latent675M2.128.449.20
MAR-L256×2×100latent478M1.806.687.32
FlowAR-H50×2latent1.9B1.686.136.16
MAR-H256×2×100latent942M1.565.616.31
MAR-L, DeTok256×2×100latent478M1.395.496.05
 with semantic distillation
REG250×2latent685M1.544.645.15
SiT-XL/2-REPA250×2latent675M1.425.456.05
LightningDiT250×2latent675M1.424.575.02
DDT-XL250×2latent675M1.265.706.38
REPA-E250×2latent676M1.173.043.33
RAE-XL50×2latent839M1.163.263.92
latent-space models, one-step
Drift-L (latent)1latent463M1.5310.9211.32
iMF-XL1latent610M1.828.398.72
iMF-XL2latent610M1.617.487.79
pixel-space models, multi-step backbones
JiT-B50×2×2pixel131M3.7115.6515.06
+ FD-loss1pixel131M1.005.538.45
+ AdvFD (Ours)1pixel131M0.79↓21.0%3.92↓29.1%6.03↓28.6%
JiT-L50×2×2pixel459M2.5910.7310.27
+ FD-loss1pixel459M0.773.245.46
+ AdvFD (Ours)1pixel459M0.73↓5.2%2.01↓38.0%3.20↓41.4%
JiT-H50×2×2pixel953M1.977.669.07
+ FD-loss1pixel953M0.752.654.44
+ AdvFD (Ours)1pixel953M0.72↓4.0%1.80↓32.1%2.93↓34.0%
pixel-space models, one-step
Drift-L (pixel)1pixel465M1.4310.5111.18
pMF-B1pixel118M3.3113.7011.82
+ FD-loss1pixel118M0.853.504.49
+ AdvFD (Ours)1pixel118M0.81↓4.7%3.32↓5.1%4.22↓6.0%
pMF-L1pixel410M2.729.097.62
+ FD-loss1pixel410M0.782.092.72
+ AdvFD (Ours)1pixel410M0.77↓1.3%1.89↓9.6%2.57↓5.5%
pMF-H1pixel935M2.296.876.09
+ FD-loss1pixel935M0.771.892.69
+ AdvFD (Ours)1pixel935M0.74↓3.9%1.74↓7.9%2.50↓7.1%

FD-loss and AdvFD use the SIM representations (SigLIP, Inception, MAE). FD-r3 excludes those training representations, so it measures generalization beyond the optimized set. Bold is best within each backbone block; percentages are relative to the FD-loss baseline. For methods using interval CFG, the full-CFG NFE upper bound is reported, following FD-loss.

Qualitative comparison

Drag any handle, or focus one and use the arrow keys.

FD-Loss vs. AdvFD on ImageNet 256×256. Four representative samples per backbone, paired under the same 1-NFE budget: FD-loss on the left of each handle, AdvFD on the right. AdvFD gives cleaner textures, more coherent object structure, and fewer artifacts on both backbones.

Ablations

All on JiT-B with the SIM FD objective.

Method FID ↓ FD-r6 ↓ FD-r3 ↓
FD-loss1.005.538.45
FD-loss + PatchGAN0.905.578.90
FD-loss + DMD1.775.906.75
AdvFD 0.793.926.03

(a) Alternative remedies. External guidance is inconsistent; AdvFD improves all metrics.

Method Branch FID ↓ FD-r6 ↓ FD-r3 ↓
FD-loss 1.005.538.45
AdvFDNone 10.6958.5040.54
Static 13.4928.3221.66
Adaptive 0.793.926.03

(b) Whitening location. Whitening the adverse representation is required for stability.

Method Adv. Repr. Initialization FID ↓ FD-r6 ↓ FD-r3 ↓
FD-loss (Baseline) 1.005.538.45
AdvFD SigLIPPretrained 0.894.557.40
AdvFD MAEPretrained 0.904.737.42
AdvFD InceptionRandom 0.855.697.63
AdvFD InceptionPretrained 0.793.926.03

(c) Adverse representation backbone and initialization. SigLIP and MAE use rank-16 LoRA; Inception is fully fine-tuned. Pretrained Inception wins on all metrics. Bold best, underline second.

BibTeX

@article{gao2026advfd,
  title         = {AdvFD: Boosting Visual Generation via Adversarial Fr\'echet Distance Loss},
  author        = {Gao, Mingju and Zhou, Jingkai and Gai, Kun and Yu, Changqian and Tang, Hao},
  journal       = {arXiv preprint arXiv:2608.11205},
  year          = {2026},
  eprint        = {2608.11205},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2608.11205}
}