Abstract
Diffusion models have revolutionized computer vision by leveraging spatial correlations in 2D images. However, applying these models to recommendation systems is non-trivial because user-item interaction data lacks inherent spatial structure and is typically binary. RecFusion introduces a novel binomial diffusion process specifically designed for 1D binary vectors. By treating each user's interaction history as a 1D vector and using a Bernoulli process for noise, RecFusion achieves superior performance and parameter efficiency compared to previous diffusion-based recommenders and standard Variational Autoencoders (VAEs).
Introduction
The success of diffusion models like Stable Diffusion relies heavily on the spatial relationships between neighboring pixels. In contrast, recommendation systems operate on user-item interaction matrices where the ordering of rows (users) and columns (items) is arbitrary. Furthermore, while image diffusion uses continuous Gaussian noise, recommendation data is often binary (e.g., clicks or purchases). Standard U-Net architectures, optimized for 2D spatial data, struggle to capture the underlying patterns in these unstructured 1D binary vectors. RecFusion bridges this gap by rethinking the diffusion process for the discrete, non-spatial domain of recommendation.
The RecFusion Framework
RecFusion adapts the iterative refinement of diffusion to 1D data through several key innovations.
1D Vector Formulation and Binomial Diffusion
Instead of treating the interaction matrix as an image, RecFusion models each user's history as a standalone 1D vector. To handle the binary nature of the data, the authors replace standard Gaussian noise with a binomial diffusion process. In the forward process, a Bernoulli process performs "bit flips," specifically transitioning bits from 1 to 0 to simulate data loss or noise. The model then learns to reverse this process, predicting the probability that a bit was originally a 1.
Architecture and Inference
The authors found that simple Multi-Layer Perceptrons (MLPs) often outperform complex U-Nets for 1D data. For top-N recommendation, a highly efficient inference strategy was developed: the model takes a slightly noisy version of the user's history and performs a single backward step to reconstruct the original interactions, balancing speed and accuracy.
Experimental Evaluation
RecFusion was evaluated on three major benchmarks: MovieLens 1M, MovieLens 25M, and the Netflix Prize dataset. The data was binarized, treating ratings of 4 stars or higher as positive interactions.
Performance and Efficiency
RecFusion significantly outperformed previous state-of-the-art diffusion models like CODIGEM. For instance, on MovieLens 1M, RecFusion achieved an NDCG@100 of 36.14, a substantial improvement over CODIGEM's 28.00. Remarkably, RecFusion is also highly parameter-efficient, using approximately one-third of the parameters required by MultVAE while maintaining competitive performance.
Key Insights
A critical finding was that forcing recommendation data into 2D formats for U-Nets is counterproductive. The 1D approach, combined with directional noise (flipping 1s to 0s), creates a smoother learning gradient for the model to "fill in" missing interactions.
Despite these gains, the "linear wall" remains a challenge: simple linear models like EASE still provide a high bar for accuracy that neural models, including RecFusion, strive to surpass.
Conclusion and Future Work
RecFusion demonstrates that diffusion models can be highly effective for recommendation when tailored to the specific characteristics of the data. Future work includes extending the binomial process to handle explicit ratings (non-binary data) and integrating advanced diffusion techniques like guidance for more personalized recommendations.
Summary updated