Relation-Aware Bayesian Optimization of DBMS Configurations Guided by Affinity Scores

Sein Kwon, Seulgi Baek, Hyunseo Yang, Youngwan Jo, Sanghyun ParkarXiv 2025 · DOI

Introduction

Modern database management systems (DBMS) like MySQL and PostgreSQL are the backbone of digital infrastructure, yet their performance is heavily dependent on hundreds of configuration parameters. Tuning these settings is a notorious "curse of dimensionality" for Database Administrators (DBAs). Traditional optimization methods often fail because they treat parameters as independent variables or focus only on a small subset of "top" parameters.

RelTune introduces a paradigm shift by treating DBMS configurations as a connected web of dependencies. By leveraging Large Language Models (LLMs) to extract domain knowledge and Graph Neural Networks (GNNs) to navigate complex parameter relationships, RelTune achieves state-of-the-art performance, improving throughput by up to 56.5% and reducing latency by 60.9%.

The Challenge of DBMS Tuning

Existing machine learning tools for database tuning typically suffer from two major flaws. First, the Independence Assumption incorrectly assumes that parameters do not affect one another. In reality, settings are deeply intertwined; for instance, the impact of log file sizes is often contingent on the total buffer pool size allocated to the system.

Heatmap demonstrating the non-linear interaction between InnoDB log file size and buffer pool size on transaction throughput (TPS).

Second, many tools rely on aggressive Feature Selection, tuning only the most obvious parameters to simplify the mathematical model. This approach ignores the collective impact of hundreds of "minor" parameters that can significantly influence performance when tuned in concert. Standard Bayesian Optimization (BO) also struggles in these high-dimensional spaces, often leading to unstable predictions and inefficient exploration.

The RelTune Framework

RelTune addresses these challenges through a three-stage pipeline designed to inject domain expertise into a performance-aware machine learning model.

The complete RelTune architecture: from LLM-guided relational graph construction to latent space optimization via hybrid-score-guided Bayesian optimization.

1. Relational Graph Construction

Rather than manually mapping dependencies, RelTune utilizes GPT-4 to ingest DBMS manuals and community documentation. The LLM generates textual descriptions of parameters and identifies functional interactions, which are then structured into a "Relational Graph." In this graph, nodes represent parameters and edges represent their dependencies.

2. Graph-Based Latent Representation

A Graph Attention Network (GAT) compresses this high-dimensional relational graph into a low-dimensional "latent space." Crucially, this GNN is "performance-aware"—it is trained to reconstruct configurations while simultaneously predicting throughput and latency. This ensures the compressed representation preserves the underlying semantics of database performance.

3. Hybrid-Score Guided Bayesian Optimization (HBO)

Standard BO selects candidate configurations based solely on a surrogate model's prediction. RelTune enhances this by introducing an Affinity Score. This metric measures the proximity of a candidate point to previously discovered high-performing regions in the latent space. This guidance prevents the optimizer from wasting resources on "bad" regions and accelerates convergence toward optimal settings.

Experimental Evaluation

The researchers evaluated RelTune against major DBMSs (MySQL v5.7.37 and PostgreSQL v14.19) using industry-standard benchmarks including YCSB, TPC-C, and TPC-H. RelTune was compared against established baselines such as OtterTune, GPTuner, and CDBTune.

Key Results

  • Throughput Gains: On the MySQL YCSB E workload, RelTune improved throughput by 56.5% over default configurations.
  • Latency Reduction: On the MySQL YCSB B workload, it achieved a 60.9% reduction in latency.
  • Efficiency and Stability: RelTune demonstrated significantly faster tuning cycles in PostgreSQL tests. By utilizing a high-fidelity metric prediction head within the GNN, it can evaluate candidates without requiring a time-consuming database restart for every iteration. Convergence plots indicate that RelTune reaches high-performance regions within the first 100 iterations, outperforming vanilla BO which often plateaus.

Insights and Future Directions

RelTune proves that documentation can be treated as high-value data. By using LLMs to transform dry technical manuals into structured graphs, the framework injects human-like domain knowledge into automated tuning. Furthermore, the discovery of the "Neighborhood Effect"—where high-performing configurations cluster in latent space—allows the Affinity Score to stabilize the search process.

While RelTune requires an initial training phase for the GNN, this "cold start" cost is offset by the speed of subsequent tuning. Future work aims to move from offline tuning to real-time adaptive tuning, allowing systems to adjust parameters dynamically as traffic patterns shift. Additionally, refining the LLM's interpretation of manuals will be critical to ensuring the accuracy of the underlying relational graphs.

Summary updated

BibTeX
@misc{kwon2025relation,
  author = {Sein Kwon and Seulgi Baek and Hyunseo Yang and Youngwan Jo and Sanghyun Park},
  title = {{Relation-Aware Bayesian Optimization of DBMS Configurations Guided by Affinity Scores}},
  year = {2025},
  eprint = {2510.27145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.27145},
}
Figure