Focus-N-Fix: Region-Aware Fine-Tuning for Text-to-Image Generation
Xiaoying Xing, Avinab Saha, Junfeng He, Susan Hao, Paul Vicol, Moonkyung Ryu, Gang Li, Sahil Singla, Sarah Young, Yinxiao Li, Feng Yang, Deepak Ramachandran
TL;DR
Focus-N-Fix tackles localized quality issues in text-to-image generation by restricting fine-tuning to problematic image regions rather than globally optimizing image-level rewards. It combines diffusion-based generation with a differentiable reward and a regional constraint, updating only LoRA parameters to preserve the original pretrained model's structure, and it operates with a standard forward pass at inference. The method uses heatmaps or saliency maps to locate artifacts, over-sexualization, violence, or misalignment, achieving localized improvements across multiple quality aspects and generalizing to SDXL and other diffusion backbones. This yields safer, more faithful T2I outputs with reduced risk of forgetting and reward hacking, enabling more reliable deployment in practice.
Abstract
Text-to-image (T2I) generation has made significant advances in recent years, but challenges still remain in the generation of perceptual artifacts, misalignment with complex prompts, and safety. The prevailing approach to address these issues involves collecting human feedback on generated images, training reward models to estimate human feedback, and then fine-tuning T2I models based on the reward models to align them with human preferences. However, while existing reward fine-tuning methods can produce images with higher rewards, they may change model behavior in unexpected ways. For example, fine-tuning for one quality aspect (e.g., safety) may degrade other aspects (e.g., prompt alignment), or may lead to reward hacking (e.g., finding a way to increase rewards without having the intended effect). In this paper, we propose Focus-N-Fix, a region-aware fine-tuning method that trains models to correct only previously problematic image regions. The resulting fine-tuned model generates images with the same high-level structure as the original model but shows significant improvements in regions where the original model was deficient in safety (over-sexualization and violence), plausibility, or other criteria. Our experiments demonstrate that Focus-N-Fix improves these localized quality aspects with little or no degradation to others and typically imperceptible changes in the rest of the image. Disclaimer: This paper contains images that may be overly sexual, violent, offensive, or harmful.
