Andrej Karpathy: The Future of AI Is a Graph
Watch on YouTubeKarpathy teaches that programming has progressed from explicitly designing algorithms, to designing datasets for neural networks, to designing natural-language prompts for large language models. He presents transformers as general-purpose, efficient, and optimizable computers whose attention mechanism performs data-dependent message passing over graphs, allowing the same architecture to process many kinds of data.
- Software 1.0 specifies algorithms directly, Software 2.0 compiles datasets into neural-network weights, and Software 3.0 conditions large language models with prompts. - Prompt wording matters because a next-word predictor must be conditioned toward the particular kind and quality of completion desired. - Large language models can simulate systems, transform structured state, and execute natural-language programs by completing documents. - Transformers provide a common architecture across text, images, speech, reinforcement learning, and other domains by converting inputs into sets of tokens. - Attention can be understood as data-dependent message passing in a directed graph, while the multilayer perceptron performs computation at each node. - Transformers became dominant because they combine expressive forward computation, optimization-friendly structure, and efficient parallel execution on GPUs.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Improve the whole stack
ConfirmedProgram models with deliberate context
ConfirmedMatch the tool to the task
ConfirmedProgram networks through data
Quotes from this video
“So you program them by accumulating data sets and iterating on them. something that I call data engine.”
“you have a lot of telemetry and monitoring for how that neural network is performing. You collect more data uh that the network finds troubling and then you label it and some of it goes into test sets and some of it enters back into a training set and you spin the cycle over and over again and so I call this the data engine.”
“Software 3.0 now is you design the prompt.”
“The hottest new programming language is English.”
“So these programs are specified in prompts and then GPT runs the program uh by completing the document.”
“you really have to like narrow in on the slice of the prediction that you want it to perform otherwise it's just going to imitate the average case.”
“so again this is prompt engineering prompt design goes a long way.”
“what I'm getting at I think uh is um these prompts really matter and there's a lot of art and science to designing these prompts.”
“when you ask it to uh think step by step, it gets to break down the problem and it's not thinking too much per token and so it has more tokens and it has more time to think and then it actually has a higher chance of getting the answer.”
“let's work this out in a step-by-step way to be sure we have the right answer.”
“So just chop up everything and throw it into the mix is kind of like the way.”
“with the transformer it's much easier because you just take whatever you want you chop it up into pieces and you feed it in with a set of what you had before and you let the self attention figure out how everything should communicate”
“if you have enough data usually trying to mess with it is like a bad thing.”
“If you have infinity data then you actually want to encode less and less that turns out to work better.”
“And if you have very little data then actually you do want to encode some biases”