Flow Matching based Sequential Recommender Model
Feng Liu, Lixin Zou, Xiangyu Zhao, Min Tang, Liming Dong, Dan Luo, Xiangyang Luo, Chenliang Li
TL;DR
Diffusion-based sequential recommender models suffer from noise perturbations in both forward and reverse steps, which can distort user preferences and produce suboptimal next-item suggestions. FMRec addresses these issues by adopting Flow Matching with a straight trajectory, a modified training target that predicts $f_\Theta(z_t,t)$ toward the true embedding $x_c$, a decoder-based reconstruction loss, and a deterministic ODE-based reverse sampler to eliminate randomness during generation. The approach integrates a robust transformer decoder, regularized losses $\mathcal L_{CE}$ and $\mathcal L_{MSE}$, and mode-sampled timesteps to stabilize learning, achieving improved robustness to noise. Empirical results on four benchmark datasets show FMRec attains an average improvement of 6.53% over state-of-the-art methods, with notable gains over both traditional and diffusion-based baselines, underscoring the practical value of straight-flow diffusion in sequential recommendation.
Abstract
Generative models, particularly diffusion model, have emerged as powerful tools for sequential recommendation. However, accurately modeling user preferences remains challenging due to the noise perturbations inherent in the forward and reverse processes of diffusion-based methods. Towards this end, this study introduces FMRec, a Flow Matching based model that employs a straight flow trajectory and a modified loss tailored for the recommendation task. Additionally, from the diffusion-model perspective, we integrate a reconstruction loss to improve robustness against noise perturbations, thereby retaining user preferences during the forward process. In the reverse process, we employ a deterministic reverse sampler, specifically an ODE-based updating function, to eliminate unnecessary randomness, thereby ensuring that the generated recommendations closely align with user needs. Extensive evaluations on four benchmark datasets reveal that FMRec achieves an average improvement of 6.53% over state-of-the-art methods. The replication code is available at https://github.com/FengLiu-1/FMRec.
