The Robots Are Coming: Exploring the Implications of OpenAI Codex on Introductory Programming
Роботы наступают: исследование влияния OpenAI Codex на обучение программированию для начинающих
2022-02-09
SCID: 54.1/msz5gf3x
Discuss with AI
OpenAI CodexRainfall Problem variantsintroductory programmingprogram synthesis from natural languageprogramming exam evaluation
Figures from the paper
Abstract (AI)
Recent advances in artificial intelligence have been driven by an exponential growth in digitised data. Natural language processing, in particular, has been transformed by machine learning models such as OpenAI’s GPT-3 which generates human-like text so realistic that its developers have warned of the dangers of its misuse. In recent months OpenAI released Codex, a new deep learning model trained on Python code from more than 50 million GitHub repositories. Provided with a natural language description of a programming problem as input, Codex generates solution code as output. It can also explain (in English) input code, translate code between programming languages, and more. In this work, we explore how Codex performs on typical introductory programming problems. We report its performance on real questions taken from introductory programming exams and compare it to results from students who took these same exams under normal conditions, demonstrating that Codex outscores most students. We then explore how Codex handles subtle variations in problem wording using several published variants of the well-known “Rainfall Problem” along with one unpublished variant we have used in our teaching. We find the model passes many test cases for all variants. We also explore how much variation there is in the Codex generated solutions, observing that an identical input prompt frequently leads to very different solutions in terms of algorithmic approach and code length. Finally, we discuss the implications that such technology will have for computing education as it continues to evolve, including both challenges and opportunities.
Key Findings
1
Codex passes many test cases across multiple published and one unpublished variants of the Rainfall Problem, showing robustness to subtle wording variations.
2
Identical input prompts often produce very different Codex solutions, varying in algorithmic approach and code length.
3
On real introductory programming exam questions, Codex outscored most human students when compared to their exam results.
4
OpenAI Codex, trained on Python code from over 50 million GitHub repositories, generates solution code from natural language descriptions and can explain and translate code.
5
The authors identify both challenges and opportunities for computing education arising from Codex's capabilities.
Research Object
OpenAI Codex (deep learning model trained on Python code) evaluated on introductory programming problems
Research Subject
Codex's performance and behavior on typical introductory programming problems, including correctness on exam questions and variants (e.g., Rainfall Problem), variability in generated solutions, and implications for computing education
Publication Details
Publication Date
2022-02-09
Journal
Publisher
ISSN
Cited by
442
Open access PDF
Access Type
Author Information
Download PDF
Subscribe to digest