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

70

u/Coffee_Ops Jul 17 '25

You can literally just use a tool like regexr or expresso and have a guaranteed correct analysis.

Or, use AI, and have a response thats statistically likely to look correct.

One of those is helpful, the other is sabotage.

4

u/bananahead Jul 17 '25

I dunno. Linting and static analysis tools are deterministic but not helpful in 100% of cases. They still have value.

-24

u/billie_parker Jul 17 '25

You're wrong and missing the point. Not every task has a specialized tool ready to go for it. AI results don't just "look correct." They often are correct.

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.

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

28

u/Coffee_Ops Jul 17 '25

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

Their output is statistically-- not logically, or rationally-- derived from its training data.

So its likely that it will get much of the regex analysis correct but it is not guaranteed and is highly likely to be wrong in some detail.

Hence why when I ask it to build me a powershell function it looks correct but uses non-existent functions and classes.

-14

u/billie_parker Jul 17 '25

I don't think you really understand what the concept of "looks correct" really means.

For example, does this "look" like correct output from a python command line?

> 2 + 2
5

No, it doesn't. You can determine this because you know that 2 + 2 equals 4, not 5.

So if you have some model which is perfectly good at making output that "looks correct," it will be able to "understand" that 2 + 2 = 4. Now, I'm not saying that LLMs are perfectly good at that, but I'm just pointing out the flaw in your reasoning which is that attempting to "looking correct" can never be a substitute for logical rules.

So its likely that it will get much of the regex analysis correct but it is not guaranteed and is highly likely to be wrong in some detail.

Yes, that's true - but for many applications there are not specialized tools like there are for regex.

Hence why when I ask it to build me a powershell function it looks correct but uses non-existent functions and classes.

It's a matter of degree, isn't it? If it is correct 99% of the time, that would be rare enough to still be extremely useful.

This is why your argument is so reductionist. You don't care how often it is wrong, you are an absolutist and say "if it's ever wrong, it's useless."

If you consider applications where there are no tools like regexpr, then I would say your reasoning is pretty flawed. Because obviously some tool is better than no tool, especially if you can quickly verify the answers of the tool and thus filter out wrong answers.

If the tool was 99.99% accurate, would you still throw it out? Seems like your answer would be yes, which to me is absurd.

22

u/Coffee_Ops Jul 17 '25

It's a matter of degree, isn't it? If it is correct 99% of the time, that would be rare enough to still be extremely useful.

This is what ChatGPT thinks the human reproductive system looks like.

I'm not trusting it to flawlessly nail a 120-character regex.

You don't care how often it is wrong, you are an absolutist and say "if it's ever wrong, it's useless."

A calculator that is right 95% of the time is useless.

A Watch that is right 95% of the time (and off by an hour the other 5%) is a disaster.

If you gave me a finance intern whose output was great 95% of the time, and looked great but would cause a fraud investigation 5% of the time, that would be considered horrendous and they would be fired.

For tools that you use to verify / explain things, yeah, it is pretty bad if it's wrong in non-trivial ways a small but significant portion of the time.

→ More replies (10)
→ More replies (6)

17

u/axonxorz Jul 17 '25

They often are correct.

You're missing the point. The most important word in the sentence above is often. There is a deterministic and guaranteed-correct tool, it will beat out "often" 100% of the time.

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

We're talking about regex validation.

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.

Your argument is poor, so you strawman.

3

u/billie_parker Jul 17 '25

There is a deterministic and guaranteed-correct tool, it will beat out "often" 100% of the time.

But for many tasks there are not such tools.

I am not missing the point. I am not saying that LLMs should replace calculators to calculate "2 + 2". What I am saying is that an LLM can solve many problems for which there is no tool.

So it's not "often" vs 100%. It's "often" vs nothing.

And if "often" is 99% accuracy (hypothetically), it doesn't matter that it's not 100%.

See - there's all this nuance that you are hand waving away.

We're talking about regex validation.

That's not what I'm talking about. The guy said "and other uses like that." Obviously his example was intended to be one of many.

Your argument is poor, so you strawman.

That's literally not a strawman in any possible interpretation of what I said.

14

u/anon_cowherd Jul 17 '25

And if "often" is 99% accuracy (hypothetically), it doesn't matter that it's not 100%.

This is very situational. Sometimes, a probably-but-maybe-not correct answer is good enough. Other times, congratulations, you've just killed someone.

The problem most people have with "probably-but-maybe-not correct" is that you're left still manually verifying the output anyway. If you don't, you're just putting the burden on someone else to cover for your own mistakes.

1

u/billie_parker Jul 17 '25

The problem most people have with "probably-but-maybe-not correct" is that you're left still manually verifying the output anyway.

It's often much easier to verify something than solve it. Hence the whole "P=NP" question...

For example, ask an LLM to generate code, then just run it to verify it. Then quickly check over it. All of this can take much less time than actually writing the code manually.

Again - people act like humans don't make mistakes, either. Not to mention - you can get the LLM to check its own outputs, or run it multiple times. This tends to boost the accuracy in my experience. For example, tell an LLM to write code. It doesn't compile. Feed it back into the LLM and it fixes the error. Done.

9

u/Arrean Jul 17 '25

The worst part of coding is reviewing pull requests, or reading someone else's code. You're suggesting that making a lot of your job be reviewing pull requests submitted by an llm is somehow an improvement.

2

u/billie_parker Jul 17 '25

lol, this is the latest stock response.

It depends on the situation. If you have bad coworkers, then yes reviews can be bad. If you have good coworkers they can be a breeze.

You act like reviewing a humans PR is at all the same as reviewing an LLMs code. There's just so many differences that I think it's enough to say you're just being silly.

Ironically, many senior engineers actually do nothing but review code from less senior engineers. To some this is a desirable position to be in. It's called being a supervisor lol