What is a neural network, according to Andrej Karpathy?
A neural network is, in Karpathy's view, a simple mathematical expression with many trainable knobs. Those knobs are loosely analogous to synapses, and training means finding the right settings so the model does something useful, like classify images. He emphasizes that the core idea is not mystical: it is a fairly simple expression whose parameters are adjusted.
“What is a neural network? It's a mathematical abstraction of the brain. I would say that's how it was originally developed. At the end of the day, it's a mathematical expression and it's a fairly simple mathematical expression when you get down to it. It's basically a sequence of meter multipliers, whichever really dot products mathematically and some nonlinearity is thrown in. And so it's a very simple mathematical expression and it's got knobs in it. - Many knobs. - Many knobs. And these knobs are loosely related to basically the synapses in your brain.”

Key takeaways
- Think of a neural net as math plus lots of adjustable parameters.
- Training is the search for useful parameter settings.
- Simple systems can still produce powerful behavior at scale.
Context
In a 2024 Lex Fridman Podcast conversation about artificial intelligence, Karpathy explains the basic idea behind neural networks. The quote above is taken word for word from the recording's transcript.
In the transcript
…development. And I dunno where it leads to, at some point I suspect the universe is some kind of a puzzle. These synthetic AIs will uncover that puzzle and solve it. - The following is a conversation with Andrej Karpathy, previously the director of AI at Tesla. And before that, at OpenAi and Stanford. He is one of the greatest scientists, engineers, and educators in the history of artificial intelligence.
What is a neural network? It's a mathematical abstraction of the brain. I would say that's how it was originally developed. At the end of the day, it's a mathematical expression and it's a fairly simple mathematical expression when you get down to it. It's basically a sequence of meter multipliers, whichever really dot products mathematically and some nonlinearity is thrown in. And so it's a very simple mathematical expression and it's got knobs in it. - Many knobs. - Many knobs. And these knobs are loosely related to basically the synapses in your brain.
They're trainable. They're modifiable. And so the idea is we need to find the setting of the knobs that makes the neural net do whatever you want it to do, like classify images and so on. And so there's not too much mystery I would say in it. You might think that, basically, you don't want to endow it with too much meaning with respect to the brain and how…
Topics
What others said about neural networks
More questions about Andrej Karpathy
- What did Andrej Karpathy say about meaning without death?
- What is micrograd and why did Andrej Karpathy build it?
- What initialization loss did Andrej Karpathy expect for a character-level language model?
- Why does Andrej Karpathy say neural networks are arranged in layers?
- What does Andrej Karpathy recommend as the default activation function?
- How does Andrej Karpathy use learning rate decay in training neural networks?
All Andrej Karpathy answers · All Andrej Karpathy recordings
How this answer was made: the quote is checked word for word against the transcript of the recording and confirmed as the speaker's own words; the summary above it was drafted with AI from that transcript and quality-checked. Methodology and corrections.