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 ±ε segments, yet prior theory stops at coarse Θ(ε2) single-segment bounds. At the bottom layer, optimal greedy PLA covers κoptε2/v0 ≈ 3.54 ε2/v0 keys per segment on independent gaps and κoptε2 under any smooth density (v0=1), while anchored and chord fitters retain Θ(ε2/v0) coverage. Across recursive layers, a law-of-large-numbers heuristic--invoked to claim O(loglog n) height for the PGM-index--suggests summing Θ(ε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ε ≈ 19.861 ε2, expected height at log n/log Cε + 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 log2logε n + O(1) on independent gaps and log2logε n + log2+(log n/log(ε/δ)) + 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ε · loglogε n) expected lookup in Θ(n/ε2) space and O(n) build time without radix skew sensitivity. Our constants match empirical fanout within 0.3% down to ε=2, and all core theorems are formalized in Lean 4.
Related
- Global Linear Convergence of the Proximal Bundle Method under Unknown Piecewise Smoothness and Quadratic Growth
- A Sharp Bound of Crossing Limit Cycle for Planar piecewise linear Systems with a Straight Switching Line
- Super-approximation and optimal L2 convergence of the stabilized BGN method with piecewise linear parametric finite elements for curve-shortening flow
- Computing the convex envelope of bivariate piecewise linear-quadratic functions in linear time
- Stabilized SQP Method for Convex Piecewise Linear-Quadratic Composite Optimization Problems
BibTeX
@misc{chen2026anatomy,
title = {{The Anatomy of Piecewise-Linear Learned Indexes}},
author = {Yue Chen and Yong Zhang},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.32049},
eprint = {2611.32049},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.32049},
}
RIS
TY - UNPB
TI - The Anatomy of Piecewise-Linear Learned Indexes
AU - Yue Chen
AU - Yong Zhang
PY - 2026
DA - 2026/11/24
PB - arXiv
DO - 10.48550/arxiv.2611.32049
UR - https://arxiv.org/abs/2611.32049
AB - Piecewise-linear approximation (PLA) learned indexes (PGM-index, FITing-Tree, RadixSpline, PLEX, PLIN) compress sorted keys into ±ε segments, yet prior theory stops at coarse Θ(ε^2) single-segment bounds. At the bottom layer, optimal greedy PLA covers κ_optε^2/v_0 ≈ 3.54 ε^2/v_0 keys per segment on independent gaps and κ_optε^2 under any smooth density (v_0=1), while anchored and chord fitters retain Θ(ε^2/v_0) coverage. Across recursive layers, a law-of-large-numbers heuristic--invoked to claim O(loglog n) height for the PGM-index--suggests summing Θ(ε^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_ε ≈ 19.861 ε^2, expected height at log n/log C_ε + 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_2log_ε n + O(1) on independent gaps and log_2log_ε n + log_2^+(log n/log(ε/δ)) + 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ε · loglog_ε n) expected lookup in Θ(n/ε^2) space and O(n) build time without radix skew sensitivity. Our constants match empirical fanout within 0.3% down to ε=2, and all core theorems are formalized in Lean 4.
ER -