Skip to main content
QUICK REVIEW

[Paper Review] Learning Index Selection with Structured Action Spaces

Jeremy Welborn, Michael Schaarschmidt|arXiv (Cornell University)|Sep 16, 2019
Data Stream Mining TechniquesComputer Science37 references6 citations
TL;DR

This paper proposes a structured deep reinforcement learning agent for database index selection using permutation-based action spaces, enabling more intuitive and efficient indexing. By modeling index selection as a permutation learning problem via the Sinkhorn policy gradient, the agent achieves up to 40% smaller index configurations with equivalent latency compared to baselines, demonstrating improved generalization and reduced redundancy.

ABSTRACT

Configuration spaces for computer systems can be challenging for traditional and automatic tuning strategies. Injecting task-specific knowledge into the tuner for a task may allow for more efficient exploration of candidate configurations. We apply this idea to the task of index set selection to accelerate database workloads. Index set selection has been amenable to recent applications of vanilla deep RL, but real deployments remain out of reach. In this paper, we explore how learning index selection can be enhanced with task-specific inductive biases, specifically by encoding these inductive biases in better action structures. Index selection-specific action representations arise when the problem is reformulated in terms of permutation learning and we rely on recent work for learning RL policies on permutations. Through this approach, we build an indexing agent that is able to achieve improved indexing and validate its behavior with task-specific statistics. Early experiments reveal that our agent can find configurations that are up to 40% smaller for the same levels of latency as compared with other approaches and indicate more intuitive indexing behavior.

Motivation & Objective

  • To address the challenge of high-dimensional, combinatorial action spaces in database index selection, which hinders efficient reinforcement learning.
  • To improve sample efficiency and policy generalization in index selection by incorporating task-specific inductive biases through structured action representations.
  • To enable more intuitive and coherent indexing behavior by redefining index selection as a permutation learning problem.
  • To evaluate the effectiveness of structured action spaces using task-specific statistics and comparative benchmarks.

Proposed method

  • Reformulate index set selection as a permutation learning problem, where actions correspond to ordered sequences of index key choices.
  • Use the Sinkhorn policy gradient algorithm to train a deep RL agent over structured action spaces defined by permutations of candidate columns.
  • Leverage task-specific inductive biases by encoding semantic relationships between queries and database columns (e.g., selectivity, join patterns) into the action representation.
  • Construct a state representation that captures workload and schema context, enabling the agent to reason about query-index intersections.
  • Apply a continuous relaxation of the permutation space via the Sinkhorn layer to enable differentiable policy gradients.
  • Train the agent using sparse scalar rewards based on query execution latency, with exploration guided by the structured action space.

Experimental results

Research questions

  • RQ1Can structured action representations in deep reinforcement learning lead to more efficient and intuitive index selection in high-dimensional, combinatorial configuration spaces?
  • RQ2How does modeling index selection as permutation learning improve sample efficiency and policy generalization compared to standard DQN-based approaches?
  • RQ3To what extent can task-specific inductive biases encoded in action space structure reduce redundant or suboptimal index choices?
  • RQ4Can the agent discover smaller index sets that maintain or improve query latency performance compared to baselines?

Key findings

  • The proposed agent achieved up to 40% smaller index configurations than baseline methods while maintaining equivalent query latency levels.
  • The agent demonstrated more intuitive indexing behavior, avoiding redundant index creation on columns already covered by default indexes.
  • In 4 out of 5 queries where DQN created redundant indices on L_ORDERKEY, the SPG agent took no action, correctly leveraging existing default indexes.
  • The agent’s behavior was coherent across workloads, showing consistent exploitation of index intersections and query patterns.
  • The structured action space reduced the number of throwaway or suboptimal decisions, improving learning stability and efficiency.
  • Task-specific statistics revealed that SPG better exploited query-index overlaps than DQN, indicating more semantically aligned behavior.

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.