Learning to Follow Object-Centric Image Editing Instructions Faithfully

Tuhin Chakrabarty, Kanishk Singh, Arkadiy Saakyan, Smaranda Muresan · DOI

Abstract

Recent advancements in text-to-image generation have enabled the creation of high-quality visuals from natural language. However, performing precise, instruction-based edits on existing images remains a significant challenge. Current models often struggle with "faithfulness"—the ability to modify specific objects while leaving the rest of the image untouched. Researchers from Columbia University address this by introducing a multi-stage pipeline that leverages Large Language Models (LLMs) for reasoning and computer vision tools for grounding. By curating a high-quality dataset and fine-tuning models with explicit mask supervision, they demonstrate a significant leap in the accuracy and reliability of object-centric image editing.

Introduction

While models like Stable Diffusion have revolutionized content creation, text-guided image editing is often characterized by inconsistency. A simple instruction like "Add a lighthouse" to a coastal scene can result in unintended global changes: the ocean might change color, existing structures might disappear, or multiple lighthouses might appear in illogical locations.

This lack of control stems from three primary hurdles:

  1. Underspecification: Instructions often lack the spatial context needed for a model to determine where an edit should occur.
  2. Grounding: Models struggle to localize the specific pixels associated with an instruction.
  3. Faithfulness: There is a persistent difficulty in preserving the original image's integrity outside the edited region.

To solve these issues, the authors propose a system that moves beyond simple text-to-image mapping, instead focusing on a structured understanding of the "edit entity" and its spatial constraints.

Methodology

Data Curation and Filtering

The researchers identified that existing datasets, such as the one used for InstructPix2Pix, are often noisy or contain nonsensical instructions. To rectify this, they developed a pipeline to curate a high-quality training set of over 52,000 pairs.

  • LLM-Based Reasoning: Using ChatGPT with Chain-of-Thought (CoT) prompting, the system analyzes image captions and instructions to identify the "edit entity." For instance, if a user asks to "add an aurora," the LLM reasons that the "sky" is the target entity. This step also filters out impossible or nonsensical requests.
  • Precise Grounding: Once the entity is identified, the system employs GroundingDINO to generate a bounding box and the Segment Anything Model (SAM) to produce a precise, pixel-level mask.
  • Verification via VQA: To ensure the quality of generated training examples, the authors use BLIP-2 (a Visual Question Answering model) to verify the results. A candidate image is only kept if the VQA model confirms the new object is present and the original context remains intact.

Model Training

The core of the approach involves fine-tuning the InstructPix2Pix architecture with a critical modification: Entity Mask Supervision. During training, the model is provided with the segmentation mask or bounding box as an additional input channel. This explicitly teaches the model to concentrate its generative energy on the target area, preventing the "bleeding" effect where edits unintentionally alter the background.

Evaluation and Results

The proposed model, InstructPix2Pix+EntityMask, was evaluated against several baselines using both automated metrics and human judgment.

Quantitative Performance

Using the TIFA score (Text-to-Image Faithfulness Assessment), the model achieved a score of 65.84, significantly outperforming the standard InstructPix2Pix (62.24). This indicates a much higher alignment between the user's text instructions and the resulting visual changes.

Human Evaluation

In side-by-side comparisons, human judges showed a strong preference for the authors' model. On an "In-domain" test set, the model scored 69.8 (on a 0-100 scale), while the baseline InstructPix2Pix scored only 49.3. The primary reason cited for this preference was the model's superior ability to preserve the background and original image details.

Generalization and Visual Metaphors

One of the most striking results was the model's performance on a "Visual Metaphors" dataset. Even when faced with poetic or metaphorical instructions (e.g., "My heart is a garden tired with autumn"), the model successfully localized the changes to relevant objects, demonstrating a sophisticated level of semantic understanding.

Discussion and Limitations

Despite its success in object-centric editing, the system has several limitations:

  • Single-Turn Interaction: The model is currently optimized for one-off edits rather than iterative, conversational editing sessions.
  • Language and Scope: The system is limited to English and focuses on localized object changes rather than global style transfers (e.g., changing an entire image to a "sketch" style).
  • VQA Dependency: The automated curation process relies on the accuracy of VQA models, which can occasionally produce false positives or negatives.

Conclusion

By integrating LLM-based reasoning with precise spatial grounding, this research provides a robust framework for faithful image editing. The transition from noisy, automated data to curated, mask-supervised training allows for edits that are both creative and respectful of the original image's context. This work paves the way for more reliable AI-assisted design tools that can follow complex human instructions with high fidelity.

Summary updated

BibTeX
@inproceedings{chakrabarty2023learning,
  author = {Tuhin Chakrabarty and Kanishk Singh and Arkadiy Saakyan and Smaranda Muresan},
  title = {{Learning to Follow Object-Centric Image Editing Instructions Faithfully}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.646},
}
Figure