Execution-based code selection
Several code-generation papers treat execution traces as the main signal for choosing or rejecting large language model (LLM) outputs. Semantic Voting clusters candidate programs by sandboxed behavior on generated inputs; across 18 HumanEval+ and MBPP+ settings, execution-based selectors beat output-pattern majority voting by 19 to 52 percentage points. SketchVerify adds structured candidate generation: it asks for different algorithmic sketches, fills them, then verifies candidates by execution fingerprints. On 19 hard HumanEval+ problems for Gemini 3.1 Flash Lite, K=2,M=5 solved 11 problems versus 5 for flat N=10 sampling.
Uncertainty work follows the same practical route. Semantic distance estimation (SDE) and directed SDE compare sampled programs by graded behavioral distance on fuzzed inputs. The directed variant reports AUROC 0.844 for GPT-4o-mini on LiveCodeBench pass@1 failure prediction, beating listed baselines such as DiffTrust and Semantic Entropy in the summary table.