Home Lex Fridman Episode
Lex Fridman · 2022-10-29

Andrej Karpathy: Tesla AI, Self-Driving, Optimus, Aliens, and AGI | Lex Fridman Podcast #333

Andrej Karpathy on Tesla's vision-only self-driving, Optimus, the Transformer, aliens, simulation theory, and the path to AGI.

Andrej Karpathy: Tesla AI, Self-Driving, Optimus, Aliens, and AGI | Lex Fridman Podcast #333
The guest

Andrej Karpathy: Former director of AI at Tesla and a founding member of OpenAI, previously a researcher at Stanford. One of the most influential figures in deep learning, known for his teaching (CS231n) and hands-on explanations of neural networks.

What this episode covers

Karpathy ranges from cosmic speculation to nuts-and-bolts engineering. He argues life is probably common in the universe but interstellar travel and detection are extremely hard, and entertains the idea that physics itself may have exploitable bugs that a future super-AI could hack. He dives deep on why the Transformer is a uniquely powerful, optimizable, hardware-efficient general-purpose computer, and on his 'software 2.0' thesis that neural net weights are replacing handwritten code. Drawing on five years at Tesla, he defends vision-only self-driving (dropping radar/lidar/ultrasonics) as a fight against organizational entropy, and explains the data engine that perfects training sets with humans in the loop. He closes on AGI, consciousness as an emergent modeling insight, his personal productivity habits, and the meaning of life as buying enough time to answer the universe's deeper questions.

Recommended on this episode

ProductRecommended

GitHub Copilot

GitHub

“I love it ... I would pay for it”
“he's copilot I love it and it's free for me but I would pay for it yeah I think it's very good”— Andrej Karpathy
ProductRecommended

Visual Studio Code

Microsoft

“I believe that's the best IDE”
“I think the current answer is vs code currently I believe that's the best IDE it's got a huge amount of extensions”— Andrej Karpathy
BookRecommendedISBN verified

The Vital Question

Nick Lane

“the vital question is a good one”
“I think in biology as an example the vital question is a good one anything by McLean really”— Andrej Karpathy
BookRecommendedISBN verified

Life Ascending

Nick Lane

“I would say is like a bit more potentially representative as like a summary”
“life ascending I would say is like a bit more potentially representative as like a summary of a lot of the things he's been talking about”— Andrej Karpathy
BookRecommendedISBN verified

The Selfish Gene

Richard Dawkins

“I was very impacted by the selfish Gene I thought that was a really good book”
“I was very impacted by the selfish Gene I thought that was a really good book that helped me understand altruism”— Andrej Karpathy
BookRecommended

The Cell (Molecular Biology of the Cell)

Bruce Alberts et al.

“I think the cell was pretty cool”
“I like textbooks I like the cell I think the cell was pretty cool”— Andrej Karpathy
MediaRecommended

Interstellar

Christopher Nolan

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“movies that I've seen five plus times but I'm ready and willing to keep watching Interstellar Gladiator contact Goodwill Hunting The Matrix”— Andrej Karpathy
MediaRecommended

Good Will Hunting

Gus Van Sant

“it's just a beautiful movie”
“I really like this torture genius sort of character who's like grappling with whether or not he has any responsibility ... it's just a beautiful movie”— Andrej Karpathy
MediaRecommended

The Matrix

The Wachowskis

“so many properties that make it like beautiful and interesting”
“there's so many properties that make it like beautiful and interesting ... it was just like innovating in so many ways”— Andrej Karpathy
MediaRecommended

Terminator 2: Judgment Day

James Cameron

“I like Terminator 2 a little bit more”
“Lord of the Rings that's self-explanatory Terminator 2 which is interesting you we watch that a lot ... I like Terminator 2 a little bit more”— Andrej Karpathy
MediaRecommended

Gladiator

Ridley Scott

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“movies that I've seen five plus times but I'm ready and willing to keep watching Interstellar Gladiator contact Goodwill Hunting”— Andrej Karpathy
MediaRecommended

Contact

Robert Zemeckis

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“movies that I've seen five plus times but I'm ready and willing to keep watching Interstellar Gladiator contact Goodwill Hunting”— Andrej Karpathy
MediaRecommended

The Lord of the Rings (trilogy)

Peter Jackson

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“Goodwill Hunting The Matrix Lord of the Rings all three Avatar Fifth Element”— Andrej Karpathy
MediaRecommended

Avatar

James Cameron

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“The Matrix Lord of the Rings all three Avatar Fifth Element so on goes on Terminator two”— Andrej Karpathy
MediaRecommended

The Fifth Element

Luc Besson

“movies that I've seen five plus times but I'm ready and willing to keep watching”
“Lord of the Rings all three Avatar Fifth Element so on goes on Terminator two Mean Girls”— Andrej Karpathy
MediaRecommended

Mean Girls

Mark Waters

“mean girls is great”
“Terminator two Mean Girls I'm not gonna ask about that mean girls is great”— Lex Fridman
MediaRecommended

Anchorman

Adam McKay

“it's so good”
“or like Anchorman that has no that's the increment it's so good I don't understand”— Andrej Karpathy

Also referenced (named, not recommended)

BookReferencedISBN verified

Contact

Carl Sagan

“in the book contact Carl Sagan there's a message for Humanity for any civilization in digits in the expansion of Pi in base 11”— Andrej Karpathy
BookReferencedISBN verified

The Hitchhiker's Guide to the Galaxy

Douglas Adams

“if like an Hitchhiker's Guide to the Galaxy we would summarize the story of Earth so in that book it's mostly harmless”— Lex Fridman
BookReferenced

Artificial Intelligence: A Modern Approach

Stuart Russell and Peter Norvig

“there's a artificial intelligence a modern approach I actually haven't read if it's come out the recent version”— Andrej Karpathy
ProductReferenced

OpenAI Whisper

OpenAI

“I definitely was surprised that transcription with openai's whisper was working so well compared to what I'm familiar with from Siri”— Andrej Karpathy
ProductReferenced

Stable Diffusion

Stability AI

“the stable diffusion images are incredible it's the speed of improvement in generating images has been insane”— Andrej Karpathy

Big reveals from this episode

  • Karpathy says the more he studies origin of life, the more he believes technological civilizations should be common, making the Fermi Paradox about our inability to detect, not the rarity of life.
  • Floats that physics may have 'exploits' a future AI could trigger, like a buffer overflow or infinite-energy glitch found by an RL agent.
  • Defends Tesla removing radar and all ultrasonic sensors for vision-only, arguing extra sensors are a liability that bloats the org and the data engine.
  • Predicts other self-driving companies currently using lidar will eventually drop it.
  • Explains he left Tesla because he'd drifted into a managerial/executive role and wanted to return to hands-on technical work and AGI.
  • Admits he doesn't love The Godfather and basically dislikes most movies made before ~1995.
  • Suspects AGI can be reached purely from internet data without ever entering the physical world, which he finds concerning because it could happen faster.
  • Names nuclear weapons as his number one concern for society, above AGI, saying we may be 'a few tweets away' from catastrophe.

Worth remembering

  • Calls the Transformer a 'general purpose differentiable computer' that is simultaneously expressive, optimizable, and hardware-efficient.
  • Describes a Transformer as roughly 20 lines of code where residual connections let it learn short algorithms first, then extend them during training.
  • Notes the 2016 Transformer is essentially unchanged today aside from reshuffling layer norms to a pre-norm formulation.
  • Grew Tesla's data-annotation team from zero to about a thousand people.
  • Shares his 'sublinear scaling of difficulty' rule: a 10x harder problem is often only 2-3x harder to execute because it forces a better approach.
  • A self-described night owl who used to sleep at 3am in his PhD, valuing the quiet early-morning hours for deep focus.
  • Does 18:6 intermittent fasting (eats noon to 6pm) and eats mostly 'plant-forward'; has done multi-day water fasts and says hunger vanishes around day three.
  • Advises beginners to focus on quantity of hours (the 10,000-hours idea) and to only compare yourself to your past self, not to others.
  • Was surprised OpenAI's Whisper transcription works so much better than Siri and other systems despite being a fairly standard Transformer.
  • Closes with Samuel Karlin's line: 'The purpose of models is not to fit the data but to sharpen the questions.'