CARMI: A Cache-Aware Learned Index with a Cost-based Construction Algorithm
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
- 2017The Case for Learned Index Structurescited by 188
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
- 2018Learning to Optimize Join Queries With Deep Reinforcement Learningcited by 32
- 2020RadixSpline: A Single-Pass Learned Indexcited by 31
- 2018FITing-Tree: A Data-aware Index Structurecited by 30
- 2019Database Meets Deep Learning: Challenges and Opportunitiescited by 30
- 2019Learning Multi-dimensional Indexescited by 30
- 2020Benchmarking Learned Indexescited by 27
- 2020Tsunami: A Learned Multi-dimensional Index for Correlated Data and Skewed Workloadscited by 25
- 2019SOSD: A Benchmark for Learned Indexescited by 21
- 2019The PGM-index: a multicriteria, compressed and learned approach to data indexingcited by 17
5 more
- 2018Learning State Representations for Query Optimization with Deep Reinforcement Learningcited by 14
- 2020The Case for Learned Spatial Indexescited by 9
- 2018Towards a Hands-Free Query Optimizer through Deep Learningcited by 8
- 2017Database Learning: Toward a Database that Becomes Smarter Every Timecited by 3
- 2018A Model for Learned Bloom Filters and Related Structurescited by 2
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 4.
8 papers.
- 2024A Survey of Learned Indexes for the Multi-dimensional Spacecited by 4
- 2024Accelerating String-Key Learned Index Structures via Memoization-based Incremental Trainingcited by 4
- 2023LeCo: Lightweight Compression via Learning Serial Correlationscited by 3
- 2025A New Paradigm in Tuning Learned Indexes: A Reinforcement Learning Enhanced Approachcited by 2
- 2024UpLIF: An Updatable Self-Tuning Learned Index Frameworkcited by 1
- 2025DobLIX: A Dual-Objective Learned Index for Log-Structured Merge Treescited by 1
- 2025Piecewise Linear Approximation in Learned Index Structures: Theoretical and Empirical Analysiscited by 0
- 2025Sig2Model: A Boosting-Driven Model for Updatable Learned Indexescited by 0
- 2025Sig2Model: A Boosting-Driven Model for Updatable Learned Indexes25 Sep 2025
- 2025Piecewise Linear Approximation in Learned Index Structures: Theoretical and Empirical Analysis25 Jun 2025
- 2025DobLIX: A Dual-Objective Learned Index for Log-Structured Merge Trees7 Feb 2025
- 2025A New Paradigm in Tuning Learned Indexes: A Reinforcement Learning Enhanced Approach7 Feb 2025
- 2024UpLIF: An Updatable Self-Tuning Learned Index Framework7 Aug 2024
- 2024Accelerating String-Key Learned Index Structures via Memoization-based Incremental Training18 Mar 2024
- 2024A Survey of Learned Indexes for the Multi-dimensional Space11 Mar 2024
- 2023LeCo: Lightweight Compression via Learning Serial Correlations27 Jun 2023