Abstract
Sequential recommendation aims to predict a user’s next interaction based on their historical behavior. While generative Diffusion Models (DMs) have shown promise in modeling complex preferences, they are often hindered by inaccurate "curved" noise schedules and harmful stochasticity during inference. We present FMREC, a framework that replaces complex diffusion with a streamlined Flow Matching approach. By employing a straight-line noise trajectory and a deterministic ODE-based solver, FMREC eliminates the randomness common in generative recommenders. Experimental results across four benchmarks demonstrate that FMREC achieves a 6.53% average performance improvement over current state-of-the-art methods.
Introduction
Sequential recommendation systems are critical for personalized user experiences. Recently, Diffusion Models (DMs) have emerged as a powerful alternative to traditional discriminative models due to their ability to represent multi-faceted user preferences. However, standard DMs introduce two significant challenges in the recommendation context:
- Accumulated Errors from Curved Paths: Standard diffusion adds noise along a non-linear schedule. Tracing this curve back during denoising requires many steps and often leads to significant error accumulation.
- Harmful Randomness: Stochastic samplers, while beneficial for creative image generation, can cause "drift" in recommendations, leading to suggestions that deviate from the user's clear historical intent (e.g., suggesting milk when history points to a high-end watch).
The FMREC Framework
To address these issues, the authors propose FMREC (Flow Matching Based Sequential Recommender). This model treats the transition from Gaussian noise to user preference as a fluid, straight-line path.
Straight Flow Trajectory
Unlike the complex curves of traditional diffusion, FMREC utilizes linear interpolation between target item embeddings and random noise. This "straight" path is mathematically simpler to learn and reduces error propagation during the reverse process.
Deterministic Reverse Sampler
During inference, FMREC employs an ODE-based Euler method. This process is entirely deterministic, ensuring that the generated recommendations are strictly aligned with the user's historical signal rather than being subject to the "hallucinated" randomness of stochastic samplers.
Hybrid Loss Architecture
To maintain distinct item identities and prevent embedding collapse, FMREC integrates a hybrid loss function:
- Cross-Entropy Loss: Preserves item-specific features.
- Interaction Reconstruction Loss: Ensures the model retains the user's specific interaction patterns.
- Modified Learning Target: The loss function is reformulated to predict the clean item embedding directly, rather than the noise velocity, stabilizing training for discrete recommendation items.
Experimental Evaluation
FMREC was evaluated on four widely recognized benchmarks: Amazon Beauty, Steam, MovieLens-100k, and Yelp.
Key Results
- Superior Accuracy: FMREC consistently outperformed top-tier generative baselines like DiffuRec and DreamRec, showing an average improvement of 6.53% across all datasets.
- Hit Rate Gains: On the Amazon Beauty dataset, the Hit Rate at 5 (HR@5) saw an increase of over 8% compared to the strongest existing baseline.
- Efficiency: The straight-line trajectory allows for faster convergence and requires fewer iterations to reach optimal results compared to "curved" cosine trajectories used in other diffusion variants.
Conclusion and Future Work
FMREC demonstrates that for sequential recommendation, "creativity" or randomness can often be detrimental. By simplifying the generative process into a straight-line flow and utilizing deterministic sampling, the model achieves higher accuracy and better alignment with user history.
While FMREC is a significant step forward, several areas for future exploration remain. The model currently uses a fixed number of Euler integration steps (30); exploring adaptive step sizes could further optimize inference speed. Additionally, future work could investigate better integration of multi-modal information (such as item images or text) and assess the scalability of the ODE solver on industrial-scale datasets with billions of interactions.
Summary updated