Accelerating Inference of Masked Image Generators via Reinforcement Learning
Pranav Subbaraman, Shufan Li, Siyan Zhao, Aditya Grover
TL;DR
MGMs are powerful but slow due to many sampling steps. Speed-RL uses reinforcement learning to directly optimize a joint quality-and-speed objective, adapting GRPO with a low-variance cross-entropy KL estimator to stabilize training on discrete MGMs. Empirical results on a 1B-parameter Meissonic base model show up to 3x inference speedup with comparable ImageReward, HPSv2.1, and CLIP metrics across benchmarks, aided by low-quality sample filtering. This work demonstrates that RL can effectively control sampling trajectories in discrete diffusion-style models, enabling practical, real-time capable masked image generation.
Abstract
Masked Generative Models (MGM)s demonstrate strong capabilities in generating high-fidelity images. However, they need many sampling steps to create high-quality generations, resulting in slow inference speed. In this work, we propose Speed-RL, a novel paradigm for accelerating a pretrained MGMs to generate high-quality images in fewer steps. Unlike conventional distillation methods which formulate the acceleration problem as a distribution matching problem, where a few-step student model is trained to match the distribution generated by a many-step teacher model, we consider this problem as a reinforcement learning problem. Since the goal of acceleration is to generate high quality images in fewer steps, we can combine a quality reward with a speed reward and finetune the base model using reinforcement learning with the combined reward as the optimization target. Through extensive experiments, we show that the proposed method was able to accelerate the base model by a factor of 3x while maintaining comparable image quality.
