Skip to main content
QUICK REVIEW

[Paper Review] Towards Large Scale Training Of Autoencoders For Collaborative Filtering

Abdallah Moussawi|arXiv (Cornell University)|Aug 30, 2018
Speech and Audio ProcessingComputer Science2 references5 citations
TL;DR

This paper proposes a mini-batch negative sampling method to efficiently train a latent factor autoencoder for large-scale collaborative filtering with implicit feedback. By sampling only negative items interacted with by other users in the same mini-batch, the method reduces training time from O(|U|×|I|) to O(m×∑|I_u|), achieving over 2.3x speedup on CPU and 2.0x on GPU while maintaining near-baseline performance (≤3.72% drop in NDCG@100).

ABSTRACT

In this paper, we apply a mini-batch based negative sampling method to efficiently train a latent factor autoencoder model on large scale and sparse data for implicit feedback collaborative filtering. We compare our work against a state-of-the-art baseline model on different experimental datasets and show that this method can lead to a good and fast approximation of the baseline model performance. The source code is available in https://github.com/amoussawi/recoder .

Motivation & Objective

  • To address the computational inefficiency of training autoencoders on large-scale, sparse user-item interaction data.
  • To reduce the time complexity of reconstructing highly sparse, high-dimensional interaction vectors during training.
  • To maintain high recommendation performance while significantly accelerating training through targeted negative sampling.
  • To enable scalable training of non-linear autoencoder models on industrial-scale datasets with implicit feedback.

Proposed method

  • The model uses a deep autoencoder architecture where user embeddings are learned via a multi-layer perceptron (f_λ) applied to user interaction vectors, followed by a reconstruction head (g_θ) with logistic likelihood.
  • The negative log-likelihood loss is minimized using logistic likelihood: -∑ᵢ xᵤ log(g_θ(zᵤ)) - (1 - xᵤ) log(1 - g_θ(zᵤ)).
  • Negative sampling is performed per mini-batch by selecting only items interacted with by other users in the batch, not all items in the full item set.
  • The sampling probability for an item i is P = min(|Uᵢ|/N, 1), where N ≈ |U|/m, making sampling biased toward popular items.
  • Regularization is applied via input dropout and L2 weight decay on both encoder and decoder parameters.
  • For memory efficiency with large batch sizes, the model supports slicing large sparse batches into smaller, manageable mini-batches.

Experimental results

Research questions

  • RQ1Can a mini-batch negative sampling strategy significantly reduce training time for autoencoder-based collaborative filtering without sacrificing recommendation quality?
  • RQ2How does sampling only negative items from other users in the same mini-batch compare to full-item negative sampling in terms of performance and scalability?
  • RQ3To what extent can a non-linear autoencoder model approximate the performance of a state-of-the-art baseline model while being trained faster on large-scale sparse data?
  • RQ4How does the choice of batch size affect the bias in negative sampling and the resulting model generalization?
  • RQ5Can the proposed method scale to very large datasets with high sparsity (e.g., 0.064% sparsity) while maintaining efficiency?

Key findings

  • The proposed method achieves a 2.6x to 3.32x speedup on CPU and 2.1x to 3.32x on GPU compared to the baseline model across all datasets.
  • On ML-20M, the model achieves 0.4193 NDCG@100, a 0.45% decrease from the baseline (0.4212), with minimal performance drop.
  • On MSD-Large, the model achieves 0.2945 NDCG@100, a 3.72% drop from the baseline (0.3059), while training 3.32x faster on GPU.
  • The mean input vector size for a batch of 500 users was reduced from 98,485 (full item set) to 18,740, significantly reducing computational load.
  • The model maintains consistent performance across all datasets, including the largest (MSD-Large), demonstrating robustness to increasing sparsity.
  • Cross-validation showed that a batch size of 500 was optimal, as lower sizes led to overfitting and performance degradation after a few epochs.

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.