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 single-segment bounds. At the bottom layer, optimal greedy PLA covers keys per segment on independent gaps and under any smooth density (), while anchored and chord fitters retain coverage. Across recursive layers, a law-of-large-numbers heuristic--invoked to claim height for the PGM-index--suggests summing 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 , expected height at , and lookup at . 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 on independent gaps and on smooth densities with curvature . A compact bucket directory routes across unaligned RE pivots with extra comparison per layer on average, giving RE-PGM expected lookup in space and build time without radix skew sensitivity. Our constants match empirical fanout within down to , and all core theorems are formalized in Lean 4.
Create a lesson
Metadata
- Categories
- cs.DS, math.PR
- Comments
- 14 pages, 4 figures, 4 tables; core theorems machine-checked in Lean 4
Related papers
A Deterministic Linear Time Algorithm for Minimum Spanning Tree
Shared title terminologycs.DSSanjeev Khanna, Aaron Putterman, Junkai Song
First-Order Entropic Sampling of Words with Prescribed Letter Counts in Linear Time
Shared title terminologycs.DSOlivier Bodini, Francis Durand
String Indexing for Maximal Gap-Bounded Occurrence Clusters
Shared title terminologycs.DSWaseem Akram, Takuya Mieno
Linear-Size Spectral Sparsification by Sign Descent
Shared title terminologycs.DSTrevor Vaughn
Space-Efficient Text Indexing for Advanced Counting Queries
Shared title terminologycs.DSSolon P. Pissis, Sharma V. Thankachan
Optimal mixing of random-to-random shuffling on linear extensions
Shared title terminologycs.DSHaoran Wang