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
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.
This assumes 17m isn't already elegant. A human proof in Lean may have been 50m lines.
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.
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
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