Skip to main content
QUICK REVIEW

[Paper Review] On Sampling Strategies for Neural Network-based Collaborative Filtering

Ting Chen, Yizhou Sun|arXiv (Cornell University)|Jun 23, 2017
Recommender Systems and TechniquesComputer Science34 references4 citations
TL;DR

This paper proposes a general neural network-based collaborative filtering framework that unifies state-of-the-art recommendation models by combining user-item interactions with deep learning for content features. To address high computational costs, it introduces three novel sampling strategies—stratified sampling, negative sharing, and their hybrid—that reduce training time by up to 30× by reusing expensive node computations across sampled links, while improving recommendation performance through better gradient estimation and convergence.

ABSTRACT

Recent advances in neural networks have inspired people to design hybrid recommendation algorithms that can incorporate both (1) user-item interaction information and (2) content information including image, audio, and text. Despite their promising results, neural network-based recommendation algorithms pose extensive computational costs, making it challenging to scale and improve upon. In this paper, we propose a general neural network-based recommendation framework, which subsumes several existing state-of-the-art recommendation algorithms, and address the efficiency issue by investigating sampling strategies in the stochastic gradient descent training for the framework. We tackle this issue by first establishing a connection between the loss functions and the user-item interaction bipartite graph, where the loss function terms are defined on links while major computation burdens are located at nodes. We call this type of loss functions "graph-based" loss functions, for which varied mini-batch sampling strategies can have different computational costs. Based on the insight, three novel sampling strategies are proposed, which can significantly improve the training efficiency of the proposed framework (up to $ imes 30$ times speedup in our experiments), as well as improving the recommendation performance. Theoretical analysis is also provided for both the computational cost and the convergence. We believe the study of sampling strategies have further implications on general graph-based loss functions, and would also enable more research under the neural network-based recommendation framework.

Motivation & Objective

  • To address the high computational cost of training hybrid neural network-based collaborative filtering models that combine user-item interactions with deep learning for content features.
  • To identify the disconnect between link-based loss functions and node-level computation in graph-structured models, where sampling strategies significantly affect training efficiency.
  • To design sampling strategies that minimize redundant computation of expensive neural network operations (e.g., CNNs) across multiple user-item interactions.
  • To theoretically and empirically validate that optimized sampling can improve both training speed and recommendation accuracy.
  • To generalize insights to other graph-based loss functions beyond recommendation systems.

Proposed method

  • The framework models user preferences via a bipartite user-item interaction graph, where loss functions are defined on links (user-item pairs), but the main computational cost lies in node-level operations (e.g., CNNs for item images or RNNs for text).
  • The authors introduce Stratified Sampling, which partitions links into strata based on shared nodes and samples within each stratum to amortize costly node computations.
  • Negative Sharing reuses the same nodes across multiple negative links within a mini-batch, reducing redundant forward passes by creating additional negative samples from existing nodes.
  • A hybrid strategy combines Stratified Sampling and Negative Sharing to balance computational savings and gradient quality, leveraging the strengths of both.
  • Theoretical analysis is provided for computational cost and convergence, showing that the proposed strategies maintain or improve convergence rates compared to standard IID sampling.
  • The framework generalizes existing models like those using autoencoders, RNNs, or CNNs for content representation, and supports various loss functions including pairwise ranking and contrastive learning.

Experimental results

Research questions

  • RQ1How does the structure of the user-item interaction graph influence the computational cost of stochastic gradient descent in neural collaborative filtering?
  • RQ2Can sampling strategies that exploit shared node computations across links significantly reduce training time without degrading model performance?
  • RQ3What is the impact of different sampling strategies—such as stratified sampling and negative sharing—on the convergence and efficiency of graph-based loss functions?
  • RQ4How do the proposed sampling strategies compare to standard IID sampling in terms of training speed and recommendation accuracy?
  • RQ5To what extent can these sampling strategies be generalized to other graph-based machine learning tasks beyond recommendation systems?

Key findings

  • The proposed sampling strategies reduce training time by up to 30× compared to standard IID sampling in the authors' experiments, significantly improving training efficiency.
  • Stratified Sampling reduces computational overhead by grouping links with shared nodes, enabling reuse of expensive neural network forward passes across multiple links.
  • Negative Sharing improves efficiency by generating additional negative links from the same node features within a mini-batch, minimizing redundant computation.
  • The hybrid strategy of combining Stratified Sampling and Negative Sharing achieves the best trade-off between computational savings and model convergence, outperforming both individual strategies.
  • Theoretical analysis confirms that the proposed sampling methods maintain or improve convergence properties compared to IID sampling, even with reduced computational load.
  • Empirical results show that the improved sampling strategies lead to better recommendation performance (e.g., higher AUC and NDCG scores) compared to standard training with IID sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.