Factorization Machines for Data with Implicit Feedback

Babak Loni, Martha A. Larson, Alan HanjalicarXiv 2018

Introduction

Modern recommendation systems primarily navigate two types of user data: explicit and implicit feedback. While explicit feedback, such as a 5-star rating, provides clear signals of preference, it is often scarce. In contrast, implicit feedback—clicks, views, or purchase history—is abundant but ambiguous. A lack of interaction does not necessarily imply dislike; it may simply indicate a lack of exposure.

Factorization Machines (FMs) have emerged as a powerful tool in this domain due to their ability to model high-order interactions between features with linear complexity. However, standard FMs are typically optimized for explicit ratings using point-wise loss functions. This paper introduces FM-Pair, an adaptation of Factorization Machines designed to handle the nuances of implicit feedback by shifting from point-wise value prediction to pairwise ranking optimization.

Methodology: From Point-wise to Pairwise

The core innovation of FM-Pair lies in its integration of the Bayesian Personalized Ranking (BPR) criterion. Traditional FMs attempt to map interactions to a specific scalar (e.g., mapping a click to '1' and a non-click to '0'). This approach, known as FM-Map, often fails because it treats unobserved items as negative signals rather than unknown ones.

Data representation in Factorization Machines: Transforming a sparse user-item matrix into a feature-rich input vector including auxiliary context.

As illustrated in the figure above, FMs represent data by flattening the user-item matrix and concatenating it with auxiliary features. FM-Pair leverages this flexible architecture but changes the objective: instead of predicting a single value $y$, it calculates the difference between the FM scores of a positive item (clicked) and a negative item (unobserved). This allows the model to learn that a user prefers item $i$ over item $j$, which is a more robust signal for ranking tasks.

Auxiliary and Cross-Domain Features

A significant advantage of FMs is their ability to incorporate contextual data—such as time of day, location, or device type—without changing the underlying mathematical framework. The researchers also proposed FM-Pair-CD, a cross-domain variant. In this model, interactions from a source domain (e.g., music) are treated as auxiliary features to improve recommendations in a target domain (e.g., movies), effectively bridging data gaps across platforms.

Experimental Evaluation

The researchers evaluated FM-Pair against state-of-the-art models across four diverse datasets: MovieLens 100K, Amazon (cross-domain), Frappe (context-aware), and XING (professional networking).

Key results include:

  • Superior Ranking Performance: On the MovieLens dataset, FM-Pair achieved a Recall@10 of 0.2357, vastly outperforming the point-wise FM-Map, which scored only 0.0728.
  • Contextual Utility: In the Frappe dataset, adding contextual features like "isweekend" or "daytime" boosted Recall@10 from 0.1816 to 0.2064.
  • Cross-Domain Synergy: The study found that using source-domain data as auxiliary features (FM-Pair-CD) was significantly more effective than simply merging datasets, which often introduced noise and degraded performance.

Key Insights and Discussion

One of the most compelling aspects of FM-Pair is its efficiency. It maintains linear scalability relative to the number of features and latent factors, making it practical for large-scale production environments where more complex models, like Gaussian Process Factorization Machines, might be too computationally expensive.

Furthermore, the research highlights the "Point-wise Pitfall." By forcing unobserved items to a value of 0, standard FMs struggle to rank items effectively. Pairwise optimization avoids this by treating unobserved items as "less preferred" rather than "disliked," which aligns more closely with real-world user behavior.

Conclusion

FM-Pair successfully bridges the gap between the flexible feature engineering of Factorization Machines and the ranking requirements of implicit feedback datasets. By adopting a pairwise ranking objective and leveraging auxiliary contextual data, FM-Pair provides a scalable, high-performance solution for modern recommendation challenges. Future work may explore more sophisticated feature selection for cross-domain tasks and the potential of list-wise ranking objectives.

Summary updated

BibTeX
@misc{loni2018factorization,
  author = {Babak Loni and Martha A. Larson and Alan Hanjalic},
  title = {{Factorization Machines for Data with Implicit Feedback}},
  year = {2018},
  eprint = {1812.08254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.08254},
}
Figure