betaFeedback

WorksComputer Science

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 Θ(ε2)Θ(\varepsilon^2) single-segment bounds. At the bottom layer, optimal greedy PLA covers κoptε2/v0≈3.54 ε2/v0κ_{\rm opt}\varepsilon^2/v_0 \approx 3.54\,\varepsilon^2/v_0 keys per segment on independent gaps and κoptε2κ_{\rm opt}\varepsilon^2 under any smooth density (v0=1v_0=1), while anchored and chord fitters retain Θ(ε2/v0)Θ(\varepsilon^2/v_0) coverage. Across recursive layers, a law-of-large-numbers heuristic–invoked to claim O(log⁡log⁡n)O(\log\log n) height for the PGM-index–suggests summing Θ(ε2)Θ(\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ε≈19.861 ε2C_\varepsilon \approx 19.861\,\varepsilon^2, expected height at log⁡n/log⁡Cε+O(1)\log n/\log C_\varepsilon + O(1), and lookup at Θ(log⁡n)Θ(\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)\log_2\log_\varepsilon n + O(1) on independent gaps and log⁡2log⁡εn+log⁡2+(log⁡n/log⁡(ε/δ))+O(1)\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<1 extra comparison per layer on average, giving RE-PGM O(log⁡ε⋅log⁡log⁡εn)O(\log\varepsilon \cdot \log\log_\varepsilon n) expected lookup in Θ(n/ε2)Θ(n/\varepsilon^2) space and O(n)O(n) build time without radix skew sensitivity. Our constants match empirical fanout within 0.3%0.3\% down to ε=2\varepsilon=2, and all core theorems are formalized in Lean 4.

Paper details

vlnc:W_5vzvsrha
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…