RenGen: Generating Images with as Many Tokens as the Scene Needs

Savya Khosla, Jay Mahajan, Akin Tuna Sakalli, Derek Hoiem, David Forsyth, Alex SchwingarXiv 2026

TL;DR

Why does a generative model spend the exact same compute drawing a lone balloon against a clear blue sky as it does rendering a bustling festival? Most modern image generators chop every canvas into a rigid, fixed grid of squares, paying a flat computational tax regardless of what is actually in the picture. RenGen replaces rigid grids with flexible "region tokens," allowing you to dial down your compute budget to generate simpler, yet still crisp and realistic, scenes up to $2.5\times$ faster.

Figure 1. RenGen’s generation cost follows image content. Top: Wall-clock time and TFLOPs per image for end-to-end generation at different token counts for RenGen. Green values give the speed- up over RAEv2, which always uses a fixed grid of 256 patch to- kens (dashed line). Bottom: 256×256 samples from a single Ren- Gen model. Each row uses the same class label, and each column uses the token count of the point above it, so fewer tokens yield simpler scenes at lower cost.

What Problem Does This Paper Address?

Standard latent diffusion models—the engines behind modern AI art—compress images into a fixed checkerboard of "patch tokens" (say, a $16\times16$ grid totaling 256 tokens). Because the grid is fixed, generating a minimalist icon requires the exact same wall-clock time and FLOPs as a crowded street scene.

Prior researchers tried to build "content-adaptive" tokenizers that vary token counts dynamically. However, when you starve those models of tokens, image quality plummets—things get blurry or artifact-ridden. The authors ask: Can we build a generator where fewer tokens yield simpler compositions (e.g., a close-up eagle instead of an eagle in a dense forest) without sacrificing photorealism?

Methods

Instead of square patches, RenGen operates on region tokens, where each token represents an arbitrary, organically shaped segment of an image. Because regions don't live on a neat grid, both the autoencoder (which compresses and reconstructs images) and the generator (a Diffusion Transformer, or DiT, which dreams up new tokens from noise) need clever spatial upgrades.

Figure 2. RenGen overview. (a) The region encoder partitions an image into N regions with Felzenszwalb–Huttenlocher (FH) segmen- tation and pools frozen DINOv3 patch features within each region into region tokens, which the decoder renders back into an image. (b) For generation, P random anchor points fix the region positions. A DiT denoises one region token per anchor point, using the anchor coordinates as 2D RoPE positions, and the shared decoder renders the generated tokens into an image.
  • Region Autoencoder (Standard + Novel): The authors take features from a frozen, pretrained vision backbone (DINOv3) and group them using classic Felzenszwalb–Huttenlocher (FH) graph-based segmentation. What's new: Simply pooling features inside a segment erases where that segment sits on the canvas. RenGen fixes this by injecting random Fourier positional embeddings into the patch features before pooling them via cross-attention. To render pixels back out, a grid of patch queries—armed with those exact same Fourier directions—cross-attends to the region tokens to pull the right visual details to the right spots.
  • Point-Anchored DiT (Novel): When generating a brand-new image from noise, there is no image to segment yet—so where do the regions go? Instead of training a separate, slow model to invent layouts, RenGen scatters $P$ random anchor points evenly across the blank canvas (using Lloyd's algorithm). During training, the canvas is carved into geometric Voronoi cells around these points to create target tokens. At inference, the DiT takes $P$ noisy tokens tagged with their anchor coordinates (via 2D Rotary Position Embeddings) and denoises both the visual content and exact shape/extent of each region around its anchor. Choosing $P$ at sampling time directly controls scene busyness and compute.

Datasets

All training and evaluation experiments are conducted on ImageNet ($256\times256$, with high-resolution scaling tests at $512\times512$). No new datasets are introduced, though the authors group the ImageNet validation set into four complexity buckets based on FH segment counts to test compute-versus-complexity scaling.

Key Insights and Ideas

  • Bake position into features, not separate codes: Giving each region token an explicit "mask code" helps reconstruction, but ruins generation—the DiT struggles to predict mask math precisely, causing layout glitches. Mixing Fourier positions directly into visual features before pooling lets content and location travel together seamlessly.
  • Autoencoders generalize to weird shapes: Even though RenGen's autoencoder is trained exclusively on color-based FH segments, it reconstructs images almost just as well when fed geometric Voronoi cells (0.332 vs. 0.320 rFID). This surprising flexibility is why random anchor points work at all.
  • Explicit layout generation is a trap: Conditioning a generator on real training layouts causes severe memorization, while training a two-stage "layout-then-content" pipeline eats up all your speed gains. Random point anchors give the DiT just enough spatial grounding for free.
  • Resolution-free token budgets: Doubling image resolution from $256\times256$ to $512\times512$ quadruples patch tokens (and spikes DiT attention cost by $16\times$). Because a $512\times512$ image has roughly the same number of semantic regions as a $256\times256$ one, RenGen's DiT generation cost stays completely flat across resolutions!

Key Results

On ImageNet $256\times256$, RenGen uses an average of 88 tokens per image ($2.9\times$ fewer than a 256-patch grid):

  • Generation Quality & Speed: Achieves a gFID of 1.34 (lower is better), beating all prior variable-token generators. Compared to the state-of-the-art patch-based RAEv2 (1.06 gFID), RenGen runs at $2.5\times$ lower latency (58ms vs. 146ms) and $2.6\times$ fewer TFLOPs (9.1 vs. 23.9).
  • Flat Quality Across Complexity: Across four scene-complexity buckets (averaging 46 to 134 tokens), RenGen's gFID stays rock-steady (~6.06 to 6.37) while generating simple scenes $2.4\times$ faster than busy ones. Meanwhile, a competing adaptive method (BudgetPix) degrades sharply from 11.1 to 22.8 gFID as tokens shrink.
Figure 5. RenGen adapts its compute to scene complexity with- out losing quality. gFID stays flat across four complexity buckets, so in low-resource settings RenGen can generate simple, realistic scenes 2.4× faster and with 2.5× less compute than complex ones. Samples of the same class (bottom; anchor points in white) grow busier as the token budget increases.
  • Reconstruction & Scaling: Reconstructs nearly on par with RAEv2 (0.32 vs. 0.30 rFID). At $512\times512$, a single RenGen model outperforms RAEv2's high-res setup (0.39 vs. 0.50 rFID) using nearly a third of the DiT compute (47.5 vs. 135.2 GFLOPs).

Limitations and Future Work

RenGen's pixel-level PSNR lags slightly behind tokenizers trained end-to-end purely for pixel reconstruction (22.23 vs. MAETok's 23.61), as its DINOv3 encoder remains frozen. Furthermore, experiments are currently limited to class-conditional ImageNet. Next, the authors aim to scale RenGen to text-to-image generation, improve training efficiency, unlock multi-aspect-ratio decoding from a single model, and harness region tokens for intuitive spatial editing—like dragging, resizing, or rotating individual objects on the canvas.

Summary updated

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{\times}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{\times}$ 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{\times}$ between simplest and busiest scenes, and its autoencoder reconstructs nearly as well as RAEv2 (rFID 0.32 vs. 0.30) with $2.9{\times}$ fewer tokens.
BibTeX
@misc{khosla2026rengen,
  author = {Savya Khosla and Jay Mahajan and Akin Tuna Sakalli and Derek Hoiem and David Forsyth and Alex Schwing},
  title = {{RenGen: Generating Images with as Many Tokens as the Scene Needs}},
  year = {2026},
  eprint = {2611.33109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33109},
}
Figure