Skip to main content
QUICK REVIEW

[Paper Review] An Introduction to Matrix factorization and Factorization Machines in Recommendation System, and Beyond

Yuefeng Zhang|arXiv (Cornell University)|Mar 12, 2022
Matrix Theory and AlgorithmsComputer Science7 citations
TL;DR

This paper provides a comprehensive introduction to matrix factorization (MF) and factorization machines (FM), explaining their mathematical foundations, practical implementations in recommendation systems, and integration with deep learning. It details SVD, Funk-SVD, SVD++, FM, FFM, and DeepFM models through step-by-step derivations, numerical examples, and computational complexity analysis, demonstrating their effectiveness in handling explicit and implicit feedback while balancing model efficiency and predictive accuracy.

ABSTRACT

This paper aims at a better understanding of matrix factorization (MF), factorization machines (FM), and their combination with deep algorithms' application in recommendation systems. Specifically, this paper will focus on Singular Value Decomposition (SVD) and its derivations, e.g Funk-SVD, SVD++, etc. Step-by-step formula calculation and explainable pictures are displayed. What's more, we explain the DeepFM model in which FM is assisted by deep learning. Through numerical examples, we attempt to tie the theory to real-world problems.

Motivation & Objective

  • To provide a clear, step-by-step explanation of matrix factorization (MF) and factorization machines (FM) for researchers and practitioners in recommendation systems.
  • To bridge theoretical concepts with real-world applications using numerical examples and visualizable formulae.
  • To analyze the computational complexity and trade-offs of MF variants (SVD, Funk-SVD, SVD++) and FM extensions (FFM, DeepFM).
  • To demonstrate how deep learning enhances FM through the DeepFM architecture, enabling high-order feature interaction modeling.
  • To compare MF with traditional collaborative filtering methods in terms of space, time, and online inference efficiency.

Proposed method

  • Derives Singular Value Decomposition (SVD) and its variants (Funk-SVD, SVD++) for rating matrix completion using low-rank approximation.
  • Introduces the Factorization Machine (FM) model using second-order feature interactions with parameter sharing across features and fields.
  • Presents Field-Aware Factorization Machine (FFM) by assigning distinct latent vectors per feature-field pair to improve modeling of heterogeneous feature interactions.
  • Proposes the DeepFM model, combining FM’s second-order interactions with a deep neural network for high-order feature learning, sharing the same input embedding.
  • Applies gradient descent with momentum-based optimization (e.g., Adam-like framework) for end-to-end training of FM and DeepFM models.
  • Uses numerical examples to illustrate matrix decomposition, prediction computation, and parameter updates in MF and FM.

Experimental results

Research questions

  • RQ1How do SVD, Funk-SVD, and SVD++ differ in their approach to matrix completion and what are their respective computational trade-offs?
  • RQ2What is the mathematical structure of the Factorization Machine (FM) model, and how does it generalize to implicit feedback and high-dimensional sparse features?
  • RQ3How does the Field-Aware Factorization Machine (FFM) improve upon FM by modeling feature-field interactions?
  • RQ4In what way does the DeepFM model combine FM and deep neural networks to enhance recommendation performance?
  • RQ5What are the key optimization strategies and complexity characteristics of training MF and FM-based models at scale?

Key findings

  • SVD-based methods achieve lower space complexity $O(F imes (M + N))$ compared to collaborative filtering’s $O(M^2)$ or $O(N^2)$, making them more memory-efficient.
  • Funk-SVD and SVD++ improve upon standard SVD by learning user and item biases and incorporating implicit feedback, enhancing prediction accuracy.
  • The FM model achieves $O(k imes n)$ computation complexity for second-order interactions, where $k$ is the latent dimension and $n$ the number of features.
  • FFM improves generalization by using separate latent vectors per feature-field pair, reducing spurious correlations between unrelated feature categories.
  • DeepFM achieves superior performance by jointly learning low-order (FM) and high-order (deep) feature interactions with shared input embeddings, enabling effective CTR prediction.
  • Optimization algorithms like Adam (implicitly described) enable stable and efficient training of FM and DeepFM via adaptive learning rates and momentum-based gradient updates.

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.