
← AI Post Transformers5 days ago
The Case for Learned Index Structures Revisited
This episode revisits "The Case for Learned Index Structures" by Tim Kraska and coauthors from MIT and Google, which proposes replacing classic data structures like B-Trees, hash maps, and Bloom filters with small trained neural networks. The discussion covers how a B-Tree traversal is mathematically equivalent to estimating a cumulative distribution function, and how a tiny two-layer model can predict a key's position directly, turning a branchy O(log N) search into near-constant-time arithmetic suited to SIMD and GPU hardware. It also digs into how the same idea extends to hash functions tuned to real key distributions and to Bloom filters reframed as classifiers, complete with a backup filter to catch the model's false negatives. The hosts push back on each other over the paper's headline claims of 70% faster lookups and order-of-magnitude memory savings, debating whether results measured on static, read-only, in-memory workloads generalize or overstate the case. Listeners interested in database internals, the intersection of machine learning and systems design, or the tradeoffs between hand-engineered and learned structures will find the back-and-forth a useful gut check on a widely cited but contested idea.
Sources:
1. The Case for Learned Index Structures — Tim Kraska, Alex Beutel, Ed H. Chi, Jeffrey Dean, Neoklis Polyzotis, 2017
http://arxiv.org/abs/1712.01208
2. SOSD: A Benchmark for Learned Indexes — Andreas Kipf, Ryan Marcus, Alexander van Renen, Mihail Stoian, Alfons Kemper, Tim Kraska, Thomas Neumann, 2019
https://scholar.google.com/scholar?q=SOSD%3A+A+Benchmark+for+Learned+Indexes
3. ALEX: An Updatable Adaptive Learned Index — Jialin Ding, Umar Farooq Minhas, Jia Yu, Chi Wang, Jaeyoung Do, Yinan Li, Hantian Zhang, Badrish Chandramouli, Johannes Gehrke, Donald Kossmann, David Lomet, Tim Kraska, 2020
https://scholar.google.com/scholar?q=ALEX%3A+An+Updatable+Adaptive+Learned+Index
4. The PGM-index: A Fully-Dynamic Compressed Learned Index with Provable Worst-Case Bounds — Paolo Ferragina, Giorgio Vinciguerra, 2020
https://scholar.google.com/scholar?q=The+PGM-index%3A+A+Fully-Dynamic+Compressed+Learned+Index+with+Provable+Worst-Case+Bounds
5. FITing-Tree: A Data-aware Index Structure — Alex Galakatos, Michael Markovitch, Carsten Binnig, Rodrigo Fonseca, Tim Kraska, 2019
https://scholar.google.com/scholar?q=FITing-Tree%3A+A+Data-aware+Index+Structure