Автора пока нетВзять себе
Can a student pass introductory programming by pasting each task into ChatGPT? A study posted on arXiv tested that with ChatGPT-3.5 on 127 randomly chosen tasks from Kattis, an automatic grading tool used in higher education. ChatGPT solved 19. It produced correct code for simple problems and struggled with harder ones.
How the test worked
Kattis, free to use and brought into programming courses at a large European university in 2002, grades submitted code automatically and also serves as an online judge for programming contests. The study ran in the setting of a large introductory programming course (over 100 students) that is mandatory in several engineering programs.
- Tasks. The 127 tasks were chosen in spring 2023 with an even spread across difficulty. Kattis rates each task from 1 to 10 using a variant of the Elo rating system, and calls tasks easy (1.0-2.7), medium (2.8-5.3) or hard (5.4-10.0). Tasks heavy with equations or figures, common among the hardest, were left out because they could not be copied into ChatGPT easily. Many tasks need 3 to 20 lines of code, about 10 on average.
- Procedure. Each task was copied from Kattis into ChatGPT-3.5, which was asked for a Python solution. The solution was submitted to Kattis, and any error message was recorded.

Figure 1 from the paper: distribution of the number of coding tasks across difficulty levels. Credit: the paper's authors, CC BY 4.0.
What happened
Only 19 of the 127 solutions (15%) were fully approved. Ten were for tasks at difficulty level 1, seven at level 2 and two at level 4. The easiest approved task was rated 1.3 and the hardest 4.2; ChatGPT's code for the easiest was 11 lines, mostly if and else statements, while the code for the hardest was 55 lines with loops, functions, lists and matrices.

Figure 2 from the paper: distribution of the 127 tasks across difficulty levels 1-10, with green bars for tasks approved by Kattis and blue bars for those not approved. Credit: the paper's authors, CC BY 4.0.
Kattis gave error messages for the 108 solutions that failed:
| Kattis verdict | Tasks | Share of failures |
|---|---|---|
| Wrong Answer | 83 | 77% |
| Run Time Error | 16 | 15% |
| Time Limit Exceeded | 9 | 8% |
Nineteen of the failed solutions were partly accepted, passing some of Kattis's test inputs but not all. The best was accepted for 60% of the inputs, on a task of difficulty 2.8. The hardest of these tasks, at 6.5, passed only 1 of 13 inputs.
The study also compared ChatGPT's success with Kattis's general statistics. ChatGPT's success correlated positively with a task's share of approved submissions (0.43) and with its share of successful submitters (0.37), and negatively with difficulty (-0.48). In plain terms, ChatGPT did better on easier tasks that many people already solve.
What the authors conclude
The authors read the result as showing limited ability to solve these tasks, which differs from some earlier findings, for instance that ChatGPT could pass an introductory functional programming course, but agrees with another recent study. They argue that relying too much on ChatGPT's code could hinder students' learning of programming, especially at the introductory level. They do not call for a ban. They recommend teaching activities in which students critically judge ChatGPT's answers, professional development for teachers on teaching with AI, and building students' critical thinking and self-regulated learning skills.
The authors list limits. Only 127 tasks were tested. The tests were spread over one month, and ChatGPT-3.5 was updated on March 23, 2023 during that time, which may have affected the results. The study also assumes students simply paste in Kattis's task text, while they might use ChatGPT in other ways, for instance prompting for partial code and checking it themselves. Further work they suggest includes studies of students' and teachers' views, repeated evaluation as models change, studies where a human helps ChatGPT with harder tasks, and rigorous experiments that measure changes in student learning.
Sources
- arXiv paper "Kattis vs. ChatGPT: Assessment and Evaluation of Programming Tasks in the Age of Artificial Intelligence" (authors not named in the imported text), licensed under CC BY 4.0: https://arxiv.org/abs/2312.01109. Figures 1 and 2 are from the paper, CC BY 4.0, shown here with new captions. Changed here: rewritten in hubnx's own words, with the reference list, background survey and detailed tables left out; rewritten in hubnx's own words.
Комментарии

Читать дальше
Ещё на тему «Наука»




