NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A support vector method for optimizing average precision

Yisong Yue, Thomas Finley, Filip Radlinski, Thorsten Joachims

Abstract

In information retrieval, Mean Average Precision (MAP) is a critical performance metric that captures the quality of a ranked list of documents. However, directly optimizing for MAP is challenging due to its non-linear and non-decomposable nature. This paper introduces a novel structural Support Vector Machine (SVM) framework that directly optimizes for MAP. By exploiting an invariance property of the MAP metric, we develop an efficient $O(n \log n)$ greedy algorithm to find the most violated constraints during training. Our experimental results on TREC benchmarks demonstrate that this direct optimization significantly outperforms traditional surrogate-based methods like classification accuracy and ROCArea.

Introduction

In Information Retrieval (IR), the primary goal is to rank documents such that the most relevant ones appear at the top of the search results. While Mean Average Precision (MAP) is the gold-standard metric for evaluating these rankings, it is notoriously difficult to optimize directly. Historically, researchers have relied on "surrogate" metrics, such as classification accuracy or the Area Under the ROC Curve (ROCArea), to train machine learning models. However, these surrogates often fail to capture the nuances of ranking, leading to a gap between model training and user needs.

Structural SVMs for Ranking

To bridge this gap, this paper utilizes the Structural SVM framework. Unlike standard SVMs that predict individual labels, Structural SVMs are designed to predict entire structured objects—in this case, a complete ranking of a document corpus.

The training process involves solving an "Argmax" problem: identifying the ranking that most severely violates the current model's constraints. Given that the number of possible rankings for $n$ documents is $n!$, a brute-force approach is computationally infeasible.

Efficient MAP Optimization

The authors introduce a significant innovation by identifying an invariance property of MAP: the metric is unaffected by swaps between documents within the same relevance class (e.g., swapping two relevant documents). This insight reduces the search space for the most violated constraint to finding an optimal interleaving of relevant and non-relevant document lists.

They propose a greedy cutting-plane algorithm (Algorithm 2 in the paper) that solves this optimization in $O(n \log n)$ time. This breakthrough makes direct MAP optimization computationally practical for large-scale datasets with thousands of features.

Experimental Setup

The researchers evaluated the $SVM_{map}$ algorithm using benchmarks from the Text REtrieval Conference (TREC), specifically the TREC 9 and TREC 10 Web Tracks. They utilized the WT10g corpus and generated features from established retrieval functions like BM25 and Language Models, as well as from actual TREC competition submissions.

Summary of TREC datasets and feature sets used in evaluation.

Results and Discussion

The experiments confirmed that $SVM_{map}$ consistently outperforms the best individual retrieval functions and models optimized for surrogate metrics. A key finding is the suboptimality of these surrogates; a model that excels at classification or ROCArea does not necessarily produce the best ranking.

Comparison of MAP and ROCArea for two hypothetical rankings, illustrating that higher ROCArea does not guarantee higher MAP.

As illustrated in the table above, a hypothesis $h_1$ can achieve a significantly higher MAP (0.59) than $h_2$ (0.51), even though $h_2$ has a superior ROCArea (0.53 vs 0.47). This empirical evidence justifies the move toward direct listwise optimization. Furthermore, $SVM_{map}$ maintained its competitive edge even when high-performing features were removed, demonstrating its ability to effectively combine weaker signals.

Conclusion and Future Work

This work demonstrates that direct optimization of complex IR metrics is both feasible and beneficial. By leveraging Structural SVMs and efficient greedy algorithms, $SVM_{map}$ provides a robust framework for learning ranking functions. Future research may extend this approach to graded relevance metrics like NDCG or other non-linear metrics like Mean Reciprocal Rank (MRR), further closing the gap between machine learning objectives and information retrieval goals.

Summary updated

BibTeX
@inproceedings{yue2007support,
  author = {Yisong Yue and Thomas Finley and Filip Radlinski and Thorsten Joachims},
  title = {{A support vector method for optimizing average precision}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2007},
  doi = {10.1145/1277741.1277790},
}
Figure