DBAIJan 4, 2021

A Pluggable Learned Index Method via Sampling and Gap Insertion

arXiv:2101.00808v115 citations
Originality Highly original
AI Analysis

This work provides a formal framework and pluggable techniques to enhance the efficiency and effectiveness of learned indexes, benefiting database systems and applications that rely on fast data retrieval.

This paper proposes a machine learning framework to quantify the index learning objective for learned indexes. It introduces a sampling technique that achieves up to 78x construction speedup without performance degradation and a gap insertion technique that improves query speed by up to 1.59x for existing learned index methods.

Database indexes facilitate data retrieval and benefit broad applications in real-world systems. Recently, a new family of index, named learned index, is proposed to learn hidden yet useful data distribution and incorporate such information into the learning of indexes, which leads to promising performance improvements. However, the "learning" process of learned indexes is still under-explored. In this paper, we propose a formal machine learning based framework to quantify the index learning objective, and study two general and pluggable techniques to enhance the learning efficiency and learning effectiveness for learned indexes. With the guidance of the formal learning objective, we can efficiently learn index by incorporating the proposed sampling technique, and learn precise index with enhanced generalization ability brought by the proposed result-driven gap insertion technique. We conduct extensive experiments on real-world datasets and compare several indexing methods from the perspective of the index learning objective. The results show the ability of the proposed framework to help to design suitable indexes for different scenarios. Further, we demonstrate the effectiveness of the proposed sampling technique, which achieves up to 78x construction speedup while maintaining non-degraded indexing performance. Finally, we show the gap insertion technique can enhance both the static and dynamic indexing performances of existing learned index methods with up to 1.59x query speedup. We will release our codes and processed data for further study, which can enable more exploration of learned indexes from both the perspectives of machine learning and database.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes