CARMI

Author:

Zhang Jiaoyi1,Gao Yihan1

Affiliation:

1. Tsinghua University, Beijing, China

Abstract

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.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference46 articles.

1. [n.d.]. https://github.com/JiaoYiZhang/learned_index. [n.d.]. https://github.com/JiaoYiZhang/learned_index.

2. [n.d.]. https://registry.opendata.aws/osm/. [n.d.]. https://registry.opendata.aws/osm/.

3. [n.d.]. https://panthema.net/2007/stx-btree/. [n.d.]. https://panthema.net/2007/stx-btree/.

4. [n.d.]. https://www.kaggle.com/ucffool/amazon-sales-rank-data-for-print-and-kindle-books. [n.d.]. https://www.kaggle.com/ucffool/amazon-sales-rank-data-for-print-and-kindle-books.

5. [n.d.]. http://dumps.wikimedia.org. [n.d.]. http://dumps.wikimedia.org.

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. SALI: A Scalable Adaptive Learned Index Framework based on Probability Models;Proceedings of the ACM on Management of Data;2023-12-08

2. Morphtree: a polymorphic main-memory learned index for dynamic workloads;The VLDB Journal;2023-12-01

3. Updatable Learned Indexes Meet Disk-Resident DBMS - From Evaluations to Design Choices;Proceedings of the ACM on Management of Data;2023-06-13

4. DILI: A Distribution-Driven Learned Index;Proceedings of the VLDB Endowment;2023-05

5. Learned Index: A Comprehensive Experimental Evaluation;Proceedings of the VLDB Endowment;2023-04

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3