RepFlow: Reciprocal Supervision Improves Generation and Representation in Flow Models

Weili Zeng, Feng Tian, Shengqi Liu, Yichao YanarXiv 2026

TL;DR

RepFlow is a novel framework that enables flow-based generative models to learn their own visual representations without relying on external "teacher" models like DINOv2. By training a separate encoder to predict the generator's internal states from masked images and then feeding that information back as guidance, RepFlow significantly boosts both image generation quality (up to 40% FID reduction) and representation utility.

What Problem Does This Paper Address?

Generative models, such as diffusion and flow-matching models, are masters of visual structure, but their internal "knowledge" is messy. A generator's internal states are heavily entangled with two variables: noise level (how far along the denoising process it is) and network depth. This makes it difficult to extract a stable, semantic representation directly from the generator for downstream tasks like classification.

While researchers have previously used pre-trained vision models to guide generators, this creates a "chicken and egg" problem where you need a powerful representation learner to build a powerful generator. The authors of RepFlow ask: Can a generator learn a stable representation from its own evolving, noisy computation and then use that representation to improve itself?

Methods

RepFlow introduces a reciprocal supervision loop between two separate models: a Generator ($G$) and a Student Encoder ($U$).

  1. G2R (Generator-to-Representation): A separate, timestep-free encoder is trained to predict the internal states of the generator. To force the encoder to learn meaningful structure, it is given a masked clean image as input. It must predict what the generator's features would look like at various depths and noise levels ($t$) for the missing parts of the image. A small, timestep-conditioned predictor handles the specific noise levels, allowing the main encoder to remain "clean" and stable.
  2. R2G (Representation-to-Generator): The representation learned by the student is then fed back to the generator. An early layer of the generator is aligned with the student's features using a token-wise cosine loss. This provides the generator with a stable semantic "anchor" during its denoising process.
  3. Reciprocal Training: As the generator improves, it provides better targets for the student. As the student learns better representations, it provides better guidance for the generator.
The RepFlow architecture showing the G2R and R2G paths.

Datasets

The authors evaluated RepFlow primarily on ImageNet-1K at 256×256 resolution. They tested the framework across two different flow-based backbones:

  • SiT (Structured Interpolant Transformers): A latent-space model.
  • JiT (Just-in-Time): A pixel-space model.

Key Insights and Ideas

  • Generative States as Supervision: The paper treats the generator's noisy internal states as "related observations of the same underlying image." By forcing a student to predict these states from partial context, the student distills the "predictable structure" of the image generation process.
  • Masking is Essential: The student encoder never sees the reference noise or the full image. This prevents it from simply "copying" and forces it to learn the underlying visual semantics required to fill in the blanks.
  • Feedback Benefits the Teacher: Interestingly, enabling the feedback loop (R2G) doesn't just help the generator; it also improves the student's representation. This suggests that semantic guidance helps the generator organize its internal states into a more learnable form.
  • Distribution-Level Utility: Beyond instance-level alignment, the learned student can serve as a metric for one-step post-training, effectively replacing expensive pre-trained models like MAE in distribution-matching tasks.
Comparison of different coupling strategies between generation and representation learning.

Key Results

RepFlow demonstrates significant gains across the board without any external pre-training:

  • Generation Quality: In unconditional settings, RepFlow reduced FID (Fréchet Inception Distance) by 19.2% to 40.8% compared to native training.
  • Representation Quality: Linear-probe accuracy on ImageNet improved by 6.80 to 10.04 percentage points over the best features that could be manually searched for in a standard generator.
  • Efficiency: RepFlow-L reaches the same FID as a natively trained model in roughly 1/4th of the training epochs (e.g., 143 epochs vs 600 epochs for SiT).
  • One-Step Generation: When used for post-training a one-step JiT model, the RepFlow student lowered FID from 6.34 to 3.14, outperforming a pre-trained MAE teacher.
FID curves showing RepFlow outperforming native training and SRA across epochs.

Limitations and Future Work

  • Computational Overhead: Training a separate student encoder alongside the generator increases the cost per training update. While it converges in fewer epochs, the wall-clock time per epoch is higher.
  • Hyperparameter Tuning: The reciprocal loop relies on balancing the joint loss ($\lambda_1, \lambda_2$), which may require careful tuning for different architectures.
  • Scale: While successful on ImageNet-1K, the authors haven't yet demonstrated how this scales to massive datasets (like LAION) or even larger models where external teachers currently dominate.
  • Future Directions: The authors suggest exploring whether this reciprocal process can be extended to other modalities (like video or audio) where pre-trained representation teachers are less mature than in the image domain.

Summary updated

BibTeX
@misc{zeng2026repflow,
  author = {Weili Zeng and Feng Tian and Shengqi Liu and Yichao Yan},
  title = {{RepFlow: Reciprocal Supervision Improves Generation and Representation in Flow Models}},
  year = {2026},
  eprint = {2609.33217},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.33217},
}
Figure