atlas

Research map / Image generation / Autoregressive and latent generation

FlexTok: Resampling Images into 1D Token Sequences of Flexible Length

ICML 2025 · Image generation › Autoregressive and latent generation · approach: Generative latent space tooling · 0 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.

Introduces FlexTok, a 1D image tokenizer that resamples 2D images into ordered, variable-length (1 to 256) discrete token sequences using nested dropout, causal register masks, and a rectified flow decoder with REPA, and shows AR generation on ImageNet and text-to-image with coarse-to-fine token use.

Problem

Fixed-length 2D grid and 1D tokenizers encode every image into the same number of tokens regardless of content complexity, so conditional AR generators must always produce the full sequence even for simple conditions.

Approach

Resample image VAE latents into 1D register tokens with causal attention among registers and nested dropout so tokens are ordered coarse-to-fine, and decode any prefix with a rectified flow decoder conditioned on the quantized tokens plus REPA alignment to DINOv2-L features.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the 2D grid with 1D register tokenization (ablation)FlexTok d12-d12 with a rectified flow decoder · ImageNet-1k validationrFID: 32.85 -> 23.28Helped
Replace MSE decoder loss with rectified flow (ablation)2D grid tokenizer · ImageNet-1k validationgFID: 35.93 -> 23.29Helped
Replace MSE decoder loss with rectified flow (ablation)2D grid tokenizer · ImageNet-1k validationMAE: 0.059 -> 0.083Hurt
Add REPA loss (ablation)FlexTok d12-d12 with 1D register tokens and rectified flow · ImageNet-1k validationgFID: 22.16 -> 7.40Helped
Use logit-normal rather than mode(0.25) noise (ablation)FlexTok d12-d12 with 1D register tokens and rectified flow · ImageNet-1k validationrFID: 23.28 -> 19.03Helped
Add a causal attention mask to register tokens (ablation)FlexTok d12-d12 with REPA · ImageNet-1k validation, 256 tokensgFID: 7.40 -> 5.04Helped
Add uniform nested dropout (ablation)FlexTok d12-d12 with REPA and causal register mask · ImageNet-1k validation, 256 tokensrFID: 3.28 -> 4.01Hurt
Use Pow2 rather than uniform nested dropout (ablation)FlexTok d12-d12 with REPA and causal register mask · ImageNet-1k validationrFID: 19.97 -> 10.39 (4 tokens); 4.01 -> 7.22 (256 tokens)Mixed
Use Unifpow2 rather than uniform nested dropout (ablation)FlexTok d12-d12 with REPA and causal register mask · ImageNet-1k validationrFID: 19.97 -> 30.17 (4 tokens); 4.01 -> 3.52 (256 tokens)Mixed
Increase VAE latent channels from 4 to 16 (ablation)SDXL VAE architecture · COCO-30k validationrFID: 1.53 -> 0.35Helped
Generate more tokensFlexTok class-conditional autoregressive generation · ImageNet-1kDINOv2-L classification accuracyHelped
Generate more tokensFlexTok text-conditional autoregressive generation · COCO 30k validationCLIPScoreHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k DFN-2B COCO 30k

Benchmarks: ImageNet-1k COCO 30k

Metrics: rFID gFID MAE DreamSim CLIPScore DINOv2-L top-1 accuracy linear probing accuracy

Baselines: TiTok-L TiTok-B TiTok-S LlamaGen Open MAGVIT-v2 MaskGIT VQ-GAN Taming VQ-GAN ElasticTok ALIT 2D grid tokenizer with flow decoder

Builds on: TiTok LlamaGen REPA nested dropout SDXL VAE

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