Lune

SIGMOD2025Top-tier venue

λ-Tune: Harnessing Large Language Models for Automated Database System Tuning

Victor Giannakouris, Immanuel Trummer

Abstract

We introduce λ-Tune, a framework that leverages Large Language Models (LLMs) for automated database system tuning. The design of λ-Tune is motivated by the capabilities of the latest generation of LLMs. Different from prior work, leveraging LLMs to extract tuning hints for single parameters, λ-Tune generates entire configuration scripts, based on a large input document, describing the tuning context. λ-Tune generates alternative configurations, using a principled approach to identify the best configuration, out of a small set of candidates. In doing so, it minimizes reconfiguration overheads and ensures that evaluation costs are bounded as a function of the optimal run time. By treating prompt generation as a cost-based optimization problem, λ-Tune conveys the most relevant context to the LLM while bounding the number of input tokens and, therefore, monetary fees for LLM invocations. We compare λ-Tune to various baselines, using multiple benchmarks and PostgreSQL and MySQL as target systems for tuning, showing that λ-Tune is significantly more robust than prior approaches.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MCTuner: Spatial Decomposition-Enhanced Database Tuning via LLM-Guided Exploration cites LlamaTune: Sample-Efficient DBMS Configuration Tuning
  • MCTuner: Spatial Decomposition-Enhanced Database Tuning via LLM-Guided Exploration cites GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
  • LIO: A lightweight and interpretable query optimizer based on an evolutionary forest cites Lero: A Learning-to-Rank Query Optimizer
  • LIO: A lightweight and interpretable query optimizer based on an evolutionary forest cites GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
  • LIO: A lightweight and interpretable query optimizer based on an evolutionary forest cites Balsa: Learning a Query Optimizer Without Expert Demonstrations
  • Lero: A Learning-to-Rank Query Optimizer cites Bao: Making Learned Query Optimization Practical
  • GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization cites LlamaTune: Sample-Efficient DBMS Configuration Tuning
  • AgentTune: An Agent-Based Large Language Model Framework for Database Knob Tuning cites LlamaTune: Sample-Efficient DBMS Configuration Tuning
  • AgentTune: An Agent-Based Large Language Model Framework for Database Knob Tuning cites GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
  • Balsa: Learning a Query Optimizer Without Expert Demonstrations cites Bao: Making Learned Query Optimization Practical
  • This is Going to Sound Crazy, But What If We Used Large Language Models to Boost Automatic Database Tuning Algorithms By Leveraging Prior History? We Will Find Better Configurations More Quickly Than Retraining From Scratch! cites LlamaTune: Sample-Efficient DBMS Configuration Tuning
  • This is Going to Sound Crazy, But What If We Used Large Language Models to Boost Automatic Database Tuning Algorithms By Leveraging Prior History? We Will Find Better Configurations More Quickly Than Retraining From Scratch! cites Bao: Making Learned Query Optimization Practical
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Beluga: A CXL-Based Memory Architecture for Scalable and Efficient LLM KVCache ManagementXinjun Yang, Qingda Hu, Junru Li, Feifei Li et al.SIGMOD 2026 · 24 citations
  2. This is Going to Sound Crazy, But What If We Used Large Language Models to Boost Automatic Database Tuning Algorithms By Leveraging Prior History? We Will Find Better Configurations More Quickly Than Retraining From Scratch!William Zhang, Wan Shen Lim, Andrew PavloSIGMOD 2026 · 7 citations
  3. AgentTune: An Agent-Based Large Language Model Framework for Database Knob TuningYiyan Li, Haoyang Li, Jing Zhang, Renata Borovica-Gajic et al.SIGMOD 2026 · 5 citations
  4. MCTuner: Spatial Decomposition-Enhanced Database Tuning via LLM-Guided ExplorationZihan Yan, Rui Xi, Mengshu HouSIGMOD 2026 · 3 citations
  5. LIO: A lightweight and interpretable query optimizer based on an evolutionary forestChen Ye, Shujie Ma, Guojun Dai, Hengtong ZhangVLDB 2026 · 1 citation

Builds on9

  1. Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
  2. Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen et al.VLDB 2023 · 102 citations
  3. Balsa: Learning a Query Optimizer Without Expert DemonstrationsZongheng Yang, Wei-Lin Chiang, Sifei Luan, Gautam Mittal et al.SIGMOD 2022 · 99 citations
  4. GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian OptimizationJiale Lao, Yibo Wang, Yufei Li, Jianping Wang et al.VLDB 2024 · 76 citations
  5. LlamaTune: Sample-Efficient DBMS Configuration TuningKonstantinos Kanellis, Cong Ding, Brian Kroth, Andreas Müller et al.VLDB 2022 · 73 citations

Related papers

  1. Can Large Language Models Be Query Optimizer for Relational Databases?Jie Tan, Kangfei Zhao, Rui Li, Jeffrey Xu Yu et al.SIGMOD 2026 · 6 citations
  2. Automatic Database Configuration Debugging using Retrieval-Augmented Language ModelsSibei Chen, Ju Fan, Bin Wu, Nan Tang et al.SIGMOD 2025 · 12 citations
  3. The Case for NLP-Enhanced Database Tuning: Towards Tuning Tools that "Read the Manual"Immanuel TrummerVLDB 2021 · 27 citations
  4. DB-BERT: A Database Tuning Tool that "Reads the Manual"Immanuel TrummerSIGMOD 2022 · 71 citations
  5. LLM4Hint: Leveraging Large Language Models for Hint Recommendation in Offline Query OptimizationSuchen Liu, Yang Lin, Yinjun Han, Jun GaoICDE 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines