Online Compact Convexified Factorization Machine

Wenpeng Zhang, Xiao Lin, Peilin Zhao · DOI

Abstract

Factorization Machine (FM) is a supervised learning approach with a powerful capability of feature engineering. It yields state-of-the-art performance in various batch learning tasks where all the training data is made available prior to the training. However, in real-world applications where the data arrives sequentially in a streaming manner, the high cost of re-training with batch learning algorithms has posed formidable challenges in the online learning scenario. The initial challenge is that no prior formulations of FM could fulfill the requirements in Online Convex Optimization (OCO) -- the paramount framework for online learning algorithm design. To address the aforementioned challenge, we invent a new convexification scheme leading to a Compact Convexified FM (CCFM) that seamlessly meets the requirements in OCO. However for learning Compact Convexified FM (CCFM) in the online learning setting, most existing algorithms suffer from expensive projection operations. To address this subsequent challenge, we follow the general projection-free algorithmic framework of Online Conditional Gradient and propose an Online Compact Convex Factorization Machine (OCCFM) algorithm that eschews the projection operation with efficient linear optimization steps. In support of the proposed OCCFM in terms of its theoretical foundation, we prove that the developed algorithm achieves a sub-linear regret bound. To evaluate the empirical performance of OCCFM, we conduct extensive experiments on 6 real-world datasets for online recommendation and binary classification tasks. The experimental results show that OCCFM outperforms the state-of-art online learning algorithms.

Introduction

Factorization Machines (FMs) are a staple in machine learning because they excel at capturing interactions between features—such as how a specific user's preference interacts with a movie genre. However, vanilla FMs face two major hurdles in modern production environments: non-convexity and the inefficiency of batch learning for streaming data. Non-convexity means training can get stuck in local optima, while batch-heavy algorithms are computationally prohibitive when data arrives in a constant stream, such as in online advertising or recommendation engines.

While "Convex FMs" have been proposed to solve the first problem, they often fail to integrate with the Online Convex Optimization (OCO) framework. They typically treat model components—bias, weights, and interactions—as separate entities, making it impossible to provide the strong theoretical "regret bounds" (guarantees that the model learns effectively over time) required for robust online learning. This paper introduces the Online Compact Convexified Factorization Machine (OCCFM) to bridge this gap.

Methodology

1. Compact Convexification (CCFM)

The authors propose a novel innovation: instead of maintaining separate parameters for global bias, feature weights, and interaction matrices, they unify them into a single augmented symmetric matrix. By applying a nuclear norm constraint to this matrix, it acts as a convex proxy for a low-rank constraint. This keeps the model simple and prevents overfitting while ensuring the mathematical objective remains convex and smooth, satisfying the requirements of the OCO framework.

2. Projection-Free Online Learning (OCCFM)

Standard online learning often requires a "projection" step to keep parameters within a valid range. For matrices, this typically involves Singular Value Decomposition (SVD), which has a high computational complexity of $O(d^3)$.

To overcome this, OCCFM utilizes an Online Conditional Gradient (OCG) approach. Instead of a full SVD, it only requires finding the maximal singular vectors. This "projection-free" strategy is significantly faster, allowing the model to update in real-time as new data streams in. The authors prove a sub-linear regret bound of $O(T^{3/4})$, providing a theoretical guarantee that the model converges toward the best possible decision as it processes more data.

Convergence speed: Average loss vs. time for Movielens 100K and 1M datasets, showing OCCFM's rapid performance gains compared to baselines.

Experimental Evaluation

The researchers evaluated OCCFM on six diverse, real-world datasets, including recommendation tasks (Movielens-100K, 1M, 10M) and binary classification tasks (IJCNN1, Spam, Epsilon).

Key Results

OCCFM consistently outperformed state-of-the-art baselines like FM-FTRL and CFM-FTRL in both accuracy and speed.

RMSE performance comparison on Movielens datasets, highlighting OCCFM's superior accuracy.

As shown in Figure 6, on the Movielens-1M dataset, OCCFM achieved an RMSE of 0.9702, significantly better than the vanilla FM-FTRL's 1.1074. Furthermore, as illustrated in the convergence plots (Figure 3), the projection-free nature of the algorithm allows the average loss to drop much faster per second of CPU time compared to algorithms relying on standard gradient descent or passive-aggressive updates.

Conclusion and Future Work

The OCCFM framework successfully brings the power of Factorization Machines to high-speed data streams. By unifying model parameters and adopting a projection-free optimization strategy, it achieves state-of-the-art accuracy with significantly lower computational overhead.

While the current work focuses on pairwise interactions, the authors note that their routine for linear optimization on a symmetric bounded nuclear norm ball is generalizable to other online learning tasks. Future research may explore extending this logic to higher-order interactions or decentralized and distributed online learning environments.

Summary updated

BibTeX
@inproceedings{zhang2018online,
  author = {Wenpeng Zhang and Xiao Lin and Peilin Zhao},
  title = {{Online Compact Convexified Factorization Machine}},
  booktitle = {The Web Conference},
  year = {2018},
  doi = {10.1145/3178876.3186075},
}
Figure