[Paper Review] In-IDE Code Generation from Natural Language: Promise and Challenges
This paper evaluates an in-IDE plugin integrating state-of-the-art code generation and retrieval for natural language queries in PyCharm, finding mixed quantitative results on productivity and correctness despite positive developer experience. It identifies key usability challenges and provides actionable insights for improving future AI-assisted coding tools.
A great part of software development involves conceptualizing or communicating the underlying procedures and logic that needs to be expressed in programs. One major difficulty of programming is turning concept into code, especially when dealing with the APIs of unfamiliar libraries. Recently, there has been a proliferation of machine learning methods for code generation and retrieval from natural language queries, but these have primarily been evaluated purely based on retrieval accuracy or overlap of generated code with developer-written code, and the actual effect of these methods on the developer workflow is surprisingly unattested. We perform the first comprehensive investigation of the promise and challenges of using such technology inside the IDE, asking "at the current state of technology does it improve developer productivity or accuracy, how does it affect the developer experience, and what are the remaining gaps and challenges?" We first develop a plugin for the IDE that implements a hybrid of code generation and code retrieval functionality, and orchestrate virtual environments to enable collection of many user events. We ask developers with various backgrounds to complete 14 Python programming tasks ranging from basic file manipulation to machine learning or data visualization, with or without the help of the plugin. While qualitative surveys of developer experience are largely positive, quantitative results with regards to increased productivity, code quality, or program correctness are inconclusive. Analysis identifies several pain points that could improve the effectiveness of future machine learning based code generation/retrieval developer assistants, and demonstrates when developers prefer code generation over code retrieval and vice versa. We release all data and software to pave the road for future empirical studies and development of better models.
Motivation & Objective
- To investigate whether in-IDE natural language-based code generation and retrieval improve developer productivity, code quality, and correctness.
- To understand how developers interact with and perceive AI-assisted coding tools in real-world programming tasks.
- To identify usability challenges and gaps in current machine learning-based code generation and retrieval systems within actual development workflows.
- To provide empirical data and open-source tools to support future research in AI-assisted software development.
Proposed method
- Developed a PyCharm plugin integrating both code generation and code retrieval using state-of-the-art models trained on Big Code data.
- Orchestrated virtual environments to log fine-grained user interactions, including keystrokes, code edits, web browsing, and IDE events.
- Conducted a controlled user study with developers of varying backgrounds completing 14 diverse Python tasks ranging from file I/O to machine learning and data visualization.
- Collected both quantitative metrics (task completion time, code correctness, code quality) and qualitative feedback via surveys.
- Analyzed when developers preferred code generation over retrieval and vice versa, based on task complexity and intent clarity.
- Released all collected data and software to enable future empirical studies and model development in this domain.
Experimental results
Research questions
- RQ1Does using an in-IDE natural language code generation and retrieval tool improve developer productivity in terms of task completion time?
- RQ2To what extent does the tool improve code correctness and quality compared to manual coding?
- RQ3How do developers perceive the usability and helpfulness of the tool in real programming workflows?
- RQ4Under what conditions do developers prefer code generation over code retrieval, and vice versa?
- RQ5What are the key usability challenges and limitations of current AI-assisted coding tools in practice?
Key findings
- Quantitative results on productivity, code correctness, and quality were inconclusive, with no statistically significant improvement across all tasks.
- Developers reported positive subjective experiences with the tool, indicating strong potential for user satisfaction and engagement.
- A major challenge was the mismatch between natural language intent and the actual code required, especially for complex or ambiguous queries.
- Developers preferred code retrieval for well-defined, API-specific tasks (e.g., file existence checks), while code generation was favored for higher-level logic or less common patterns.
- The tool often generated syntactically correct but semantically incorrect or incomplete code, highlighting a gap in reasoning and context understanding.
- The study revealed that current models struggle with understanding nuanced or context-dependent programming intent, particularly in real IDE workflows.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.