Code confidence signals
Two papers give concrete ways to score generated code before it enters a larger workflow. Code Is More Than Text combines token entropy spikes, sampled pseudo-code agreement, and self-generated tests. Across five code large language models (LLMs) and four benchmarks, its ensemble raises average area under the receiver operating characteristic curve (AUROC) to 0.776, up 8.1 points over the strongest natural-language-derived baseline.
FASE, short for Fast Adaptive Semantic Entropy, takes a cheaper route. It embeds 10 code samples per task, clusters them with a minimum-spanning-tree rule, and computes entropy over the clusters. On HumanEval and BigCodeBench-hard, the Qwen3-Embedding-8B version reports a 25% average gain in Spearman correlation with Pass@1 and runs at about 0.3% of the cost of LLM-based semantic entropy.
Structured output control adds a boundary case. Template Token Match Generation nearly removes syntax errors for JSON, SQL, code, and function calls, yet schema and value errors remain. Format control helps pipelines parse outputs; it does not certify that the generated artifact is the right one.