Mallows Models for Top-k Lists

Flavio Chierichetti, Anirban Dasgupta, Shahrzad Haddadan, Ravi Kumar, Silvio Lattanzi

Introduction

In statistics and machine learning, the Mallows model is widely considered the "Gaussian distribution" of permutations. It describes a distribution centered around a specific ranking, where the probability of any other ranking decreases as its distance from the center increases.

However, the classic Mallows model assumes we are dealing with full permutations of a universe. In practice, we rarely see full rankings of millions of items. Instead, we encounter top-$k$ lists: the top 10 search results, the top 5 movies of the year, or the top 100 most livable cities.

Existing attempts to adapt Mallows to top-$k$ lists suffered from three main issues:

  1. Computational Inefficiency: Sampling often required time proportional to the entire universe size ($n$), which is prohibitive when $n$ is in the millions (e.g., web pages).
  2. Overspecification: They often assumed an underlying "true" full permutation exists, which is sociologically and mathematically dubious for the "tail" of a distribution.
  3. Statistical Noise: Learning from these models often resulted in "spurious" orderings among items that rarely appear in the top-$k$.

This paper introduces a mathematically tractable and computationally efficient generalization of the Mallows model specifically designed for top-$k$ lists. It provides the first model for prefix rankings that offers provable algorithmic guarantees for both sampling and reconstructing "center" rankings.

Methods

The core of the paper is the introduction of a $p$-parametrized Kendall distance for top-$k$ lists. This distance counts "inversions" between two lists but handles elements outside the top-$k$ (the "tail") using a parameter $p \in [0, 1]$. This allows the model to control how much the presence of "non-center" elements affects the probability of a list.

The authors propose two main algorithmic contributions:

  • Efficient Sampling: To generate a random top-$k$ list from the model, they provide two methods. The Exact Algorithm uses dynamic programming and runs in $O(k^2 4^k + k^2 \log n)$ time. The Approximate Algorithm is based on a Markov Chain Monte Carlo (MCMC) method that is much faster for larger $k$, with a relaxation time of $O(k^5 \log k)$.
  • Reconstruction (Learning): They developed a polynomial-time algorithm to identify the "center" ranking given a set of noisy sample lists. This is based on a generalized Condorcet criterion—essentially looking at head-to-head "wins" between elements across the samples.

Key Insights

  • Independence of the Tail: A major insight is that in a good top-$k$ model, the relative order of two items outside the top-$k$ should not affect the probability of the list. This model achieves that, making it much more robust than models that force a full permutation.
  • The Power of $p$: The parameter $p$ acts as a dial for "tail noise." A larger $p$ might be better for ranking cities (where being #10001 vs #10002 doesn't matter), while a smaller $p$ might suit niche movie genres.
  • Breaking the $n$ Barrier: By focusing on the distance between prefixes rather than full permutations, the authors moved the computational complexity from being a function of the universe size ($n$) to primarily a function of the list size ($k$).

Key Results

The authors evaluated their model using synthetic datasets and a real-world dataset consisting of 176 "top-10" movie lists provided by directors and artists on the Criterion Collection website.

MCMC Convergence: Experiments showed that the Markov Chain sampler stabilizes very quickly. As seen in the synthetic tests for $k=5$, the L1 difference drops and stabilizes around 200 steps, confirming the theoretical $O(k^5 \log k)$ bound is highly practical.

MCMC Convergence

Reconstruction Accuracy: Their Condorcet-based reconstruction algorithm significantly outperformed standard baselines like the Borda count (which assigns points based on position) and simple positional frequency. It was able to identify the true center with far fewer samples.

Reconstruction Accuracy

Consensus Ranking: When applied to the Criterion movie data, the model produced a highly credible "top-10" list of cinema classics (including Brazil, 8 1/2, and The Third Man), demonstrating its effectiveness in aggregating real-world preferences.

Limitations and Future Work

  • Tail Uniformity: The current model treats all elements in the "tail" (those not in the top-$k$ center) as equally likely to appear. The authors acknowledge that in some cases, the tail might have its own internal structure (e.g., "tier 2" vs "tier 3" items).
  • Exponential Exact Sampling: While the exact DP sampler is efficient for small $k$, its $4^k$ factor makes it unusable for very large $k$ (e.g., $k=100$), leaving the MCMC as the only option.
  • Distance Variants: The authors suggest that future work could explore other distance measures, such as the Hausdorff distance, within this same framework to see if they offer different statistical properties.

Summary updated

BibTeX
@inproceedings{chierichetti2018mallows,
  author = {Flavio Chierichetti and Anirban Dasgupta and Shahrzad Haddadan and Ravi Kumar and Silvio Lattanzi},
  title = {{Mallows Models for Top-k Lists}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure