Skip to main content
QUICK REVIEW

[Paper Review] LIFT: Reinforcement Learning in Computer Systems by Learning From Demonstrations

Michael Schaarschmidt, Alexander Kuhnle|arXiv (Cornell University)|Aug 23, 2018
Data Stream Mining TechniquesComputer Science56 references38 citations
TL;DR

LIFT is an end-to-end software stack that enables deep reinforcement learning (DRL) in database and stream processing systems by pretraining agents from human-provided demonstrations, such as query logs or rule-based configurations. Using TensorForce as a backend, LIFT controllers trained on imperfect demonstrations outperform human-designed heuristics and expert baselines by up to 70% in latency and space efficiency.

ABSTRACT

Reinforcement learning approaches have long appealed to the data management community due to their ability to learn to control dynamic behavior from raw system performance. Recent successes in combining deep neural networks with reinforcement learning have sparked significant new interest in this domain. However, practical solutions remain elusive due to large training data requirements, algorithmic instability, and lack of standard tools. In this work, we introduce LIFT, an end-to-end software stack for applying deep reinforcement learning to data management tasks. While prior work has frequently explored applications in simulations, LIFT centers on utilizing human expertise to learn from demonstrations, thus lowering online training times. We further introduce TensorForce, a TensorFlow library for applied deep reinforcement learning exposing a unified declarative interface to common RL algorithms, thus providing a backend to LIFT. We demonstrate the utility of LIFT in two case studies in database compound indexing and resource management in stream processing. Results show LIFT controllers initialized from demonstrations can outperform human baselines and heuristics across latency metrics and space usage by up to 70%.

Motivation & Objective

  • To address the high data and training cost, instability, and lack of tooling that hinder practical deployment of reinforcement learning (RL) in computer systems.
  • To reduce online training time by leveraging existing system logs and human demonstrations as pretraining data.
  • To provide a unified, modular software stack for applying DRL to data management workloads, including database indexing and stream processing.
  • To demonstrate that pretraining from imperfect demonstrations leads to faster convergence and superior performance compared to online-only training.
  • To introduce TensorForce, a declarative TensorFlow library for applied DRL, serving as the algorithmic backend for LIFT.

Proposed method

  • LIFT ingests system traces—such as slow query logs containing query plans, execution statistics, and index usage—and maps them to states, actions, and rewards via user-defined schemas.
  • Demonstrations are extracted from logs or rule-based systems, where each trace corresponds to a state-action-reward triplet for imitation learning.
  • The framework uses Deep Q-learning with Demonstrations (DQfD) to pretrain a DRL agent, leveraging confidence scores to weight high-quality demonstrations.
  • TensorForce generates TensorFlow computation graphs from state, action, and reward specifications, abstracting low-level model construction.
  • The pre-trained agent is fine-tuned online in the real system environment, adapting to dynamic workloads.
  • The system supports both offline pretraining and online refinement, enabling rapid convergence and improved generalization.

Experimental results

Research questions

  • RQ1Can reinforcement learning controllers be effectively pre-trained using imperfect human demonstrations from system logs in data management workloads?
  • RQ2To what extent can pretraining from demonstrations reduce online training time and improve final performance in database and stream processing systems?
  • RQ3How does a DRL agent trained on imperfect demonstrations compare to human-designed heuristics and expert baselines in terms of latency and resource usage?
  • RQ4Can a unified, declarative deep reinforcement learning library (TensorForce) serve as a scalable backend for diverse data management applications?
  • RQ5What is the impact of using a large-margin function to assign confidence to demonstrations in the DQfD framework for real-world system control?

Key findings

  • LIFT controllers pre-trained on imperfect rule-based demonstrations achieved up to 70% better performance than human baselines and heuristics in latency and space usage for database compound indexing.
  • The pretraining phase significantly reduced online training time, enabling convergence within a few hours instead of impractically long durations.
  • In stream processing, LIFT successfully learned optimal task parallelism configurations on Heron, demonstrating generalizability beyond indexing.
  • The use of DQfD with confidence weighting allowed effective learning from imperfect demonstrations, improving sample efficiency and stability.
  • TensorForce enabled rapid prototyping and deployment of DRL agents by abstracting complex deep learning and RL implementation details.
  • The framework demonstrated that leveraging existing system logs and heuristics as demonstrations is a viable path to practical DRL deployment in production systems.

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.