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.
Figures & tables
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 tokens (dashed line). Bottom: 256×256 samples from a single RenGen 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.
Figure 2: RenGen overview. (a) The region encoder partitions an image into N regions with Felzenszwalb–Huttenlocher (FH) segmentation 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.
Figure 3: Image complexity varies, but patch tokenizers spend the same budget on every image. Top: ImageNet images of increasing complexity, overlaid with the 16×16 patch grid of patch-based latent diffusion models and with their region partitions. The simplest of the four scenes has only 22 regions, while the busiest has 130. Bottom: Regions per image across ImageNet validation set. The mean of 88 is 2.9× fewer than the 256 tokens of a patch grid (dashed line).
Figure 4: Constructing DiT targets. During training, we place P anchor points on the image canvas, partition the canvas into their Voronoi cells, compute each cell’s coverage mask on the patch grid, and encode the image with the region encoder to obtain one target region token per anchor.
Figure 5: RenGen adapts its compute to scene complexity without 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.
Figure 6: RenGen sets a new quality–compute trade-off. Left: gFID versus total TFLOPs per image on ImageNet 256×256 . RenGen lies below the Pareto frontier of prior methods (dashed). Right: The source of this gain. At matched model size, RenGen generates 2.9× fewer tokens than RAEv2, which translates directly into 2.6× fewer TFLOPs and 2.5× less wall-clock time per image.
Figure 7: RenGen reconstructs fine detail as faithfully as RAEv2 with far fewer tokens. Each tile shows its token count; RenGen’s follows image complexity, from 31 tokens for the hairpin on a plain background to 103 for the crowded scene.
Region tokens
Regions
Tokens
rFID ↓
gFID ↓
RAEv2 (for reference)
n/a
256
0.30
1.06
REN, frozen [ 21 ]
Learned
77
0.86
–
REN, fine-tuned [ 21 ]
Learned
77→185∗
0.47
–
Pooling features without position
FH
88
0.51
–
Explicit mask encoding
FH
88
0.32
3.10
Pooling patch features with position
FH
88
0.32
1.34
Table 1: Adding positional embeddings to patch features before pooling them into region tokens gives the best reconstruction and generation. REN tokens reconstruct poorly because their regions overlap and their features encode little position. Fine-tuning REN makes the number of tokens grow during training ( ∗ mean token count at the start → end of training). Pooling patch features within fixed FH regions keeps the token count stable, but the tokens still encode little position. Adding an explicit mask code to each token improves reconstruction but hurts generation, because the DiT must generate these codes precisely.
Spatial input at sampling
Training regions
Sampling time/img (ms)
gFID ↓
none (unordered set)
FH
57.3
6.32
FH layout of a train image (memorized)
FH
57.9
1.02
FH layout of a val image
FH
58.0
3.60
layout generated by a separate DiT
FH
128.0
2.47
layout generated jointly
FH
135.9
2.29
random anchor points
SLIC
57.9
1.36
Table 2: Randomly fixing region positions with anchor points enables strong generation at low cost. Without any spatial prior, the DiT trains poorly. Conditioning on real layouts separately leads to memorization and requires real images at sampling time, while generating layouts roughly doubles sampling time and still degrades quality. Random anchor points avoid both and outperform held-out real layouts with a single DiT. At sampling, the DiT receives only the points; the training regions determine how the targets are partitioned around them. Sampling time is measured per image at batch size 64 on one NVIDIA GH200.
Method
Content adaptive
Controllable complexity
Frozen enc.
Reconstruction
Generation
rFID ↓
PSNR ↑
gFID ↓
IS ↑
Compact fixed-length tokenizers
TiTok [ 46 ]
✗
✗
✗
1.71
17.73
1.97
281.8
MAETok [ 6 ]
✗
✗
✗
0.48
23.61
1.67
311.2
Variable-length tokenizers
FlexTok [ 1 ]
✗
✓
✗
1.20
15.90
1.89
275.6
Table 3: RenGen achieves the best rFID and gFID among methods that vary their token count. It also reconstructs and generates nearly as well as RAEv2 with 2.6× fewer TFLOPs and 2.5× less wall-clock time (Fig. 6 ). The checkmark columns indicate whether a method’s token count varies with image content ( content adaptive ), whether a user can choose the token budget of a single model at inference ( controllable complexity ), and whether its latents come from a frozen pretrained representation encoder ( frozen enc. ). § Included as the closest prior generator that adapts its compute to image content; it operates in pixel space, so reconstruction metrics do not apply.
Method
Encoded resolution
Decoded resolution
Tokens
DiT GFLOPs ↓
rFID ↓
RAEv2 (for reference)
256
256
256
135.2
0.30
RAEv2
256
512
256
135.2
0.50
RenGen (for reference)
256
256
88
47.5
0.32
RenGen
256
512
88
47.5
0.48
RenGen
512
512
88
47.5
0.39
Table 4: RenGen scales to higher resolutions more efficiently than RAEv2. At 512×512 , RenGen reconstructs slightly better than RAEv2 while using about a third of the tokens and DiT compute. Because its token count depends on image content rather than resolution, RenGen can also encode the full 512×512 image into the same 88 tokens, improving reconstruction further at no extra cost. A single RenGen model handles both 256×256 and 512×512 inputs here.
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Figure A1 : Generating an image and then editing it with RenGen takes less time than a single RAEv2 generation. Wall-clock time per image (batch 64, bf16, one GH200). Each bar stacks a RenGen generation (light, 50 steps, 88 anchor points) and one control (dark). Moving and transplanting run 10 denoising steps, blending only encodes and decodes, and inpainting regenerates the masked tokens over 50 steps. The dashed line marks one RAEv2 generation (256 tokens, 50 steps, official guidance).
Figure A2 : Users can preview layouts cheaply with few tokens and then add anchor points to refine the chosen one. The left column shows images generated with only 32 tokens, cheap enough to sample many candidate layouts. Adding anchor points to a chosen image keeps its layout and adds fine detail.
Figure A3 : Swapping region tokens between images lets users transplant objects, training-free. The tokens inside the outlined region of the destination are replaced with the source’s tokens at those points. The transplanted object adopts the destination’s lighting, shadows, and surroundings.
Figure A4 : Moving the anchor points lets users reposition the scene, training-free. Each panel’s center shows a generated image. Shifting its anchor points along the arrow moves the scene accordingly, and RenGen fills in the uncovered border without masks or inpainting.
Figure A5 : Moving the anchor points lets users reposition content continuously, training-free. Each row shifts the anchor points of the outlined center image by 5 to 20% of the image width, horizontally (top) or vertically (bottom), using the same noise for every offset. Even a 5% shift (12.8 px), smaller than one patch, moves the content smoothly.
Figure A6 : Inpainting replaces any region of a real image with an object of a chosen class, training-free. Tokens in the masked cells (gray) are regenerated with the new class while all others stay fixed. The inserted content matches the scene’s scale, lighting, and depth of field.
Figure A7 : Interpolating region tokens blends two objects into plausible hybrids rather than cross-fades. Tokens inside the destination object ( α=0 ) are interpolated toward those of the aligned source image ( α=1 , right) and decoded directly. Each hybrid keeps the destination’s pose, lighting, and background.
Setting
Tokens
rFID ↓
PSNR ↑
SSIM ↑
Scale k ( σ=0.8 , m=32 )
k= 25
158.4
0.328
21.44
0.604
k= 50
124.0
0.313
21.88
0.609
k= 100
88.3
0.321
22.23
0.609
k= 200
56.9
0.390
21.36
0.590
k= 400
33.6
0.774
19.05
0.543
Appendix
Table B1: Reconstruction is robust to the FH parameters, so one autoencoder can change its token budget at inference without retraining. rFID stays within 0.31–0.34 from 74 to 158 tokens per image, and degrades only once regions become coarse ( k≥200 ). The autoencoder is trained with k=100 , σ=0.8 , m=32 (shaded), and we vary one parameter at a time at inference. Results on ImageNet-val ( 256×256 ). Tokens is the mean number of regions per image.
Bucket
Real region count
Generated region count
In range
Q1 (1–61)
45.6
45.9 ±15.6
85%
Q2 (62–84)
73.3
73.3 ±14.5
58%
Q3 (85–109)
96.7
94.3 ±16.5
54%
Q4 (110–255)
133.6
122.8 ±21.4
72%
Appendix
Table B2: The complexity of generated images matches that of real images. We report the mean region count of real and generated images (std as subscript) and the fraction of generated images whose region count falls inside the bucket’s range (In range).
Discrete visual tokens encode images for reconstruction and serve as training targets for autoregressive image generators. Vector-quantized tokenizers typically assign each encoder feature its nearest code independently. The decoder uses these codes jointly, so a sequence of individually nearest codes can reconstruct an image less faithfully than an alternative assignment. A local model of the reconstruction loss yields a closest-vector problem with a decoder-dependent target and metric. Reconstruction-only search improves PSNR across the frozen tokenizers we test. Different code sequences can achieve similar reconstruction quality, leaving room to favour more predictable ones. We introduce RecaP (Reconstruction and Predictability), which selects codes for a frozen tokenizer by balancing how faithfully they reconstruct the image with how likely their sequence is under a pretrained autoregressive prior. On ImageNet, LlamaGen GPT-B trained on RecaP tokens achieves lower early-checkpoint FID against training images than GPT-B trained on nearest-neighbour tokens. The difference is smaller against held-out images. On an ImageNet subset, the prior improves generation at comparable reconstruction FID. Our code is available at: https://github.com/gmum/recap
Piotr Kubaty, Jacek Tabor, Łukasz Struski
Faculty of Mathematics and Computer Science, Jagiellonian University, Kraków, Poland · Doctoral School of Exact and Natural Sciences, Jagiellonian University, Kraków, Poland · Centre for Credible Artificial Intelligence, Warsaw University of Technology, Poland
We introduce an efficient, resolution-agnostic autoregressive (AR) image synthesis approach that generalizes to arbitrary resolutions and aspect ratios, narrowing the gap to diffusion models at scale. At its core is VibeToken, a novel resolution-agnostic 1D Transformer-based image tokenizer that encodes images into a dynamic, user-controllable sequence of 32-256 tokens, achieving a state-of-the-art efficiency and performance trade-off. Building on VibeToken, we present VibeToken-Gen, a class-conditioned AR generator with out-of-the-box support for arbitrary resolutions while requiring significantly fewer compute resources. Notably, VibeToken-Gen synthesizes 1024x1024 images using only 64 tokens and achieves 3.94 gFID; by comparison, a diffusion-based state-of-the-art alternative requires 1,024 tokens and attains 5.87 gFID. In contrast to fixed-resolution AR models such as LlamaGen -- whose inference FLOPs grow quadratically with resolution (11T FLOPs at 1024x1024) -- VibeToken-Gen maintains a constant 179G FLOPs (63.4x efficient) independent of resolution. We hope VibeToken can help unlock the wide adoption of AR visual generative models in production use cases.
Maitreya Patel, Jingtao Li, Weiming Zhuang +2
Arizona State University · SonyAI · 3Work partially done while at SonyAI. Maitreya is now at Adobe.
Image tokenizers convert pixels into compact latent sequences for efficient generative modeling. Most approaches arrange latents on a downsampled two-dimensional grid, tying sequence length to image resolution. We compare two variable-length strategies: computationally efficient patch-derived tokens, which inherit explicit spatial organization, and more demanding register tokens, which have no predefined spatial layout. Our reconstruction results reveal that patch-derived tokens perform substantially better under extreme compression, whereas register tokens achieve slightly better reconstruction quality at intermediate budgets. At high token budgets, both approaches achieve similar reconstruction quality. For downstream generative tasks, register tokens outperform patch-derived tokens. Adding representation alignment with external pretrained visual encoders substantially improves the generative performance of patch-derived tokens, allowing them to match or outperform register tokens depending on the token budget. We further find that both approaches learn spatially localized representations. Patch-derived tokens largely retain their explicitly imposed spatial organization, while register tokens develop an implicit two-dimensional spatial structure despite having no predefined layout. Representation alignment reduces this spatial organizational constraint, enabling individual tokens to exert a stronger non-local influence.
Philipp Schenkel, Tobias Schürmann, Omer Sahin Tas
FZI Research Center for Information Technology · Karlsruhe Institute of Technology