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:
- 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.
- 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.
- 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.
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