[论文解读] Understanding the Human-LLM Dynamic: A Literature Survey of LLM Use in Programming Tasks
本篇文献综述研究了编程任务中人类与大语言模型(LLM)的交互行为,通过分析用户研究数据,探讨LLM如何影响人类表现与任务结果。研究识别出关键的交互模式,评估了人类能力的增强与任务表现,并强调了制定标准化指标和改进提示工程策略的必要性,以最大化LLM在实际编程工作流中的实用性。
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.
研究动机与目标
- 通过用户研究理解程序员在真实编程任务中与LLM的交互方式。
- 评估LLM使用是否提升了人类编程能力,如生产力与学习效果。
- 评估LLM对实际任务表现的影响,包括代码正确性与质量。
- 识别导致人类表现或任务结果改善的具体交互行为。
- 指出当前研究的空白,特别是缺乏跨LLM模型的验证与标准化评估指标。
提出的方法
- 在ACM、IEEE、Scopus和arXiv等数据库中开展系统性文献综述,使用与LLM、编程及用户研究相关的广泛搜索词。
- 聚焦于2017年以后发表的、包含基于Transformer架构的LLM的人类实验或经验报告的研究。
- 通过前后向滚雪球法扩展初始相关研究的范围。
- 排除仅在数据集上评估LLM且未观察到人类-LLM交互的研究。
- 综合88项用户研究的定性与定量发现,识别出重复出现的交互模式与性能指标。
- 根据研究目标、交互行为、人类能力增强与任务表现结果对发现进行分类。

实验结果
研究问题
- RQ1RQ1:程序员如何与LLM进行交互(交互观察)?
- RQ2RQ2:LLM的使用是否带来人类能力的提升(人类能力增强评估)?
- RQ3RQ3:LLM的使用是否改善了任务表现(任务表现评估)?
- RQ4RQ4:是否存在能提升人类能力或改善任务表现的交互行为(用户-LLM交互对人类能力增强与任务表现的影响)?
主要发现
- 程序员频繁使用重新提示(re-prompting)与迭代优化来改进LLM生成的代码,表明交互质量对结果有显著影响。
- LLM显著提升了人类的生产力与学习能力,尤其在代码生成与理解编程概念方面,但效果因用户专业水平而异。
- 当应用有效的提示工程策略时,任务表现(如代码正确性与质量)有所提升,但不同编程任务间结果不一致。
- LLM的非确定性特征导致结果波动,凸显了提示工程等用户交互技术的重要性。
- 多数研究集中于ChatGPT与GitHub Copilot,对T5或StarCoder等其他模型的用户研究较少,限制了结论的普适性。
- 缺乏用于评估人类-LLM交互的标准化指标,阻碍了研究间的客观比较与可复现性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。