Why MarioVGG's AI Mario demo is impressive but not playable
Idiocracy Gaming By What The Future Newsroom · September 6, 2024 · 4 min read

Why MarioVGG's AI Mario demo is impressive but not playable

MarioVGG can generate plausible Super Mario Bros. video from gameplay footage and simple inputs. The model shows early signs of learned game physics, but it is slow, low-resolution, limited to basic actions, and still prone to major visual glitches.

A new AI model called MarioVGG points to a provocative idea: a video game can be simulated by a model that has watched gameplay footage instead of being built with a traditional game engine. The result is not ready for real-time play, but it shows why video generation models are becoming a serious research path for interactive games.

“The story mainly suggests AI-generated games could eventually replace traditional craft, but the current demo is limited and research-stage.”Why it scores Idiocracy

What MarioVGG Is Trying To Do

MarioVGG is a model described in a preprint paper published by the crypto-adjacent AI company Virtuals Protocol. Its goal is to generate plausible video of Super Mario Bros. in response to user inputs.

The work follows a related demonstration from Google's GameNGen AI model, which used generalized image diffusion techniques to generate a passable, playable version of Doom. MarioVGG applies similar thinking to side-scrolling platform gameplay, where timing, movement, obstacles, and screen scrolling all need to remain coherent from frame to frame.

The researchers describe the project as an early step toward “producing and demonstrating a reliable and controllable video game generator.” They also raise the possibility of “replacing game development and game engines completely using video generation models” in the future. That is a large ambition, and the current demo also shows how far the technology still has to go.

How The Model Learned From Gameplay Footage

To train MarioVGG, the researchers used a public dataset of Super Mario Bros. gameplay. GitHub users erniechew and Brian Lim are listed as contributors. The dataset contained 280 ‘levels” worth of input and image data arranged for machine-learning purposes.

Level 1-1 was removed from the training data so images from it could be used in the evaluation. In total, the dataset included more than 737,000 individual frames. Those frames were preprocessed into 35-frame chunks, giving the model short sequences from which it could learn what usually happens after a particular input.

The researchers narrowed the controls to simplify the problem. Instead of modeling the full range of game actions, they focused on two possible inputs:

  • “run right”
  • “run right and jump”

Even that reduced control set created complications. The preprocessor had to look backward across a few frames before a jump to determine whether and when the run action began. Jumps involving mid-air adjustments, including the “left” button, were removed because “this would introduce noise to the training dataset,” according to the researchers.

After preprocessing and about 48 hours of training on a single RTX 4090 graphics card, the researchers used a standard convolution and denoising process. The model generated new video frames from a static starting game image and a text input, limited in this case to either "run" or "jump".

Why The Output Looks Like A Game, But Not A Finished One

MarioVGG can produce short sequences that resemble Mario running and jumping from a static starting point. The generated clips last only a few frames, but the final frame of one generated sequence can become the first frame of the next. That approach can create longer gameplay videos that the researchers describe as showing "coherent and consistent gameplay."

Still, the output is far from indistinguishable from the real NES game. For efficiency, the researchers downscale the frames from the NES' 256×240 resolution to 64×48. They also compress 35 frames of video time into seven generated frames placed at uniform intervals. The result is much rougher than the original game output.

Speed is another major barrier. The single RTX 4090 used by the researchers took six whole seconds to generate a six-frame video sequence. That represented just over half a second of video, even at an extremely limited frame rate.

The researchers acknowledge that the current rate is "not practical and friendly for interactive video games." They suggest that future optimizations in weight quantization, and perhaps more computing resources, could improve performance.

What MarioVGG Appears To Understand

The most interesting part of MarioVGG is not that it makes a perfect Mario clone. It does not. The important point is that the model appears to infer some game behavior from video and input data without being given explicit hard-coded rules.

The researchers write that the model was able to "learn the physics of the game purely from video frames in the training data without any explicit hard-coded rules." That includes behaviors such as Mario falling when he runs off the edge of a cliff with believable gravity. It also usually stops Mario's forward motion when he is next to an obstacle.

MarioVGG was mainly built around Mario's movement, but the researchers also found that it could hallucinate new obstacles as the imagined level scrolls forward. Those obstacles "are coherent with the graphical language of the game," according to the researchers. However, users cannot currently prompt the model to place a specific obstacle, such as asking for a pit in front of Mario and then making him jump over it.

The Glitches Show The Limits

MarioVGG also has the familiar weakness of probabilistic AI systems: it sometimes produces results that are not useful. At times, it ignores user input. The researchers write, "we observe that the input action text is not obeyed all the time."

Other failures are visual and more dramatic. Mario can land inside obstacles, run through obstacles and enemies, flash different colors, shrink or grow between frames, or vanish for multiple frames before returning.

One video shared by the researchers shows an especially strange failure: Mario falls through a bridge, becomes a Cheep-Cheep, flies back up through the bridges, and turns into Mario again. That kind of transformation may be entertaining to watch, but it also underlines the gap between a convincing visual prediction and a controllable game system.

The researchers believe that longer training on "more diverse gameplay data" could help address these problems. It could also move the system beyond the narrow pattern of running and jumping to the right.

For now, MarioVGG is best understood as a proof of concept. It is slow, glitchy, and limited. But it also suggests that even constrained training data and algorithms can begin to model the look, motion, and basic logic of a classic game from footage alone.

← Back to the wire

Read next