TokenRepel: Generating Diverse Image Sets Without Compromising Quality
Organizations: The Australian National University · Homenet Research · CarryAI
Abstract
We present an inference-time approach that enhances the visual diversity of image sets generated by text-to-image models, without compromising the average image quality. Our method leverages the intrinsic geometry of hidden representations in pretrained models to diversify images generated from the same prompt. First, we introduce a token repulsion mechanism that increases the angle between feature tokens across samples. It takes a negative Riemannian gradient step on a von Mises-Fisher mixture distribution of tokens on the unit hypersphere. Second, to preserve the quality of each output image, we propose a token density preservation mechanism that projects the repulsion-induced prediction change onto a half-space aligned with the model's score direction. This encourages the updates to remain within the high-density regions learned by the generative model. We further extend this mechanism to the output of each intermediate layer, enabling finer-grained iterative guidance. We evaluate our method on three types of pretrained text-to-image models. Experiments show substantial gains in visual diversity under identical prompts, while maintaining a comparable level of image fidelity.
Figures & tables
| Method | Latency over baseline | Diversity | Image Fidelity | ||||||
|---|---|---|---|---|---|---|---|---|---|
| DreamSim | Vendi | LPIPS | HPSv3 | CLIP | ImR | PickS | GenEval | ||
| FLUX.1-dev: | |||||||||
| Baseline | 1.00 | 0.2561 | 1.8747 | 0.5821 | 7.5266 | 0.3613 | 0.9579 | 23.3245 | 0.6653 |
| CADS | 1.00 | 0.2599 | 1.8694 | 0.5869 | 7.5498 | 0.3608 | 0.9690 | 23.3233 | 0.6551 |
| PG | 1.00 | 0.2593 | 1.8786 | 0.6019 | 7.4796 | 0.3606 | 0.9798 | 23.2855 | 0.6598 |
| NegToMe | 1.01 | 0.3151 | 1.9829 | 0.6572 | 7.3467 | 0.3616 | 1.0055 | 23.1479 | 0.6670 |
| Method | DreamSim | Vendi | LPIPS | HPSv3 | CLIP | ImageReward | PickScore |
|---|---|---|---|---|---|---|---|
| Baseline | 0.098 | 1.425 | 0.320 | 9.384 | 0.364 | 0.582 | 21.777 |
| Ours | 0.209 | 1.699 | 0.502 | 9.301 | 0.357 | 0.509 | 21.591 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Parameter | Value | DreamSim | Vendi | LPIPS | HPSv3 | CLIP | ImageReward | PickScore |
|---|---|---|---|---|---|---|---|---|---|
| Baseline | – | – | 0.2561 | 1.8747 | 0.5821 | 7.5266 | 0.3613 | 0.9579 | 23.3245 |
| Ours | 5 | 0.2782 | 1.9204 | 0.6066 | 7.5045 | 0.3613 | 0.9562 | 23.3084 | |
| 10 | 0.3002 | 1.9501 | 0.6271 | 7.4389 | 0.3607 | 0.9477 | 23.2911 | ||
| 20 | 0.3314 | 2.0090 | 0.6519 | 7.4321 | 0.3619 | 0.9603 | 23.2617 | ||
| 30 | 0.3550 | 2.0420 | 0.6635 | 7.2391 | 0.3606 | 0.9419 | 23.1613 | ||
| NegToMe | 0.5 | 0.3151 | 1.9829 | 0.6572 | 7.3467 | 0.3616 | 1.0055 | 23.1479 |
| Method | Parameter | Value | DreamSim | Vendi | LPIPS | HPSv3 | CLIP | ImageReward | PickScore |
|---|---|---|---|---|---|---|---|---|---|
| Baseline | – | – | 0.1964 | 1.6791 | 0.5495 | 9.0595 | 0.3876 | 1.3912 | 23.6764 |
| Ours | 20 | 0.2534 | 1.8085 | 0.6402 | 9.0646 | 0.3871 | 1.3800 | 23.6484 | |
| 40 | 0.2643 | 1.8280 | 0.6599 | 8.9825 | 0.3860 | 1.3430 | 23.6246 | ||
| 60 | 0.2799 | 1.8545 | 0.6833 | 8.7870 | 0.3853 | 1.3175 | 23.5176 | ||
| 80 | 0.2806 | 1.8506 | 0.6876 | 8.7634 | 0.3854 | 1.3077 | 23.5003 | ||
| NegToMe | 0.5 | 0.2280 | 1.7577 | 0.6224 | 8.9915 | 0.3863 | 1.3694 | 23.6605 |
| Method | Parameter | Value | DreamSim | Vendi | LPIPS | HPSv3 | CLIP | ImageReward | PickScore |
|---|---|---|---|---|---|---|---|---|---|
| Baseline | – | – | 0.3212 | 1.9565 | 0.7243 | 5.9234 | 0.3828 | 0.9481 | 22.9723 |
| Ours | 5 | 0.3459 | 2.0288 | 0.7374 | 5.8322 | 0.3829 | 0.9508 | 22.9027 | |
| 10 | 0.3700 | 2.0863 | 0.7480 | 5.6233 | 0.3804 | 0.8938 | 22.7996 | ||
| 15 | 0.3851 | 2.1091 | 0.7545 | 5.4437 | 0.3780 | 0.8587 | 22.7336 | ||
| 20 | 0.3892 | 2.1318 | 0.7575 | 5.4396 | 0.3796 | 0.8619 | 22.7217 | ||
| NegToMe | 0.07 | 0.3341 | 1.9886 | 0.7360 | 5.9201 | 0.3827 | 0.9410 | 22.9368 |
| Method | Swept parameter | Swept values | Fixed settings |
| FLUX.1-dev | |||
| Ours | ; steps 1–3; constraint in the first 30 layers | ||
| NegToMe | threshold ; steps 1–7; all layers | ||
| PG | coefficient | adaptive median bandwidth; every step | |
| CADS | noise scale | , , , rescaling | |
| Contextual | 50 iterations; first step | ||
T2I Generation
Text-to-image generation creates images from natural-language prompts using generative models, with research focused on fidelity, control, efficiency, and safety.
See all 303 papers