AdaGen: Learning Adaptive Policy for Image Synthesis
Organizations: Department of Automation, BNRist, Tsinghua University, Beijing, China. · Taobao & Tmall Group of Alibaba.
Abstract
Recent advances in image synthesis have been propelled by powerful generative models, such as Masked Generative Transformers (MaskGIT), autoregressive models, diffusion models, and rectified flow models. A common principle behind their success is the decomposition of synthesis into multiple steps. However, this introduces a proliferation of step-specific parameters (e.g., noise level or temperature at each step). Existing approaches typically rely on manually-designed rules to manage this complexity, demanding expert knowledge and trial-and-error. Furthermore, these static schedules lack the flexibility to adapt to the unique characteristics of each sample, yielding sub-optimal performance. To address this issue, we present AdaGen, a general, learnable, and sample-adaptive framework for scheduling the iterative generation process. Specifically, we formulate the scheduling problem as a Markov Decision Process, where a lightweight policy network determines suitable parameters given the current generation state, and can be trained through reinforcement learning. Importantly, we demonstrate that simple reward designs, such as FID or pre-trained reward models, can be easily hacked and may not reliably guarantee the desired quality or diversity of generated samples. Therefore, we propose an adversarial reward design to guide the training of the policy networks. Finally, we introduce an inference-time refinement strategy and a controllable fidelity-diversity trade-off mechanism to further enhance the performance and flexibility of AdaGen. Comprehensive experiments on four generative paradigms validate the superiority of AdaGen. For example, AdaGen achieves better performance on DiT-XL with 3 times lower inference cost and improves the FID of VAR from 1.92 to 1.59 with negligible computational overhead.
Figures & tables
| Type | Generation Policy | Range | Scheduling Rules | |
| MaskGIT | Mask ratio, | [ 1 , 2 ] , [ 3 , 4 ] | ||
| Sampling temperature, | [ 1 , 2 ] , [ 4 ] | |||
| Masking temperature, | [ 1 , 2 ] | |||
| Guidance scale, | [ 1 , 2 ] , [ 4 ] | |||
| Autoregressive | Sampling temperature, | [ 5 , 6 ] | ||
| Guidance scale, | [ 6 ] , [ 5 ] | |||
| Type | State | Action | Transition Distribution | Reward |
| MaskGIT | ||||
| Autoregressive | ||||
| Diffusion (ODE) | ||||
| Rectified Flow |
| Model | Type | Policy | ||||
| MaskGIT-S | Mask. | Baseline | 7.65 | 5.01 | - | 4.88 |
| AdaGen | 4.54 (-3.11) | 3.71 (-1.30) | - | 3.36 (-1.52) | ||
| MaskGIT-L | Mask. | Baseline | 6.91 | 4.65 | - | 3.79 |
| AdaGen | 3.63 (-3.28) | 2.86 (-1.79) | - | 2.41 (-1.38) | ||
| DiT-XL | Diff. | Baseline | 9.71 | 5.18 | - | 3.31 |
| AdaGen | 5.31 (-4.40) | 2.82 (-2.36) | - | 2.19 (-1.12) |
| Method | Type | Params | Steps | TFLOPs | FID-50K | IS |
| VQVAE-2 [ 65 ] ( NeurIPS’19 ) | AR | 13.5B | 5120 | - | 31.1 | 45 |
| VQGAN [ 19 ] ( CVPR’21 ) | AR | 1.4B | 256 | - | 15.78 | 78.3 |
| ADM-G [ 9 ] ( NeurIPS’21 ) | Diff. | 554M | 250 | 334.0 | 4.59 | 186.7 |
| ADM-G, ADM-U [ 9 ] ( NeurIPS’21 ) | Diff. | 608M | 250 | 239.5 | 3.94 | 215.8 |
| LDM [ 21 ] ( CVPR’22 ) | Diff. | 400M | 250 | 52.3 | 3.60 | 247.7 |
| VQ-Diffusion [ 66 ] ( CVPR’22 ) | Diff. | 554M | 100 | 12.4 | 11.89 | - |
| Method | Params | Steps | TFLOPs | FID-50K |
| VQGAN [ 19 ] | 227M | 1024 | - | 26.52 |
| ADM-G [ 9 ] | 559M | 250 | 579.0 | 7.72 |
| U-ViT-H [ 10 ] | 501M | 50 | 14.6 | 4.05 |
| DiT-XL [ 11 ] | 675M | 250 | 60.0 | 3.04 |
| RIN [ 70 ] | 320M | 1000 | 415.0 | 3.95 |
| Simple-Diffusion [ 69 ] | 2B | 512 | - | 3.02 |
| Method | Params | Steps | TFLOPs | FID-30K |
| VQ-Diffusion [ 66 ] | 370M | 100 | 206.7 | 13.86 |
| Frido [ 80 ] | 512M | 200 | - | 8.97 |
| Make-A-Scene [ 81 ] | 4B | 1536 | - | 7.55 |
| U-Net [ 10 ] | 53M | 50 | - | 7.32 |
| MaskGIT-S [ 1 ] | 45M | 16 | 0.6 | 5.78 |
| U-ViT [ 10 ] | 58M | 16 | 0.9 | 5.91 |
| Method | Params | Steps | TFLOPs | FID-30K |
| VQGAN [ 19 ] | 600M | 256 | 12.6 | 28.86 |
| ImageBART [ 82 ] | 2.8B | 256 | 7.4 | 22.61 |
| LDM-4 [ 21 ] | 645M | 50 | - | 17.01 |
| Draft-and-revise [ 68 ] | 654M | 72 | - | 9.65 |
| Muse [ 2 ] | 500M | 8 | 2.8 | 7.67 |
| 16 | 5.4 | 7.01 |
| Method | Params | Steps | TFLOPs | FID-30K |
| CogView [ 35 ] | 4B | 1088 | 182.2 | 27.1 |
| LAFITE [ 83 ] | 0.2B | - | - | 26.94 |
| CogView 2 [ 84 ] | 6B | 1088 | 117.0 | 24.00 |
| DALL-E [ 19 ] | 12B | 256 | 309.8 | 17.89 |
| GLIDE [ 85 ] | 5B | 250 | 77.0 | 12.24 |
| Make-A-Scene [ 81 ] | 4B | 1536 | - | 11.84 |
| Repeated Sampling? | Lookahead Sampling? | FID-50K | |
| MaskGIT-L | ✗ | ✗ | 2.28 |
| ✓ | ✗ | 2.07 | |
| ✓ | ✓ | 1.94 | |
| DiT-XL | ✗ | ✗ | 2.19 |
| ✓ | ✗ | 2.06 | |
| ✓ | ✓ | - |
| # Repeat Trials | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| MaskGIT-L | 2.28 | 1.94 | 1.85 | 1.81 | 1.84 | 1.89 | 1.90 |
| DiT-XL | 2.19 | 2.06 | 2.02 | 1.99 | 1.93 | 1.91 | 1.92 |
| Generation Policy | FID-50K | ||
| Learnable? | Adaptive? | MaskGIT-S | DiT-XL |
| ✗ | ✗ | 7.65 | 9.71 |
| ✓ | ✗ | 5.40 (-2.25) | 6.03 (-3.68) |
| ✓ | ✓ | 4.54 (-3.11) | 5.31 (-4.40) |
| Generator | Inference Cost (TFLOPs) | Proportion | ||
| Generator | Policy Net. | (Policy / Generator) | ||
| MaskGIT-L | 16 | 1.7 | 0.002 | 0.11% |
| DiT-XL | 16 | 4.1 | 0.003 | 0.07% |
| SiT-XL | 16 | 4.1 | 0.003 | 0.07% |
| VAR- 16 | 10 | 0.5 | 0.002 | 0.40% |
| VAR- 30 | 10 | 2.0 | 0.003 | 0.15% |
| Smoothing Weight | 0 | 0.2 | 0.4 | 0.8 | 0.95 |
| FID-50K | 3.97 | 3.61 | 3.47 | 3.36 | 3.70 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Type | Generation Policy | Range | Activation Function |
| MaskGIT | Mask ratio, | ||
| Sampling temperature, | |||
| Mask temperature, | |||
| Guidance scale, | |||
| Autoregressive | Sampling temperature, | ||
| Guidance scale, |
Diffusion Timestep Scheduling
Diffusion timestep scheduling allocates noise and denoising steps across a generative trajectory to balance sample quality, stability, and compute.
See all 63 papers