mlsanityData to 14 Oct 2026

LLM-Based Test Case Generation in DBMS through Monte Carlo Tree Search

arXiv 2603.21530 ↗First posted 23 Mar 2026cs.SE cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Database Management Systems (DBMSs) are fundamental infrastructure for modern data-driven applications, where thorough testing with high-quality SQL test cases is essential for ensuring system reliability. Traditional approaches such as fuzzing can be effective for specific DBMSs, but adapting them to different proprietary dialects requires substantial manual effort. Large Language Models (LLMs) present promising opportunities for automated SQL test generation, but face critical challenges in industrial environments. First, lightweight models are widely used in organizations due to security and privacy constraints, but they struggle to generate syntactically valid queries for proprietary SQL dialects. Second, LLM-generated queries are often semantically similar and exercise only shallow execution paths, thereby quickly reaching a coverage plateau. To address these challenges, we propose MIST, an LLM-based test case generatIon framework for DBMS through Monte Carlo Tree search. MIST consists of two stages: Feature-Guided Error-Driven Test Case Synthetization, which constructs a hierarchical feature tree and uses error feedback to guide LLM generation, aiming to produce syntactically valid and semantically diverse queries for different DBMS dialects, and Monte Carlo Tree Search-Based Test Case Mutation, which jointly optimizes seed query selection and mutation rule application guided by coverage feedback, aiming at boosting code coverage by exploring deeper execution paths. Experiments on three widely-used DBMSs with four lightweight LLMs show that MIST achieves average improvements of 43.3% in line coverage, 32.3% in function coverage, and 46.4% in branch coverage compared to the baseline approach with the highest line coverage of 69.3% in the Optimizer module.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 19 of its 48 references that are in the map. First posted on arXiv 23 Mar 2026.

Builds on

19 of 48 references.

References · 19

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  2. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  3. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  4. 2021Monte Carlo Tree Search: A Review of Recent Modifications and Applicationscited by 161
  5. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  6. 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
  7. 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
  8. 2023GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimizationcited by 29
  9. 2023D-Bot: Database Diagnosis System using Large Language Modelscited by 28
  10. 2024AutoDCWorkflow: LLM-based Data Cleaning Workflow Auto-Generation and Benchmarkcited by 24
  11. 2024λ-Tune: Harnessing Large Language Models for Automated Database System Tuningcited by 19
  12. 2023KernelGPT: Enhanced Kernel Fuzzing via Large Language Modelscited by 17
7 more
  1. 2019Action Guidance with MCTS for Deep Reinforcement Learningcited by 8
  2. 2024Revolutionizing Database Q&A with Large Language Models: Comprehensive Benchmark and Evaluationcited by 7
  3. 2020SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedbackcited by 4
  4. 2020Testing Database Engines via Pivoted Query Synthesiscited by 3
  5. 2020Detecting Optimization Bugs in Database Engines via Non-Optimizing Reference Engine Constructioncited by 3
  6. 2021Industry Practice of Coverage-Guided Enterprise-Level DBMS Fuzzingcited by 2
  7. 2025Protocol-Aware Firmware Rehosting for Effective Fuzzing of Embedded Network Stackscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.