I’m not sure that LLMs are solely autocomplete. The next token prediction task is only for pretraining. After that I thought you apply reinforcement learning.
Policy gradient approaches in RL are just supervised learning, when viewed through some lenses. You can search for karpathys more fleshed out argument for the same, I'm on mobile jow.
So you're amplifying existing trajectories in the model by feeding the model's outputs back to itself, but only when those outputs solve a problem.
This elides the kl penalty and the odd group scoring, which are the same in the limit but vastly more efficient in practice.
Tool usage is also just next token prediction. You have it predict the next token of the syntax needed for tool use, and then it is fed the result of that in context which it then predicts the next token of.