Unleashing the Potential of Neighbors: Diffusion-based Latent Neighbor Generation for Session-based Recommendation

Yuhan Yang, Jie Zou, Guojia An, Jiwei Wei, Heng Tao ShenarXiv 2026

TL;DR

DiffSBR shifts the paradigm of session-based recommendation from simply retrieving similar historical sessions to generating completely new, synthetic "latent neighbors" using diffusion models. By combining retrieval-guided priors with multi-modal session signals, it effectively fills sparse interest spaces and significantly outperforms state-of-the-art recommendation baselines.

What Problem Does This Paper Address?

Session-based recommendation (SBR) tries to predict a user's next action based solely on a short, anonymous sequence of interactions (like a single shopping session). Because these sessions are brief and lack historical user profiles, algorithms suffer heavily from data sparsity.

To fix this, modern SBR systems look for "neighbor" sessions in the dataset that share similar items or patterns. However, traditional retrieval methods are strictly bound by the limits of the dataset. If a perfectly aligned neighbor session doesn't explicitly exist in the training data, the retriever can't find it. The authors call these missing, ideal sessions latent neighbors. As shown in Figure 1, while retrieval methods are trapped in the intersection of the dataset distribution and the user's interest space, a generative approach can explore the full extent of the user's underlying preferences.

Figure 1: Retrieval-based method vs. generative method. The blue region represents the distribution of the dataset, while the green region denotes the full interest space of the cur- rent session. Retrieval-based method can only access interest- aligned neighbors within the intersection of these regions, thus being constrained by observed data. In contrast, the gen- erative method overcomes this limitation by exploring the entire interest space, enabling the generation of potentially relevant but unobserved latent neighbors.

Methods

The authors introduce DiffSBR (Diffusion-based Latent Neighbor Generation for Session-based Recommendation), a framework that leverages conditional Denoising Probabilistic Diffusion Models (DDPM) to synthesize these latent neighbors.

The architecture consists of three core components:

  1. ID and Multi-modal Session Representation Module: Items are encoded using graph convolutional networks (GCNs) over item co-occurrence graphs. To bridge the gap between text and images, visual features (via GoogLeNet) are converted into textual labels and combined with product descriptions before being processed by a pre-trained BERT model.
  2. Retrieval-augmented Diffusion (RAD) Module: A learnable retriever pulls the top-$k$ actual ("observable") neighbors from the dataset. These neighbors act as a semantic guide during the diffusion model's reverse denoising process. Crucially, the authors implement a feedback-driven retriever optimization loop: the generator's loss is used to train the retriever, teaching it to find observable neighbors that are genuinely useful for generating latent ones.
  3. Self-augmented Diffusion (SAD) Module: To inject multi-modal signals (text and images) without muddying the retrieval guidance, a parallel diffusion path is created. This path uses the session's own multi-modal embeddings to guide denoising. The outputs of the RAD and SAD modules are then aligned using contrastive learning.
Figure 2: The overall framework of DiffSBR. The left part is the overall framework, and the right part represents the two main components of our diffusion module: (1) the retrieval-augmented diffusion module, which generates latent neighbors guided by retrieved priors; (2) the self-augmented diffusion module, which leverages the session’s own multi-modal information to improve the quality of latent neighbors.

Datasets

The model was evaluated on four public benchmarks commonly used in SBR research:

  • Cellphones, Sports, and Grocery: Three distinct categories from the Amazon dataset containing both textual descriptions and product images.
  • Instacart: A grocery shopping dataset containing only textual data.

Following standard SBR preprocessing, very short sessions (length 1) and rare items were filtered out.

Key Insights and Ideas

  • From Retrieval to Generation: Instead of treating historical data as a static library, DiffSBR treats it as a foundation to simulate ideal, unobserved user journeys.
  • Closed-Loop Collaboration: Rather than optimizing the retriever and generator separately, the retriever actively learns from the generator's downstream denoising performance via a relative ranking loss.
  • Decoupled Multi-modal Guidance: Simple early or late fusion of multi-modal data often degrades diffusion performance. By separating the multi-modal guidance into its own parallel self-augmented diffusion path and using contrastive learning, the model preserves clean semantic spaces.

Key Results

DiffSBR consistently outperformed all baseline models—including traditional sequential models (NARM, SR-GNN), advanced retrieval models (DIMO), and standard sequential diffusion models (DiffuRec, DiQDiff)—across all four datasets.

  • Quantitative Gains: DiffSBR achieved significant improvements in Precision (P@10/20) and Mean Reciprocal Rank (MRR@10/20). For instance, it showed up to an 18.79% improvement in MRR@10 on the Instacart dataset compared to the best-performing baseline.
  • Qualitative Validation: Using t-SNE to visualize the embedding space, the authors demonstrated that the generated latent neighbors cluster much more tightly around the target session than the top retrieved observable neighbors, proving they are semantically closer to the user's true intent.
t-SNE Spatial Visualization of Neighbors

Limitations and Future Work

The authors note that this is an initial, preliminary step into modeling latent neighbors for SBR. While diffusion models proved highly effective, the framework's computational overhead during the iterative denoising steps remains a challenge inherent to diffusion architectures.

For future work, the authors plan to explore alternative generative architectures, such as autoregressive models, and investigate hybrid frameworks that combine multiple generative paradigms to further refine the quality and efficiency of latent neighbor generation.

Summary updated

BibTeX
@misc{yang2026unleashing,
  author = {Yuhan Yang and Jie Zou and Guojia An and Jiwei Wei and Yang Yang and Heng Tao Shen},
  title = {{Unleashing the Potential of Neighbors: Diffusion-based Latent Neighbor Generation for Session-based Recommendation}},
  year = {2026},
  eprint = {2601.03903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.03903},
}
Figure