mlsanityData to 7 Oct 2026

The Unreasonable Effectiveness of LLMs for Query Optimization

arXiv 2411.02862 ↗First posted 5 Nov 2024cs.DB cs.LGcited by 4

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Recent work in database query optimization has used complex machine learning strategies, such as customized reinforcement learning schemes. Surprisingly, we show that LLM embeddings of query text contain useful semantic information for query optimization. Specifically, we show that a simple binary classifier deciding between alternative query plans, trained only on a small number of labeled embedded query vectors, can outperform existing heuristic systems. Although we only present some preliminary results, an LLM-powered query optimizer could provide significant benefits, both in terms of performance and simplicity.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 8 of its 17 references that are in the map. First posted on arXiv 5 Nov 2024.

Builds on

8 of 17 references.

References · 8

  1. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  2. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  3. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  4. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  5. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
  6. 2020Bao: Learning to Steer Query Optimizerscited by 62
  7. 2021Flow-Loss: Learning Cardinality Estimates That Mattercited by 22
  8. 2022Zero-Shot Cost Models for Distributed Stream Processingcited by 4

Built on by

Cited by year

Citing papers per year: 2025: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SEFRQO: A Self-Evolving Fine-Tuned RAG-Based Query Optimizer
  2. 2024A Survey of Query Optimization in Large Language Models
  3. 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models
  4. 2024LLM-PQA: LLM-enhanced Prediction Query Answering
  5. 2024LLM-Enhanced Data Management
  6. 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems
  7. 2025ExpandR: Teaching Dense Retrievers Beyond Queries with LLM Guidance
  8. 2025Rethinking On-policy Optimization for Query Augmentation