Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zheng, Chengqi, Hu, Keya, Liu, Shuzhi, Wu, Tao, Ellis, Kevin, Pu, Yewen
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2605.21515
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918515585318912
author Zheng, Chengqi
Hu, Keya
Liu, Shuzhi
Wu, Tao
Ellis, Kevin
Pu, Yewen
author_facet Zheng, Chengqi
Hu, Keya
Liu, Shuzhi
Wu, Tao
Ellis, Kevin
Pu, Yewen
contents LLM prompting is widely used for naturally stated tasks, yet it is unreliable it may succeed on a few test cases but fail at deployment time. We study performance prediction: given a program, either symbolic (e.g. Python) or a prompt executed on an LLM, and a few in-domain examples, predict its performance on unseen tasks from the same domain. We use a simple coin-flip model, treating each pass/fail program execution as a Bernoulli random variable, whose success probability is the programs unknown performance. In this model, performance depends entirely on: 1) the observed execution outcomes on test cases, and 2) a prior over performances. We compile empirical performance priors from a corpus of diverse programs and tasks, and find that performance for symbolic programs (e.g., Python) are all or nothing, while prompt programs have a diffuse prior with many nearly-correct programs. This difference explains why a few passing tests can certify symbolic programs but not prompt programs. Building on this insight, we develop RAP (Retrieved Approximate Prior), which retrieves similar tasks and prompt programs from an existing corpus to construct a proxy prior, which is then used to predict performance. We show RAP achieves solid performances.
format Preprint
id arxiv_https___arxiv_org_abs_2605_21515
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Predicting Performance of Symbolic and Prompt Programs with Examples
Zheng, Chengqi
Hu, Keya
Liu, Shuzhi
Wu, Tao
Ellis, Kevin
Pu, Yewen
Machine Learning
Artificial Intelligence
LLM prompting is widely used for naturally stated tasks, yet it is unreliable it may succeed on a few test cases but fail at deployment time. We study performance prediction: given a program, either symbolic (e.g. Python) or a prompt executed on an LLM, and a few in-domain examples, predict its performance on unseen tasks from the same domain. We use a simple coin-flip model, treating each pass/fail program execution as a Bernoulli random variable, whose success probability is the programs unknown performance. In this model, performance depends entirely on: 1) the observed execution outcomes on test cases, and 2) a prior over performances. We compile empirical performance priors from a corpus of diverse programs and tasks, and find that performance for symbolic programs (e.g., Python) are all or nothing, while prompt programs have a diffuse prior with many nearly-correct programs. This difference explains why a few passing tests can certify symbolic programs but not prompt programs. Building on this insight, we develop RAP (Retrieved Approximate Prior), which retrieves similar tasks and prompt programs from an existing corpus to construct a proxy prior, which is then used to predict performance. We show RAP achieves solid performances.
title Predicting Performance of Symbolic and Prompt Programs with Examples
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2605.21515