computer vision

Contrastive-Augmented Flow Matching for Style-Content Disentanglement

arXiv:2607.12404

summary

The paper proposes Contrastive Augmented Flow Matching (CAtFM), a method that adds contrastive regularization to invertible flow matching to learn disentangled content and style representations, showing improved retrieval, clustering, and robustness on several image benchmarks.

Abstract

Learning representations that separate content and style is crucial for controllable generation and compositional generalization. However, diffusion and flow-based models trained primarily with generative objectives often produce entangled or misaligned factors. To address this gap, we introduce Contrastive Augmented Flow Matching (CAtFM), a framework that integrates contrastive regularization into an invertible flow matching formulation to promote structured content-style representations. Rather than constraining intermediate latents or velocity fields, we apply contrastive supervision to predicted endpoints during training, enforcing semantic consistency across transported distributions while allowing disentanglement to emerge implicitly, without assuming strictly pure or fully factorized content and style representations. Our main experiments operate in the CLIP embedding space, with additional validation using frozen DINO and ALIGN encoders. Across synthetic data, in-domain styles, and real-world benchmarks (ImageNet, WikiArt, DomainNet, and DTD), CAtFM improves content and style retrieval, enhances embedding cluster separation, and achieves stronger open-set robustness compared to generative and discriminative baselines. Overall, CAtFM provides a simple way to couple discriminative constraints with deterministic transport, improving disentanglement and robustness under distribution shift.

under review, code available at: https://github.com/CompVis/SCFlow/tree/main#-catfm-follow-up

Topics & keywords

#style-content disentanglement#flow matching#contrastive learning#representation learning#generative models#robustnesscontrastive regularizationinvertible flowdeterministic transportCLIP embeddingscontent-style separation
Contrastive-Augmented Flow Matching for Style-Content Disentanglement · wovepaper