Ordinal Random Fields for Recommender Systems

Shaowu Liu, Truyen Tran, Gang Li

Introduction

In modern recommender systems, user preferences are typically captured through ordinal ratings, such as a 1-to-5 star scale. Traditional approaches often treat these ratings as continuous numerical values, ignoring their inherent ordered nature. Furthermore, existing models usually focus on either Global Structure (GS)—broad patterns of user-item interactions captured by Matrix Factorization—or Local Structure (LS)—fine-grained correlations between specific items often used in neighborhood-based methods.

This paper introduces Ordinal Random Fields (ORF), a unified probabilistic framework designed to bridge this gap. By combining Ordinal Matrix Factorization (OMF) with Markov Random Fields (MRF), ORF captures both high-level latent factors and specific item-item correlations while respecting the ordinal constraints of user feedback.

The ORF Framework

The core innovation of ORF lies in its ability to model the joint probability of a user's ratings by integrating global predictions with local dependencies. To understand the mathematical formulation, we refer to the following notations:

Table of notations used in the ORF framework.

Modeling Global and Local Structure

  1. Ordinal Matrix Factorization (OMF): This component provides a point-wise probability distribution for a rating $r_{ui}$, ensuring that the model understands a 4-star rating is "greater than" a 3-star rating without assuming a linear distance between them.
  2. Markov Random Fields (MRF): The MRF component models the "potential" or correlation between pairs of items rated by the same user. This allows the system to learn that if a user likes one specific sci-fi movie, they are statistically likely to give a similar relative rating to another sci-fi movie.
Graphical representation of item-item correlations ($i-j, j-k, i-k$) within the preference sets of different users.

As illustrated in the figure above, the model encodes relations between preferences ($r_{ui}, r_{uj}, r_{uk}$) across different users ($g_u, g_v$). The dashed lines represent the correlations that the ORF seeks to capture, effectively "promoting agreement" between the global predictions and local item-item similarities.

Key Innovations and Implementation

Feature Design and Correlation Thresholding

The authors introduced a correlation feature $f_{ij}$ that measures the similarity between ratings after adjusting for the average rating of each item. To maintain computational efficiency and avoid processing all $N^2$ possible item pairs, the model employs Correlation Thresholding, only including pairs with a strong Pearson correlation.

Scalable Training via Pseudo-likelihood

Training a full MRF is often computationally prohibitive due to the partition function (a complex normalization constant). To ensure scalability, the authors utilized pseudo-likelihood estimation. This approach approximates the global objective by maximizing the local likelihood of each rating conditioned on its neighbors, making the model viable for larger datasets.

Experimental Results

The ORF model was evaluated against standard benchmarks, including MovieLens 100K and MovieLens 1M. The results demonstrated that ORF consistently outperforms both pure OMF and traditional K-NN neighborhood methods.

  • Accuracy: On the MovieLens 1M dataset, ORF achieved a Mean Absolute Error (MAE) of 0.6870, a significant improvement over the OMF baseline (0.6918).
  • Statistical Significance: Paired t-tests ($p < 0.001$) confirmed that the inclusion of local structure provides a robust performance boost.
  • Robustness: The ordinal approach naturally handles user bias (e.g., "harsh" vs. "lenient" raters) by focusing on the relative order of preferences rather than absolute numerical values.

Conclusion and Future Directions

Ordinal Random Fields provide a powerful way to unify global and local insights in recommender systems. By treating ratings as ordinal categories and modeling item-item correlations explicitly, ORF achieves state-of-the-art accuracy. Future work may explore incorporating user-user correlations or extending the framework into Conditional Random Fields (CRFs) to integrate side information such as movie genres, actor metadata, and user demographics.

Summary updated

BibTeX
@inproceedings{liu2014ordinal,
  author = {Shaowu Liu and Truyen Tran and Gang Li},
  title = {{Ordinal Random Fields for Recommender Systems}},
  booktitle = {ACML},
  year = {2014},
}
Figure