mlsanityData to 7 Oct 2026

CARMI: A Cache-Aware Learned Index with a Cost-based Construction Algorithm

arXiv 2103.00858 ↗First posted 1 Mar 2021cs.DB cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

Learned indexes, which use machine learning models to replace traditional index structures, have shown promising results in recent studies. However, existing learned indexes exhibit a performance gap between synthetic and real-world datasets, making them far from practical indexes. In this paper, we identify that ignoring the importance of data partitioning during model training is the main reason for this problem. Thus, we explicitly apply data partitioning to index construction and propose a new efficient and updatable cache-aware RMI framework, called CARMI. Specifically, we introduce entropy as a metric to quantify and characterize the effectiveness of data partitioning of tree nodes in learned indexes and propose a novel cost model, laying a new theoretical foundation for future research. Then, based on our novel cost model, CARMI can automatically determine tree structures and model types under various datasets and workloads by a hybrid construction algorithm without any manual tuning. Furthermore, since memory accesses limit the performance of RMIs, a new cache-aware design is also applied in CARMI, which makes full use of the characteristics of the CPU cache to effectively reduce the number of memory accesses. Our experimental study shows that CARMI performs better than baselines, achieving an average of 2.2x/1.9x speedup compared to B+ Tree/ALEX, while using only about 0.77x memory space of B+ Tree. On the SOSD platform, CARMI outperforms all baselines, with an average speedup of 1.2x over the nearest competitor RMI, which has been carefully tuned for each dataset in advance.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 17 of its 63 references that are in the map. First posted on arXiv 1 Mar 2021.

Builds on

17 of 63 references.

References · 17

  1. 2017The Case for Learned Index Structurescited by 188
  2. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
  3. 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
  4. 2018Learning to Optimize Join Queries With Deep Reinforcement Learningcited by 32
  5. 2020RadixSpline: A Single-Pass Learned Indexcited by 31
  6. 2018FITing-Tree: A Data-aware Index Structurecited by 30
  7. 2019Database Meets Deep Learning: Challenges and Opportunitiescited by 30
  8. 2019Learning Multi-dimensional Indexescited by 30
  9. 2020Benchmarking Learned Indexescited by 27
  10. 2020Tsunami: A Learned Multi-dimensional Index for Correlated Data and Skewed Workloadscited by 25
  11. 2019SOSD: A Benchmark for Learned Indexescited by 21
  12. 2019The PGM-index: a multicriteria, compressed and learned approach to data indexingcited by 17
5 more
  1. 2018Learning State Representations for Query Optimization with Deep Reinforcement Learningcited by 14
  2. 2020The Case for Learned Spatial Indexescited by 9
  3. 2018Towards a Hands-Free Query Optimizer through Deep Learningcited by 8
  4. 2017Database Learning: Toward a Database that Becomes Smarter Every Timecited by 3
  5. 2018A Model for Learned Bloom Filters and Related Structurescited by 2

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 4.

8 papers.