MaskSense: Confronting the Visual Exploration Trap in Masked Image Generation
Organizations: University of Science and Technology of China · Tongyi Lab, Alibaba Group · Northeastern University
Abstract
Reinforcement learning (RL) has shown strong potential for aligning generative models with human intent, but adapting RL to masked generative models (MGMs) remains largely underexplored. Existing approaches that directly adapt Group Relative Policy Optimization (GRPO) to MGMs leave a foundational conflict unaddressed: MGMs' exploitative decoding nature is inherently at odds with the exploratory diversity that GRPO presupposes. In this work, we reveal a structural decoding bias termed the visual exploration trap: confidence-based sampling trades the exploration of diverse subject realizations for the greedy resolution of low-uncertainty background regions, causing premature collapse of the generative exploration space and starving GRPO of the rollout diversity it depends on. To this end, we propose MaskSense, a novel RL framework for MGMs that confronts the visual exploration trap at both the sampling and optimization stages. Specifically, we introduce a semantic anchored routing sampling mechanism that leverages semantic priors to preserve high-entropy subject token exploration while amplifying intra-group reward variance through exploratory-exploitative routing to yield more discriminative advantage estimates. Furthermore, we design a global entropy transition anchoring strategy to identify the most consequential decoding steps and concentrate gradient updates on them. Extensive experiments on multiple text-to-image benchmarks demonstrate that MaskSense substantially improves upon the base model, with GenEval accuracy improving from 54% to 86% and HPS from 28.89 to 36.39, achieving state-of-the-art performance.
Figures & tables
| Model | Overall | Single Obj. | Two Obj. | Counting | Color | Position | Color Attr. |
|---|---|---|---|---|---|---|---|
| Diffusion-based Models | |||||||
| LDM [ 38 ] | 0.37 | 0.92 | 0.29 | 0.23 | 0.70 | 0.02 | 0.05 |
| SD-XL [ 34 ] | 0.55 | 0.98 | 0.74 | 0.39 | 0.85 | 0.15 | 0.23 |
| SD3.5-M [ 10 ] | 0.63 | 0.98 | 0.78 | 0.50 | 0.81 | 0.24 | 0.52 |
| DALLE-3 [ 3 ] | 0.67 | 0.96 | 0.87 | 0.47 | 0.83 | 0.43 | 0.45 |
| FLUX.1-dev [ 22 ] | 0.66 | 0.98 | 0.81 | 0.74 | 0.79 | 0.22 | 0.45 |
| Step | 0 | 200 | 400 | 600 | 800 | 1K | 1.2K | 1.4K | 1.6K | 1.8K | 2K |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Mask-GRPO HPS | 26.54 | 27.28 | 28.09 | 28.54 | 29.05 | 29.44 | 29.56 | 29.72 | 29.74 | 29.72 | 29.81 |
| MaskSense HPS | 26.54 | 27.60 | 28.22 | 28.92 | 29.30 | 29.66 | 29.82 | 29.98 | 29.97 | 30.05 | 30.09 |
| Mask-GRPO GPU Hours | 0.00 | 11.10 | 22.17 | 33.21 | 44.30 | 55.37 | 66.44 | 77.51 | 88.61 | 99.66 | 110.72 |
| MaskSense GPU Hours | 0.00 | 11.45 | 22.89 | 34.31 | 45.73 | 57.15 | 68.56 | 79.96 | 91.37 | 102.77 | 114.18 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Generative Modeling
Generative modeling learns data distributions to create new samples, from images and text to molecules, simulations, and structured records.
See all 500 papers