IntelliExplain: Enhancing Conversational Code Generation for Non-Professional Programmers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yan, Hao, Latoza, Thomas D., Yao, Ziyu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914967553310720
author Yan, Hao
Latoza, Thomas D.
Yao, Ziyu
author_facet Yan, Hao
Latoza, Thomas D.
Yao, Ziyu
contents Chat LLMs such as GPT-3.5-turbo and GPT-4 have shown promise in assisting humans in coding, particularly by enabling them to conversationally provide feedback. However, current approaches assume users have expert debugging skills, limiting accessibility for non-professional programmers. In this paper, we first explore Chat LLMs' limitations in assisting non-professional programmers with coding. Through a formative study, we identify two key elements affecting their experience: the way a Chat LLM explains its generated code and the structure of human-LLM interaction. We then propose IntelliExplain, a new conversational code generation framework with enhanced code explanations and a structured interaction paradigm, which enforces both better code understanding and a more effective feedback loop. In two programming tasks (SQL and Python), IntelliExplain yields significantly higher success rates and reduces task time compared to the vanilla Chat LLM. We also identify several opportunities that remain in effectively offering a chat-based programming experience for non-professional programmers.
format Preprint
id arxiv_https___arxiv_org_abs_2405_10250
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle IntelliExplain: Enhancing Conversational Code Generation for Non-Professional Programmers
Yan, Hao
Latoza, Thomas D.
Yao, Ziyu
Human-Computer Interaction
Chat LLMs such as GPT-3.5-turbo and GPT-4 have shown promise in assisting humans in coding, particularly by enabling them to conversationally provide feedback. However, current approaches assume users have expert debugging skills, limiting accessibility for non-professional programmers. In this paper, we first explore Chat LLMs' limitations in assisting non-professional programmers with coding. Through a formative study, we identify two key elements affecting their experience: the way a Chat LLM explains its generated code and the structure of human-LLM interaction. We then propose IntelliExplain, a new conversational code generation framework with enhanced code explanations and a structured interaction paradigm, which enforces both better code understanding and a more effective feedback loop. In two programming tasks (SQL and Python), IntelliExplain yields significantly higher success rates and reduces task time compared to the vanilla Chat LLM. We also identify several opportunities that remain in effectively offering a chat-based programming experience for non-professional programmers.
title IntelliExplain: Enhancing Conversational Code Generation for Non-Professional Programmers
topic Human-Computer Interaction
url https://arxiv.org/abs/2405.10250