r/ProgrammerHumor • • Oct 31 '26

Meme searchAndReplace

Post image
4.6k Upvotes

258 comments sorted by

View all comments

Show parent comment

111

u/PossibilityUsual6262 Oct 31 '26

In my experience telling ai dont do something as part of "thinking" at the way to the result would just remove that something from a response.

"How thing can be done, dont generate code" - generates code and strips it from response.

51

u/AnAwkwardSemicolon Oct 31 '26

My experience is that AI suffers horribly from the "Pink elephant" problem. The more you mention _not_ doing something, the more it's going to do that thing.

4

u/attentionisallyaneed Nov 03 '26

You just said the same thing they said. Just added a terminology.

31

u/Slight-Violinist-575 Oct 31 '26

Which means it still spends tokens?

42

u/PossibilityUsual6262 Oct 31 '26

Yep, prob cheaper thinking tokens, but basically you cannot fight internal "thinking" backed into weights with commands do/do not, but you can guide it.

As another user said, if you make it clear that you in architecture stage, full implementation is unlikely to be generated, unless needed.

25

u/lobax Oct 31 '26

If anything they are like five years old, if you tell them “don’t eat the cookies” then all they will ever think about is eating the cookies.

You have to tell them what to do instead.

3

u/soowhatchathink Oct 31 '26

wait are thinking tokens cheaper?

9

u/Skusci Oct 31 '26 edited Oct 31 '26

Lol, no.

Thinking is still output, it's just hidden from the end user.

2

u/BarmelloXanthony Oct 31 '26

Yep I tell it we’re planning things out before actually making any change

2

u/XxDarkSasuke69xX Oct 31 '26

Really ? That's weird because in its reasoning it's taking into account the whole prompt, so if it "understands" you don't want code I have a hard time believing its reasoning would still lead him to generate code. Did you actually observe the behavior you're describing on a model or platform that allows to read the reasoning of the AI ?

3

u/Flat-Performance-478 Nov 02 '26

I recall talks about the LLMs prioritizing the last thing you talked about in your prompt.

So if your prompt is:
"Take a look at this code.
See if there are any spelling errors.
My editor doesn't highlight anything.
I'm starting to suspect a dependency might be missing."

It'll hyper-fixate and come back to the "missing dependency" part throughout the session. But don't take my word for it. It's just something that stuck with me.

1

u/10khours Nov 05 '26

It absolutely does so this.