atlas

Research map / Large language models / Agents, code and math

Online Prompt Selection for Program Synthesis

AAAI 2025 · Large language models › Agents, code and math · approach: Execution-based code verification · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CYANEA, an online multi-armed bandit (k-NN contextual) that selects among symbolic solvers and LLM-prompt pairs for program synthesis queries, with time/token budget allocation.

Problem

Users must choose which LLM, prompting style, or symbolic solver to use for each program synthesis query; wrong choices waste time and money, and no single solver dominates across tasks.

Approach

Frame solver and prompt selection as a contextual multi-armed bandit over solvers (LLM-prompt pairs plus an enumerative solver), using k-nearest-neighbor predictions on query features, a single-layer or layered bandit variant, and exponential-MLE-based time and token budget allocation to run solvers sequentially.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use single k-NN solver and prompt selection with r^c reward instead of the best individual solverCyanea · Synthesis queries (1,269 queries)% solved: 88.3% vs 64.3%Helped
use single k-NN solver and prompt selection with r^c reward instead of the best individual solverCyanea · Synthesis queries (1,269 queries)Par-2 score: 37636.3 vs 95251.2Helped
use single k-NN selection instead of layered double k-NN selectionCyanea · Synthesis queries (1,269 queries)% solved: 84.5% -> 88.3%Helped
use single k-NN selection instead of layered double k-NN selectionCyanea · Synthesis queries (1,269 queries)% solved: 71.8% -> 87.0%Helped
use linear rather than dynamic budget allocation (ablation)Single k-NN (r^t) · Synthesis queries (1,269 queries)% solved: 88.2% -> 87.0%Hurt
use linear rather than dynamic budget allocation (ablation)Double k-NN (r^c) · Synthesis queries (1,269 queries)% solved: 84.5% -> 71.8%Hurt
use linear rather than dynamic budget allocation (ablation)Double k-NN (r^c) · Synthesis queries (1,269 queries)avg. cost: 6366.8 -> 4589.1Mixed
select using r^t instead of r^c (ablation)Single k-NN · Synthesis queries (1,269 queries)Par-2 score: 37636.3 -> 37813.7Helped
select using r^c instead of r^t (ablation)Single k-NN · Synthesis queries (1,269 queries)avg. cost: 3122 vs 3176.9Helped
select using r^b instead of r^c (ablation)Single k-NN · Synthesis queries (1,269 queries)% solved: 88.1% vs 88.3%Helped
use linear rather than dynamic budget allocation (ablation)Cyanea single k-NN · Synthesis queries (1,269 queries)Par-2 scoreMixed

Surprising findings

Limitations

Experimental setup

Datasets: SyGuS competition queries ranking function synthesis queries from literature queries generated from SMT competition problems

Benchmarks: SyGuS competition queries ranking function synthesis queries SMT-derived synthesis queries

Metrics: number of queries solved Par-2 score total reward (r^b, r^t, r^c) average solving cost

Baselines: Single k-NN Single k-NN linear Double k-NN Double k-NN linear virtual best solver gpt-p1 through gpt-p6 llama-p1 through llama-p6 enumerator

Builds on: CEGIS Euphony MedleySolver SyGuS-IF

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy