Vector-Quantized Image Modeling Using Vision Transformers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current image synthesis techniques face limitations in scalability and memory consumption due to the use of discrete latent variables, which restrict representation capabilities and are only applicable to small image resolutions, while text-to-image generation models struggle with autoregressive modeling and discrete tokens.

Innovation Solution

The proposed method employs a Vector-Quantized Image Modeling (VIM) approach using Vision Transformers (ViT) for vector quantization, improving codebook handling and architecture, enabling efficient image encoding and decoding, and scaling models for high-resolution image generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If discrete latent variables are used for image synthesis, then memory consumption is reduced, but representation capabilities are restricted and scalability is limited

Engineering Contradiction:
Improvememory consumptionVSAvoidrepresentation capabilities
Core Design Contradiction:
Quantity of substanceVSAdaptability or versatility

Solution Approach 1:

The patent changes the parameter of latent variable representation from discrete to continuous, enabling the model to maintain low memory consumption while significantly improving representation capabilities. This is achieved by replacing discrete codebooks with continuous vector embeddings that can capture nuanced variations in image data.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

Instead of quantizing continuous image data into discrete tokens (the conventional approach), the patent inverts the process by embedding discrete tokens into continuous vector spaces. This allows the model to work with continuous representations while maintaining the discrete structure's efficiency benefits.

Inventive Principle:
Principle #13The other way round (Inversion)

2Adaptability or versatility

If autoregressive modeling is applied to text-to-image generation, then universal interface with discrete tokens is achieved, but modeling efficiency decreases

Engineering Contradiction:
Improveuniversal interfaceVSAvoidmodeling efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent introduces continuous vector embeddings as an intermediary layer between discrete image tokens and the autoregressive language model. This mediator enables the LLM to process image data efficiently while maintaining the universal discrete token interface, resolving the conflict between adaptability and efficiency.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If image data is converted to discrete tokens, then computational efficiency is improved, but information loss increases

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidinformation loss
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent transitions from discrete token space to continuous vector space, adding dimensional richness to the representation. This dimensional change allows the model to preserve more information while maintaining computational efficiency through the structured embedding space.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS20240404238A1Vector-Quantized Image Modeling
Publication Date: 2024.12.05 GOOGLE LLC
  • US20240404238A1 patent drawing
  • US20240404238A1 patent drawing
  • US20240404238A1 patent drawing

AI summary

Systems and methods are provided for vector-quantized image modeling using vision transformers and improved codebook handling. In particular, the present disclosure provides a Vector-quantized Image Modeling (VIM) approach that involves pre-training a machine learning model (e.g., Transformer model) to predict rasterized image tokens autoregressively. The discrete image tokens can be encoded from a learned Vision-Transformer-based VQGAN (example implementations of which can be referred to as ViT-VQGAN). The present disclosure proposes multiple improvements over vanilla VQGAN from architecture to codebook learning, yielding better efficiency and reconstruction fidelity. The improved ViT-VQGAN further improves vector-quantized image modeling tasks, including unconditional image generation, conditioned image generation (e.g., class-conditioned image generation), and unsupervised representation learning.