Lune

CHI2024Top-tier venue

Validating AI-Generated Code with Live Programming

Kasra Ferdowsi, Ruanqianqian (Lisa) Huang, Michael B. James, Nadia Polikarpova, Sorin Lerner

Abstract

AI-powered programming assistants are increasingly gaining popularity, with GitHub Copilot alone used by over a million developers worldwide. These tools are far from perfect, however, producing code suggestions that may be incorrect in subtle ways. As a result, developers face a new challenge: validating AI’s suggestions. This paper explores whether Live Programming (LP), a continuous display of a program’s runtime values, can help address this challenge. To answer this question, we built a Python editor that combines an AI-powered programming assistant with an existing LP environment. Using this environment in a between-subjects study (N = 17), we found that by lowering the cost of validation by execution, LP can mitigate over- and under-reliance on AI-generated programs and reduce the cognitive load of validation for certain types of tasks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
  • How CO2STLY Is CHI? The Carbon Footprint of Generative AI in HCI Research and What We Should Do About It cites Ivie: Lightweight Anchored Explanations of Just-Generated Code
  • How CO2STLY Is CHI? The Carbon Footprint of Generative AI in HCI Research and What We Should Do About It cites Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming
  • How CO2STLY Is CHI? The Carbon Footprint of Generative AI in HCI Research and What We Should Do About It cites How Beginning Programmers and Code LLMs (Mis)read Each Other
  • Ivie: Lightweight Anchored Explanations of Just-Generated Code cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Ivie: Lightweight Anchored Explanations of Just-Generated Code cites Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming
  • Do Users Write More Insecure Code with AI Assistants? cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Need Help? Designing Proactive AI Assistants for Programming cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Need Help? Designing Proactive AI Assistants for Programming cites Ivie: Lightweight Anchored Explanations of Just-Generated Code
  • Need Help? Designing Proactive AI Assistants for Programming cites Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming
  • Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • How Beginning Programmers and Code LLMs (Mis)read Each Other cites Grounded Copilot: How Programmers Interact with Code-Generating Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. How Beginning Programmers and Code LLMs (Mis)read Each OtherSydney Nguyen, Hannah McLean Babe, Yangtian Zi, Arjun Guha et al.CHI 2024 · 66 citations
  2. Ivie: Lightweight Anchored Explanations of Just-Generated CodeLitao Yan, Alyssa Hwang, Zhiyuan Wu, Andrew HeadCHI 2024 · 40 citations
  3. How CO2STLY Is CHI? The Carbon Footprint of Generative AI in HCI Research and What We Should Do About ItNanna Inie, Jeanette Falk, Raghavendra SelvanCHI 2025 · 33 citations
  4. VideoDiff: Human-AI Video Co-Creation with AlternativesMina Huh, Ding Li, Kim Pimmel, Hijung Valentina Shin et al.CHI 2025 · 26 citations
  5. Need Help? Designing Proactive AI Assistants for ProgrammingValerie Chen, Alan Zhu, Sebastian Zhao, Hussein Mozannar et al.CHI 2025 · 23 citations

Builds on12

  1. Grounded Copilot: How Programmers Interact with Code-Generating ModelsShraddha Barke, Michael B. James, Nadia PolikarpovaOOPSLA 2023 · 408 citations
  2. Explanations Can Reduce Overreliance on AI Systems During Decision-MakingHelena Vasconcelos, Matthew Jörke, Madeleine Grunde-McLaughlin, Tobias Gerstenberg et al.CSCW 2023 · 362 citations
  3. Do Users Write More Insecure Code with AI Assistants?Neil Perry, Megha Srivastava, Deepak Kumar, Dan BonehCCS 2023 · 150 citations
  4. Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data ScientistsIan Drosos, Titus Barik, Philip J. Guo, Robert DeLine et al.CHI 2020 · 110 citations
  5. Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted ProgrammingHussein Mozannar, Gagan Bansal, Adam Fourney, Eric HorvitzCHI 2024 · 88 citations

Related papers

  1. A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and ChallengesJenny T. Liang, Chenyang Yang, Brad A. MyersICSE 2024 · 126 citations
  2. On the Design of AI-powered Code Assistants for NotebooksAndrew M. McNutt, Chenglong Wang, Robert A. DeLine, Steven Mark DruckerCHI 2023 · 78 citations
  3. An Eye for AI: Eye-Tracking the Micro-Interruptions of GenAI Code SuggestionsTarek Alakmeh, Sarah D’Angelo, Thomas FritzICSE 2026 · 1 citation
  4. Measuring the Runtime Performance of C++ Code Written by Humans Using Github CopilotDaniel Erhabor, Sreeharsha Udayashankar, Meiyappan Nagappan, Samer Al-KiswanyICSE 2025 · 1 citation
  5. "My productivity is boosted, but ..." Demystifying Users' Perception on AI Coding AssistantsYunbo Lyu, Zhou Yang, Jieke Shi, Jianming Chang et al.ASE 2025 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines