Distribution-Aware Algorithm Design with LLM Agents
Saharsh Koganti, Priyadarsi Mishra, Pierfrancesco Beneventano, Tomer Galanti

TL;DR
This paper introduces a distribution-aware framework for designing executable solver code using LLMs, optimizing both correctness and runtime based on learned hints from samples.
Contribution
It formalizes the concept of solver hints, proves generalization guarantees, and empirically demonstrates significant improvements in speed and quality across multiple problem distributions.
Findings
Synthesized solvers achieve high solution quality (mean normalized 0.971).
Significant speedups over heuristics, Gurobi, and exact solvers (up to 342x faster).
Effective hints lead to distribution-specific computational scale reduction.
Abstract
We study learning when the learned object is executable solver code rather than a predictor. In this setting, correctness is not enough: two solvers may both return valid solutions on the deployment distribution while differing substantially in runtime. Given samples from an unknown task distribution, the learner returns code evaluated on fresh instances by both solution quality and execution time. Our central abstraction is a \emph{solver hint}: reusable structure inferred from samples and compiled into specialized solver code. We prove that the empirically fastest sample-consistent solver from a fixed library generalizes in both correctness and runtime, and that statistically identifiable hints can be recovered and compiled from polynomially many samples. Empirically, we instantiate the framework with LLM code agents on \(21\) structured combinatorial-optimization target…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
