atlas

Research map / Image generation / Autoregressive and latent generation

An Image is Worth 32 Tokens for Reconstruction and Generation

NeurIPS 2024 · Image generation › Autoregressive and latent generation · approach: Generative latent space tooling · 18 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TiTok, a ViT-based 1D tokenizer that encodes a 256x256 image into 32 discrete latent tokens, trained in two stages with MaskGIT-VQGAN proxy codes, and used with MaskGIT for class-conditional ImageNet generation.

Problem

Standard VQ image tokenizers produce 2D latent grids tied to image patches, which limits exploitation of spatial redundancy and yields many tokens (256 to 1024), making generation slow and costly.

Approach

Replace the 2D latent grid with a 1D sequence of learnable latent tokens appended to patch embeddings in a ViT encoder, decoded by a ViT decoder fed with mask tokens; train in two stages, first regressing proxy codes from an off-the-shelf MaskGIT-VQGAN and then fine-tuning the decoder to pixels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace MaskGIT-VQGAN tokenizer with TiTok-L-32 while keeping MaskGIT-ViT and sampling steps the sameMaskGIT-ViT · ImageNet-1K 256×256gFID: 6.18 to 2.77Helped
use TiTok-S-128 instead of DiT-XL/2ImageNet generation · ImageNet-1K 256×256gFID: 2.27 vs. 1.97Helped
use TiTok-L-64 instead of DiT-XL/2ImageNet generation · ImageNet-1K 512×512gFID: 3.04 vs. 2.74Helped
use TiTok-B-128 instead of DiT-XL/2ImageNet generation · ImageNet-1K 512×512gFID: 3.04 vs. 2.13Helped
increase the codebook size (ablation)TiTok-L-32 · ImageNet-1K reconstructionrFID: 6.59 -> 5.85Helped
increase training duration from 100 to 200 epochs (ablation)TiTok-L-32 · ImageNet-1K reconstructionrFID: 5.85 -> 5.48Helped
fine-tune the decoder (ablation)TiTok-L-32 · ImageNet-1K reconstructionrFID: 5.48 -> 2.21Helped
use arccos rather than cosine masking schedule (ablation)TiTok-L-32 + MaskGIT · ImageNet-1K generationgFID: 5.17 -> 4.94Helped
use linear rather than cosine masking schedule (ablation)TiTok-L-32 + MaskGIT · ImageNet-1K generationgFID: 5.17 -> 4.95Helped
use square-root rather than cosine masking schedule (ablation)TiTok-L-32 + MaskGIT · ImageNet-1K generationgFID: 5.17 -> 5.63Hurt
replace 1D latent tokens with a 2D image-patch representation (ablation)TiTok-B-64 · ImageNet-1K reconstructionrFID: 5.15 -> 15.58Hurt
use proxy codes and two-stage training instead of Taming-VQGAN single-stage training (ablation)TiTok-B-64 · ImageNet-1K reconstructionrFID: 5.15 -> 1.70Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K

Benchmarks: ImageNet-1K 256x256 ImageNet-1K 512x512

Metrics: gFID rFID IS linear probing accuracy throughput (samples/s)

Baselines: MaskGIT-VQGAN VQGAN (Taming-Transformer) DiT-XL/2 LDM-4 MAGVIT-v2 RQ-VAE ViT-VQGAN UViT

Builds on: VQGAN MaskGIT ViT MAE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy