I’m interested in how LLM training works, what training data contributes, and how models might represent natural conversation. These notes include my own ideas and clarifications, as well as an explanation by @karpathy that I praised.
On 2024-04-11, I responded to @karpathy’s explanation of LLM training code with “This is so great!”
@karpathy’s explanation says that training LLMs such as ChatGPT involves a large amount of code and complexity, and that a typical training project might use PyTorch.
@karpathy describes PyTorch as complex because it implements a very general Tensor abstraction for arranging and manipulating arrays of numbers that hold neural-network parameters and activations, as well as a very general Autograd engine for backpropagation.
I said it would be interesting if LLM training tracked the per-token loss back to the source material.
I suggested this could provide an objective measure of how much each specific book or document contributed to training.
I wondered whether tracing training loss to source material might say something useful for human learning.
I clarified that LLMs do not read books in order; they take interleaved batches of samples from the entire training set.
My earlier proposal was to trace per-token loss back to source material; my later clarification about interleaved training batches addresses the mistaken idea that models read books sequentially.
My views on open-source code as a gift and on LLM training as a possible form of corpus compression extend these notes on LLM training and its effects.
I have a hard time reconciling the overlap between open source and anti-AI activism.
My million+ open source LOC were always intended as a gift to the world.
I said arguments about how it would strengthen our communities, and the GPL would prevent outright exploitation by our competitors, were to allay fears of my partners to allow me to make the gift.
I think AI training on the code magnifies the value of the gift.
I am enthusiastic about it.
I said social change, career advancement, or reputation building are all downstream of the gift.
I find it generally frowned upon to have LLMs precisely regurgitate part of their training set.
I called it an interesting question how you could use LLM training to nearly losslesly compress a huge corpus like the entirety of the Internet Archive.
The Hutter Prize is for perfect compression but only one GB.
I said there would be different trades at the PB level.
I said it gets much more interesting when it doesn’t have to be bit-accurate.
I said natural conversation includes interruptions and people talking over one another, which is hard for an LLM to model as a single autoregressive sequence.
I thought a text sequence with movie-script-like breaks in the middle of sentences could get pretty far as a way to model conversation.
I thought the real solution would involve parallel streams of listening and thinking, with talking queued for pauses or raised to interruption priority.
I considered intermixing tokens from different streams and using custom attention a plausible direction.
Related: representations for code, optimizer tuning, ai research beyond llms