23
2

Learned Interpolation for Better Streaming Quantile Approximation with Worst-Case Guarantees

Abstract

An ε\varepsilon-approximate quantile sketch over a stream of nn inputs approximates the rank of any query point qq - that is, the number of input points less than qq - up to an additive error of εn\varepsilon n, generally with some probability of at least 11/poly(n)1 - 1/\mathrm{poly}(n), while consuming o(n)o(n) space. While the celebrated KLL sketch of Karnin, Lang, and Liberty achieves a provably optimal quantile approximation algorithm over worst-case streams, the approximations it achieves in practice are often far from optimal. Indeed, the most commonly used technique in practice is Dunning's t-digest, which often achieves much better approximations than KLL on real-world data but is known to have arbitrarily large errors in the worst case. We apply interpolation techniques to the streaming quantiles problem to attempt to achieve better approximations on real-world data sets than KLL while maintaining similar guarantees in the worst case.

View on arXiv
Comments on this paper