Training a 4B model to produce 81% faster query plans than Postgres
We propose a method that trains a 4‑billion‑parameter small LLM with reinforcement learning to generate execution plans that are 81% faster than PostgreSQL’s default query planner.
Key points
- •We built a 4 billion‑parameter model specialized for PostgreSQL query optimization, assuming integration with existing systems.
- •We used reinforcement learning to train the model to select more efficient query execution orders.
- •Benchmark tests showed an 81% speed improvement compared with PostgreSQL’s standard query planner.