Papers › When to Show a Suggestion? Integrating Human Feedback in AI-Assisted Programming

When to Show a Suggestion? Integrating Human Feedback in AI-Assisted Programming

8 Jun 2023arXiv:2306.04930archive 2025-07-28

Hussein Mozannar, Gagan Bansal, Adam Fourney, Eric Horvitz

AI powered code-recommendation systems, such as Copilot and CodeWhisperer, provide code suggestions inside a programmer's environment (e.g., an IDE) with the aim of improving productivity. We pursue mechanisms for leveraging signals about programmers' acceptance and rejection of code suggestions to guide recommendations. We harness data drawn from interactions with GitHub Copilot, a system used by millions of programmers, to develop interventions that can save time for programmers. We introduce a utility-theoretic framework to drive decisions about suggestions to display versus withhold. The approach, conditional suggestion display from human feedback (CDHF), relies on a cascade of models that provide the likelihood that recommended code will be accepted. These likelihoods are used to selectively hide suggestions, reducing both latency and programmer verification time. Using data from 535 programmers, we perform a retrospective evaluation of CDHF and show that we can avoid displaying a significant fraction of suggestions that would have been rejected. We further demonstrate the importance of incorporating the programmer's latent unobserved state in decisions about when to display suggestions through an ablation study. Finally, we showcase how using suggestion acceptance as a reward signal for guiding the display of suggestions can lead to suggestions of reduced quality, indicating an unexpected pitfall.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.04930")

Code

Syntology Ran 0 of 19 code samples harvested from 1 repository linked to this paper; 19 have no recorded run.

By repository: official repository: 19 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

microsoft/coderec_programming_states officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 0 ran; 0 honoured the contract we drafted; 19 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

19unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from microsoft/coderec_programming_states. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bootstrap_confidence_interval microsoft/coderec_programming_states/when_to_show/metrics_get.py official repository unverified MIT (permissive) · ed19bdc4230daed5 · report
crude_label microsoft/coderec_programming_states/when_to_show/get_code_label.py official repository unverified MIT (permissive) · 0490eac5bafb4137 · report
discretemap microsoft/coderec_programming_states/between_the_lines/user_study_analysis/colorblind_colors.py official repository unverified MIT (permissive) · 81dc0848a2719a79 · report
entropy_single_probability microsoft/coderec_programming_states/when_to_show/cdhf.py official repository unverified MIT (permissive) · 5397058661fb4a5c · report
get_df_all microsoft/coderec_programming_states/when_to_show/extended_logs/extended_logs_mass.py official repository unverified MIT (permissive) · 943614b7c2a70665 · report
get_embedding_list microsoft/coderec_programming_states/when_to_show/generate_features.py official repository unverified MIT (permissive) · 213f0c818c404589 · report
get_extended_states microsoft/coderec_programming_states/when_to_show/extended_logs/extended_logs_mass.py official repository unverified MIT (permissive) · 434292e5dfea98da · report
get_features_labels microsoft/coderec_programming_states/when_to_show/data_split.py official repository unverified MIT (permissive) · e57f8705e5725835 · report
get_features_labels_user_study microsoft/coderec_programming_states/when_to_show/data_split.py official repository unverified MIT (permissive) · 1bfeef7a43e6e84b · report
get_index microsoft/coderec_programming_states/between_the_lines/predict_cups/data_split.py official repository unverified MIT (permissive) · 53988409e494aa17 · report
local_entropy microsoft/coderec_programming_states/between_the_lines/user_study_analysis/entropy_utils.py official repository unverified MIT (permissive) · 73a8698bc54cc3fb · report
process_data_user_study microsoft/coderec_programming_states/when_to_show/data_split.py official repository unverified MIT (permissive) · 4b248dd17b83c8a3 · report
retreive_logs microsoft/coderec_programming_states/when_to_show/extended_logs/extended_logs.py official repository unverified MIT (permissive) · 380ce40e3722bc67 · report
stationary_distribution microsoft/coderec_programming_states/between_the_lines/user_study_analysis/entropy_utils.py official repository unverified MIT (permissive) · dfef76f9d70850bf · report
text_features microsoft/coderec_programming_states/when_to_show/generate_features.py official repository unverified MIT (permissive) · 6545175d9ac9fa91 · report
tol_cmap microsoft/coderec_programming_states/between_the_lines/user_study_analysis/colorblind_colors.py official repository unverified MIT (permissive) · 9d13457c7a04bdb3 · report
tol_cset microsoft/coderec_programming_states/between_the_lines/user_study_analysis/colorblind_colors.py official repository unverified MIT (permissive) · 52fb834d8edc9f71 · report
trajectory_entropy microsoft/coderec_programming_states/between_the_lines/user_study_analysis/entropy_utils.py official repository unverified MIT (permissive) · 855f8589acc66aff · report
traverse_tree microsoft/coderec_programming_states/when_to_show/get_code_label.py official repository unverified MIT (permissive) · cf65280e02f4e416 · report

Tasks

Recommendation Systems

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections