Preserve or Modify? Context-Aware Evaluation for Balancing Preservation and Modification in Text-Guided Image Editing

Yoonjeon Kim, Soohyun Ryu, Yeonsung Jung, Hyunkoo Lee, Joowon Kim, June Yong Yang, Jaeryong Hwang, Eunho Yang

Abstract

Evaluating text-guided image editing is a complex balancing act: a successful edit must modify the specific attributes requested by a prompt while preserving the integrity of the original image's context. Current evaluation metrics often suffer from "context-blindness," leading them to favor either excessive preservation (doing nothing) or excessive modification (ignoring the source). This paper introduces AugCLIP, a context-aware metric that utilizes multi-modal large language models (MLLMs) to dynamically define an "ideal" edit for every specific image-text pair. AugCLIP significantly outperforms existing metrics, demonstrating superior alignment with human judgment across diverse benchmarks.

The Challenge of Context-Blindness

In text-guided image editing (e.g., "Turn this man into Ironman"), models face a fundamental tension between preservation (maintaining the original background, pose, and lighting) and modification (incorporating the suit and mask).

The tension between preservation and modification in text-guided editing. Standard metrics often fail to distinguish which attributes should be kept and which should be changed.

Existing metrics typically fall into two camps. Preservation-centric metrics (like LPIPS or DINO) often reward models that fail to edit the image at all. Conversely, modification-centric metrics (like CLIP-T) reward models that completely ignore the source image to match the text prompt. Even directional metrics like $CLIP_{dir}$ struggle because they lack a specific understanding of which changes are relevant to the context. There is no universal threshold for an ideal edit; the required change is entirely dependent on the specific image-text pair.

Methodology: Defining the "Ideal" Edit

AugCLIP moves away from static evaluation standards by estimating a unique "ideal" representation for each task through a four-step process:

  1. Attribute Extraction: An MLLM (GPT-4V) extracts detailed visual attributes from both the source image and the target text.
  2. Relative Weighting: The system calculates Importance (centrality of an attribute) and Collision (conflict between source and target attributes) scores to ensure the metric focuses on critical changes.
  3. Deriving the Ideal Vector: The problem is framed as a classification task in CLIP space. AugCLIP finds a hyperplane that separates source attributes from target attributes. The "ideal" edit is defined as the original image's CLIP embedding plus a minimal modification vector that pushes it across the boundary into the target domain.
  4. Scoring: The final score is the cosine similarity between the actual edited image and this dynamically calculated "ideal" representation.

Key Insights and Results

A critical finding of this research is that simply combining existing metrics is insufficient. As shown in the alignment studies, linear combinations of preservation and modification metrics often result in inconsistent performance that fails to match human intuition.

Alignment performance of combined metrics across different datasets. Simple linear combinations of preservation and modification metrics fail to consistently match human judgment.

AugCLIP consistently outperformed all baseline metrics (including $CLIP_{dir}$, LPIPS, and DINO) in human alignment:

  • Human Alignment ($s_{2AFC}$): On the MagicBrush dataset, AugCLIP achieved a score of 0.889, significantly higher than $CLIP_{dir}$'s 0.601.
  • Triplet Test Performance: When choosing between a correct edit, an over-preserved one, and an over-modified one, AugCLIP correctly identified the best edit 57% of the time on TEdBench, while other metrics performed near random chance (~33%).
  • Local Editing Robustness: The metric proved exceptionally strong in local editing scenarios where only minor portions of the image change—a common failure point for global metrics.

Limitations and Future Work

The primary trade-off for AugCLIP's accuracy is computational overhead. Requiring an MLLM call and an optimization step results in a latency of approximately 12.5 seconds per image. While this makes it less suitable for real-time monitoring during training, it serves as a robust tool for final benchmarking. Future research will focus on utilizing more efficient, specialized models for attribute extraction to reduce this latency without sacrificing evaluative precision.

Summary updated

BibTeX
@inproceedings{kim2025preserve,
  author = {Yoonjeon Kim and Soohyun Ryu and Yeonsung Jung and Hyunkoo Lee and Joowon Kim and June Yong Yang and Jaeryong Hwang and Eunho Yang},
  title = {{Preserve or Modify? Context-Aware Evaluation for Balancing Preservation and Modification in Text-Guided Image Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02186},
}
Figure