Skip to content
Lex Fridman PodcastLex Fridman Podcast

George Hotz: Comma.ai, OpenPilot, and Autonomous Vehicles | Lex Fridman Podcast #31

Lex Fridman and George Hotz on george Hotz on hacking, Comma.ai, and the real self‑driving race.

Lex FridmanhostGeorge Hotzguest
Aug 5, 20191h 59mWatch on YouTube ↗

EVERY SPOKEN WORD

  1. 0:0015:00

    The following is a…

    1. LF

      The following is a conversation with George Hotz. He's the founder of Comma.ai, a machine learning based vehicle automation company. He is most certainly an outspoken personality in the field of AI and technology in general. He first gained recognition for being the first person to carrier unlock an iPhone and since then, he's done quite a few interesting things at the intersection of hardware and software. This is the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, give it five stars on iTunes, support it on Patreon, or simply connect with me on Twitter @lexfridman, spelled F-R-I-D-M-A-N. And I'd like to give a special thank you to Jennifer from Canada for her support of the podcast on Patreon. Merci beaucoup, Jennifer. She's, uh, been a friend and an engineering colleague for many years since I was in grad school. Your support means a lot and inspires me to keep this series going. And now here's my conversation with George Hotz. Do you think we're living in a simulation?

    2. GH

      Y- yes, but it may be unfalsifiable.

    3. LF

      What do you mean by unfalsifiable?

    4. GH

      So if the simulation is designed in such a way that they did like a formal proof to show that no information can get in and out, and if their hardware is designed to, for the, anything in the simulation to always keep the hardware in spec, it may be impossible to prove whether we're in a simulation or not.

    5. LF

      So they've designed it such that it's a closed system, you can't get outside the system?

    6. GH

      Well, maybe it's one of three worlds. We're either in a simulation which can be exploited, we're in a simulation which not only can't be exploited but like the same thing's true about VMs. Um, a really well-designed VM, you can't even detect if you're in a VM or not.

    7. LF

      (laughs) That's brilliant. So we're, uh, it's, yeah, so the simulation's running on a, on a virtual machine?

    8. GH

      Yeah. But now i- in reality all VMs have ways to detect.

    9. LF

      That's the point. I mean, is it, uh, y- you've done quite a bit of hacking yourself, uh, and so you should know that, uh, really any complicated system will have ways in and out.

    10. GH

      So this isn't necessarily true going forward. I spent my time away from Comma, I learned, uh, Coq.

    11. LF

      Mm-hmm.

    12. GH

      It's a dependently typed, like, uh, it's a language we're writing math proofs in.

    13. LF

      Mm-hmm.

    14. GH

      And if you write code that compiles in a language like that, it is correct by definition. The, the types check its correctness.

    15. LF

      Mm-hmm.

    16. GH

      So it's possible that the simulation is written in a language like this, in which case, you know...

    17. LF

      Yeah, but that, that can't be sufficiently expressive a language like that.

    18. GH

      Oh, it can.

    19. LF

      It can be?

    20. GH

      Oh, yeah.

    21. LF

      Okay. Well so you, uh, hm, all right, so-

    22. GH

      The simulation doesn't have to be Turing-complete if it has a scheduled end date. Looks like it does actually with Entropy.

    23. LF

      I, uh, I don't think that, uh, a simulation as, that results in, uh, something as complicated as the universe wo- would have a form of proof th- of correctness, right? Uh, it's possible of course, uh...

    24. GH

      We have no idea how good their tooling is, and we have-

    25. LF

      True.

    26. GH

      ... no idea how complicated the universe computer really is. It may be quite simple.

    27. LF

      It's just very large, right?

    28. GH

      It's very, it's definitely very large.

    29. LF

      But the fundamental rules might be super simple.

    30. GH

      Yeah. Conway's game of life kind of stuff.

  2. 15:0030:00

    I'm not even sure…

    1. LF

      at the distribution of, of smart people, smart people are generally good. And then this other person, I was talking to Sean Carroll, the physicist, and he was saying, "No, good and bad people are evenly distributed amongst everybody." My sense was good hackers are in general good people and they don't want to mess with the world. What's your sense?

    2. GH

      I'm not even sure about that. Like, I have a nice life. Crime wouldn't get me anything. But if you're good and you have these skills, you probably have a nice life too, right? Like-

    3. LF

      Right, you can use to further things. But is there an ethical... Is there some... Is there a little voice in your head that says, uh, "Well, yeah, if you could hack something to where you could hurt people and you could earn a lot of money doing it, though. Not hurt physically perhaps, but disrupt their life in some kind of way." I- isn't there a little voice that says-

    4. GH

      Um, well, two things. One, I don't really care about money.

    5. LF

      Right.

    6. GH

      So like the money wouldn't be an incentive. The thrill might be an incentive.

    7. LF

      The thrill.

    8. GH

      But when I was 19, I read Crime and Punishment.

    9. LF

      Right. Good.

    10. GH

      That was another, that was another great one that talked me out of ever really doing crime.

    11. LF

      (laughs)

    12. GH

      Um, 'cause it's like, "That's gonna be me. I'd get away with it," but it would just run through my head. Even if I got away with it, you know? And then you do crime for long enough, you'll never get away with it.

    13. LF

      That's right, in the end. That's a good reason to be good.

    14. GH

      I wouldn't say I'm good.

    15. LF

      (laughs)

    16. GH

      I would just say I'm not bad.

    17. LF

      You're a talented programmer and a, a hacker in a good positive sense of the word, word. You've, uh, played around, found vulnerabilities in various systems. What have you learned broadly about the design of systems and so on from that, from that whole process?

    18. GH

      You learn to not take things for what people say they are.

    19. LF

      Mm-hmm.

    20. GH

      But you look at things for what they actually are.

    21. LF

      Hmm. Yeah.

    22. GH

      I understand that's what you tell me it is, but what does it do?

    23. LF

      Right. And you have nice visualization tools to really know what it's really doing.

    24. GH

      Oh, I wish... I'm a better programmer now than I was in 2014. I said, "Cura, that was the first tool that I wrote that was usable." I wouldn't say the code was great. I still wouldn't say my code is great. It's better.

    25. LF

      So how was your evolution as a programmer except practice? You went... You started with C, at which point did you pick up Python? 'Cause you're pretty big in Python now.

    26. GH

      Now, yeah. In, uh, in college. Uh, I went to Carnegie Mellon when I was 22.

    27. LF

      Nice.

    28. GH

      Um, I went back, I'm like, "All right, I'm gonna take all your hardest CS courses and we'll see how I do," right? Like, did I miss anything by not having a, a real, uh, undergraduate education?

    29. LF

      Yeah.

    30. GH

      Took, uh, operating systems, compilers, AI, and their like, uh, freshman reader math course. Um, and som-

  3. 30:0045:00

    Well, first time I…

    1. GH

      I can gather a data set and train this net in, in, in weeks." And I did.

    2. LF

      Well, first time I tried the implementation of MobileEye in a Tesla, I was really surprised how good it is.

    3. GH

      Mm-hmm.

    4. LF

      Uh, it's quite incredibly good 'cause I thought it's... Just 'cause I've done a lot of computer vision, I thought it'd be a lot harder to create a system that that stable. Uh, so that, I was personally surprised. It's, you know-... uh, I have to admit it 'cause I was kind of skeptical before trying it 'cause I thought, uh, uh, it would go in and out a lot more, it would get disengaged a lot more, and it's pretty robust. Uh, so what's... how, how, how hard was the problem when you t- t- uh, when you tackled it?

    5. GH

      So I think AP1 was great, like, uh, Elon talked about disengagements on the 405, down in LA where like the lane marks were kind of faded, um, and the Mobileye system would drop out.

    6. LF

      Mm-hmm.

    7. GH

      Uh, like, I had something up and working that I would say was, like, the same quality-

    8. LF

      Mm-hmm.

    9. GH

      ... in three months.

    10. LF

      Same quality? But how do you know? You, you, you say stuff like that-

    11. GH

      Yeah.

    12. LF

      ... confidently, but you can't... uh, and I love it, but, uh-

    13. GH

      Well-

    14. LF

      ... the question is, you can't... you, you're kind of going by feel 'cause you tested it out.

    15. GH

      You're going by feel, absolutely.

    16. LF

      Yeah.

    17. GH

      Absolutely. Like, like I would take... I had, I borrowed my friend's Tesla.

    18. LF

      Yeah.

    19. GH

      I would take AP1 out for a drive.

    20. LF

      Yep.

    21. GH

      And then I would take my system out for a drive.

    22. LF

      And it seems reasonably like, uh, the same. (sighs) So the 405, how hard is it to create something that could actually be a product that's deployed? I mean, uh, I've, I've read an article where Elon dis-, uh, responded, said something about you saying that, um, to build autopilot is, uh, is more complicated than a single-

    23. GH

      Mm-hmm.

    24. LF

      ... George Hodgs-level job. How hard is that job to create something that would work across the, globally?

    25. GH

      Um, I don't think global is the challenge, but Elon followed that up by saying, "It's gonna take two years and a company of 10 people."

    26. LF

      Yeah.

    27. GH

      And here I am, four years later with a company of 12 people, and I think we still have another two to go.

    28. LF

      (laughs) Two years? So yeah, so what do you think, um, what do you think about, uh, how Tesla's progressing with autopilot V2, V3?

    29. GH

      I think we've kept pace with them pretty well. I think Navigator and autopilot is terrible. We had some demo features internally of the same stuff, and we would test it, and I'm like, "I'm not shipping this even as, like, open source software to people."

    30. LF

      Why do you think it's terrible?

  4. 45:001:00:00

    Right. …

    1. GH

    2. LF

      Right.

    3. GH

      But overall, mostly, yeah.

    4. LF

      That's so cool that you know all this stuff. That's, uh... I don't, uh, often talk to people that... 'cause it's such a rare car, unfortunately, currently.

    5. GH

      We, we, we bought one-

    6. LF

      Yeah.

    7. GH

      ... explicitly for this. We, we-

    8. LF

      That's awesome.

    9. GH

      ... lost like, like 25K in the deprecation, but I feel it was worth it.

    10. LF

      I was very pleasantly surprised that, uh, GM system was so innovative, uh, and really, uh, that, that it wasn't advertised much, wasn't talked about much.

    11. GH

      Yeah.

    12. LF

      Um, and I was nervous that it would die. (laughs) That it would disappear.

    13. GH

      Well, I-

    14. LF

      And that-

    15. GH

      They, they put it on the wrong car. They should've put it on the Bolt and not some weird Cadillac that nobody bought. Um-

    16. LF

      I think that's going to be into... uh, they're saying, at least, it's going to be into their entire fleet. So what do you think about... and if... as long as we're on the driver monitoring, uh, what do you think about Elon Musk's claim that driver monitoring is not needed?

    17. GH

      Normally, I love his claims. That one is stupid. That one is stupid, and, you know, he's not going to have his level 5 fleet by the end of the year. Hopefully, he's like, "Okay, I was wrong. I'm going to add driver monitoring." Because when these systems get to the point that they're only messing up once every thousand miles, you absolutely need driver monitoring.

    18. LF

      So let me play dev- 'cause I agree with you, but let me play devil's advocate.

    19. GH

      Sure.

    20. LF

      One possibility is that without driver monitoring, people are able to monitor, uh, s- uh, self-regulate, monitor themselves. You know, that... so your idea is obviously-

    21. GH

      You're seeing all the people sleeping in, in Teslas? Uh...

    22. LF

      Uh, yeah. Well, I'm a little skeptical of all the people sleeping in Teslas because, um, I, I've, I've stopped paying attention to that kind of stuff because I want to see real data. There's too much glorified... it's doesn't-

    23. GH

      Yeah.

    24. LF

      ... feel scientific to me. So I want to know, you know, what... how many people are really sleeping in Teslas versus sleeping... I've... I was driving here sleep-deprived in a car with no automation.

    25. GH

      Yeah.

    26. LF

      I was falling asleep.

    27. GH

      I agree that it's hype-y. It's just like... you know what? If you want to put driver monitoring, I, I, okay, I rented a... my last autopilot experience was I rented a Model 3 in March-

    28. LF

      Mm-hmm.

    29. GH

      ... and drove it around. The wheel thing is annoying. And the reason the wheel thing is annoying, we use the wheel thing as well, but we don't disengage on wheel. For Tesla, you have to touch the wheel just enough-

    30. LF

      Yeah.

  5. 1:00:001:15:00

    Yeah. …

    1. LF

      and perception is similar to what you're describing, which is really turning into a... not some kind of modular thing, but really do... formulate it as a learning problem-

    2. GH

      Yeah.

    3. LF

      ... and solve the learning problem with scale. So how many years... uh, point one is how many years would it take to solve this problem or- or just how hard is this freaking problem?

    4. GH

      Well, the cool thing is I think there's a lot of value that we can deliver along the way.

    5. LF

      Mm-hmm.

    6. GH

      I think that you can build lane keeping assist, actually, plus adaptive cruise control, plus, okay, looking at Waze, extends to, like, all of driving.

    7. LF

      Yeah, most of driving, right?

    8. GH

      Right? Oh, your adaptive cruise control treats red lights like cars. Okay.

    9. LF

      So let's jump around, which you mentioned that you didn't like, uh, Navigator and Autopilot.

    10. GH

      Yeah.

    11. LF

      What advice... how would you make it better? Do you think as a feature that if it's done really well, it's a good feature?

    12. GH

      I think that it's too reliant on like hand-coded hacks for like h- how does Navigate on Autopilot do a lane change? It actually does the same lane change every time, and it feels mechanical. Humans do different lane changes.

    13. LF

      Mm-hmm.

    14. GH

      Humans sometimes will do a slow one, sometimes do a fast one. Navigate on Autopilot, at least every time I used it, it did the identical lane change.

    15. LF

      How do you learn... I mean, this is a fundamental thing, actually.

    16. GH

      Yeah.

    17. LF

      Is, uh, the braking and then accelerating something that's still, uh... Tesla probably does it better than most cars, but it still doesn't do a great job of creating a comfortable, natural experience. And Navigate on Autopilot is just lane changes and an extension of that. So how do you learn to do a natural lane change?

    18. GH

      So we have it, and I can talk about how it works. So I feel that we have the solution for lateral. Uh, we don't yet have the solution for longitudinal. There's a few reasons longitudinal is harder than lateral. The lane change component, the way that we train on it very simply is like, our model has an input for whether it's doing a lane change or not.

    19. LF

      Mm-hmm.

    20. GH

      And then when we train the end-to-end model, we, w- hand label all the lane changes 'cause you have to.

    21. LF

      Mm-hmm.

    22. GH

      I've, I struggled a long time about not wanting to do that, but I think you have to 'cause y- or-

    23. LF

      For the training data.

    24. GH

      For the training data, right? Uh, we actually, we have an automatic ground truther which automatically labels all the lane changes.

    25. LF

      Is that possible?

    26. GH

      To automatically label lane changes?

    27. LF

      Yeah.

    28. GH

      Yeah, detect the lane. I c- when it crosses it, right? And I don't know if they get that, that high percent accuracy, but it's like 95, good enough.

    29. LF

      Okay.

    30. GH

      Now, I set the bit when it's doing the lane change in the end-to-end learning. And then I set it to zero when it's not doing a lane change. So now if I wanted to do a lane change at test time, I just put the bit to a one and it'll do a lane change.

  6. 1:15:001:16:34

    Oh, don't trust me.…

    1. LF

      believe you, but I have to take it with a grain of salt because, I mean, you, you are an inspiration because you basically don't care about a lot of things that other companies care about. You don't try to bullshit, in, in a sense, like make up stuff, so d- drive up valuation. You're really very real and you're trying to solve the problem. I admire that a lot. What I don't necessarily fully, can't trust you on-

    2. GH

      Oh, don't trust me. That's true.

    3. LF

      ... with all due respect, is how good it is, right? I can only ... But I also know how bad others are. And so (laughs) that-

    4. GH

      I'll say two, I'll say two things about d- trust but verify, right?

    5. LF

      Yeah.

    6. GH

      I'll say two things about that. One is try, uh, get in a 2020 Corolla-

    7. LF

      Yeah.

    8. GH

      ... and try OpenPilot 0.6 when, when it comes out next month. Um, I think already, you'll look at this and you'll be like-

    9. LF

      Damn.

    10. GH

      ... "This is already really good." And then I could be doing that all with hand labelers and all with, with, like, like the same approach that, like, MobileEye uses.

    11. LF

      Mm-hmm.

    12. GH

      When we release a model that no longer has the lanes in it, that only outputs a path-

    13. LF

      Mm-hmm.

    14. GH

      ... then think about how we did that machine learning and then right away, when you see, and that's going to be in OpenPilot, that's gonna be in OpenPilot before 1.0, when you see that model, you'll know that everything I'm saying is true, because how else did I get that model?

    15. LF

      Good. This-

    16. GH

      You'll know that what I, what I'm saying is true about the simulator, right?

    17. LF

      Yeah, yeah. That's super exciting.

    18. GH

      Yeah.

    19. LF

      That's super exciting. And, um ...

    20. GH

      But, like, you know, I listened to your talk with Kyle, and Kyle was originally building, uh, the, the aftermarket system, and he gave up on it because of technical challenges.

Episode duration: 1:59:36

Install uListen for AI-powered chat & search across the full episode — Get Full Transcript

Transcript of episode iwcYp-XT7UI

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.

Add to Chrome