atlas

Research map / Large language models / Reasoning and chain of thought

From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion

ICML 2026 · Large language models › Reasoning and chain of thought · approach: Test-time compute scaling · 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 Adaptive Placeholder Completion (APC), where code LLMs output explicit placeholders at high-entropy positions, trained with SFT and a cost-based GRPO reward, with a cost-theoretic entropy threshold argument.

Problem

Code completion LLMs always force a concrete prediction (Hard Completion), even when context is insufficient, causing costly hallucinations and editing overhead for developers.

Approach

Formulate code completion as expected user-cost minimization, prove a critical entropy threshold above which emitting placeholders yields lower expected cost than hard completion, and train models to emit placeholders via SFT on edit-log-derived data followed by GRPO with a cost-based reward.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval Infilling real-world user edit logs (filtered)

Benchmarks: HumanEval Infilling PC Test (523 curated samples) online A/B test

Metrics: HCR PCR EM Edit Similarity Precision F1 Expected Cost Pass@1 cursor moves time for read and edit

Baselines: Base instruct models SFT-User GRPO-ES fixed entropy/confidence threshold post-processing

Builds on: GRPO Fill-in-the-Middle HumanEval Infilling

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