When we first asked Fox to grab his opponent in Super Smash Bros. Melee, he started reaching more often. Few of those grabs connected. The odd thing was that Faynt, the model we’d started with, could already land a grab in an ordinary match.
We built Reyn at Frisson Labs so you could tell Faynt how you wanted it to play, even halfway through a game. Faynt had learned all 26 characters from human replays. Getting it to do something on request gave us a new problem. If you tell Fox to grab and the other player is halfway across the stage, what should Fox do on the very next frame? How we trained Faynt.
Counting the grabs
A Melee replay records where the players were and what they did with their controllers. We added the missing instructions ourselves. We wrote rules to find stretches of play where a player attempted a grab, went for a platform, or used a particular move. We paired each example with a matching phrase and trained Reyn to predict the player’s next input from the phrase and the game so far.
That’s how we got a Fox who grabbed at thin air. During reinforcement learning we could be more particular about what counted. We let Fox play out the exchange and rewarded him when he caught the opponent. Now there was something to gain by getting within reach before attempting the grab.
Here’s how the released model plays on Final Destination against a level-9 CPU playing Fox. Left to his own devices, our Fox landed about five grabs a minute. With the grab command active, he landed about 35. You can also ask him to avoid getting grabbed. For that one we counted the other Fox’s catches, which fell from 2.36 to 0.45 per minute. We measured both requests in 22-second windows.
Who lands the grab?
A hit can cost Fox a life
Fire Fox is the move Fox uses to fly back to the stage. He charges up, then launches in a direction the player chooses. You can hit someone with it. You can also hit them on the way over the edge and fly too far out to get back.
Our first specialist for this move averaged 5.4 Fire Fox hits a minute. It also self-destructed about once every two minutes. We raised the penalty for a self-destruct in the next run. We changed a few other rewards at the same time, so it’s hard to pin the result on that penalty alone. What we saw in the training log was fewer hits and fewer attempts. Skipping Fire Fox altogether was one way to stay alive.
We changed when we scored the move. As Fox launched, we estimated how far past the edge he was headed. If the trajectory looked dangerous, we penalized the launch and gave him no credit for a hit along the way. After we added a margin for error and rewarded aiming at the opponent, Fox was still landing 5.2 hits a minute. Self-destructs were down to about one every twelve minutes. In both tests the command stayed on throughout play against a level-9 CPU on Final Destination. The Fire Fox trials.
Falco’s version of the move, Fire Bird, gave us a good reason to keep watching replays. We tested the four-character model with the instruction “Hit him with Fire Bird.” In 10 of 32 trials, at least one flight that started onstage hit the opponent. Here’s the median trial.
What happens when you ask Peach for a turnip?
“Pull a turnip” is a perfectly ordinary request if you play Peach. It’s her down special. When you type those words, a small text model picks the corresponding command and leaves it active until you change or clear it. The model playing Peach then chooses the buttons and stick inputs frame by frame. You can type it once and let her look for an opening. Reyn’s inference code.
We taught Reyn to play under instruction with just four characters. After training on the labeled replays, we froze the 10-million-parameter fighting policy. About 2.2 million parameters remained trainable, including an adapter that lets the instruction influence the next action. Each specialist practiced a group of related commands. We compared its action probabilities with the unsteered policy’s in the same game state and penalized large differences. We then trained one model to imitate the specialists. When you clear the command, the policy skips the adapter.
For the full roster we kept those gameplay weights and fine-tuned only the text router. It picked the right command on all 208 entries in a test of generated phrases. Peach’s turnip is where you can see how much work remains after that. In the longer-phrase gameplay test against a level-9 Fox, Peach completed the move in all 12 turnip cases. Just one met the benchmark’s target for a useful result. Her parasol met its target in 11 of 12. Same character, same six stages. Results for each move.
How we got the 81.8% command-following score
The release pools two tests. For general commands such as grabbing and moving to a platform, 386 of 424 cases met at least the looser of two thresholds. We tested Fox, Falco, Marth, and Mario. For special moves, 982 of 1,248 cases met the move’s target using longer phrases across all 26 characters. Together that’s 1,368 of 1,672 cases, or 81.8%. Full benchmark definitions.
Speaking to Reyn works a little differently. In our voice prototype, a conversational model takes the router’s place. It reads the transcript alongside the recent conversation and game state. It can answer a question about the match or send the gameplay policy a command that fits the character and stage. While you’re talking, Reyn keeps playing. How the voice prototype works.
Playing beside another Fox
Ten seconds into the opening doubles clip in our lab post, we ask one Fox to go to the left platform on Battlefield and the other to go right. Faynt’s singles policy only saw itself and one opponent. In doubles there’s a second opponent to keep track of and a teammate who can get caught in the middle of a fight.
We trained a pair of Foxes against two copies of Faynt in a simulator. Our first attempt kept the fighting policy frozen and added an adapter that could see all four players. That barely helped. When we let training update the whole policy, the pair went on to win 84.4% of 160 games against two Faynts in Melee itself. The untrained pair won 56.2%. We added steering to the trained pair so each Fox could take its own instruction. Team training and match results.
When we penalized Fox for hitting his teammate, he attacked everyone less often. We had better luck checking the move he was about to start. If its hitbox would catch his teammate, we blocked the input. With a bot trained to imitate a human partner, this cut teammate damage by 71% to 74% against two level-9 CPUs. A back-air can still catch a teammate who moves into range after the attack starts. The downloadable model has a simpler option that blocks attacks when a teammate is close. Friendly-fire results · Filter in the release.
The part I’d still like to get working is the handoff. One Fox knocks an opponent into the air, and the other has a chance to meet them on the way down. Our pair rarely followed up. We tried rewarding handoffs and ended up with both Foxes crowding the same opponent. I’d like to see the second Fox give its partner room for the first hit and be in position for the next one.
I worked on Reyn at Frisson Labs with Nikita Kuzmin and Tongke Xue. Rohit Swamy and Charles Niu advised the project. Read our original post.
Cover photograph by Paweł Durczok on Unsplash, color-graded for this article.