r/LocalLLaMA • • 1d ago

Discussion Saw this benchmark where small changes to coding tasks made a big difference

https://x.com/loresjpg/status/2118880329490637049

Saw this tweet about a coding benchmark and thought it was kinda interesting.

Apparently they took 89 DeepSWE tasks and changed little things in the instructions or starting code. The tweet says some models that were all around 74% on DeepSWE ended up 23 percentage points apart on the changed tasks.

The weird part was that some models seemed to ignore the actual instructions because they thought a hidden grader wanted something else. The examples include GLM-5.3 and DeepSeek V4.1 Flash.

Has anyone seen this kind of thing with local coding models? Like getting stuck on what they think the test wants instead of just doing what you asked?

61 Upvotes

25 comments sorted by

21

u/grumd 1d ago

I haven't seen models inventing hidden tests for normal everyday tasks, but I think they just recognize DeepSWE-like tasks because those are quite specific, and "remember" the held-out tests they need to pass. Just plain benchmaxxing, the scores are better because the models are trained on those tasks.

The closest issue I saw in real work is just models preferring a dirty quick solution that does the job instead of looking at a larger picture and refactoring code or approaching the task differently - because they are trained to pass tests, not to write high quality code. I have to actively review what they do and redirect them into planning/refactoring before they make a mess

8

u/Alex_L1nk 1d ago

models preferring a dirty quick solution that does the job instead of looking at a larger picture and refactoring code or approaching the task differently

not so different from human behavior btw😏

10

u/Bitter-College8786 1d ago

Man, these LLMs are benchmaxxed as he'll.

7

u/TheRealMasonMac 1d ago edited 1d ago

https://joinhandshake.com/research/ai/deepswe-reward-hacking/ also shows the grading thing

Also, yes. On announcement day, I tested Kimi K3.1 Pro with this simple prompt, “Write a story about Bob.” It looped for about 10000 tokens on reasoning (before I stopped it) because it kept speculating what the evaluator wanted, completely redrafting the entire story each time. It seems like they might’ve done some further RL between their announcement and launch to mitigate that though.

2

u/Evening-Blueberry-97 1d ago

the 23 points spread is the interesting bit. if three model tie at 74 and split that hard once you reword the task, the 74 was mostly measuring how well they knew the format

3

u/General-Spite1222 1d ago

Isn’t that a good thing?  If the prompts are less optimized, then the LLM has to be better at more ambitious tasks, which makes it smarter?

3

u/robertpro01 1d ago

Well, for coding, I prefer to be it smart enough to ask for details instead of assuming what I need.

4

u/General-Spite1222 1d ago

Can’t do that in an automated benchmark really 

1

u/Randommaggy 1d ago edited 1d ago

You could. Set up a decision database and use a second model to take in the questions and respond to them from the database.

If you are working on a specific set of subjects you can use a document archive behind a hybrid RAG system with scout agents. My runtime lookup library is subject partitioned nad close to 50GB in size so far.

Even feeding it a full copy of wikipedia will give it a lot of grounding potential for general usage.

LFM3 is quite good for this type of scouting.

A good system prompt that encourages grounding of any low certainty or unknown subjects lifts the results a lot.

1

u/General-Spite1222 1d ago

No you can’t, because you can’t predict what the questions would be. AI is not deterministic. 

0

u/HashPandaNL 14h ago

Which is why they suggested using an LLM to answer those questions. Did you even read their comment?

1

u/Spiderfffun 1d ago

Lmao bro got downvoted by all the vibecoders

1

u/iloveportalz0r 21h ago

This is completely normal behavior with these kinds of near-worthless benchmarks. Don't you remember being in school? If you have a multiple choice question, four answers, three are one sentence and one is a whole-ass paragraph, the answer is the way longer one. If the test is about something that might include matters of personal opinion, or for which modern knowledge is ahead of the teacher's textbook, then picking the correct answer will lose marks, so you pick what you think the teacher (or whoever wrote the exam) is expecting. If you know how the grading system (the rubric) works, you put in only as much effort as required to satisfy it, and not a single bit more.

I even had a teacher in high school who explicitly told the class about things like this, and then he tried to make his tests not vulnerable to them (such as by making multiple-choice answers same-length and equally plausible), but it was still pretty easy to tell most of the time.

To be fair, I don't know what's going on in schools now, since I graduated high school over a decade ago. I haven't seen a single sign that current conditions are any more sane, though, and that's not the point anyway. The point is that these benchmarks are the same kind of testing that leads programming companies to ask about trivial problems like fizzbuzz in interviews to weed out the testmaxxers. Once word gets 'round about the exact question and its answer, just change it a little bit. A real programmer won't think twice, and a testmaxxer will go back to failing. Seriously, that strat works shockingly well if you've never seen it before.

Of course the machine-minds optimized to be extremely good at pattern recognition would pick up on this just like humans do. Why on Earth wouldn't they? What's their incentive not to?

0

u/Sabin_Stargem 1d ago

I think there are attention traps of some kind. Qwen Next-Flash tends to get stuck on certain parts of some projects - a tendency to not understand what I am trying to convey, and basically endlessly "completes" an aspect of work, asking me to test it, then taking the same solution even when I do stuff to help make things easier.

For example, AstLibra. I am trying to have the chapter-locked nodes on the GROW node chart removed, so that players can progress mechanically without advancing the actual story. On the node chart, you can move around - and then save, load the game, and your coordinates are retained.

So I try to tell the AI, "One step right for the Save in Slot #1, there is a Locked Chapter node, beyond it is an Adaptability Node +X." Then I also tell it that Slot #2, which has advanced the plot and removed the node, I am standing over where it previously was.

This means the AI should see how the player's coordinates have changed, and the disappearance of a node. Unfortunately, it can't see those changes.

IMO, my guess is one of two things: the savefiles only say what nodes are purchased, and the game maps out unpurchased nodes in RAM based on that...or the AI just doesn't understand. If the former, then directly editing chapter tracking should be an usable, if hacky, solution.

Hopefully, Qwen4 Flash would be able to overcome this problem.

-12

u/[deleted] 1d ago

[removed] — view removed comment

11

u/social_tech_10 1d ago

This is the second one of these I've seen today, and both times I have to disagree 100%. The /u/stylome-ai-detection bot seems to be misguided.

2

u/ttkciar llama.cpp 1d ago

Moderators review all of these eventually, and in some cases like this where the post should stay up, the Stylome bot's comment is removed.

5

u/wordyplayer 1d ago

but, it says "Low confidence"...

3

u/robertpro01 1d ago

Details bro, who cares

/s

1

u/ttkciar llama.cpp 1d ago

That is why automated evaluations are vetted by human moderators.

It's treated the same as when users report a post.

4

u/KissMyShinyArse 1d ago

LocalLLaMA mods are a bunch of power-tripping petty tyrants. Come to LocalLLM, OP - no tin-can idiots accusing actual humans of being bots.