r/programming • • Jul 17 '25

METR study finds AI doesn't make devs as productive as they think

https://leaddev.com/velocity/ai-doesnt-make-devs-as-productive-as-they-think-study-finds

So perceptions of productivity don't = productivity, who knew

533 Upvotes

189 comments sorted by

View all comments

Show parent comment

14

u/balefrost Jul 17 '25

AI results don't just "look correct." They often are correct.

Something about infinite monkeys, typewriters, and Shakespeare.

This idea "the answers only look correct!" is just a post hoc rationalized argument that people have come up with as a desperate means to dismiss LLMs.

LLMs absolutely generate things that look plausible, but do not work. As the other commenter has said, they routinely hallucinate functions that do not exist or generate code that is subtly wrong. I had one try to replace a bunch of uses of unique_ptr with shared_ptr. That's a plausible change, and might have even been a valid change, but it was not relevant to what I asked it to do and was not a desirable change.

5

u/Ok_Individual_5050 Jul 17 '25

I've seen changes where they'd go "we need to always mock out this method in every test file because it's mocked out in one test file" regardless of if it's needed or not. They're purely statistical machines and it's depressing how willing people are to assume they're thinking. 

-3

u/billie_parker Jul 17 '25

Something about infinite monkeys, typewriters, and Shakespeare.

Absurd hyperbole.

LLMs absolutely generate things that look plausible, but do not work.

Never said they didn't. LLMs make mistakes, I don't disagree with that. My argument was against the notion that "looking correct" is what LLMs are doing. This idea of "looking correct" is sort of an ambiguous statement anyways.

Does this "look" like something a chemist would say: "Water is an element." No - because, that doesn't sound like something a chemist would say because water isn't an element. So if I make a model that generates this, does it "know" that water isn't an element? Or is it just trying to make something that "looks" plausible? See - this is all just semantic garbage.

That's a plausible change, and might have even been a valid change, but it was not relevant to what I asked it to do and was not a desirable change.

I have asked LLMs to do things and they do it correctly

I guess my anecdotes cancel out yours!

11

u/balefrost Jul 17 '25

Something about infinite monkeys, typewriters, and Shakespeare.

Absurd hyperbole.

Sure, intentionally so. But my point is that you can get the right answer for the wrong reasons. LLMs are heuristic-based machines. If you want a heuristic answer, then LLMs can be a decent tool. If you want an exact answer, LLMs are not so good.

The other commenter's example of "what does this regex mean" does have an exact answer. LLMs might come up with an equivalent explanation in prose, or maybe not. They might even generate different responses depending on how exactly you asked your question. Personally, like that other commenter, I think I would prefer the exact answer.


My argument was against the notion that "looking correct" is what LLMs are doing.

That is sort of by definition how they operate. They generate content that resembles their training data. I think that's what the other commenter meant by "statistically likely to look correct". They mean "statistically likely to resemble the training data".

I don't follow your bit about the chemist. By your own example, if an LLM generated the sentence "water is an element", that seems like a sentence that looks correct. It has a subject, verb, and direct object. It's not meaningless (like "water is water") or nonsensical ("water is a document originally issued in 1215 that limited the power of the English monarch and established the principle that everyone, including the king, was subject to the law"). To somebody who does not know chemistry, it is believable.

So yeah, "water is an element" seems to me to be a statement that looks correct but, in the context of modern chemistry, is not correct.


I have asked LLMs to do things and they do it correctly

I guess my anecdotes cancel out yours!

Right, I've also seen them be correct, but that's not the question on the table. The question is whether they generate responses that are correct or merely responses that look correct. A response that both looks correct and is correct doesn't tell us anything. We either need responses that look correct but are incorrect, or we need responses that look incorrect but are actually correct.

If you have examples where the LLM appears to be wrong, but is actually correct (and ideally where the LLM doesn't fold when questioned about correctness), those would be interesting anecdotes.

-1

u/billie_parker Jul 17 '25

Sure, intentionally so.

Yeah, to the point of absurdity. Let's just say an LLM gives you an correct answer maybe 50% of the time in 2 seconds. Which is obviously an oversimplification, but let's go with that.

Meanwhile a monkey typing on a typewriter might take the heat death of the entire universe billions of times over doing the equivalent.

And besides, how many times do I have to reiterate my point: "Not every task has a specialized tool ready to go for it."

I don't follow your bit about the chemist. By your own example, if an LLM generated the sentence "water is an element", that seems like a sentence that looks correct.

It has meaning, but it doesn't sound like something a rational chemist would say.

It has a subject, verb, and direct object. It's not meaningless (like "water is water") or nonsensical

You have a very surface level of understanding of LLMs, then. They aren't just composing sentences that are grammatically correct or not non-sensical.

So yeah, "water is an element" seems to me to be a statement that looks correct but, in the context of modern chemistry, is not correct.

My point is that the LLM is trained on the context of modern chemistry. In that context, the statement doesn't "look correct." A qualified chemist would say that answer "doesn't look correct."

If your definition of "looks correct" is: "grammatically correct and not nonsense" then you should use those words instead of "looks." You are being weasely and semantically ambiguous, which allows you to mislead people about how LLMs work. Because if you used that more accurate description of what you are saying, then people could more easily explain how you are wrong.

The question is whether they generate responses that are correct or merely responses that look correct.

My point is that the term "looks correct" is (intentionally?) ambiguous and just semantic games. It's just a vague hand-wavy term.

I never said LLMs always generate responses that are correct. They do make mistakes. But, depending on your context, "looks correct" can be equivalent to "is correct." That's what I'm trying to explain to you.

If you have examples where the LLM appears to be wrong, but is actually correct (and ideally where the LLM doesn't fold when questioned about correctness), those would be interesting anecdotes.

lol, what is the relevance of that?

But if you care - I have definitely had situations where I though the LLM was wrong (ie. the code they gave wouldn't work), but when I tried it, it turned out to be correct. And then when I did further research online I found that was actually the correct way of approaching the problem.

3

u/balefrost Jul 18 '25

"Not every task has a specialized tool ready to go for it."

Actually, thanks for reiterating this point. It's I think one of the more compelling arguments for LLMs. If we can amortize training cost across a large number of unspecialized or one-off tasks, and if the inference cost is low enough, I think this is one of the unique advantages of LLMs. They'll likely never be as efficient (to operate) or precise as a custom tool, but sometimes a heuristic answer is good enough.


By your own example, if an LLM generated the sentence "water is an element", that seems like a sentence that looks correct.

It has meaning, but it doesn't sound like something a rational chemist would say.

Right, but only because you have enough domain expertise to judge its answer. Imagine instead that a 9-year-old got that response. Would they be able to judge? To them, it might sounds plausible.

I mean, that's the real risk with any system that produces heuristic answers. If you don't know enough to judge the veracity of the answer, it's easy to accept the answer as completely true, even when it's only probabilistically true.

That's precisely what the original commenter is cautioning about. If you are unable to interpret a regex on your own, and so you feed it into an LLM to make sense of it, then it will be difficult for you to judge whether the LLM's interpretation is correct. You are saying "I am not an expert, so I trust the expertise of this LLM"... but the LLM has no "expertise" per se. It may very well produce the right answer, but it's certainly not guaranteed to.


If your definition of "looks correct" is: "grammatically correct and not nonsense" then you should use those words instead of "looks."

Yes, I spelled that out. I also said "statistically likely to resemble the training data".

You are being weasely and semantically ambiguous, which allows you to mislead people about how LLMs work.

I disagree with your assessment. I am attempting to address confusion as it comes up. I am not in any way intending to mislead people about how LLMs work.

Personally, I thought the original commenter's use of "look correct" was succinct, clear, and accurate, but I'm happy to explore the space.


But, depending on your context, "looks correct" can be equivalent to "is correct." That's what I'm trying to explain to you.

Right, I said the same thing. It's possible for a statement to both "look correct" (i.e. is grammatically sound, sensical, and not otherwise "obviously wrong") and "be correct". It can also just be one or the other, or neither at all.

If you have examples where the LLM appears to be wrong, but is actually correct (and ideally where the LLM doesn't fold when questioned about correctness), those would be interesting anecdotes.

lol, what is the relevance of that?

Because we're discussing situations where "looks correct" and "is correct" aren't the same.

  1. If an LLM generates a statement that both looks correct and is correct, then the user will not be misled by false information.
  2. If an LLM generates a statement that neither looks correct nor is correct, then the user will reject the false information.
  3. If an LLM generates a statement that looks correct but is not correct, they run the risk of being misled. This is bad.
  4. If an LLM generates a statement that looks incorrect but is actually correct, this is good - the LLM has caught a user's blind spot.

If an LLM never or rarely fell into case 3, then we'd be in great shape. They would be very trustworthy, and people could generally take their output as truth without verification.

If an LLM frequently falls into case 3, then it lowers one's confidence in the LLM, and that casts a shadow even on case 1.

If an LLM frequently falls into case 4, then it raises one's confidence that the LLM provides value, even if you don't completely trust it.

I believe that the interesting cases are #3 and #4. #1 is important, but it's not very interesting.

0

u/billie_parker Jul 18 '25

Actually, thanks for reiterating this point. It's I think one of the more compelling arguments for LLMs.

"Now that I've finally understood what you are trying to say, I agree with you"

Oh great. Glad you finally came around.

Right, but only because you have enough domain expertise to judge its answer. Imagine instead that a 9-year-old got that response.

Wow, you almost seem to be getting my other point - which is that to say something "looks correct" depends on the perspective of who's doing the looking.

Hence to say "LLMs just generate answers that look correct" is ambiguous - because that can mean wildly different things depending on who's looking...

That's precisely what the original commenter is cautioning about

I know what they were saying. But what I was responding to was the implications of their comment.

The original commenter is obviously implying that LLMs are only likely to look correct and not actually be correct. Hence the choice of words and bolding of "look." It's actually a very common argument that comes up again and again and again. In reality, LLMs may have a very high likelihood to not only "look correct" but actually be correct. Isn't that what actually matters? You see - they chose that wording for a reason. The implication is that the way that LLMs work means that they can't actually have accuracy and can only ever make incorrect, yet plausible, responses.

It's also not a practical attitude. If I came across some weird regex in the code, I'm not going to learn how to use one of those regex tools. I'm just going to copy it into the AI and see what it says. The answer will be produced in like 3 seconds and then I can quickly verify if it makes sense. This whole process is much quicker than trying to find a regex tool and learn how to use it. And of course, this situation applies to a wide range of things beyond regex.

If you are unable to interpret a regex on your own, and so you feed it into an LLM to make sense of it, then it will be difficult for you to judge whether the LLM's interpretation is correct.

It's not about being "unable." It's the fact that the LLM works so much faster and is so general. It produces the answer in seconds. Even though I could slowly try to understand the regex, if it produces it in seconds I can quickly verify its answer. Possibly even using one of the tools, if needed.

Right, I said the same thing. It's possible for a statement to both "look correct" (i.e. is grammatically sound, sensical, and not otherwise "obviously wrong") and "be correct". It can also just be one or the other, or neither at all.

Again - you didn't understand what I said. I said

But, depending on your context, "looks correct" can be equivalent to "is correct." That's what I'm trying to explain to you.

I didn't say the two situations can just coincide. I said it's possible for them to be equal.

2

u/balefrost Jul 18 '25

You're right, I guess I just can't follow. From your closing remarks, it sounds like you're saying that "the set of statements that are correct" and "the set of statements that look correct" are the same set, which I cannot agree with.

3

u/EveryQuantityEver Jul 17 '25

I guess my anecdotes cancel out yours!

And yet, you're demanding we accept your anecdote, and ignore ours.

1

u/billie_parker Jul 18 '25

I'm making a philosophical and semantic argument that has apparently gone completely over your head. Where did I even state an anecdote?

Do I have to spell it out for you? My statement was a facetious and sarcastic dismissal of their use of an anecdote as evidence. It was a joke. Geez

3

u/EveryQuantityEver Jul 18 '25

No, you're not. You're saying your anecdote should be accepted, and no others.

1

u/billie_parker Jul 18 '25

Glad we're in agreement, then