Contrastive Flow Matching for Collaborative Filtering
Wangyu Jin, Jiansheng Qian, Wenwen Xia, Hongliang He, Guanfeng Liu, Pengpeng Zhao
Abstract
Flow Matching (FM) has recently been introduced into generative collaborative filtering due to its potential to capture user preferences. However, existing FM-based methods are often trained with only the standard regression objective in flow matching and lack explicit inter-user supervision. This can drive the model toward an averaged preference pattern and generate indistinguishable predictions across users. A natural remedy is to introduce contrastive learning for inter-user separation, yet naive designs face two challenges: (1) In FM-based collaborative filtering, the output is a user's predicted interaction scores over items. Applying contrastive learning directly on this output forces different users to be separated even when they share the same preferences, leading to false repulsion. (2) Flow matching is highly sensitive to its input, so input-level perturbations for view construction can change the generated outcome, making positive pairs semantically mismatched. To address these issues, we propose CoFlowCF, a contrastive flow matching framework for collaborative filtering. Specifically, CoFlowCF introduces hidden contrastive learning by applying inter-user constraints before the flow model's final outputs. We decompose the flow model into a flow encoder and a prediction head, and apply contrastive regularization to the encoder output representations to avoid false repulsion in the prediction space. To build semantically consistent views, we keep the input unchanged and use independent dropout inside the encoder instead of input-level perturbations. Extensive experiments and ablation studies on multiple real-world datasets demonstrate that CoFlowCF consistently improves recommendation performance and robustness. The code is available at https://github.com/DevByQian/CoFlowCF.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 8cd693c5-3c25-4bd2-b8a8-a2a4ffed3c13Related papers
- Automated Self-Supervised Learning for RecommendationLianghao Xia, Chao Huang, Chunzhen Huang, Kangyi Lin et al.WWW 2023 · 141 citations
- Flow Matching for Collaborative FilteringChengkai Liu, Yangtian Zhang, Jianling Wang, Rex Ying et al.KDD 2025 · 4 citations
- Empowering Collaborative Filtering with Principled Adversarial Contrastive LossAn Zhang, Leheng Sheng, Zhibo Cai, Xiang Wang et al.NeurIPS 2023 · 56 citations
- RecDCL: Dual Contrastive Learning for RecommendationDan Zhang, Yangliao Geng, Wenwen Gong, Zhongang Qi et al.WWW 2024 · 63 citations
- SGMT: Social Generating with Multiview-Guided Tuning In Recommender SystemsJianghong Ma, Changran He, Dezhao Yang, Tianjun Wei et al.AAAI 2026
