Pith. sign in

REVIEW 2 cited by

Generation Probabilities Are Not Enough: Uncertainty Highlighting in AI Code Completions

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2302.07248 v3 pith:2JVNSI4F submitted 2023-02-14 cs.HC cs.AI

classification cs.HCcs.AI
keywords codehighlightingprogrammersai-poweredcompletiontokensuncertaintygenerative
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large-scale generative models enabled the development of AI-powered code completion tools to assist programmers in writing code. However, much like other AI-powered tools, AI-powered code completions are not always accurate, potentially introducing bugs or even security vulnerabilities into code if not properly detected and corrected by a human programmer. One technique that has been proposed and implemented to help programmers identify potential errors is to highlight uncertain tokens. However, there have been no empirical studies exploring the effectiveness of this technique -- nor investigating the different and not-yet-agreed-upon notions of uncertainty in the context of generative models. We explore the question of whether conveying information about uncertainty enables programmers to more quickly and accurately produce code when collaborating with an AI-powered code completion tool, and if so, what measure of uncertainty best fits programmers' needs. Through a mixed-methods study with 30 programmers, we compare three conditions: providing the AI system's code completion alone, highlighting tokens with the lowest likelihood of being generated by the underlying generative model, and highlighting tokens with the highest predicted likelihood of being edited by a programmer. We find that highlighting tokens with the highest predicted likelihood of being edited leads to faster task completion and more targeted edits, and is subjectively preferred by study participants. In contrast, highlighting tokens according to their probability of being generated does not provide any benefit over the baseline with no highlighting. We further explore the design space of how to convey uncertainty in AI-powered code completion tools, and find that programmers prefer highlights that are granular, informative, interpretable, and not overwhelming.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. From Noise to Knowledge: Interactive Summaries for Developer Alerts

    cs.SE 2025-08 conditional novelty 6.0 of 10

    CLARITY uses interactive inductive-logic rules to group static-analysis warnings that share structural or code-level features, and reports modest user-study gains in sensemaking.

  2. Surfacing Variations to Calibrate Perceived Reliability of MLLM-generated Image Descriptions

    cs.HC 2025-07 conditional novelty 6.0 of 10

    Surfacing variations across multiple MLLM image descriptions increases blind and low vision users' detection of unreliable claims and reduces their over-trust in a single AI description.

Pith tools