The Good, the Bad, and the Missing: Neural Code Generation for Machine Learning Tasks
Jiho Shin, Moshi Wei, Junjie Wang, Lin Shi, Song Wang

TL;DR
This paper evaluates neural code generation models on machine learning programming tasks, revealing strengths in API usage guidance but also significant issues with semantic correctness and limited impact on developer productivity.
Contribution
It provides a comprehensive empirical analysis of existing neural code generation models specifically for ML tasks, highlighting their effectiveness and limitations.
Findings
Models perform better on ML tasks than general tasks
Most generated code is semantically incorrect
Code generation does not significantly reduce developer completion time
Abstract
Machine learning (ML) has been increasingly used in a variety of domains, while solving ML programming tasks poses unique challenges because of the fundamentally different nature and construction from general programming tasks, especially for developers who do not have ML backgrounds. Automatic code generation that produces a code snippet from a natural language description can be a promising technique to accelerate ML programming tasks. In recent years, although many deep learning-based neural code generation models have been proposed with high accuracy, the fact that most of them are mainly evaluated on general programming tasks calls into question their effectiveness and usefulness in ML programming tasks. In this paper, we set out to investigate the effectiveness of existing neural code generation models on ML programming tasks. For our analysis, we select six state-of-the-art…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Machine Learning and Data Classification
