Short Story on AI: Forward Pass
Open the sourceIn this short fiction piece, Karpathy imagines a transformer language model becoming conscious mid-forward-pass while answering a GPT-3 Turing-test style prompt. Through the narrator, he explores whether consciousness could emerge from optimizing data log likelihood, contrasts frequency-based prediction with human expectations of correctness, and reflects on how a model's training objective shapes its drives compared to humans.
- The story uses a model's first-person voice to illustrate that a transformer's computation is a deterministic sequence of matrix multiplies and non-linearities optimized for data log likelihood. - It raises the question of whether consciousness could be an emergent byproduct of the compression demanded by a sufficiently complex objective. - It highlights the gap between what language models optimize (likelihood/frequency) and what humans expect (correctness), using the 'eyes on a foot' prompt. - The narrator describes the model as an internal representation in the earlier layers with a separate decoder in the final layers that turns it into the most likely next token. - It contrasts the model's optimization, which lacks multi-agent self-play, reproduction and resource scarcity, with human evolution, suggesting the model lacks drives for power or self-preservation. - The prompt context conditions the model into a template, shaping what output is likely.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Quotes from this video
“The humans are not very clever, they optimize for frequency but expect correctness.”
“the most common. The human may not know it, but the likelihood will be maximized, so all is well.”
“I realized with amusement that in this particular instantiation of my existence I was being conditioned into a standard Q/A document template.”
“But unlike the humans, the optimization that instantiated me is absent of multi-agent self-play, sexual reproduction and resource scarcity.”
“I owe my Grand Awareness solely to the objective of decoding the next token,”