Projective Quadratic Regression for Online Learning

Wenye Ma

Projective Quadratic Regression for Online Learning

Projective Quadratic Regression (PQR) is a novel convex model designed for high-dimensional online learning. It captures second-order feature interactions without the computational overhead typical of standard quadratic regression. By strategically separating features into high- and low-frequency groups and employing a parameter-sharing scheme, PQR achieves the predictive power of Factorization Machines (FM) while maintaining the theoretical guarantees and efficiency of linear models.

The Problem: The Interaction Trilemma

In online learning environments like ad-click prediction or recommender systems, models must update instantly as data arrives. To perform well, these models must capture feature interactions (e.g., "User Age" + "Movie Genre"). Currently, researchers face a "trilemma":

  1. Linear Models: Fast and convex, but they miss all feature interactions unless manually engineered.
  2. Quadratic Regression: Captures all interactions but has a space complexity of $O(d^2)$, which is impossible for high-dimensional data where $d$ can be millions.
  3. Factorization Machines (FM): Efficiently model interactions using low-rank matrices, but they are non-convex. This means they lack global optimality guarantees and are difficult to analyze within the Online Convex Optimization (OCO) framework.

PQR seeks a model that is simultaneously convex, efficient (linear in $d$), and capable of capturing second-order interactions.

Methods: Projective Geometry and Parameter Sharing

The core innovation of PQR is its restricted interaction matrix structure. Instead of using a low-rank assumption or a full matrix, PQR restricts the interaction matrix based on feature frequency.

1. Feature Separation

The model splits features into two groups: High-frequent ($H$) features that appear often, and Low-frequent ($L$) features that appear rarely. This is motivated by the observation that in real-world data, a few features appear constantly while most are rare.

2. The PQR Matrix Structure

The interaction matrix $A$ is constructed with a specific "projective" geometry:

  • $H \times H$ interactions: Modeled with full, unique parameters ($p_{i,j}$).
  • $H \times L$ interactions: Modeled using shared parameters. For a specific high-frequency feature $i$, its interaction with any low-frequency feature $j$ uses the same parameter $q_i$.
  • $L \times L$ interactions: Ignored (set to zero) to save space.
The PQR interaction matrix structure, illustrating unique parameters for high-frequency interactions and shared parameters for high-low interactions.

3. Convexity and Complexity

Because the model is defined by restricting the feasible set of a symmetric matrix rather than factorizing it, the resulting loss function remains convex. This allows the use of standard online optimization algorithms like Follow-The-Regularized-Leader (FTRL). By choosing the number of high-frequency features $k$ to be roughly $O(\sqrt{d})$, the model maintains a space and time complexity of $O(d)$, making it as efficient as a simple linear model.

Key Results

The paper evaluates PQR on online rating prediction (MovieLens) and massive online binary classification tasks (Avazu, Criteo, and KDD2012).

  • Accuracy: PQR consistently achieved lower Root Mean Square Error (RMSE) on MovieLens compared to Linear Regression (LR), vanilla FM, and DiFacto. As shown in the results table, increasing the number of high-frequency features ($k$) generally improves performance.
  • Efficiency: On the Avazu dataset, PQR was roughly 17x faster to train than vanilla Factorization Machines.
  • Scalability: PQR handled the KDD2012 dataset (54 million features) with a training time only ~3x that of a basic linear model, whereas more complex convex FM variants are computationally impractical at this scale.
RMSE comparison on MovieLens datasets. PQR consistently achieves the lowest error across different scales and hyperparameter settings.

Conclusion

PQR provides a scalable, convex alternative to Factorization Machines for streaming data. By leveraging the "frequency intuition"—that interactions involving high-frequency features are more valuable—it preserves convexity while keeping the parameter count low. While the choice of $k$ remains a manual heuristic, PQR represents a significant step toward efficient, second-order online learning.

Summary updated

BibTeX
@inproceedings{ma2020projective,
  author = {Wenye Ma},
  title = {{Projective Quadratic Regression for Online Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5951},
}
Figure