Latent Prior GANs

Latent Prior GANs

Efficient Decoder Refinement via Inherited Generative Structure

Wenjie Shu1,* · Xianghong Fang1,*,† · Dehan Kong1 · Tim G. J. Rudner1,2

1University of Toronto   2Vijil   *: Equal contribution; †: Project lead.

Inherit generative structure. Refine the decoder.

Latent Prior GANs (LP-GANs) start from a pretrained latent generative model, freeze its latent generator and image encoder, and adversarially refine its decoder on generation-time latents. Paired supervision anchors refinement to source images. The adapted decoder introduces no additional network at generation time.

Generative structure
can be inherited

A pretrained latent generative model already provides a learned latent distribution and a latent-to-image mapping. LP-GANs inherit this structure and focus adversarial learning on the decoder.

The decoder is typically trained on reconstruction latents but receives generated latents at deployment. We refine it on the generation-time distribution while keeping the latent prior fixed.

Overview of inherited generative structure, the decoder train-generation mismatch, and LP-GANs decoder refinement.
Figure 1. LP-GANs inherit a pretrained latent prior and decoder initialization, then use adversarial learning for generation-time decoder refinement.

Five epochs of decoder refinement improve generation across the four tested iMF scales.

Frozen prior.
Refined decoder.

The decoder receives adversarial supervision on fully generated latents and paired supervision on image-corresponding latents. Both branches share the same decoder.

The latent generator and encoder remain fixed. Training updates the decoder and image-space discriminator; generation uses the refined decoder with the original sampler.

LP-GANs pipeline: adversarial supervision on generated latents and paired supervision on intermediate image-corresponding latents.
Figure 2. The generation branch supplies an adversarial objective. The paired branch supplies reconstruction and perceptual objectives for continuous priors, using intermediate latents from a partial generative trajectory.
01 / Inherit

Start from a latent model

Use the pretrained latent generator and decoder initialization. Freeze the generator and image encoder.

02 / Generate

Refine at deployment inputs

Decode fully generated latents and apply an image-space adversarial objective.

03 / Pair

Anchor the decoder

Use image-corresponding latents for paired supervision (PS). Continuous priors provide a reconstruction-to-generation trajectory.

04 / Deploy

Keep the original sampler

Replace the decoder with its refined weights. Discard the training discriminator; retain the original sampling procedure.

For TiTok, paired supervision uses encoded real-image tokens, while adversarial refinement uses tokens sampled from the frozen MaskGIT generator.

Generation gains
across iMF scales

Class-conditional ImageNet 256 × 256. We compare the original decoder, LP-GANs without paired supervision, and full LP-GANs across B/2, M/2, L/2, and XL/2.

The official iMF protocol uses torch-fidelity and its reference statistics; the OpenAI protocol uses TensorFlow Inception and a different reference. All comparisons below are within the same protocol.

Table 1

Effect of paired supervision across model scales

iMF gFID across four model scales, two evaluation protocols, and three decoder settings
Decoder settinggFID w/o CFG ↓gFID w/ CFG ↓
iMF-B/2iMF-M/2iMF-L/2iMF-XL/2iMF-B/2iMF-M/2iMF-L/2iMF-XL/2
Official iMF / torch-fidelity
Original decoder16.5811.929.289.783.372.271.861.73
LP-GANs w/o PS19.4315.5811.9211.962.552.071.781.69
LP-GANs w/ PS13.3911.208.498.512.081.731.481.32
OpenAI
Original decoder16.4111.929.269.413.472.401.901.80
LP-GANs w/o PS18.9915.1111.6311.122.562.061.821.67
LP-GANs w/ PS13.6410.668.528.522.141.771.511.51

Results reported in the paper; lower gFID is better. Bold rows indicate the best results within each protocol. CFG column groups refer to evaluation-time guidance. PS denotes paired supervision.

Full LP-GANs improve guided and unguided gFID at every tested scale under both protocols. Under the official protocol, guided iMF-XL/2 gFID improves from 1.73 to 1.32.

Without PS, guided generation improves but unguided generation degrades across all four scales. Adding paired supervision improves both settings.

The cost of
decoder refinement

LP-GANs add adversarial refinement to an existing pretrained latent model. Five epochs cost 64–88 H100 GPU-hours across the four iMF scales.

Table 2

Latent-prior pretraining and decoder refinement

Latent-prior pretraining and decoder refinement
ModelTokenizer (H100-h)Latent generator (H100-h)LP-GANs refinement (H100-h)
iMF-B/275044064
iMF-M/275086066
iMF-L/27502,00072
iMF-XL/27503,80088

Reported H100 GPU-hour estimates. Tokenizer and latent-generator costs are FLOPs-based estimates; LP-GANs costs cover five epochs of decoder refinement and exclude pretraining. These are marginal refinement costs for an existing latent model.

Refining the iMF-XL/2 decoder takes about 88 H100 GPU-hours and reaches guided gFID 1.32 under the official protocol.

These figures describe the additional cost of refining an existing system. Obtaining its pretrained tokenizer and latent generator has a separate cost.

What makes
refinement work?

We study the role of paired supervision, the trajectory level used to construct paired latents, and which inherited component to update.

Paired latents balance generation awareness and source correspondence

On iMF-B/2 under the OpenAI protocol, PS helps across trajectory levels η ∈ [0, 0.7], with the lowest guided gFID at η = 0.3. At high noise levels, source correspondence weakens and the paired objective loses its benefit.

iMF-B/2 guided gFID across trajectory levels: paired supervision compared with LP-GANs without paired supervision under the OpenAI protocol.
Trajectory-level sensitivity, OpenAI protocol. The dashed line denotes LP-GANs w/o PS (2.56). The best paired setting reaches 2.14 at η = 0.3; η = 1.0 reaches 8.67 and lies outside the plotted range.
Table 3

Which component should be refined?

Which component should be refined?
Update scopegFID w/ CFG ↓gFID w/o CFG ↓H100-h / epoch ↓
Frozen3.4716.410
Decoder-only2.1413.6412.7
Generator-only3.9122.3311.5
Joint2.4017.2513.9

iMF-B/2, OpenAI protocol. The decoder-only setting gives the lowest gFID among the tested update scopes; generator-only refinement has the lowest nonzero per-epoch cost.

Decoder refinement transfers across latent generators

LP-GANs also improve MeanFlow, DMF, and TiTok-L32 under both protocols. The generator and sampling procedure remain unchanged.

Table 4

Beyond the iMF family

Beyond the iMF family
Latent generatorEvaluation protocolOriginal decoder gFID ↓LP-GANs gFID ↓
MeanFlow-XL/2Official iMF3.342.94
MeanFlow-XL/2OpenAI3.492.98
DMF-XL/2+Official iMF2.221.91
DMF-XL/2+OpenAI2.401.95
TiTok-L32Official iMF2.651.90
TiTok-L32OpenAI2.811.98

ImageNet 256 × 256; lower gFID is better. Compare values within the same evaluation protocol. TiTok retains its eight-step MaskGIT sampler.

The same decoder-refinement principle applies to continuous flow-based priors and discrete token generators.

Before and after refinement

Selected generated samples from the paper. Each strip compares two decoder settings under the corresponding latent generator.

iMF-XL/2. Top: original decoder. Bottom: LP-GANs w/ PS.

Class 980: volcano generated samples: original decoder in the top row and LP-GANs in the bottom row.
Class 980: volcano. Top: original decoder. Bottom: LP-GANs w/ PS.
Class 979: valley generated samples: original decoder in the top row and LP-GANs in the bottom row.
Class 979: valley. Top: original decoder. Bottom: LP-GANs w/ PS.
Class 88: macaw generated samples: original decoder in the top row and LP-GANs in the bottom row.
Class 88: macaw. Top: original decoder. Bottom: LP-GANs w/ PS.

The effect of paired supervision

iMF-XL/2. Top: LP-GANs w/o PS. Bottom: LP-GANs w/ PS.

Class 22: bald eagle generated samples: LP-GANs without paired supervision in the top row and with paired supervision in the bottom row.
Class 22: bald eagle. Top: LP-GANs w/o PS. Bottom: LP-GANs w/ PS.
Class 94: hummingbird generated samples: LP-GANs without paired supervision in the top row and with paired supervision in the bottom row.
Class 94: hummingbird. Top: LP-GANs w/o PS. Bottom: LP-GANs w/ PS.
Class 975: lakeside generated samples: LP-GANs without paired supervision in the top row and with paired supervision in the bottom row.
Class 975: lakeside. Top: LP-GANs w/o PS. Bottom: LP-GANs w/ PS.

Other latent generators

Eight selected classes per model. Top: original decoder. Bottom: LP-GANs.

iMF-M/2 generated samples across eight selected classes: original decoder in the top row and LP-GANs in the bottom row.
iMF-M/2, eight selected ImageNet classes. Top: original decoder. Bottom: LP-GANs.
DMF-XL/2+ generated samples across eight selected classes: original decoder in the top row and LP-GANs in the bottom row.
DMF-XL/2+, eight selected ImageNet classes. Top: original decoder. Bottom: LP-GANs.
MeanFlow-XL/2 generated samples across eight selected classes: original decoder in the top row and LP-GANs in the bottom row.
MeanFlow-XL/2, eight selected ImageNet classes. Top: original decoder. Bottom: LP-GANs.
TiTok-L32 generated samples across eight selected classes: original decoder in the top row and LP-GANs in the bottom row.
TiTok-L32, eight selected ImageNet classes. Top: original decoder. Bottom: LP-GANs.
  1. Pretrained generative structure can be inherited, focusing adversarial learning on generation-time decoder refinement.
  2. Paired supervision anchors the decoder and improves both guided and unguided generation across the tested iMF scales.
  3. Decoder refinement improves iMF, MeanFlow, DMF, and TiTok-L32 while retaining their original sampling procedures.
  4. The refined decoder introduces no additional network at generation time; the discriminator is used only during training.

Build on our work

View code ↗
@article{shu2026latent,
  title   = {Latent Prior GANs: Efficient Decoder Refinement via Inherited Generative Structure},
  author  = {Shu, Wenjie and Fang, Xianghong and Kong, Dehan and Rudner, Tim G. J.},
  journal = {arXiv},
  year    = {2026}
}