Zephyrnet Logo

Bad news game developers, Google Genie is after your jobs

Date:

Get ready to step into a world of pure imagination, because Google Genie has arrived to make your dreams a virtual reality!

Last week, OpenAI mesmerized all of us with its advanced video-generation tool, Sora AI, and now Google’s groundbreaking AI model transforms simple images into fully playable virtual environments.

Yes, you can now craft an entire 2D platformer game with a flick of your wrist (or a touch of your keyboard, at least).

Tim Rocktäschel, Open-Endedness Team Leader at Google Deep Mind, has announced the birth of Google Genie on X with the following words:

What is Google Genie?

Traditional game design often requires complex coding skills. With Google Genie, the technical barriers are significantly lowered. The AI handles the intricate processes of transforming your idea into a playable virtual environment, letting you focus on the pure joy of creation.

Google Genie is at the forefront of AI technology, classified as a “foundation world model“.

This means it has been trained on a massive dataset of internet videos, particularly those showcasing gameplay. Through this training, Genie develops a deep understanding of how environments function and how players typically interact with them.

Think of Google Genie as your personal game development assistant. All you need to do is provide a starting point and this could be:

  • an image
  • a written description
  • a simple hand-drawn sketch

Google Genie then takes your input and uses its creative power to build a unique, fully playable virtual space.

The real magic here is that Google Genie learns to create controllable virtual worlds without specific gameplay instructions. It analyzes videos to understand the basic rules of environments and what players can interact with. Remarkably, this allows for consistent control schemes even across totally new, AI-generated worlds.

What is Google Genie and how to use it
Using complex algorithms, Google Genie transforms static images into playable games (Image credit)

The magic of Google DeepMind

Google DeepMind manages to shock us with almost everything it does and Google Genie is no exception.

Google Genie’s brain is built on a special type of transformer called a spatiotemporal (ST) transformer. Unlike regular transformers designed for text, ST transformers are specifically tuned to understand videos. They pay attention to what’s happening within each individual frame (spatial attention) and also how things change across multiple frames over time (temporal attention). This makes them much better at handling the complex patterns found in moving images.

Videos are made up of a ton of pixels, which can be a lot for a model to handle. Genie uses a video tokenizer to squash those pixel-filled frames down into smaller, easier-to-process chunks called tokens. Think of it like translating a whole movie into a series of key symbols. This simplification makes the whole video generation process smoother and faster.

The LAM is like a detective within Google Genie. It watches videos and tries to figure out the unspoken actions happening between the frames. This is important because if you want to control how a generated video plays out, you need to understand the actions that drive it. Since videos from the internet don’t come with action labels, the LAM has to learn to figure these things out on its own.

The dynamics model is the heart of Google Genie’s video-making power. It takes the video tokens and the figured-out actions from the LAM and uses them to predict what the next frame of the video should look like. It’s like having a crystal ball that can show you the next step in a movie based on what’s happened so far and the action you want to take.

VQ-VAE is a fancy technique that helps Google Genie organize information. It’s kind of like giving both the video tokenizer and the LAM a special codebook to translate things into smaller, more manageable pieces. This makes learning and representing complex patterns in videos a lot more efficient.

What is Google Genie and how to use it
The Dynamics Model used in Google Genie predicts and creates the next frame of video, keeping gameplay going (Image credit)

Here is a summary of the Google Genie’s workflow:

  1. Latent action inference:
    1. Encoder: Takes in a video sequence. It generates continuous representations that relate to the actions occurring between frames
    2. Decoder: This component exists only for training. It predicts the actual next frame using previous frames and the latent actions produced by the encoder. This helps train the LAM to generate meaningful action representations
    3. VQ-VAE: The predicted latent actions are quantized into a small set of discrete codes. This ensures a limited action vocabulary, making human control during the generation process easier
  2. Video tokenization:
    1. ST-Transformer Based Video Tokenizer (ST-ViViT): Incorporates both spatial and temporal information during the tokenization phase. This improves video generation quality compared to spatial-only tokenizers
  3. Dynamics modeling:
    1. MaskGIT Transformer: Genie uses a decoder-only variant of the MaskGIT architecture
    2. Input: At each step, it receives both the previous video tokens and the corresponding latent action
    3. Output: Predicts the tokens representing the next frame
    4. Training: Trained with a cross-entropy loss to align the predicted tokens with the real tokens from the video. Masking is used at training time to improve robustness
  4. Inference:
    1. Initialization: The user provides an initial image frame, which is tokenized
    2. Action Selection: The user chooses a desired action from the discrete vocabulary learned during the LAM phase
    3. Prediction: The dynamics model generates the next frame’s tokens based on the initial frame tokens and the chosen action
    4. Decoding: The video tokenizer’s decoder converts the predicted tokens back into a video frame
    5. Autoregression: The process repeats, with the newly generated frame and a new user-specified action becoming the input for the next prediction

Want to learn more? Here is Google Genie’s research paper.

What is Google Genie and how to use it
Google Genie hints at a future where sharing your custom game is as effortless as sharing a picture (Image credit)

How to use Google Genie

While Google Genie isn’t yet available for public use, you can find more info and fascinating demos on the official website. And keep an eye out: This technology has the potential to fundamentally change how we create and experience games!

Building the future of gaming

While still in its early stages, Google Genie showcases the astonishing power of AI-driven creativity. It blurs the line between our imagined worlds and the ones we play in, hinting at a future where sharing your game is as easy as sharing a photo.

However, there are challenges to overcome. Currently, Genie excels at 2D platformers, but scaling to complex 3D worlds remains difficult.

Additionally, the generated games have relatively simple controls; future research will likely focus on finer control and complex mechanics.

As a generative model, Genie can be surprising, for better or worse – finding ways to guide the generation process towards the creator’s intent is an area of active research.


Featured image credit: Oleg Gamulinskii/Pixabay.

spot_img

Latest Intelligence

spot_img