[Paper Review] A Simple Yet High-Performing On-disk Learned Index: Can We Have Our Cake and Eat it Too?
This paper proposes AULID, a novel on-disk learned index that combines traditional B+-tree structures with machine learning techniques to achieve high performance while maintaining low I/O costs. By optimizing update efficiency, path length, and data locality, AULID outperforms B+-tree, FITing-tree, PGM, ALEX, and LIPP by up to 8.02x in select workloads, achieving state-of-the-art performance with minimal storage overhead.
While in-memory learned indexes have shown promising performance as compared to B+-tree, most widely used databases in real applications still rely on disk-based operations. Based on our experiments, we observe that directly applying the existing learned indexes on disk suffers from several drawbacks and cannot outperform a standard B+-tree in most cases. Therefore, in this work we make the first attempt to show how the idea of learned index can benefit the on-disk index by proposing AULID, a fully on-disk updatable learned index that can achieve state-of-the-art performance across multiple workload types. The AULID approach combines the benefits from both traditional indexing techniques and the learned indexes to reduce the I/O cost, the main overhead under disk setting. Specifically, three aspects are taken into consideration in reducing I/O costs: (1) reduce the overhead in updating the index structure; (2) induce shorter paths from root to leaf node; (3) achieve better locality to minimize the number of block reads required to complete a scan. Five principles are proposed to guide the design of AULID which shows remarkable performance gains and meanwhile is easy to implement. Our evaluation shows that AULID has comparable storage costs to a B+-tree and is much smaller than other learned indexes, and AULID is up to 2.11x, 8.63x, 1.72x, 5.51x, and 8.02x more efficient than FITing-tree, PGM, B+-tree, ALEX, and LIPP.
Motivation & Objective
- To address the poor performance of existing learned indexes on disk, which often underperform compared to B+-trees due to high I/O costs.
- To design a fully on-disk, updatable index that leverages both traditional indexing and learned index principles to minimize I/O overhead.
- To achieve high performance across diverse workloads while maintaining storage efficiency comparable to B+-tree.
- To establish design principles that guide the creation of practical, high-performing on-disk learned indexes.
Proposed method
- AULID uses a hierarchical structure inspired by B+-trees, where leaf pages store data and internal nodes store learned models to predict data distribution.
- It applies a lightweight, piecewise linear model to predict the position of a key in the leaf pages, reducing the number of block accesses.
- The index employs a dynamic update strategy that minimizes structural changes and maintains high locality to reduce I/O during insertions and deletions.
- It enforces short search paths by controlling the fanout of internal nodes using model-based clustering and data distribution estimation.
- AULID optimizes data layout to improve spatial locality, reducing the number of block reads during range scans.
- Five design principles guide the construction: (1) model simplicity, (2) update efficiency, (3) short path length, (4) data locality, and (5) storage efficiency.
Experimental results
Research questions
- RQ1Can a learned index be designed to outperform B+-trees in on-disk environments despite higher I/O costs?
- RQ2How can learned index models be effectively integrated into on-disk data structures to reduce I/O overhead?
- RQ3What design principles enable a learned index to maintain high performance across diverse workloads while remaining updatable and storage-efficient?
- RQ4To what extent can combining traditional B+-tree structures with learned models improve search and scan performance on disk?
- RQ5How does AULID compare to existing learned indexes like FITing-tree, PGM, ALEX, and LIPP in terms of I/O efficiency and update performance?
Key findings
- AULID achieves up to 8.02x better performance than LIPP across multiple workloads, demonstrating significant I/O reduction.
- It improves performance by up to 5.51x over ALEX and 8.63x over PGM, outperforming even the widely used B+-tree in many cases.
- AULID reduces I/O cost through shorter search paths and better data locality, minimizing block reads during range scans.
- The index maintains storage costs comparable to B+-tree, while being significantly smaller than other learned indexes like PGM and FITing-tree.
- AULID’s update performance is highly efficient due to its lightweight model updates and minimal structural changes.
- The five design principles successfully guide the construction of a practical, high-performing on-disk learned index that balances performance, update cost, and storage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.