NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RecFusion: A Binomial Diffusion Process for 1D Data for Recommendation

Gabriel Bénédict, Olivier Jeunen, Samuele Papa, Samarth Bhargav, Daan Odijk, Maarten de Rijke · DOI · OpenReview

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.

Overview of the RecFusion framework, illustrating the 1D vector formulation and the binomial diffusion process.

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.

Visualization of the diffusion process over 100 timesteps for 50 items for a single user, showing the model's ability to reconstruct interaction probabilities.

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

BibTeX
@misc{benedict2023recfusion,
  author = {Gabriel Bénédict and Olivier Jeunen and Samuele Papa and Samarth Bhargav and Daan Odijk and Maarten de Rijke},
  title = {{RecFusion: A Binomial Diffusion Process for 1D Data for Recommendation}},
  year = {2023},
  eprint = {2306.08947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.08947},
}
Figure