Training a 4B model to produce 81% faster query plans than Postgres
Summary
The article describes training a 4B open-weight model to produce faster PostgreSQL query plans via reinforcement learning, supervised fine-tuning, and LoRA. It covers the agent harness, measurement de-noising, benchmark comparisons (JOB and CE B), and results showing significant speedups, along with implementation costs and future directions.