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).
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:
- Attribute Extraction: An MLLM (GPT-4V) extracts detailed visual attributes from both the source image and the target text.
- 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.
- 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.
- 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.
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