Auto Encoding Neural Process for Multi-interest Recommendation

Yiheng Jiang, Yuanbo Xu, Yongjian Yang, Funing Yang, Pengyang Wang, Chaozhuo Li

Introduction

Modern recommender systems face significant challenges in capturing the inherent diversity and dynamic nature of human behavior. Users often possess multifaceted interests—such as a simultaneous preference for science fiction and culinary arts—that evolve over time. Traditional deep learning approaches typically fall into two categories: Single-point Interest Representation (SIR), which compresses history into a single vector, and Multi-point Interest Representation (MIR), which uses a fixed set of vectors. While SIR lacks expressive bandwidth, MIR often struggles with rigid thresholds and an inability to adapt to unique user patterns. Furthermore, standard neural networks are often "overconfident," providing predictions without quantifying uncertainty.

The NP-Rec Paradigm: From Points to Distributions

To address these limitations, NP-Rec redefines recommendation as a stochastic process rather than a deterministic mapping. Instead of learning a fixed preference function $f(x)$, the model learns a distribution over functions $P(f|x)$ using Neural Processes (NPs). This shift allows the system to capture a "cloud" of possible preference functions, providing the flexibility needed to model diverse interests and providing built-in uncertainty estimation.

Comparison between standard Neural Networks and Neural Processes for recommendation.

Methodology

NP-Rec combines the sequential modeling capabilities of state-space models with the probabilistic flexibility of NPs.

Architecture

The architecture consists of two primary stages:

  1. Sequence Model (Mamba): A selective state-space model extracts high-dimensional features from user interaction history, capturing temporal dependencies.
  2. The NP Model: An Encoder-Decoder structure processes these features. It includes a Deterministic Path for stable user profiling and a Latent Path that uses the reparameterization trick to sample from a distribution. Unlike standard NPs that use Gaussian distributions, NP-Rec employs a categorical decoder to handle discrete item selection from large catalogs.
The NP-Rec architecture in training and inference modes.

Training and Inference

During training, the model maximizes the Evidence Lower Bound (ELBO), balancing prediction accuracy with latent distribution consistency. At inference, the model samples $K$ times from the latent space and averages the results, naturally incorporating uncertainty into the final recommendation.

Experimental Results

NP-Rec was evaluated on four benchmarks: MovieLens (ML-100K, ML-1M) and Foursquare (NYC, TKY). The model consistently outperformed nine state-of-the-art baselines, including SASRec and REMI.

  • Performance Gains: NP-Rec achieved an average improvement of 13.94% across all datasets, with peak improvements reaching 30.12% on specific metrics for ML-100K.
  • Plug-and-Play Extensibility: A key finding is that the NP module can enhance other backbones. Adding NP logic to models like SASRec or GRU4Rec consistently boosted their performance.
  • Uncertainty as a Feature: By measuring the entropy of its predictions during sampling, the model can identify when it is unsure, helping to avoid overconfident but irrelevant recommendations.

Conclusion

By treating user preferences as a stochastic process, NP-Rec offers a more "elastic" and robust framework for multi-interest recommendation. While the sampling process introduces some computational overhead, the significant gains in accuracy and the addition of uncertainty estimation represent a major step forward for the field. Future work will explore attention mechanisms for better aggregation and auto-regressive inference for long-term dependencies.

Summary updated

BibTeX
@inproceedings{jiang2025auto,
  author = {Yiheng Jiang and Yuanbo Xu and Yongjian Yang and Funing Yang and Pengyang Wang and Chaozhuo Li},
  title = {{Auto Encoding Neural Process for Multi-interest Recommendation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33293},
}
Figure