The Palm Beach Post

Rules of the (virtual) road

Machine-learning simulation­s let driverless cars make errors in controlled situations.

- ©2017 The New York Times

Cade Metz SAN FRANCISCO — As the computers that operate driverless cars digest the rules of the road, some engineers think it might be nice if they can learn from mistakes made in virtual reality rather than on real streets.

Companies such as Toyota, Uber and Waymo have discussed at length how they are testing autonomous vehicles on the streets of Mountain View, Calif., Phoenix and other cities. What is not as well known is that they are also testing vehicles inside computer simulation­s of these same cities. Virtual cars, equipped with the same software as the real thing, spend thousands of hours driving their digital worlds.

Think of it as a way of identifyin­g flaws in the way the cars operate without endangerin­g real people. If a car makes a mistake on a simulated drive, engineers can tweak its software accordingl­y, laying down new rules of behavior. Waymo, the autonomous car company that spun out of Google, showed off its simulator tests last week when it took a group of reporters to its secretive testing center in California’s Central Valley.

Researcher­s are also developing methods that would allow cars to actually learn new behavior from these simulation­s, gathering skills more quickly than human engineers could ever lay them down with explicit software code.

“Simulation is a tremendous thing,” said Gill Pratt, chief executive of the Toyota Research Institute, one of the artificial intelligen­ce labs exploring this kind of virtual training for autonomous vehicles and other robotics.

These methods are part of a sweeping effort to accelerate the developmen­t of autonomous cars through machine learning. When Google designed its first self-driving cars nearly a decade ago, engineers built most of the software line by line, carefully coding each tiny piece of behavior. But increasing­ly, thanks to recent improvemen­ts in computing power, autonomous carmakers are embracing complex algorithms that can learn tasks on their own, like identifyin­g pedestrian­s on the roadways or predicting events.

“This is why we think we can move fast,” said Luc Vincent, who recently started an autonomous vehicle project at Lyft, Uber’s main rival. “This stuff didn’t exist 10 years ago when Google started.”

Machine learning

There are still questions hanging over this research. Most notably, because these algorithms learn by analyzing more informatio­n than any human ever could, it is sometimes difficult to audit their behavior and understand why they make particular decisions. But in the years to come, machine learning will be essential to the continued progress of autonomous vehicles.

Today’s vehicles are not nearly as autonomous as they may seem. After 10 years of research, developmen­t and testing, Google’s cars are poised to offer public rides on the streets of Arizona. Waymo, which operates under Google’s parent company, is preparing to start a taxi service near Phoenix, according to a recent report, and unlike other services, it will not put a human behind the wheel as a backup. But its cars will still be on a tight leash.

For now, if it doesn’t carry a backup driver, any autonomous vehicle will probably be limited to a small area with large streets, little precipitat­ion, and relatively few pedestrian­s. And it will drive at low speeds, often waiting for extended periods before making a lefthand turn or merging into traffic without the help of a stoplight or street sign — if it doesn’t avoid these situations altogether.

At the leading companies, the belief is that these cars can eventually handle more difficult situations with help from continued developmen­t and testing, new sensors that can provide a more detailed view of the surroundin­g world and machine learning.

Waymo and many of its rivals have embraced deep neural networks, complex algorithms that can learn tasks by analyzing data. By analyzing photos of pedestrian­s, for example, a neural network can learn to identify a pedestrian. These kinds of algorithms are also helping to identify street signs and lane markers, predict what will happen next on the road, and plan routes forward.

The trouble is that this requires enormous amounts of data collected by cameras, radar and other sensors that document real-world objects and situations. And humans must label this data, identifyin­g pedestrian­s, street signs and the like.

Gathering and labeling data describing every conceivabl­e situation is an impossibil­ity. Data on accidents, for instance, is hard to come by. This is where simulation­s can help.

Recently, Waymo unveiled a road simulator it calls Carcraft. Today, the company said, this simulator provides a way of testing its cars at a scale that is not possible in the real world. Its cars can spend far more time on virtual roads than the real thing. Presumably, like other companies, Waymo is also exploring ways its algorithms can learn new behavior from this kind of simulator.

Pratt said Toyota is using images of simulated roads to train neural networks, and this approach has yielded promising results. In other words, the simulation­s are similar enough to the physical world to reliably train the systems that operate the cars.

‘Ground truth’

Part of the advantage with a simulator is that researcher­s have complete control over it. They need not spend time and money labeling images — and potentiall­y making mistakes with these labels. “You have ground truth,” Pratt explained. “You know where every car is. You know where every pedestrian is. You know where every bicycler is. You know the weather.”

Others are exploring a more complex method called reinforcem­ent learning. This a major area of research inside many of the world’s top artificial intelligen­ce labs, including DeepMind (the London-based lab owned by Google), the Berkeley AI Research Lab, and OpenAI (the San Francisco-based lab founded by Tesla Chief Executive Elon Musk and others). These labs are building algorithms that allow machines to learn tasks inside virtual worlds through intensive trial and error.

DeepMind used this method to build a machine that could play the ancient game Go better than any human. In essence, the machine played thousands upon thousands of Go games against itself, carefully recording which moves proved successful and which didn’t. And now, DeepMind and other leading labs are using similar techniques in building machines that can play complex video games like StarCraft.

That may seem frivolous. But if machines can navigate these virtual worlds, they can make their way through the physical world.

Inside Uber’s autonomous car operation, for example, researcher­s have trained systems to play the popular racing game Grand Theft Auto, with an eye toward applying these methods, eventually, to real-world cars. Training systems in simulation­s of physical locations is the next step.

Bridging the gap between the virtual and the physical is no easy task, Pratt said. And companies must also ensure that algorithms don’t learn unexpected or harmful behavior while learning on their own. That is a big worry among artificial intelligen­ce researcher­s.

For this and other reasons, companies like Toyota and Waymo are not building these cars solely around machine learning. They also hand-coded software in more traditiona­l ways in an effort to guarantee certain behavior. Waymo cars don’t learn to stop at stoplights, for example. There is a hard and fast rule that they stop.

But the industry is headed toward more machine learning, not less. It provides a better way to train the car to do tasks like identifyin­g lane makers, said Waymo’s vice president of engineerin­g Dmitri Dolgov. But it becomes even more important, he explained, when a car needs a much deeper understand­ing of the world around it. “Robotics and machine learning go handin-hand,” he said.

By analyzing photos of pedestrian­s, a neural network can learn to identify a pedestrian. These kinds of algorithms are also helping to identify street signs and lane markers.

 ??  ??
 ??  ??
 ?? PHOTOS BY WAYMO / VIA NYT ?? Waymo uses simulation­s for the virtual testing of its driverless-car technology. The Google spinoff said it can use the simulation­s to test the technology on a scale that is not possible in the real world.
PHOTOS BY WAYMO / VIA NYT Waymo uses simulation­s for the virtual testing of its driverless-car technology. The Google spinoff said it can use the simulation­s to test the technology on a scale that is not possible in the real world.
 ??  ?? Waymo’s simulation­s include this detailed, realistic virtual version of the East Valley in California. Tech firms are using machine learning to develop driverless cars.
Waymo’s simulation­s include this detailed, realistic virtual version of the East Valley in California. Tech firms are using machine learning to develop driverless cars.

Newspapers in English

Newspapers from United States