Skip to main content
QUICK REVIEW

[Paper Review] Learned Indexes for Dynamic Workloads

Chuzhe Tang, Zhiyuan Dong|arXiv (Cornell University)|Feb 2, 2019
Data Stream Mining TechniquesComputer Science56 references3 citations
TL;DR

This paper proposes Doraemon, a learned index system that enhances performance for dynamic, skewed workloads by augmenting training data with access frequencies and caching previously trained models for incremental fine-tuning. It reduces query latency by 45.1% and cuts model retraining time to 1/20th of the original, enabling efficient adaptation to evolving data and access patterns.

ABSTRACT

The recent proposal of learned index structures opens up a new perspective on how traditional range indexes can be optimized. However, the current learned indexes assume the data distribution is relatively static and the access pattern is uniform, while real-world scenarios consist of skew query distribution and evolving data. In this paper, we demonstrate that the missing consideration of access patterns and dynamic data distribution notably hinders the applicability of learned indexes. To this end, we propose solutions for learned indexes for dynamic workloads (called Doraemon). To improve the latency for skew queries, Doraemon augments the training data with access frequencies. To address the slow model re-training when data distribution shifts, Doraemon caches the previously-trained models and incrementally fine-tunes them for similar access patterns and data distribution. Our preliminary result shows that, Doraemon improves the query latency by 45.1% and reduces the model re-training time to 1/20.

Motivation & Objective

  • Address the poor performance of learned indexes under skewed query workloads, where frequent key access leads to high prediction error costs.
  • Reduce the high cost of retraining learned indexes when data distribution shifts, which is common in real-world dynamic workloads.
  • Enable efficient adaptation to new data distributions by reusing previously trained models through incremental fine-tuning.
  • Improve model accuracy and reduce latency by incorporating access frequency into the training data distribution.
  • Minimize the computational overhead of hyperparameter search and neural architecture search (NAS) in dynamic environments.

Proposed method

  • Augment the training dataset with access frequency information to guide the model to prioritize accurate prediction for frequently accessed keys.
  • Cache previously trained models in a model cache to avoid full retraining when similar data distributions and access patterns are encountered.
  • Use similarity-based filtering (e.g., via learned embeddings) to efficiently retrieve candidate models from the cache for fine-tuning.
  • Apply incremental fine-tuning on cached models using the new data distribution, preserving learned weights and reducing training time.
  • Leverage transfer learning principles by reusing model weights from similar distributions instead of training from scratch.
  • Integrate automated hyperparameter tuning (e.g., Bayesian optimization) to accelerate architecture search, reducing the cost of model retraining.

Experimental results

Research questions

  • RQ1How does incorporating access frequency into the training data affect the accuracy and latency of learned indexes under skewed workloads?
  • RQ2To what extent can caching and reusing previously trained models reduce the time required for retraining when data distribution shifts?
  • RQ3Can similarity-based model retrieval from a cache improve the efficiency of model adaptation in dynamic workloads?
  • RQ4How does the performance of Doraemon compare to the original learned index in terms of query latency and retraining cost under real-world dynamic conditions?
  • RQ5What is the trade-off between model accuracy and retraining overhead when using incremental fine-tuning versus full retraining?

Key findings

  • Augmenting training data with access frequencies improves the best model architecture’s query latency by 45.1% compared to the original learned index.
  • Caching previously trained models and using incremental fine-tuning reduces model retraining time from 40 minutes to just 2 minutes, achieving a 20x speedup.
  • The system effectively handles data distribution shifts by reusing models from similar distributions, significantly reducing the need for full retraining.
  • The use of similarity-based filtering enables efficient retrieval of relevant cached models, minimizing the search cost in large model caches.
  • The integration of frequency-aware training and model caching results in a robust and scalable solution for real-world dynamic workloads.
  • The approach maintains high accuracy while drastically reducing the computational cost of model adaptation, making learned indexes viable for production systems with evolving data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.