Introduction
Modern data exploration often requires jumping to specific ranks within massive datasets based on dynamic scoring functions. Traditional database systems excel at top-$k$ queries by scanning from the top down. However, finding the $i$-th ranked item (e.g., the 10,000th row) without enumerating the preceding $i-1$ items remains a significant computational challenge. This paper addresses the "Direct-Access Ranked Retrieval" (DAR) problem: efficiently locating an item at an arbitrary rank $i$ given a query-time scoring function, without full sorting or exhaustive scanning.
Methodology
The authors propose a multi-tiered algorithmic approach to solve the DAR problem across varying dimensionalities and performance requirements.
Exact Geometric Retrieval
For low-dimensional data (typically 2D), the problem can be framed using computational geometry. By applying duality, points in the primal space are mapped to hyperplanes in the dual space. The $i$-th ranked item corresponds to an intersection on the $i$-th level of the resulting arrangement.
While this approach offers $O(\log n)$ query times, its $O(n^d)$ space complexity makes it impractical for high-dimensional datasets.
$\varepsilon$-Sampling and Stripe Range Retrieval
To achieve linear space complexity, the authors utilize $\varepsilon$-sampling. By taking a small sample of the dataset at query time, they estimate the approximate rank of the target item to establish tight upper and lower score bounds. This transforms the global ranking problem into a localized Stripe Range Retrieval (SRR) problem—identifying only the points within a narrow score "stripe."
Hierarchical Sampling (EpsHier)
To handle high-dimensional SRR where traditional spatial indices like KD-Trees fail, the authors developed EpsHier. This method employs a hierarchical graph structure, conceptually similar to Hierarchical Navigable Small World (HNSW) graphs. It uses enclosing balls at multiple layers to prune irrelevant data regions quickly during the stripe search.
Conformal Set Ranked Retrieval (CSR)
Recognizing the theoretical difficulty of exact rank retrieval in high dimensions, the authors introduce a relaxed variant called Conformal Set Ranked Retrieval. Instead of a single exact tuple, CSR returns a small "conformal set" guaranteed to contain the target $i$-th item, providing a practical compromise for interactive user interfaces.
Experimental Evaluation
The proposed methods were evaluated on synthetic Zipfian-distributed data and large-scale real-world datasets, including a US Used Cars dataset (~3M records, 66 attributes) and FIFA 2023 data (~300k records, 54 attributes).
Key results include:
- Performance: EpsHier achieved up to a 16x speedup over exhaustive search for narrow stripe queries.
- Scalability: Unlike standard R-Trees or KD-Trees, which struggle beyond 32 dimensions, EpsHier maintained performance in 66+ dimensions.
- Stability: Query times for EpsHier remain relatively constant regardless of the target rank $i$, whereas traditional threshold algorithms degrade linearly as $i$ increases.
Discussion and Future Work
The research demonstrates that combining $\varepsilon$-sampling with hierarchical graph structures effectively bypasses the curse of dimensionality for ranked retrieval. The introduction of the "Conformal Set" offers a robust, practical solution for real-world applications where near-exact results are sufficient.
Future work will focus on extending these structures to support dynamic datasets with frequent updates and exploring support for non-linear scoring functions beyond weighted sums.
Summary updated