Micro-architectural Analysis of a Learned Index
Mikkel M{\o}ller Andersen, P{\i}nar T\"oz\"un

TL;DR
This paper performs a detailed micro-architectural analysis of the learned index structure ALEX, comparing its behavior to traditional indexes like ART and B+Tree, revealing insights into its performance bottlenecks and efficiency.
Contribution
It provides the first micro-architectural comparison of ALEX with traditional indexes, highlighting its cache behavior, instruction requirements, and parallelism in dynamic workloads.
Findings
ALEX is memory stall-bound, mainly due to data misses from last-level cache.
ALEX exhibits fewer stalls and lower cycles-per-instruction than ART and B+Tree.
Handling out-of-bound inserts in ALEX increases instruction count but maintains high instruction-level parallelism.
Abstract
Since the publication of The Case for Learned Index Structures in 2018, there has been a rise in research that focuses on learned indexes for different domains and with different functionalities. While the effectiveness of learned indexes as an alternative to traditional index structures such as B+Trees have already been demonstrated by several studies, previous work tend to focus on higher-level performance metrics such as throughput and index size. In this paper, our goal is to dig deeper and investigate how learned indexes behave at a micro-architectural level compared to traditional indexes. More specifically, we focus on previously proposed learned index structure ALEX, which is a tree-based in-memory index structure that consists of a hierarchy of machine learned models. Unlike the original proposal for learned indexes, ALEX is designed from the ground up to allow updates and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Stream Mining Techniques · Algorithms and Data Compression · Machine Learning and Data Classification
