Introduction
In Information Retrieval (IR), the primary focus is often on ranking—ensuring that the most relevant documents appear at the top of a result list. However, a secondary but equally critical challenge is result list truncation: determining the optimal point to stop presenting results to a user. Presenting too many results increases the cognitive load and "user cost" of filtering noise, while presenting too few risks omitting the single document that satisfies the user's information need.
Modern IR systems frequently utilize metric learning, where queries and documents are mapped to high-dimensional embedding spaces. In these systems, relevance is determined by distance. However, these distances are often uncalibrated; a "close" distance for one query might be considered "far" for another. This lack of consistency makes global thresholding ineffective. This paper introduces "Surprise" scoring, a method rooted in Extreme Value Theory (EVT) that provides per-query calibration to solve the truncation problem.
Methodology: The Surprise Framework
The authors propose treating result truncation as a statistical hypothesis test. The core idea is to model the distribution of non-relevant results (the "noise") and identify relevant results as statistical outliers.
Extreme Value Theory (EVT)
Rather than modeling the entire document distribution, the framework focuses on the "tail" of the distribution—the highest-ranked results. According to the Pickands-Balkema-de Haan theorem, the tail of most distributions can be effectively approximated by a Generalized Pareto Distribution (GPD).
Calculating Surprise
For a specific query, the algorithm assumes the majority of returned results are non-relevant. It fits a GPD to these scores to establish a "null hypothesis" of non-relevance. A result's "Surprise" score ($s$) is then calculated based on how unlikely its raw score is under this fitted distribution. This score is derived from the cumulative distribution function (CDF) of the GPD and has a direct relationship to p-values ($p = \exp(-s)$). For instance, a Surprise score of 4.6 corresponds to a p-value of 0.01, indicating a 99% confidence that the result is not mere noise.
The Truncation Algorithm
The method employs an iterative greedy procedure using the Cramer-von-Mises (CVM) statistic. This helps determine which top results are likely relevant (and should be excluded from the initial GPD fit) and identifies where the true "tail" of the non-relevant distribution begins.
Experimental Evaluation
The Surprise scoring method was evaluated across four diverse tasks to test its versatility: Same Document Detection (Reuters), News Authorship, Omniglot (character recognition), and Robust04 (TREC benchmark).
As illustrated in Figures 1 and 3, raw relevance scores across different queries and tasks occupy vastly different numerical ranges. This visual evidence underscores why a single global threshold is insufficient for truncation. Surprise scoring addresses this by mapping these disparate ranges into a consistent, comparable numerical range (typically 0 to 6).
Key Results
Surprise scoring demonstrated superior performance and robustness across all benchmarks:
- Accuracy: On the "Same Document" task, it achieved an accuracy of 0.6112, significantly outperforming Isotonic Regression (0.5723) and BiCut (0.4895).
- Robust04 Performance: Using the DRMM neural model, Surprise scoring reached an F1 score of 0.268, surpassing the Global-k baseline (0.263) and Isotonic Regression (0.217).
- Robustness: Because the calibration is local to the query, the method does not break when the index size changes, unlike parametric models that might require retraining.
Discussion and Limitations
While Surprise scoring offers a principled approach, it is not without limitations. The model struggled with the News Authorship dataset under the DCG metric, likely because the optimal strategy for many queries was to return zero results—a high-threshold decision that the current greedy selection struggled to navigate. Furthermore, the method assumes the underlying IR system provides a reasonably good initial ranking; if the top results are entirely noise, the GPD fit will be compromised.
Conclusion
Surprise scoring provides a robust, statistical solution to the result list truncation problem. By leveraging Extreme Value Theory to perform per-query calibration, it overcomes the limitations of uncalibrated scores in modern embedding-based retrieval systems, offering an interpretable and effective way to determine the optimal cutoff for search results.
Summary updated