Pairwise Comparisons with Flexible Time-Dynamics

Lucas Maystre, Victor Kristof, Matthias Grossglauser

TL;DR

This paper introduces a probabilistic model for pairwise comparisons (e.g., sports matches) that captures complex, time-varying competitor skills using continuous-time Gaussian processes. By converting these Gaussian processes into state-space models, the authors develop a linear-time approximate Bayesian inference algorithm that scales to millions of matches, outperforming standard rating systems like Elo and TrueSkill while offering highly interpretable visualizations of skill evolution.

The Challenge of Evolving Skill

Estimating the latent skill of competitors from match outcomes is a classic problem, famously addressed by the Elo rating system in chess and Microsoft's TrueSkill in video games. However, a competitor's skill is rarely static. While existing dynamic models account for changing skills, they almost exclusively assume Brownian motion (a simple random walk).

In reality, skill evolution is much more nuanced: players might exhibit mean-reverting behavior, experience sharp discontinuities (e.g., an injury or a new season), or follow linear trends. Existing models fail to capture these rich temporal dynamics. Furthermore, highly flexible models traditionally suffer from severe computational bottlenecks, making them impossible to run on massive historical datasets.

Methodology

The authors propose a generalized probabilistic framework that moves beyond the limitations of static or simple random-walk models.

Comparison of static (a) and dynamic (b) probabilistic models for pairwise comparisons.

1. Flexible Time-Dynamics via Gaussian Processes (GPs)

Instead of assuming a simple random walk, a competitor's score over time is modeled as a continuous-time GP. By swapping or composing different covariance functions (e.g., Constant, Linear, Wiener/Brownian, Matérn, Piecewise), the model can express a wide variety of temporal behaviors, from smooth trends to sudden jumps.

Various temporal dynamics expressed through different Gaussian process covariance functions.

2. Generality in Features and Likelihoods

Competitors are represented as sparse linear combinations of features. This allows the model to easily incorporate context, such as home-field advantage or specific player lineups. It also supports various observation likelihoods—not just binary win/loss (Probit/Logit), but also point differentials (Gaussian) or total points scored (Poisson).

3. Linear-Time Bayesian Inference

Standard GP inference scales cubically $O(N^3)$, which is unworkable for large datasets. The authors bypass this by exploiting a mathematical equivalence between temporal GPs and state-space models (SSMs). They use a mean-field variational approximation (supporting both Expectation Propagation and Reverse-KL divergence) and apply Kalman smoothing (Rauch-Tung-Striebel) to achieve $O(N)$ inference time.

Key Insights from Global Sports

The authors evaluated their model on several historical datasets, including ATP Tennis (1991–2017), NBA Basketball (1946–2018), World Football (1908–2018), and a massive ChessBase database containing over 7 million matches.

  • Different sports have different dynamics: The optimal covariance function varies by sport. Basketball and football are best modeled with a Matérn 1/2 kernel (capturing mean-reverting dynamics), while tennis fits an Affine + Wiener (Brownian) model.
  • Intransitivity is a feature problem: Score-based models often fail to capture "rock-paper-scissors" dynamics (where A beats B, B beats C, but C beats A). The authors show that by adding pairwise interaction features, their model captures these effects, outperforming specialized models.
  • Beyond Win/Loss: Incorporating actual points scored (via Gaussian or Poisson likelihoods) noticeably improves predictive power compared to binary outcomes.

Results and Scalability

  • Predictive Accuracy: The proposed model consistently outperformed baselines (Random, Constant, Elo, TrueSkill). For example, on ATP Tennis, it achieved a log-loss of 0.552 compared to TrueSkill's 0.563.
  • Contextual Boosts: Adding a simple "home advantage" feature in World Football dropped the predictive log-loss from 0.926 to 0.900.
  • Scalability: The algorithm is highly parallelizable. On the massive ChessBase dataset (>7 million observations), a multithreaded implementation in Go took just over 5 seconds per iteration using 16 threads.

Future Directions

Currently, the structure of the time dynamics (the choice of covariance function) must be discovered manually. Users train multiple models and compare log-marginal likelihoods. Future work aims to automate this discovery process, building a system that can systematically search through compositions of covariance functions to find the dynamics that best explain the data, generating interpretable descriptions of the results automatically.

Summary updated

BibTeX
@inproceedings{maystre2019pairwise,
  author = {Lucas Maystre and Victor Kristof and Matthias Grossglauser},
  title = {{Pairwise Comparisons with Flexible Time-Dynamics}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330831},
}
Figure