Lost at C: A user study on the security of LLM coding assistants
arxiv.org
arxiv.org
More relevant discussion, from Andrew Ng's The Batch newsletter: Check the Generated Code Generates Overconfident Coders section: (https://www.deeplearning.ai/the-batch/issue-180/)
Uhuh... does anyone think that LLM would actually impact this case?
The LLM has likely been trained on thousands of "top-quality" code examples covering exactly this data structure.
No one could plausibly regard LLMs as impairing a case of this kind.
This seems quite silly.
I'm waiting for someone to conclude that code comments are pointless because they make no difference to the ability of students to implement fizzbuzz.
That said this is an underpowered study to really answer the question. It reminds me a little of that Scott Alexander blog post where he came to big conclusions based on 5 questions he asked ChatGPT. However there is a definite industry of people who write papers where they ask ChatGPT some questions and evaluate the replies.
Other complaints in this thread about studying students - sure, perhaps experienced developers will do better. These were upper level undergraduate and masters students though, so they're the kind of developer you will have writing code with Codex in industry within a year or so, and so they are still worth studying. It's not the whole picture, but we never claim it is.
The setup of the study raises questions about construct validity. The main purpose of these coding assistants is to write new code - i.e. code with a function that is not directly expressed in their training set. The choice of such a simple (and traditional teaching task) for the study means that the function will be heavily represented in the training set. Furthermore, correct approaches to the problem will be represented more heavily than incorrect approaches.
As I said I did not read beyond the abstract so I would be happy to be corrected if the authors have accounted for this in their study.
I've seen a few AI papers that are like this. Like the "Attention is all you need"
https://slate.com/technology/2015/12/the-best-funny-clever-o...
They had an example from 2004 that I saw at least; but the article is from 2015 and lots of their links have died, so there might have been an older one. Anyway, 2004 is long enough to not call this a new phenomenon, right?
https://pages.cs.wisc.edu/~beyer/papers/matview_sigmod00.pdf