Factorization Machines (FMs) have long been a cornerstone of recommendation systems and click-through rate (CTR) prediction due to their ability to capture second-order feature interactions in sparse, high-dimensional data. However, despite their empirical success, the theoretical understanding of FMs remained incomplete for years. Presented at AAAI-19, this research provides a rigorous foundation for FMs, demonstrating that traditional modeling constraints are not only unnecessary but can actually hinder performance.
The Theoretical Gap in Factorization Machines
Standard Factorization Machines are designed to model the interaction between two variables—such as a user's demographic and a product category—by learning an interaction matrix. Historically, theoretical analysis of these models faced two major hurdles:
- Sampling Complexity: Previous proofs suggested that learning a rank-$k$ model with $d$ dimensions required $O(k^3 d)$ samples. This significantly exceeded the information-theoretic lower bound of $O(kd)$, suggesting that FMs were either inefficient or poorly understood.
- Distributional Assumptions: Most existing guarantees relied on the assumption that input data followed a perfect Gaussian distribution, a condition rarely met in real-world datasets.
Furthermore, the original FM formulation introduced two specific constraints: the Positive Semi-Definite (PSD) constraint (assuming interactions are always positive in a matrix sense) and the diagonal-zero constraint (ignoring a feature's interaction with itself). This paper investigates whether these constraints are truly beneficial.
The Improved Factorization Machine (iFM)
The authors analyze a "Generalized FM" and propose the Improved Factorization Machine (iFM), which optimizes the model by rethinking these core constraints.
1. Eliminating the PSD Constraint
In traditional FMs, the interaction matrix $M$ is typically modeled as $UU^\top$. This forces the matrix to be Positive Semi-Definite, which the authors identify as a source of "asymmetric bias." This constraint makes it mathematically difficult for the model to learn negative interactions, leading to under-fitting in datasets with symmetric or negative patterns. By decoupling the matrix into $UV^\top$, the iFM becomes more flexible. This change also transforms the loss function from a complex 4th-order polynomial into a form that is significantly easier to optimize using alternating gradient descent.
2. Validating the Diagonal-Zero Constraint
While the PSD constraint is discarded, the authors prove that the diagonal-zero constraint (setting $M_{ii} = 0$) is actually essential. They introduce the Moment Invertible Property (MIP) to explain why. For many realistic data distributions (such as Bernoulli distributions), it is information-theoretically impossible to recover the diagonal elements of the interaction matrix without an impractical amount of data. By enforcing the diagonal-zero constraint, the iFM "short-circuits" this difficulty, allowing it to reach optimal complexity.
3. High Order Moment Elimination
To extend their proofs to "sub-gaussian" distributions—a much broader and more realistic class of data than pure Gaussian—the authors developed a technique called High Order Moment Elimination. This mathematical framework allows the training algorithm to cancel out the "noise" in gradients caused by non-Gaussian data, ensuring stable convergence.
Empirical Performance
The iFM was tested against both synthetic benchmarks and a high-precision real-world task: vTEC Estimation (vertical Total Electron Content). This task involves calibrating GPS signals by estimating ionospheric interference, a critical requirement for centimeter-level positioning accuracy.
- Theoretical Optimality: The iFM is the first variant proven to achieve the optimal sampling complexity of $O(kd \log(kd))$ for sub-gaussian data.
- Synthetic Robustness: In experiments where the ground-truth interaction matrix contained negative eigenvalues, standard FMs failed to converge, while iFM achieved near-zero error rapidly.
- GPS Accuracy: In the vTEC task, iFM outperformed both standard FMs and Ridge regression. Notably, it improved the RTK ratio (the success rate of high-precision positioning) to 64.44%, compared to 63.10% for the standard FM.
Conclusion
This research clarifies the mechanics of Factorization Machines by showing that decoupling the interaction matrices ($UV^\top$) and maintaining a zero diagonal leads to a model that is both theoretically optimal and practically superior. While the study focuses on second-order interactions, it sets the stage for future exploration into higher-order polynomial networks and sparse data contexts. For practitioners, the message is clear: removing the PSD constraint simplifies optimization and improves the model's ability to capture the full spectrum of feature interactions.
Summary updated