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

06/08/2023
by   Hussein Mozannar, et al.
0

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 to improve their productivity. Since, in these scenarios, programmers accept and reject suggestions, ideally, such a system should use this feedback in furtherance of this goal. In this work we leverage prior data of programmers interacting with Copilot to develop interventions that can save programmer time. We propose a utility theory framework, which models this interaction with programmers and decides when and which suggestions to display. Our framework Conditional suggestion Display from Human Feedback (CDHF) is based on predictive models of programmer actions. Using data from 535 programmers we build models that predict the likelihood of suggestion acceptance. In a retrospective evaluation on real-world programming tasks solved with AI-assisted programming, we find that CDHF can achieve favorable tradeoffs. Our findings show the promise of integrating human feedback to improve interaction with large language models in scenarios such as programming and possibly writing tasks.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/25/2022

Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming

AI code-recommendation systems (CodeRec), such as Copilot, can assist pr...
research
06/08/2023

Is AI the better programming partner? Human-Human Pair Programming vs. Human-AI pAIr Programming

The emergence of large-language models (LLMs) that excel at code generat...
research
07/08/2023

Copilot for Xcode: Exploring AI-Assisted Programming by Prompting Cloud-based Large Language Models

This paper presents an AI-assisted programming tool called Copilot for X...
research
05/01/2023

Bridging the Gap: A Survey on Integrating (Human) Feedback for Natural Language Generation

Many recent advances in natural language generation have been fueled by ...
research
06/30/2022

Grounded Copilot: How Programmers Interact with Code-Generating Models

Powered by recent advances in code-generating models, AI assistants like...
research
11/01/2018

Fashionable Modelling with Flux

Machine learning as a discipline has seen an incredible surge of interes...
research
04/17/2023

Low-code LLM: Visual Programming over LLMs

Effectively utilizing LLMs for complex tasks is challenging, often invol...

Please sign up or login with your details

Forgot password? Click here to reset