Nvidia reveals today that it has created a neural network that fully simulates the classic Pac-Man on the event of the Namco coin-op’s 40th anniversary. On the face of it, this might not sound like a big deal – Pac-Man is a relatively straightforward game that takes place in a simplistic, static environment, so using an AI to study its rules and perfectly replicate its game logic doesn’t sound outlandishly complex. Except that isn’t what’s happening. There is no engine here, no game logic and no traditional rasteriser used in the AI recreation of the game. Instead, everything generated at a per-pixel level is coming directly from the neural network, based on what it ‘knows’ about how Pac-Man works. This rendition of Pac-Man essentially plays out as an AI ‘thinks’ it should – and remarkably, it works.

Nvidia is working on something that it refers to as GameGAN (GAN meaning ‘generative adversarial network’). It works by using two neural networks working against one another – a generator and a discriminator. It’s the same kind of AI that has been used extensively for a number of applications, including the creation of AI-generated high resolution texture packs for retro games.

In the case of Nvidia’s GameGAN, the AI studied 50,000 games of Pac-Man before ‘learning’ how the game works generally, and how user input affects what happens on-screen. “This is the first research to emulate a game engine using GAN-based neural networks,” saysSeung-Wook Kim, an NVIDIA researcher and lead author on the project. “We wanted to see whether the AI could learn the rules of an environment just by looking at the screenplay of an agent moving through the game. And it did.”

Rather than having a human player indulge in 50,000 rounds of Pac-Man, Nvidia trained up a second AI to play through the game instead, giving GameGAN the data it needed to create its own AI rendition. This did present some issues, whoever. The player AI quickly learned the rules of Pac-Man and was consistently able to beat the game without dying, meaning that GameGAN was lacking some crucial data points – an aspect that did need to be corrected. However, at the end of the process, GameGAN possessed a neural network that knew how Pac-Man operated, what it looked like, how it responded to user inputs and how the various ghosts exhibited different behaviour patterns – all of which it could replicate in its own version.

Special Offer

Claim your exclusive bonus now! Click below to continue.