NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning a Flow to Self-Supervised Representations

Yuling Jiao, Wensen Ma, Houduo Qi, Defeng SunarXiv 2026

TL;DR

This paper introduces Flow-Based Distribution Matching (FBDM), a non-adversarial self-supervised learning (SSL) framework that structures representations by guiding them toward an explicit geometric reference. By replacing costly adversarial optimization with spherical conditional velocity regression, FBDM achieves a 1.48–1.83× training speedup over previous distribution-matching methods while remaining highly competitive with state-of-the-art SSL approaches.

What Problem Does This Paper Address?

Self-supervised learning (SSL) excels at learning useful representations from unlabeled data, but it constantly battles the risk of "representation collapse"—where the model cheats by mapping all images to the same constant vector. Existing methods prevent this implicitly using negative pairs (contrastive learning), architectural asymmetry, or statistical constraints.

A recent alternative, Distribution Matching (DM), takes a generative approach by forcing the representation distribution to match an explicit, well-structured reference distribution. However, DM relies on an adversarial encoder-critic framework (similar to a GAN). This requires training a critic network alongside the encoder, leading to a costly minimax optimization problem that is notoriously difficult to tune. Furthermore, traditional DM couples the number of target templates ($K'$) to the latent dimension ($d^*$), limiting the granularity of the target geometry. FBDM aims to eliminate the adversarial critic entirely and decouple template granularity from the latent space dimension.

Methods

FBDM replaces the adversarial critic with Flow Matching, specifically adapting it for representation learning rather than sample generation.

Figure 1: FBDM in one view. Two augmented views are encoded on the unit sphere. Their stop- gradient consensus selects a capacity-constrained reference component and a locally perturbed target r(n). Conditional flow matching regresses the target velocity ut along the resulting geodesic zt, while an explicit start-point loss aligns the views. Only the backbone is retained downstream.

The core components of the FBDM pipeline include:

  1. Overcomplete Spherical Reference: Instead of standard coordinate axes, FBDM constructs an Equiangular Tight Frame (ETF)-inspired reference on a unit sphere. This allows the number of target components ($K'$) to exceed the flow dimension ($d^*$), providing a finer geometric structure.
  2. Two-View Capacitated Assignment: For a given image, two augmented views are passed through the encoder. A stop-gradient consensus determines a shared target component for both views. To prevent all images from assigning to a single dominant component, an epoch-indexed capacity constraint limits how many images each reference center can accept.
  3. Spherical Transport & Loss: FBDM defines a path along the shortest great-circle (geodesic) on the sphere from the initial representation to the target. The model trains an auxiliary velocity field ($v_\phi$) to regress the target velocity ($u_t$) along this path. The final objective combines this flow-matching loss with an explicit start-point alignment loss to ensure the two augmented views map close to one another.

Crucially, the auxiliary velocity field is only used during pretraining to shape the encoder's latent space and is completely discarded downstream.

Datasets

The authors evaluated FBDM across several standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100
  • STL-10
  • Tiny ImageNet
  • ImageNet-1K (for large-scale validation)

Evaluation was performed using standard frozen-backbone protocols, including linear classification probes and $k$-Nearest Neighbors ($5$-NN).

Key Insights and Ideas

  • Flow Matching for Representation, Not Generation: While flow matching is traditionally used to generate images from noise, FBDM flips the script. It uses the analytic velocity targets of flow matching purely as a stable, non-adversarial training signal to structure an encoder's embedding space.
  • Decoupling Granularity from Dimension: By using an overcomplete spherical reference geometry (shown below), FBDM allows models to map data to more latent clusters ($K'$) than there are dimensions ($d^*$) in the flow space, breaking a major limitation of prior distribution-matching methods.
Figure 2: From a coordinate reference to an overcomplete spherical reference. (a) Jiao et al. (2026) assigns at most one template to each orthogonal coordinate direction, which requires K′ ≤d⋆. (b) Our construction permits K′ > d⋆and places more reference components on the unit sphere in the d⋆-dimensional flow space. The pale point clouds depict local samples (ck +εη)/∥ck +εη∥2 around each center, with η ∼Unif(Sd⋆−1); they are not additional centers. The illustration is schematic, while Proposition 1 gives the precise ETF/Welch geometry.
  • Guaranteed Downstream Performance: The authors provide a population theory showing that minimizing the FBDM pretraining loss mathematically bounds the downstream misclassification rate of a nearest-centroid classifier.

Key Results

FBDM achieves performance nearly on par with adversarial Distribution Matching and remains highly competitive with established SSL methods like SimCLR, BYOL, and Barlow Twins.

Table 1: Top-1 accuracy (%) on CIFAR-10, CIFAR-100, STL-10, and Tiny ImageNet with ResNet-18. Linear evaluates the frozen representation; 5-NN uses k = 5. Non-FBDM results except DM follow the published benchmark (Weng et al., 2022); DM results are taken from its source paper (Jiao et al., 2026).

The primary advantage of FBDM is its computational efficiency:

  • Throughput Speedup: FBDM delivers a 1.48× to 1.83× speedup in training time per epoch compared to standard DM, saving significant GPU hours.
  • Memory Overhead: This speedup comes with a negligible memory cost, requiring only about 0.50 GiB of additional peak allocated GPU memory due to the small auxiliary velocity network.

Limitations and Future Work

While FBDM provides strong theoretical guarantees linking pretraining loss to downstream performance, this analysis operates in a "small-loss regime" and assumes high augmentation quality. The theory bounds the error given a well-minimized loss but does not guarantee that the optimization algorithm will always reach that global minimum. Additionally, because the velocity field network is discarded after pretraining, exploring whether it can be repurposed for downstream tasks remains an open avenue for future research.

Summary updated

BibTeX
@misc{jiao2026learning,
  author = {Yuling Jiao and Wensen Ma and Houduo Qi and Defeng Sun},
  title = {{Learning a Flow to Self-Supervised Representations}},
  year = {2026},
  eprint = {2609.29350},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.29350},
}
Figure