Nvidia Recreates Pac-Man Using AI

Pacman generated via GameGAN
(Image credit: Nvidia)

It's apparently the 40th anniversary of Pac-Man, and to celebrate Nvidia AI researchers cooked up a new tool called GameGAN and applied it to Pac-Man. The result: Without writing an engine or any code, the tool recreated Pac-Man and all of its rules with just a few days of training. But let's rewind and explain why this is cool and interesting.

GAN stands for generative adversarial network, basically two machine learning algorithms where one is trained to generate data that fits a model and the other is trained to determine whether the data is 'real' or not. GANs have been used in a variety of ways and have become increasingly popular in the machine learning world, and while Pac-Man is a relatively simplistic game by today's standards, the approach Nvidia used is applicable to more complex gaming environments and other real world scenarios. 

Jarred Walton
Senior Editor

Jarred Walton is a senior editor at Tom's Hardware focusing on everything GPU. He has been working as a tech journalist since 2004, writing for AnandTech, Maximum PC, and PC Gamer. From the first S3 Virge '3D decelerators' to today's GPUs, Jarred keeps up with all the latest graphics trends and is the one to ask about game performance.

  • AnimeMania
    I wonder what the file size difference is between a Human Generated Pac-Man game and an AI Generated Pac-Man game?
    Reply
  • bit_user
    AnimeMania said:
    I wonder what the file size difference is between a Human Generated Pac-Man game and an AI Generated Pac-Man game?
    My guess is somewhere in the range of thousands to millions of time the size.

    Deep neural networks can be very large, while the original Pac Man game fit in only 16 KB of ROM for all the maps, sounds, characters, and game logic.

    Moreover, Pac Man ran on a 3 MHz 16-bit CPU, while I'm sure Nvidia's version requires a GPU millions of times faster.

    https://en.wikipedia.org/wiki/Namco_Pac-Man
    Reply
  • DotNetMaster777
    Pac Man is nice game but generated game is with too low resolution !!
    Reply
  • bit_user
    DotNetMaster777 said:
    Pac Man is nice game but generated game is with too low resolution !!
    Their point isn't that it's good, but rather that it's possible.

    You could think of it a bit like people who overclock CPUs using LN2 or who build dragsters that reach over 300 MPH in a quarter mile - they don't do it because it's a viable way to operate a computer or build a street car, but just to see how far they can push the technology.

    Nvidia is simply showing how deep learning can tackle ever more problems than it was originally conceived to be suited for. It's a little bit like a solution that's searching for problems, but worthwhile if they pioneer new techniques in the process. Hopefully, others will eventually employ these same techniques to do something a lot more useful.
    Reply