Current AI agents that answer human questions by turning them into database queries rely on large, remote language models. These models are slow, expensive, and require sending sensitive business data to outside servers.
The researchers built LuthorSQL, a much smaller model that runs locally on a standard computer. It works in one fast step: it scores possible SQL query structures, runs the most promising ones against the database, and picks the best result. Only when it is unsure does it ask the larger model for help.
In tests, LuthorSQL handled nearly half of all questions on its own, reducing the cost of using the remote model by a third with no loss in accuracy. This means companies can protect their data and reduce spending without giving up reliable results.
