RenGen: Generating images with as many tokens
as the scene needs

University of Illinois Urbana-Champaign

Fewer tokens → simpler scenes, lower cost

Abstract

We present RenGen, a latent diffusion model that generates simple scenes from a few tokens and busy scenes from many, saving time and compute on simple scenes without losing realism. Most latent generators represent every image as a fixed grid of patch tokens, so a simple image costs as much to generate as a complex one. Prior methods that vary the token count through content-adaptive tokenization lose image quality as the count shrinks. RenGen instead trades scene complexity, rather than image quality, for fewer tokens. It does so by generating in the latent space of a pretrained region encoder, where each token represents one region of the image, and a decoder renders these region tokens back into pixels. Unlike patch tokens, region tokens cover areas of varying shape and position, so each token must capture both what its region contains and where it lies on the image canvas. We encode this spatial extent by adding positional embeddings to the encoder features before pooling, and we generate it by anchoring each token to a single randomly sampled point, from which the generator infers the region’s shape, size, and content. At sampling time, the number of anchor points sets the trade-off between scene complexity and compute. On ImageNet 256×256, RenGen reaches a gFID of 1.34 with 88 tokens per image on average, the best among methods that vary their token count. It approaches the quality of RAEv2, a state-of-the-art patch-based model, at 2.5× lower latency, advancing the Pareto frontier of generation quality versus compute. RenGen’s gFID stays flat across scene complexity while latency varies by 2.4× between simplest and busiest scenes, and its autoencoder reconstructs nearly as well as RAEv2 (rFID 0.32 vs. 0.30) with 2.9× fewer tokens.

Interactive demos

Detail on demand

Add tokens to a simple image and re-denoise: the scene stays, detail appears.

Move

Shift every anchor point and re-denoise 10 steps. The model fills what comes into view.

Transplant

Replace only the tokens inside the outlined region with another photo's object.

originaltransplanted
from
to

Blend

Mix corresponding tokens inside the object: halfway is one hybrid object, not a double exposure.

Inpaint

Regenerate some region tokens under a new class. The object fits the scene's light and perspective.

Citation

@article{khosla2026rengen,
  title={RenGen: Generating Images with as Many Tokens as the Scene Needs},
  author={Khosla, Savya and Mahajan, Jay and Sakalli, Akin Tuna and Hoiem, Derek and Forsyth, David and Schwing, Alex},
  year={2026}
}