How word prediction helped a robot walk San Francisco
University of California, Berkeley researchers treated humanoid robot locomotion like next-word prediction. Their Transformer-based model learned from mixed data, including human motion data and YouTube videos, and navigated San Francisco zero-shot using just 27 hours of walking data.
A University of California, Berkeley study points to a different way to teach robots how to move: treat walking less like a hand-coded control problem and more like a prediction task. In the paper Humanoid Locomotion as Next Token Prediction, researchers adapt the same Transformer technology associated with large language models to the physical problem of robot steps.
“The story shows AI making robots more capable in uncontrolled real-world environments, though it is framed as research rather than immediate danger.”Why it scores Terminator
The result is a model that can predict a robot's next movement from the sequence of movements that came before it. According to the researchers, that approach allowed a humanoid robot to navigate streets in San Francisco without seeing examples of that specific environment during training.
Turning Steps Into Tokens
The central idea is simple to state, even if the engineering problem is difficult. Language models predict the next word by looking at previous words. The Berkeley team applies a related idea to locomotion by treating a robot's steps as tokens.
In this setup, a walking sequence becomes something the model can learn to continue. Instead of predicting a word in a sentence, the Transformer predicts the next step in a movement sequence. Each new prediction depends on the steps already taken.
This reframes humanoid locomotion as a sequence prediction problem. The robot does not need a separate rule for every possible surface, command, or path. It learns patterns in movement data and uses those patterns to decide what comes next.
Why The San Francisco Test Matters
The model was trained on a mix of sources, including human motion data and YouTube videos. The researchers report that the robot could navigate San Francisco streets zero-shot, meaning it had not been shown specific examples of that environment before.
That is a meaningful detail because real-world settings are messy. Streets and sidewalks do not offer the clean repeatability of a controlled training setup. A robot that can draw on general movement patterns instead of environment-specific examples could require much less preparation before being tested in new places.
The training data was also relatively compact for the task described: just 27 hours of walking data. The source does not claim this solves robot mobility in general, but it does show why the method is notable. A robot learned enough from limited walking data to operate in a complex environment it had not specifically practiced in.
Learning From Mixed And Incomplete Data
A major part of the method is its ability to bring different kinds of data into one format the Transformer can use. The source describes data sources such as videos, sensor readings, and computer simulations. That variety matters because robotics data is rarely complete, uniform, or easy to combine.
The researchers also used learnable mask tokens to work with incomplete trajectories. When some sensory or motor information is missing, the model can still train by predicting the information that is available and using mask tokens to fill gaps.
For YouTube videos, the team used human body joint positions and transferred that motion to the humanoid robot. This lets the system make use of visual motion data that was not originally collected as robot training data.
- Videos can provide human movement patterns.
- Sensor readings can contribute physical measurements.
- Computer simulations can add another source of movement data.
- Mask tokens help the model learn when parts of a trajectory are missing.
What This Suggests For Robotics
The model can also carry out commands it did not see during training, including walking backwards. That kind of adaptability is important because robots in real environments cannot depend on seeing every useful command or condition in advance.
The researchers believe the model's ability to make accurate predictions from incomplete and mixed data suggests it may be developing a more sophisticated understanding of the physical world. The source presents that as an intuition rather than a finished conclusion, but it is an important reason the work is being watched.
For autonomous robotics, the practical appeal is clear. If movement can be learned through prediction over sequences, and if different data sources can be converted into a shared format, robots may need less narrowly tailored training to move through complicated places. The Berkeley study does not remove the difficulty of humanoid locomotion, but it offers a promising way to organize the problem.
The broader lesson is that techniques from AI language systems can travel into robotics when the task is translated into the right form. In this case, walking becomes a sequence, steps become tokens, and navigation becomes a matter of predicting what movement should come next.
Read next