r/programming • • Jul 21 '18

Fascinating illustration of Deep Learning and LiDAR perception in Self Driving Cars and other Autonomous Vehicles

6.9k Upvotes

530 comments sorted by

View all comments

Show parent comments

43

u/Bunslow Jul 21 '18 edited Jul 21 '18

That's my biggest problem with Tesla, is trust in the software. I don't want them to be able to control my car from CA with over the air software updates I never know about. If I'm to have a NN driving my car -- which in principle I'm totally okay with -- you can be damn sure I want to see the net and all the software controlling it. If you don't control the software, the software controls you, and in this case the software controls my safety. That's not okay, I will only allow software to control my safety when I control the software in turn.

233

u/[deleted] Jul 21 '18

Have you ever been in an airplane in the last 10 years? Approximately 95% of that flight will have been controlled via software. At this point, software can fully automate an aircraft.

Source: I worked on flight controls for a decade.

141

u/ggtsu_00 Jul 21 '18

I think flight control software is a easier problem to solve and secure. Flight control software is extremely tightly controlled, heavily audited, also well understood on a science and engineering level.

AI and deep learning however is none of those. Software required for autonomous driving will likely be 100x more complex than autonomous flying software. Static analysis and formal proofs of correctness of the software will likely not be possible for autonomous cars like they are for flight control software.

Then there is the attack surface vector size and ease of access for reverse engineering. It would be very difficult for hackers to target and exploit flight control software to hijack airplanes compared to hacking software that is on devices that everyone interacts with on a daily basis. It would be incredibly difficult for hackers to obtain copies of the flight control software to reverse engineer it and find exploits and bugs.

If autonomous vehicle control software gets deployed and updated as much as smart phone software, then likely the chances of it getting compromised as just as great. Hackers will be able to have access to the software as well and can more easily find bugs and exploits to take over control of vehicles remotely.

The scale of problems are just on a completely different level.

55

u/frownyface Jul 21 '18

Not to mention that the procedures and environment of flying are very strict and tightly controlled. They don't have clusters of thousands of 747s flying within a few feet of each other and changing directions, going different ways, with people walking around or in between them frequently, but that's exactly the situation with cars driving.

11

u/ShinyHappyREM Jul 21 '18

"And that's why we'll have to surgically equip each citizen with tracking sensors and mobile connectivity!"

→ More replies (2)

12

u/EvermoreWithYou Jul 21 '18

I remember watching a video, I think a part of a documentary, that showed an Israeli tech security proffesional hijack a car IN REAL TIME, simply because the car was connected to the internet. Again, with standard, for-fun internet connection, never mind software updates to critical systems such as the driving software.

Critical parts of cars should not be connected to the internet, or reliant on it, for whatever reasons, period. It's a safety hazzard of unbelievable levels otherwise.

→ More replies (2)

17

u/Bunslow Jul 21 '18

Thanks for this excellent summary of the critical differences.

→ More replies (7)

5

u/DJTheLQ Jul 22 '18

I doubt plane autopilot relies on security through obscureity. A motivated organization can acquire flight software and do the same exploit hunting. They aren't nuclear secrets.

→ More replies (1)

29

u/Bunslow Jul 21 '18 edited Jul 21 '18

It's also regulated and tested beyond belief -- furthermore, I'm not the operator, the airline is. It's up to the airline to ascertain that the manufacturer and regulator have fully vetted the software, and most especially, the software can not be updated at will by the manufacturer or airline.

There are several fundamental differences, and I think the comparison is disingenuous to my comment.

(Furthermore, there remain human operators who can make decisions that the software can't, and even more can override the software to varying degrees (depending on manufacturer, if you're in the industry then I'm sure you're aware of the most major differences between Airbus and Boeing fly by wire systems, which is the extent to which the pilots can override the software [Boeing allowing more ultimate override-ability than Airbus, at least last time I checked]).)

21

u/BraveSirRobin Jul 21 '18

ascertain that the manufacturer and regulator have fully vetted the software

I would expect that most folk here would not be familiar with these requirements.

Typically this includes from the business side:

  • Documented procedures for all work such as new features, bug fixes, releases etc

  • Regular external audits that pick random work items and check every stage of the process was followed

  • Traceable product documentation where you can track a requirement right down to the tests QA perform

  • ISO 9001 accreditation

  • Release sign-off process

  • Quality metrics/goalposts applied to any release

And from the code side:

  • All work is done on separate traceable RCS branches

  • Every line of code in a commit is formally code-reviewed

  • Unit test coverage in the 80/90% region (not always but common now)

It's a whole lot of work, maybe as much as 3x as much effort as not doing it.

If there is anything we've learned about the auto-industries codebase from the emissions scandal it is that their codebase is a complete mess and they likely don't pass a single one of these requirements.

In the words of our Lord Buckethead "it will be a shitshow".

13

u/WasterDave Jul 22 '18

The software industry is absolutely able to produce high quality products. It's the cost and time associated with doing so that stops it from happening.

7

u/BraveSirRobin Jul 22 '18

These problems aren't even unique to the industry, any large-scale engineering project shares a lot of them with software. ISO 9001 isn't even remotely software-specific, a large scale software industry was the last thing on their mind back when it was written.

If people built bridges with the same quality level as most software then they'd probably fall down.

→ More replies (1)
→ More replies (2)
→ More replies (1)

6

u/heterosapian Jul 22 '18

Automating the function of an aircraft is so so much easier than automobiles though. To start you only have about 10,000 commercial planes in the world flying at any given time so collision avoidance in controlled airspace is just a failsafe. Pilots are on paths which do not intersect as soon as they set off, they are not actively predicting potential obstacles and needing to make split second reactions in real time because, short of being near a major airport, most planes are many miles away from one another and at completely different altitudes. Having planes be able to fly thousands of feet above or below another makes the coordination of collisions so much easier.

Compare that to the prediction required by autonomous driving. We do not only have to predict other idiot drivers who may spontaneously decide to cross three lanes to make an exit but also predict lane markings (which may be obstructed or not visible), detect and adapt the driving to different signage, detect and adapt to people+cyclists getting in your path (who also may not follow the rules of the road), and then also really niche complexities like a cop working a dead stoplight where the system needs to recognize when to wave you through. On top of that we don’t have any standard for communicating between one car and another - all the systems now are trying to create some understanding of the world patching together radar, lidar, and computer vision. The prediction aspect of autonomous driving makes the task difficult even if all road variables are in our favor.

18

u/hakumiogin Jul 21 '18

Trusting software is one thing, but trusting software updates for opaque systems that perhaps might not be as well tested as the previous version is plenty of reason to be weary. Machine learning has plenty of space for updates to make it worse, and it will be very difficult to determine how much better or worse it is until its in the hands of the users.

9

u/zlsa Jul 21 '18

I'm absolutely sure that Boeing and Airbus, et. al. update their flight control software. It's not as often done as, say, Tesla's updates, but these planes fly for decades. And by definition, the newer software doesn't have as many hours of testing as the last version.

20

u/Bunslow Jul 21 '18

There's major, big, critical differences in how these updates are done. No single party can update the software "at will" -- each software update has to get manufacturer, regulatory, and operator (airline) approval, which means there's documentation that each update was pre-tested before being deployed to the safety-critical field.

That is very, very different from the state of affairs with Teslas (and, frankly, many other cars these days, not just the self-driving ones), where the manufacturer retains complete control of the computer on board the vehicle to the exclusion of the operator. The operator does not control the vehicle, on a fundamental level. Tesla can push updates whenever they please for any reason they please, and they need not demonstrate testing or safety to anyone, and worst of all, they do it without the knowledge, nevermind consent, of the operator. This is completely unlike the situation with aircraft, and that's before even discussing the higher risk of machine learning updates versus traditional software. So yeah, suffice it to say, I'm perfectly happy to fly on modern aircraft, but I'm staying the hell away from Teslas.

10

u/zlsa Jul 21 '18

Yes, you are absolutely correct. Tesla's QA is definitely lacking (remember the entire braking thing?) I'm also wary of Tesla's OTA update philosophy, but I'd still trust Tesla over Ford, GM, Volvo, etc. The big automakers don't really understand software and end up with massively overcomplicated software written by dozens of companies and thousands of engineers.

4

u/Bunslow Jul 21 '18 edited Jul 21 '18

Or, say, the infamous Toyota Camry uncontrolled accelerations (not to mention the NHTSA's gross incompetence in even being able to fathom that software alone could cause such problems).

Yeah I'm quite wary of all modern cars to be honest.

3

u/WasterDave Jul 22 '18

There are a set of rules for motor industry software called "misra". Had Toyota stuck to these rules, there wouldn't have been a problem :( http://www.safetyresearch.net/Library/BarrSlides_FINAL_SCRUBBED.pdf

→ More replies (1)
→ More replies (6)
→ More replies (1)

23

u/AtActionPark- Jul 21 '18

oh you can see the net, but you'll learn absolutely nothing about how it works, thats the thing with NN. You see that it works, but you dont really know how...

11

u/Bunslow Jul 21 '18

If you've got enough time and patience, you can certainly examine its inner workings in detail, create statistical analyses of weights in various layers, and most importantly when I have my own copy of the weights, I can do blackbox testing of it to my heart's content.

None of these things can be done without the weights.

It's really quite silly to scare everyone with "oh NNs are beyond human comprehension blah blah". Sure we couldn't ever really truly improve the weights manually, that remains too gargantuan a task which is what we have computers for, but we most certainly can investigate how it behaves on a detailed level by analyzing the weights.

8

u/frownyface Jul 21 '18

None of these things can be done without the weights.

Explaining models without the weights is kind its own subdomain of explaining:

https://arxiv.org/abs/1802.01933

→ More replies (6)
→ More replies (5)

6

u/joggle1 Jul 21 '18

That never happens. Teslas show an indicator when a software update is available and gives you a choice of when to schedule it to install. You wouldn't get an update without any warning ahead of time. As far as I know you don't have to install an update either but you would get a nagging message every time you turn the car on asking when you want to schedule the install.

For features that aren't safety related you can disable them. Don't want lane keeping? You can turn the entire feature off.

5

u/Bunslow Jul 21 '18

This is all at the mercy of Tesla. They could choose to change that at any point, and you would be powerless to stop that decision. For example: Windows 10 is guilty of removing all of those abilities which were once there in previous versions of Windows. Just because Telsa is playing halfway-nice today doesn't mean they will tomorrow -- fundamentally, the control is all theirs, even if they deign to give you choice about updating in the short term.

→ More replies (9)

3

u/dizzydizzy Jul 21 '18

I dont see how you could get any befit from access to the source/ NN weights. Do you imagine you could audit it?

→ More replies (1)
→ More replies (16)