The robots are coming: Exploring the implications of openai codex on introductory programming
Proceedings of the 24th Australasian Computing Education Conference, 2022•dl.acm.org
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 …
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 …
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.