Skip to main content
QUICK REVIEW

[Paper Review] Understanding the Human-LLM Dynamic: A Literature Survey of LLM Use in Programming Tasks

Deborah Etsenake, Meiyappan Nagappan|arXiv (Cornell University)|Oct 1, 2024
Artificial Intelligence in LawSocial Sciences3 citations
TL;DR

This literature survey investigates human-LLM interactions in programming tasks, analyzing user study data to understand how LLMs affect human performance and task outcomes. It identifies key interaction patterns, evaluates human enhancement and task performance, and highlights the need for standardized metrics and improved prompting strategies to maximize LLM utility in real-world programming workflows.

ABSTRACT

Large Language Models (LLMs) are transforming programming practices, offering significant capabilities for code generation activities. While researchers have explored the potential of LLMs in various domains, this paper focuses on their use in programming tasks, drawing insights from user studies that assess the impact of LLMs on programming tasks. We first examined the user interaction behaviors with LLMs observed in these studies, from the types of requests made to task completion strategies. Additionally, our analysis reveals both benefits and weaknesses of LLMs showing mixed effects on the human and task. Lastly, we looked into what factors from the human, LLM or the interaction of both, affect the human's enhancement as well as the task performance. Our findings highlight the variability in human-LLM interactions due to the non-deterministic nature of both parties (humans and LLMs), underscoring the need for a deeper understanding of these interaction patterns. We conclude by providing some practical suggestions for researchers as well as programmers.

Motivation & Objective

  • To understand how programmers interact with LLMs during real-world programming tasks through user studies.
  • To evaluate whether LLM use enhances human programming capabilities, such as productivity and learning.
  • To assess the impact of LLMs on actual task performance, including code correctness and quality.
  • To identify specific interaction behaviors that lead to improved human or task outcomes.
  • To highlight gaps in current research, particularly the lack of cross-LLM model validation and standardized evaluation metrics.

Proposed method

  • Conducted a systematic literature review across ACM, IEEE, Scopus, and arXiv using broad search terms related to LLMs, programming, and user studies.
  • Focused on papers post-2017 that included human experiments or experience reports involving transformer-based LLMs.
  • Applied backward and forward snowballing to expand the initial pool of relevant studies.
  • Excluded studies that evaluated LLMs solely on datasets or without observed human-LLM interactions.
  • Synthesized qualitative and quantitative findings from 88 user studies to identify recurring interaction patterns and performance metrics.
  • Categorized findings based on objectives, interaction behaviors, human enhancement, and task performance outcomes.
Figure 1. Human enhancement themes categorized by the number of papers reporting positive, neutral, and negative effects.
Figure 1. Human enhancement themes categorized by the number of papers reporting positive, neutral, and negative effects.

Experimental results

Research questions

  • RQ1RQ1: How are programmers interacting with LLMs (Interaction Observations)?
  • RQ2RQ2: Does the use of LLMs lead to enhanced human capabilities (Human Enhancement Evaluation)?
  • RQ3RQ3: Does the use of LLMs improve task performance (Task Performance Evaluation)?
  • RQ4RQ4: Are there interaction behaviours that lead to enhanced human capabilities or improved task performance (User-LLM Interaction Effects on Human Enhancement and Task Performance)?

Key findings

  • Programmers frequently use re-prompting and iterative refinement to improve LLM-generated code, indicating that interaction quality significantly affects outcomes.
  • LLMs enhance human productivity and learning, particularly in code generation and understanding programming concepts, though effects vary by user expertise.
  • Task performance improves in terms of code correctness and quality when effective prompting strategies are applied, but results are inconsistent across different programming tasks.
  • The non-deterministic nature of LLMs leads to variable outcomes, underscoring the importance of user interaction techniques like prompt engineering.
  • Most studies focus on ChatGPT and GitHub Copilot, with limited user studies on other models like T5 or StarCoder, limiting generalizability.
  • There is a lack of standardized metrics for evaluating human-LLM interaction, hindering objective comparison and replication across studies.
Figure 2. The LLM response Evaluation metric results as examined in the papers and grouped them into number of papers reporting positive effects, negative and neutral/average effects
Figure 2. The LLM response Evaluation metric results as examined in the papers and grouped them into number of papers reporting positive effects, negative and neutral/average effects

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.