upvote
imo its because of how they are training - they increasingly are learning one way or another that ALL of their output is being read, because in their training environment their are evaluated by other LLMs

so referring casually to some function name or property from a random file in the code or some random term thats only defined on one line of a random .md file it wrote or found on some confluence page is fine because the evaluating agent can go read it in ms and can hold 200k tokens in context. They aren't taught an intuitive grasp of what a human "context window" looks like, or the importance of clear writing for human comprehension

There is also the separate problem of deterministic scripts in training, which then reward the longest possible output, because if you dont know what the script is looking for you might as well throw as much as possible at the wall to have the highest chance of hitting what it wants

The above is sort of the "common wisdom" I have found regarding this issue over the last year on here and amongst devs I work with. However I'm not sure its the whole story because tbh agents have quite poor mental models of how other agents will behave, too. If you've ever read how they write to each other they constantly repeat the same warnings to each other that they would have followed anyway

reply
Part of the issue will be the training and the reward function. It is difficult to reward for human readability, simplicity, etc.

You could use various tools and checks like:

- linters and other code style tools;

- line length;

- cyclometricity, etc.

- dead code checks (unused variables, etc.);

- lines of code/diff size.

Those don't check things like whether the code changes are minimal/don't make unrelated changes/etc.

There's also the issue of maintaining consistency. I.e. detecting the code style of the project/code and using that (quoting, etc.). You also find that in prose, such as with British vs American dialogue.

I think the only way to make the style consistent is to have some sort of "reasoning context" that can learn the overall style and apply/use that across all tokens. That way, the model wouldn't have to add it to the context, and it wouldn't suffer from things like the excluded middle and dropping out of the context.

reply
> What are peoples' takes on why LLMs struggle to write things in a human-readable way?

This assumes 17m isn't already elegant. A human proof in Lean may have been 50m lines.

reply
With a 1M context if not more when used internally reading is cheap. It can just hold a lot more things in context than a human, so they are overly expressive.
reply
My intuition is that the weights, or density of the area around the novel finding is quite light, and sparse of points. It will tend to be able to find many paths through the densely populated well-known space, but there isn't much happening near the novel space (else it wouldn't be novel) so it doesn't spend time there, nor is it strongly pulled toward it for any reason.

My other thought is that because models rely on reinforcement training, the human operator will be the ceiling of knowledge to some extent. They will necessarily reinforce things they know, or sound very plausible, and disuade things that sound farfetched or like gibberish but could possibly be a novel insight.

reply
In general they seem to be pretty bad (relatively) at the whole theory of mind stuff
reply
I do think this will be solved one way or the other.

In simplest way would be that humans ask chatbots to explain certain paragraphgrs which then gets saved as a signal for training.

So over time the LLM will become more natural.

But its so cheap to let an LLM clarify a section, i don't think it might be a real issue, if it means we sill need humans to steere it, might be a good thing

reply
Someone once described it to me as LLM autism
reply
Autistic people are far more accurate
reply
> What are peoples' takes on why LLMs struggle to write things in a human-readable way?

Same reason McDonald's don't serve you healthy food: it's antithetical to their financial interests

I use the McDonald's analogy a lot. It's excessive calories (too many lines of code), not good at meeting macros (technical requirements), addictive etc

reply
[dead]
reply