FireEdit: Fine-grained Instruction-based Image Editing via Region-aware Vision Language Model

Jun Zhou, Jiahao Li, Zunnan Xu, Hanhui Li, Yiji Cheng, Fa-Ting Hong, Qin Lin, Qinglin Lu, Xiaodan Liang

Introduction

Instruction-based image editing represents a significant step toward intuitive AI-driven creativity, allowing users to modify images using natural language instructions. Despite its promise, current state-of-the-art models frequently struggle with complex scenarios involving multiple objects, semantic consistency, and fine-grained control. These models often suffer from a "localization gap," where the underlying Vision Language Model (VLM) fails to precisely ground text instructions to specific spatial coordinates, leading to unintended global changes or incorrect object modifications.

Methodology

FireEdit bridges this gap by introducing a region-aware framework that combines the reasoning power of VLMs with the generative capabilities of diffusion models. The architecture features three primary innovations:

  1. Region-aware Mixed-Modal Encoding: Utilizing an open-vocabulary object detector (Deformable DETR), FireEdit identifies potential regions of interest and converts them into "region tokens." These tokens allow the model to explicitly ground instructions to specific image areas.
  2. Time-Aware Target Injection (TATI): This mechanism dynamically adjusts editing guidance strength throughout the diffusion denoising process. By balancing global structure preservation in early stages and fine-grained texture refinement in later stages, TATI ensures high-fidelity results.
  3. Hybrid Visual Cross Attention (HVCA): To prevent "hallucinations" in non-edited regions, HVCA integrates multi-scale features from CLIP and DINOv2 encoders, acting as a high-frequency anchor for original image details.
Figure 6: Qualitative results demonstrating FireEdit's ability to perform multiple, independent, fine-grained edits on a single scene. The red bounding boxes in the insets illustrate the model's region-aware grounding capability.

Experimental Setup

The model was trained on a diverse multi-task dataset encompassing grounding (COCOStuff, RefCOCO), image editing (InstructPix2Pix, MagicBrush, UltraEdit), and general visual question answering (LLaVA-instruct-150k). Performance was evaluated on the MagicBrush and Emu Edit benchmarks, which are current standards for instruction-following in image editing.

Results and Discussion

FireEdit demonstrates superior performance across both quantitative and qualitative metrics. In a blind user study on the Emu Edit test set, FireEdit was preferred 78.67% of the time, vastly outperforming competitors like MagicBrush (5.00%).

The model excels at tasks requiring high precision, such as modifying specific text on signs or adding small accessories to one of several similar objects. Quantitative results using L1 distance and CLIP-I metrics further confirm its ability to minimize extraneous changes to the original image, effectively solving the semantic consistency problem that plagues earlier models.

Conclusion

FireEdit introduces a "surgical" approach to image editing by effectively decoupling localization from association. By grounding instructions through region tokens and managing guidance strength via TATI, it sets a new standard for precision in instruction-based editing. Future work will explore the incorporation of reference images and handling more significant structural transformations to further expand the model's creative utility.

Summary updated

BibTeX
@inproceedings{zhou2025fireedit,
  author = {Jun Zhou and Jiahao Li and Zunnan Xu and Hanhui Li and Yiji Cheng and Fa-Ting Hong and Qin Lin and Qinglin Lu and Xiaodan Liang},
  title = {{FireEdit: Fine-grained Instruction-based Image Editing via Region-aware Vision Language Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01222},
}
Figure