logoalt Hacker News

RugnirViking • today at 9:14 AM • 3 replies • view on HN

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 they 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


Replies

xnorswap • today at 10:45 AM

That describes well a common "failure" where it starts referring to things that technically wrote down a while back but you never read, so it'll produce a question like:

> "Proceed with P2 to fix H7 and H8 defects?"

And you're like, hold up, what the hell is H7?

And it turns out it was a whole taxonomy of errors it defined in a nested paragraph halfway through a response 3 turns ago and it just assumed you're digesting absolutely everything it is outputting.

➕ show 1 reply
rhdunn • today at 10:12 AM

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.

➕ show 1 reply
chriswarbo • today at 10:37 AM

> 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

I find this when asking LLMs for a "skills retrospective", to see if there are any notes worth adding to skills/system prompts/etc. that would avoid repeated mistakes. Having a list of things it struggled with is useful, but the suggested notes are generally useless: either highly-specific things that would have only been useful for that one task; or highly verbose descriptions of things that it figured out quite easily, and hence aren't worth padding everyone's context with.