arXiv Science⌕ Search

arXiv · 2611.32049

The Anatomy of Piecewise-Linear Learned Indexes

Abstract

Piecewise-linear approximation (PLA) learned indexes (PGM-index, FITing-Tree, RadixSpline, PLEX, PLIN) compress sorted keys into $\pm\varepsilon$ segments, yet prior theory stops at coarse $Θ(\varepsilon^2)$ single-segment bounds. At the bottom layer, optimal greedy PLA covers $κ_{\rm opt}\varepsilon^2/v_0 \approx 3.54\,\varepsilon^2/v_0$ keys per segment on independent gaps and $κ_{\rm opt}\varepsilon^2$ under any smooth density ($v_0=1$), while anchored and chord fitters retain $Θ(\varepsilon^2/v_0)$ coverage. Across recursive layers, a law-of-large-numbers heuristic--invoked to claim $O(\log\log n)$ height for the PGM-index--suggests summing $Θ(\varepsilon^2)$ gaps averages out fluctuations. We prove this fails under Endpoint Promotion (EP): stopping-time fluctuations reset relative gap variance at every depth, locking fanout at $C_\varepsilon \approx 19.861\,\varepsilon^2$, expected height at $\log n/\log C_\varepsilon + O(1)$, and lookup at $Θ(\log n)$. To break this barrier, Rank-Equispaced Promotion (RE) samples pivots at equal rank strides. Each stride sums a fixed number of base gaps, so relative variance decays across layers and cumulative coverage squares at each step. Expected height drops to $\log_2\log_\varepsilon n + O(1)$ on independent gaps and $\log_2\log_\varepsilon n + \log_2^+(\log n/\log(\varepsilon/δ)) + O(1)$ on smooth densities with curvature $δ$. A compact bucket directory routes across unaligned RE pivots with $<1$ extra comparison per layer on average, giving RE-PGM $O(\log\varepsilon \cdot \log\log_\varepsilon n)$ expected lookup in $Θ(n/\varepsilon^2)$ space and $O(n)$ build time without radix skew sensitivity. Our constants match empirical fanout within $0.3\%$ down to $\varepsilon=2$, and all core theorems are formalized in Lean 4.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yue Chen, Yong Zhang. 2026-11-24. The Anatomy of Piecewise-Linear Learned Indexes. https://arxiv.science/abs/2611.32049

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Testing Induced-Subgraph Freeness in Outerplanar Graphs under the Random-Neighbor Oracle

We prove that, for every fixed nonempty graph $H$, induced-$H$-freeness is testable with $\varepsilon^{-O_H(1)}$ queries on outerplanar graphs with no maximum-degree bound in the $\textit{random-neighbor model}$, where each query at a vertex returns a uniformly random neighbor. Thus, the query complexity is polynomial in $1/\varepsilon$ and independent of the number $n$ of vertices. Previously, the best bound known for this problem was the $\operatorname{poly}(\log n)$-query guarantee that follows from the general outerplanar-graph tester of Babu, Khoury, and Newman (2016) in the stronger $\textit{adjacency-list model}$, which provides exact degree queries and indexed access to neighbors. Our tester has $\textit{two-sided error}$, which is necessary in general: induced-$P_3$-freeness has no one-sided constant-query tester in the random-neighbor model, even on outerplanar graphs of maximum degree two.

cs.DS↗

More RLBWT Tricks

Indexes based on $k$-mers can beat BWT-based indexes when the former take advantage of unitigs in de Bruijn graphs. In this paper we consider ways in which BWT-based indexes can do that as well, or even better. In particular, we consider MEM-finding between human chromosome 19s, where we can achieve a five- to sevenfold speedup over plain backward search, or a two- to threefold speedup over plain backward search with latency hiding, for about twice the space. We also show that two-level indexing can be fast without an index of the text: without one, MEM-finding is seven to eight times faster than plain backward search in slightly less space, and from the parse alone we can then locate every occurrence of every MEM for about 5\% more time and 3 to 10\% more space.

cs.DS↗

$\ell_{\infty}$ norm SVP in $\widetilde{O}(3^n)$

We give a classical randomized algorithm for the Shortest Vector Problem in the infinity norm in $\widetilde{O}(3^n)$ time and space, improving the previous bound of $2^{2.443n+o(n)}$. A variant of the algorithm lists all shortest nonzero vectors within the same bounds. Both results, including their time and space bounds, are formally verified in Lean 4. We use the counting moment framework of Gaussian difference dynamics to construct lists with equal expected counts at each lattice point in successively smaller cubes. The key is to restrict the midpoint of each pair to a fixed inner cube, so that every allowed difference has the same region of possible midpoints. Averaging random lattice translates then preserves these expected counts through repeated differencing. We control the dependence between entries through bounds on the second counting moment, using a weighted packing estimate for cubes to bound the variation in midpoint counts. Finally, two searches based on coordinate comparisons generate the intermediate lists and recover a shortest lattice vector within the claimed time bound.

cs.DS↗