Abstract
Generative models have shown promise in collaborative filtering (CF) by capturing complex user preference distributions. However, existing approaches like Variational Autoencoders (VAEs) and Diffusion models suffer from training instability, high inference latency, and data mismatch issues. This paper introduces FlowCF, a generative framework that applies flow matching to CF. FlowCF replaces the stochastic, curved paths of diffusion models with deterministic straight trajectories and incorporates a behavior-guided prior. Experimental results demonstrate that FlowCF achieves state-of-the-art accuracy while being up to 25x faster than diffusion-based models during inference.
Introduction
Collaborative filtering is a cornerstone of modern recommendation systems. While generative models like VAEs and Diffusion models offer powerful ways to model user interactions, they face significant hurdles. VAEs are prone to posterior collapse, while Diffusion models (e.g., DiffRec) require numerous iterative sampling steps due to their reliance on stochastic Gaussian noise and curved probability paths. Furthermore, these models often struggle with the discrete, binary nature of recommendation data.
The FlowCF Framework
FlowCF addresses these challenges by shifting the paradigm from diffusion to flow matching.
1. The "Straight Line" Advantage
Unlike diffusion models that navigate from noise to data via a random, curved walk, flow matching learns a vector field that transforms a simple prior distribution into the target data distribution along a straight trajectory. This determinism allows the model to reach the target recommendation in far fewer steps.
2. Behavior-Guided Prior and Discrete Flow
Standard generative models typically start with pure Gaussian noise. FlowCF introduces a Behavior-Guided Prior that leverages item popularity (global interaction frequency) to create a starting point reflecting general user behavior. Additionally, to handle binary interaction data, the authors propose a Discrete Flow Framework using discretized linear interpolation. This ensures that intermediate steps remain discrete, preserving the integrity of implicit feedback.
Experimental Evaluation
FlowCF was evaluated on MovieLens-1M, MovieLens-20M, and Amazon-Beauty datasets. The authors binarized these datasets to simulate real-world implicit feedback scenarios.
Key Results
- Superior Accuracy: FlowCF consistently outperformed baselines like RecVAE and DiffRec across all benchmarks, particularly on sparse datasets like Amazon-Beauty.
- Efficiency: FlowCF achieves peak performance with only 2 sampling steps, making it approximately 25x faster than DiffRec during inference.
- Robustness: The model maintains high performance even in the presence of noisy training data (false positives), showing lower degradation rates than VAE-based methods.
Conclusion
FlowCF represents a significant advancement in generative collaborative filtering. By "straightening" the path from noise to data and grounding the process in observed user behavior, it provides a highly efficient and accurate solution for large-scale recommendation tasks. Future work includes exploring more complex architectures like Transformers and adapting the framework for sequential recommendation.
Summary updated