Is Large Language Model Good at Database Knob Tuning? A Comprehensive Experimental Evaluation
Not on the map. Why?
Abstract (arXiv)
Knob tuning plays a crucial role in optimizing databases by adjusting knobs to enhance database performance. However, traditional tuning methods often follow a Try-Collect-Adjust approach, proving inefficient and database-specific. Moreover, these methods are often opaque, making it challenging for DBAs to grasp the underlying decision-making process. The emergence of large language models (LLMs) like GPT-4 and Claude-3 has excelled in complex natural language tasks, yet their potential in database knob tuning remains largely unexplored. This study harnesses LLMs as experienced DBAs for knob-tuning tasks with carefully designed prompts. We identify three key subtasks in the tuning system: knob pruning, model initialization, and knob recommendation, proposing LLM-driven solutions to replace conventional methods for each subtask. We conduct extensive experiments to compare LLM-driven approaches against traditional methods across the subtasks to evaluate LLMs' efficacy in the knob tuning domain. Furthermore, we explore the adaptability of LLM-based solutions in diverse evaluation settings, encompassing new benchmarks, database engines, and hardware environments. Our findings reveal that LLMs not only match or surpass traditional methods but also exhibit notable interpretability by generating responses in a coherent ``chain-of-thought'' manner. We further observe that LLMs exhibit remarkable generalizability through simple adjustments in prompts, eliminating the necessity for additional training or extensive code modifications. Drawing insights from our experimental findings, we identify several opportunities for future research aimed at advancing the utilization of LLMs in the realm of database management.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 12 of its 52 references that are in the map. First posted on arXiv 5 Aug 2024.
Builds on
12 of 52 references.
References · 12
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2015Continuous control with deep reinforcement learningcited by 3,407
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2023GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimizationcited by 29
- 2017BestConfig: Tapping the Performance Potential of Systems via Automatic Configuration Tuningcited by 25
- 2021Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluationcited by 22
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"cited by 19
- 2022Towards Dynamic and Safe Configuration Tuning for Cloud Databasescited by 16
- 2022LlamaTune: Sample-Efficient DBMS Configuration Tuningcited by 14
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2025SQLBarber: A System Leveraging Large Language Models to Generate Customized and Realistic SQL Workloadscited by 4
- 2026When to Use Which? Benchmarking Optimisers for Configurable Systems under Varying Budgetscited by 1
- 2025DemoTuner: Automatic Performance Tuning for Database Management Systems Based on Demonstration Reinforcement Learningcited by 0
- 2026A Case for Agentic Tuning: From Documentation to Action in PostgreSQLcited by 0
- 2026When to Use Which? Benchmarking Optimisers for Configurable Systems under Varying Budgets17 Jul 2026
- 2026A Case for Agentic Tuning: From Documentation to Action in PostgreSQL19 May 2026
- 2025DemoTuner: Automatic Performance Tuning for Database Management Systems Based on Demonstration Reinforcement Learning13 Nov 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025SQLBarber: A System Leveraging Large Language Models to Generate Customized and Realistic SQL Workloads8 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026Optimizing Small Language Models for NL2SQL via Chain-of-Thought Fine-Tuning
- 2025L2T-Tune:LLM-Guided Hybrid Database Tuning with LHS and TD3
- 2025Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving
- 2024ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL
- 2024A Survey on Data Synthesis and Augmentation for Large Language Models
- 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Models
- 2025Querying Databases with Function Calling