Chapter 10 of 13 · 16 min

Autonomy as Data Engine

What Tesla taught Karpathy about real-world AI.

Goal of this chapterAfter this chapter you will understand why autonomy is less about clever code than data collection, labeling, failure mining, retraining, deployment, and scale.
Watch this chapterAndrej Karpathy's key moments on autonomy as data engine, back to back
5 moments · 4 min
1 / 5
“The North Star for the team is something we internally somewhat jokingly refer to as operation vacation…”
conference talk, 2018 · 8:06

The lesson

Karpathy’s main shift at Tesla was to see autonomy less as a hand-coded driving program and more as a learned system whose behavior is shaped by data. In his Software 2.0 framing, the learned part of the system is not authored line by line in traditional code; optimization finds it inside neural network weights, and the dataset becomes a central programming surface1234. That changes the core question from “what rule should we write?” to “what examples, labels, and training setup will produce the behavior we want?”56.

This is especially important for driving because Tesla built Autopilot around vision and learning from raw video rather than relying on lidar or high-definition maps78. Once you choose that route, a large fraction of the problem becomes perception at scale: collecting the right scenes, training models that make many coordinated predictions, and improving them as new failures appear89. Karpathy’s broader lesson is that for hard real-world pattern-recognition problems, you often get farther by designing less of the solution manually and leaving more to optimization1011.

That does not make the work simpler; it relocates the difficulty into the data engine. Karpathy argues that the people defining labels and curating examples are effectively shaping the program, because their decisions determine what the model learns to do122. In autonomy, this means progress depends on a loop: deploy models, observe where they fail, gather or target more data for those cases, relabel carefully, retrain, and ship again. The model improves not mainly because of one clever architecture change, but because the entire loop gets better and faster56.

Scale then becomes unavoidable. Tesla’s autonomy stack involved many networks, many outputs, heavy training cost, and constant iteration, so the challenge was not just inventing a model but operating a system that can keep improving without regressions913. Karpathy’s internal “operation vacation” north star captures the ambition: move toward systems that can learn more of the stack with less manual patching, while the organization builds the tooling and compute needed to support that process1415. The deeper takeaway is that real-world AI becomes a full lifecycle discipline: data collection, labeling, training, evaluation, deployment, and infrastructure are all part of the product155.

4 principles from Andrej Karpathy

1

Treat the dataset as part of the program

In Karpathy’s view, learned systems are programmed through optimization over examples, so the dataset is not auxiliary; it directly shapes behavior. When a model underperforms, look first at whether the data and labels express the behavior you want.

“…code—that code is not written in C++. It's written in weights of a neural network.”
Full Stack Deep Learning talk, 2018
2

Design less, optimize more on hard perception problems

For problems like vision in driving, hand-built rules and features hit limits. A better approach is to define the objective and training setup well, then let optimization discover more of the solution.

“Let's forget about all that stuff that humans have designed with all their ingenuity, and let's try to just have a single kind of blob of compute…”
Conference keynote, 2019
3

Build a failure-mining loop, not just a model

Autonomy improves through repeated cycles of deployment, finding misses, collecting examples, relabeling, and retraining. If that loop is slow or weak, model improvements will stall even if your architecture is strong.

“…this is a whole new way of designing software and we need tooling for it.”
NIPS conference talk, 2017
4

Plan for scale from the start

Real autonomy is not a single network trained once; it is a large, expensive, multi-model system that must be updated repeatedly without regressions. That means infrastructure, compute, and tooling are core parts of the AI system.

“But all in all, if you're trying to train all of the neural networks for the autopilot, it is actually a fairly expensive task. In particular, today we would train 48 different networks that make 1,000 different predictions—just if you count the number of output tensors—and it takes 70,000 GPU hours to train to compile the autopilot. It leaves the neural network stack. So if you had a single node with 8 GPUs, you would be training for a year. So it's a lot of networks and a lot of predictions, and a lot of them must work and none of them can regress ever. And then you're not just training this once—you have to iterate on this.”
conference talk, 2018answer page →

Moments to watch

In his own words

The quotes behind the lesson, word for word from the transcripts. Numbers match the lesson above.

1
“The optimization really writes the code; we only identify a region where we should search.”
NIPS conference talk, 2017
2
“…your data set is really the code.”
NIPS conference talk, 2017
3
“…code—that code is not written in C++. It's written in weights of a neural network.”
Full Stack Deep Learning talk, 2018
4
“The code is now written in the weights of a neural network.”
Conference keynote, 2019
5
“…this is a whole new way of designing software and we need tooling for it.”
NIPS conference talk, 2017
6
“…there's really nothing that helps you write the 2.0 code…”
Conference keynote, 2019
7
“…we don't use lidar and we don't use high-definition maps…”
conference talk, 2018
8
“…everything that we built for the autopilot is basically based on computer vision, machine learning, on the raw video streams…”
conference talk, 2018
9
“But all in all, if you're trying to train all of the neural networks for the autopilot, it is actually a fairly expensive task. In particular, today we would train 48 different networks that make 1,000 different predictions—just if you count the number of output tensors—and it takes 70,000 GPU hours to train to compile the autopilot. It leaves the neural network stack. So if you had a single node with 8 GPUs, you would be training for a year. So it's a lot of networks and a lot of predictions, and a lot of them must work and none of them can regress ever. And then you're not just training this once—you have to iterate on this.”
conference talk, 2018answer page →
10
“…design less, and leave more to the optimization.”
NIPS conference talk, 2017
11
“Let's forget about all that stuff that humans have designed with all their ingenuity, and let's try to just have a single kind of blob of compute…”
Conference keynote, 2019
12
“…the labelers are kind of the programmers…”
Full Stack Deep Learning talk, 2018
13
“So if you had a single node with 8 GPUs, you would be training for a year…”
conference talk, 2018
14
“The North Star for the team is something we internally somewhat jokingly refer to as operation vacation…”
conference talk, 2018
15
“As you'll notice here on the bottom, we have a GPU cluster. The hardware team is also working on a project we call Dojo. And a Dojo is a neural network training computer and a chip. And so we hope to do the exact same thing for training as we did for inference: improve basically the efficiency by roughly an order of magnitude at a lower cost. But I'm not ready to talk about more details in that project just yet. So in summary, I talked about the full lifecycle of developing these neural hours for the autopilot and how we own everything in-house.”
conference talk, 2018answer page →

Reflect

  1. Think of a system you work on that currently relies on rules or manual judgment. What would it mean to treat its examples, labels, or feedback traces as part of the code?
  2. Where in your work do failures get noticed but not systematically turned into better training data or evaluation cases?
  3. If your model had to improve every week without regressing, what tooling or process would you need before trying a new architecture?

Check your understanding

1. What is the core idea behind calling autonomy a data engine?
2. In Karpathy’s Software 2.0 view, why are labelers and data curators so important?
3. Why does scale matter so much in production autonomy?

Go deeper

Search every transcript
Open the full search page →