gg2
4B model generates 81% faster query plans than Postgres
The gist
Rohan Bansal trained a 4B model to produce 81% faster query plans than Postgres.
It suggests small models can out-plan a database's own optimizer.
How it unfolded
- Sep 16, 2026Rohan Bansal published "Training a 4B model to produce 81% faster query plans than Postgres".
- Sep 16, 2026Bansal posted on X that tiny models are capable of out-planning a database, linking the write-up.
- Sep 16, 2026The article was submitted to Hacker News by user polyphilz, reaching 5 points.