Riffled Independence for Efficient Inference with Partial Rankings

Jonathan Huang, Ashish Kapoor, Carlos Guestrin · DOI

Introduction

Modeling how individuals rank items—whether they are movies, political candidates, or search results—presents a significant computational challenge. For a set of $n$ items, there are $n!$ possible permutations, a number that grows factorially and quickly becomes intractable for storage and computation. This complexity leads to three primary hurdles: representing probability distributions over massive state spaces, efficiently answering conditional probability queries, and handling the "top-$k$" partial rankings that are most common in real-world human data.

Existing approaches, such as Mallows models, often lack the flexibility to capture complex preferences, while others struggle with the incomplete data typical of elections and surveys. This paper introduces a framework based on "riffled independence" to address these challenges, providing a mathematically grounded and computationally efficient way to model and learn from partial rankings.

Methods: Hierarchical Riffle Independent Models

The core concept of this research is the Hierarchical Riffle Independent Model. The authors use the analogy of shuffling two decks of cards (e.g., "Vegetables" and "Fruits"). In this model, items are ranked internally within their respective groups, and then the groups are interleaved—or "riffled"—together to form a complete ranking. By organizing these shuffles into a binary tree hierarchy, complex distributions can be represented using a fraction of the parameters required by a full $n!$ distribution.

Conceptual hierarchy of items using riffled independence.

To perform inference and learning within this structure, the authors contribute two major algorithms:

  1. PRCONDITION Algorithm: This recursive algorithm enables exact inference in $O(n \cdot |H|)$ time, where $|H|$ is the number of model parameters. It functions by "zeroing out" interleavings and relative rankings that are inconsistent with observed data at each node of the hierarchy.
  2. Structural EM: To learn from partial data, the authors employ an Expectation-Maximization approach. The E-step uses the inference algorithm to sample completed rankings from observed partial ones, while the M-step applies structure-learning techniques to refine the model's hierarchy and parameters.

Key Insights: The Natural Fit of Partial Rankings

A significant theoretical contribution of this work is the discovery that partial rankings are the "natural" observations for riffle-independent models. The authors prove an "Impossibility Result": if an observation does not take the form of a partial ranking (for instance, a specific claim like "Item A is in exactly 3rd place"), it is mathematically impossible to perform the efficient, multiplicative parameter updates that make this model so powerful.

Furthermore, the learned hierarchies are highly interpretable. Rather than acting as a black box, the model reveals latent structures within the data. For example, when applied to the 1980 American Psychological Association (APA) election data, the model automatically grouped candidates into distinct professional coalitions—research, clinical, and community psychologists—based solely on how voters interleaved them in their ballots.

Learned hierarchy for the APA election data, showing professional groupings.

Results and Performance

The authors evaluated their model on several high-stakes datasets, including the Meath Election Data (over 60,000 ballots) and user browsing sessions. Key findings include:

  • Efficiency Gains: On the Meath dataset, brute-force inference would take an estimated 100 years. The authors' algorithm completed the same task in just 10 seconds.
  • Accuracy: By incorporating partial rankings rather than discarding them, the model achieves significantly higher test log-likelihood than traditional methods.
  • Convergence: The Structural EM algorithm typically converges to a stable, meaningful hierarchy in as few as three iterations, demonstrating its practical utility for large-scale data.

Limitations and Future Work

While the model is highly effective for partial rankings (where unranked items are assumed to be ranked below observed ones), it does not yet handle "incomplete" rankings where a user may be unaware of certain items. Additionally, the current exact inference assumes perfectly accurate observations; handling "noisy" rankings where users might misreport preferences remains a challenge for future research, as it currently leads to a "mixture explosion" that requires approximate inference techniques.

Summary updated

BibTeX
@article{huang2012riffled,
  author = {Jonathan Huang and Ashish Kapoor and Carlos Guestrin},
  title = {{Riffled Independence for Efficient Inference with Partial Rankings}},
  journal = {J. Artif. Intell. Res.},
  year = {2012},
  doi = {10.1613/jair.3543},
}
Figure