doom

AI Simulates Classic DOOM

Imagine a world where you could play DOOM—yes, the iconic 1993 first-person shooter—powered not by a traditional game engine but by a neural network. Thanks to a groundbreaking new AI system called GameNGen, developed by researchers at Google Research, Google DeepMind, and Tel Aviv University, this is no longer a futuristic dream but a reality.

The Magic Behind GameNGen: Neural Networks as Game Engines

GameNGen is unlike any game engine we’ve seen before. Traditional engines, like those powering DOOM or modern games, rely on meticulously coded loops to gather player input, update the game state, and render graphics. These are complex systems requiring teams of developers to craft every detail. GameNGen flips this model on its head by using a diffusion model—a type of neural network—to generate the game in real-time.

At its core, GameNGen runs DOOM at over 20 frames per second on a single TPU (Tensor Processing Unit) chip. That’s impressive, but what’s more remarkable is the quality of the simulation. It achieves a Peak Signal-to-Noise Ratio (PSNR) of 29.4, a metric comparable to lossy JPEG compression. In layman’s terms, this means the simulated game looks incredibly close to the original, with human testers only slightly better than random chance at distinguishing it from actual gameplay clips.

How GameNGen Works: Training AI to Play and Simulate

The creation of GameNGen involved two major phases:

1.Training the AI to Play DOOM: The first step was to teach an AI agent to play DOOM. This involved recording gameplay sessions as the AI learned, creating a vast dataset of in-game actions and visual frames.

2.Building the Game Simulation: Next, this data was fed into a diffusion model—a type of AI known for generating images and videos. The model was trained to predict the next frame of the game based on a sequence of previous frames and the player’s actions. Essentially, it learns to “play” the game by generating what happens next, both visually and mechanically.

This isn’t just a simple visual trick. The AI manages complex game mechanics, such as tracking health and ammo, managing enemy behavior, and updating the game state in real time. The result is a game simulation that, while not perfect, is eerily close to the real thing.

Overcoming Challenges: Memory Limitations and Auto-Regressive Drift

Despite its impressive capabilities, GameNGen does have its limitations. The most significant is its “memory”—the model only retains about 3 seconds of gameplay history. This limitation can lead to situations where the AI forgets key game events that happened just moments earlier, resulting in some inconsistencies. For example, if you pick up a health pack, the system might forget about it after a few seconds, affecting the gameplay.

To combat this, the researchers employed a technique called noise augmentation during training. This involves adding varying levels of noise to the frames that the model sees during training, teaching it to correct minor errors as it predicts the next frame. This is crucial for maintaining visual and mechanical consistency over longer gameplay sessions.

A Glimpse into the Future: Neural Networks as the New Game Engines

GameNGen represents more than just a technical achievement; it’s a proof of concept for a new kind of game engine—one where games are not lines of code but weights in a neural network. This could revolutionize game development, making it more accessible and less time-consuming.

For example, imagine creating a game not by writing code but by describing it in plain language, with the neural network doing the rest. This could democratize game development, allowing anyone with a creative vision to bring their ideas to life without needing to know how to code.

What’s Next?

While GameNGen is currently limited to simulating DOOM, the researchers are optimistic about its broader applications. Future work could involve adapting the model to other games or even other types of interactive software. The team also plans to address the current limitations, such as improving the model’s memory and refining the game simulation’s accuracy over longer sessions.

In summary, GameNGen is a pioneering step towards a future where neural networks could redefine how we think about and create games. While it’s not yet ready to replace traditional game engines, it opens the door to new possibilities in AI-driven content creation. The day when we can create entire games by simply describing them to an AI might not be as far off as we think.

Unlock the Future of Business with AI

Dive into our immersive workshops and equip your team with the tools and knowledge to lead in the AI era.

Scroll to top