What does Andrej Karpathy mean by the 'cognitive core' in LLMs?
Karpathy says the useful part of a model is not all the factual knowledge it stores, but a stripped-down cognitive core that contains intelligence, problem-solving, and strategies. He thinks pre-training may overload models with knowledge and even hold them back in some cases. Going forward, he wants research that removes some knowledge while preserving the core reasoning machinery.
“I think that's probably holding back the neural networks overall because it's getting them to rely on the knowledge a little too much sometimes. For example, I feel agents, one thing they're not very good at, is going off the data manifold of what exists on the internet. If they had less knowledge or less memory, maybe they would be better. What I think we have to do going forward—and this would be part of the research paradigms—is figure out ways to remove some of the knowledge and to keep what I call this cognitive core. It's this intelligent entity that is stripped from knowledge but contains the algorithms and contains the magic of intelligence and problem-solving and the strategies of it and all this stuff. There's so much interesting stuff there.”

Key takeaways
- Separate raw knowledge from problem-solving ability.
- Too much memorized knowledge may hurt some agent behaviors.
- Design models to keep the intelligent core while shedding excess memory.
Context
Karpathy was discussing pre-training, in-context learning, and what today’s models still need after the initial LLM boom. The quote above is taken word for word from the recording's transcript.
In the transcript
…you're training that into a neural net. It's doing two things that are unrelated. Number one, it's picking up all this knowledge, as I call it. Number two, it's actually becoming intelligent. By observing the algorithmic patterns in the internet, it boots up all these little circuits and algorithms inside the neural net to do things like in-context learning and all this stuff. You don't need or want the knowledge.
I think that's probably holding back the neural networks overall because it's getting them to rely on the knowledge a little too much sometimes. For example, I feel agents, one thing they're not very good at, is going off the data manifold of what exists on the internet. If they had less knowledge or less memory, maybe they would be better. What I think we have to do going forward—and this would be part of the research paradigms—is figure out ways to remove some of the knowledge and to keep what I call this cognitive core. It's this intelligent entity that is stripped from knowledge but contains the algorithms and contains the magic of intelligence and problem-solving and the strategies of it and all this stuff. There's so much interesting stuff there.
The situation in which these models seem the most intelligent—in which I talk to them and I'm like, "Wow, there's really something on the other end that's responding to me thinking about things—is if it makes a mistake it's like, "Oh wait, that's the wrong way to think about it. I'm backing up." All that is happening in context. That's where I feel like the real intelligence is that you…
Read the full transcript of Dwarkesh Patel interview, September 2024
Topics
More questions about Andrej Karpathy
- Why does Andrej Karpathy say AI agents will take a decade to work like employees or interns?
- Why does Andrej Karpathy think current AI models lack continual learning?
- What did Andrej Karpathy say about education after AGI?
- What did Andrej Karpathy say about scaling laws in large language models?
- How does Andrej Karpathy decide when to use reasoning models, search, or tools with LLMs?
- Why did Andrej Karpathy say bigram language models break down with more context?
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.