AI-trained soccer robots outrun hand-coded rivals
Terminator Robotics By What The Future Newsroom · April 11, 2024 · 3 min read

AI-trained soccer robots outrun hand-coded rivals

Researchers at Google DeepMind used reinforcement learning to teach small humanoid soccer robots skills including turning, kicking, chasing the ball, standing up, and scoring goals. In experiments, the AI-trained robots outperformed similar manually programmed robots across running, turning, standing up, and kicking.

Researchers at Google DeepMind have shown how reinforcement learning can give small humanoid soccer robots a wider set of useful movement skills than traditional manual programming. The project focused on 1v1 soccer, but its broader point is robotics: teaching machines to learn agile behavior through trial and error, then carry those skills from simulation into the real world.

“AI-trained robots gaining more agile real-world autonomy mildly points toward more capable physical machines, though in a benign research setting.”Why it scores Terminator

How the soccer robots learned

The robots were first trained inside a computer simulation using the MuJoCo physics engine. After that simulation phase, the learned skills were transferred to small Robotis OP3 humanoid robots with 20 articulated joints.

The training process had two stages. In the first stage, the robots learned basic soccer and movement skills, including standing up and scoring goals. In the second stage, those separate skills were brought together into a single robot that could play against increasingly stronger opponents.

That opponent-based training mattered because soccer is not a fixed task. A robot has to react to where the ball is, where the opponent is, and how both are moving. By facing stronger opponents over time, the robot adapted to different game situations instead of only repeating isolated moves.

Closing the sim-to-real gap

Training a robot in simulation is useful because it allows repeated practice without the limits of physical testing. But simulation is also simpler than the real world. DeepMind addressed that challenge by working directly on the "sim-to-real gap" between relatively simple computer simulations and complex real-world conditions.

To make the simulated training less predictable, the team added disruptive forces and random events. That forced the robots to learn how to respond when conditions changed unexpectedly. Through trial and error, the robots developed ways to handle perturbations they could encounter outside the simulator.

This is important because soccer rewards balance, timing, and recovery. A robot that can only move well in ideal conditions is limited. A robot that can adjust after disruption is better suited to physical environments where contact, missed steps, and sudden changes are part of the task.

Where AI training beat manual programming

In experiments reported by DeepMind, the AI-trained robot outperformed similar manually programmed robots across several movement measures. It ran 181% faster, turned 302% faster, stood up 63% faster, and kicked the ball 34% faster.

Those results show the difference between hand-designed control and behavior learned through reinforcement learning. Manual programming can define specific actions, but it may struggle to capture the many small adjustments needed for fast, responsive movement. Reinforcement learning lets the robot discover useful motor patterns by repeatedly trying actions and learning from the outcome.

The robot also learned more than raw speed. DeepMind reports that it developed sophisticated defensive behavior. It adapted its stride length to the game, combined moves to score a goal, anticipated the ball's path, and blocked opponents' shots.

Together, those behaviors point to a basic understanding of 1v1 soccer. The robot was not only chasing the ball or kicking when told to. It was using movement, positioning, and timing in ways that fit the game situation.

Why soccer is a useful robotics test

Soccer is a compact but demanding environment for humanoid robotics. It requires a robot to stay upright, recover from falls, move toward a target, control a ball, react to an opponent, and switch between attack and defense.

That combination makes it a useful setting for studying agile motor skills. Standing up is different from kicking. Turning is different from blocking. But in a real game, those skills have to work together as one continuous behavior.

The DeepMind work demonstrates that reinforcement learning can combine basic skills into a more complete system. The robot learned individual abilities first, then used them in matches against stronger opponents. That sequence gave it both the building blocks and the pressure to use them flexibly.

A step toward more general robots

DeepMind frames the soccer project as part of a larger effort to train general-purpose robots, rather than machines built only for specific tasks. The company is interested in identifying the minimum amount of guidance robots need to learn agile motor skills.

The work also connects to DeepMind's interest in multimodal foundation models. The source does not describe specific model details, but it makes clear that the company sees the soccer research as one part of a broader robotics direction.

That broader direction is captured in DeepMind's own statement: "Ultimately, while the results are fun to watch, this research is part of our long-term goal to bring robots into our everyday lives - in a way that is helpful, empowering, and safe," the company writes.

The soccer matches are the visible demonstration. The underlying lesson is about training robots to move, recover, adapt, and combine skills in changing physical situations. For humanoid robots, that kind of learning may matter far beyond the soccer field.

← Back to the wire

Read next