Hacker News new | ask | show | jobs
by skissane 52 days ago
> In your code, this makes the model subtly devolve into certain patterns and stereotypes that aren't best practices, it's just a randomly frozen trajectory that is extremely hard to change zero-shot, without running a second pass.

But in practice, who uses models “zero-shot”? It is standard for coding agents to review their own code even before returning to the user — so a zero-shot agent invocation isn’t a zero-shot model invocation. And then many users will get a different run of the agent to review the change a(frequently even a different model being invoked by a different harness-e.g. I personally mix Claude, Copilot and Cursor)

> This is the reason everybody does the same thing.

If you have a human-in-the-loop reviewing the agent output, different humans will have different opinions on what the agent should have done instead, and they’ll tell the agent to redo its output in different ways. And then they tire of repeating themselves, and it becomes guidelines in AGENTS.md.

Additionally, a coding agent asked to add a feature to a large code base will frequently check for the code base’s existing design and coding patterns, and so will end up producing very different code than it would have given a blank slate.

1 comments

Yes, obviously external sources like human input, random generators, tools will bring variation across a single generation, but there's not remotely enough semantic entropy in them, unless you make meaningful decisions each little step. Longer reasoning and unattended agentic loops and self-reviews won't introduce variation, the intuition is wrong in this case. Anything isn't explicitly conditioned by external sources will be sampled from model's knowledge space, and if it's constrained by this effect compared to the post-training set distribution you get reduced capabilities. You can observe it in the form of everything looking the same in practice. It's a bit of a butterfly effect, some training quirk in a model somewhere is essentially shaping the entire world.

If you fix mode collapse, the effect on software engineering use case would be neutral at worst, or an improvement at best. It's not a verifiable task and has plenty of room for subjective judgement which benefits from semantic variety. For the same reason greedy decoding (temp 0) isn't used even for coding, it leads to degraded and pathologic outputs.

> Anything isn't explicitly conditioned by external sources will be sampled from model's knowledge space,

If you are using multiple models – especially models from multiple vendors – then you aren't dealing with a single "model's knowledge space".

Sure, however spaces of these models overlap to the point where we have articles about pelicans on bikes always facing right.