SSCR: Iterative Language-Based Image Editing via Self-Supervised Counterfactual Reasoning
Tsu-Jui Fu, Xin Eric Wang, Scott Grafton, Miguel Eckstein, William Yang Wang
TL;DR
This paper tackles data scarcity in iterative language-based image editing (ILBIE) by introducing Self-Supervised Counterfactual Reasoning (SSCR). SSCR enables the editor to anticipate outcomes under counterfactual instructions and uses Cross-Task Consistency (CTC) with an Iterative Explainer to provide explicit token-level supervision without ground-truth counterfactuals. An Iterative Editor, guided by instruction histories, is trained with GAN losses, while an Instruction Intervention pipeline generates diverse counterfactuals. Across i-CLEVR and CoDraw, SSCR achieves state-of-the-art results in object identity and position and demonstrates strong data-efficiency, including parity with full-data baselines at 50% data. The approach is model-agnostic and can be integrated with different editors for real-world language-based image editing.
Abstract
Iterative Language-Based Image Editing (IL-BIE) tasks follow iterative instructions to edit images step by step. Data scarcity is a significant issue for ILBIE as it is challenging to collect large-scale examples of images before and after instruction-based changes. However, humans still accomplish these editing tasks even when presented with an unfamiliar image-instruction pair. Such ability results from counterfactual thinking and the ability to think about alternatives to events that have happened already. In this paper, we introduce a Self-Supervised Counterfactual Reasoning (SSCR) framework that incorporates counterfactual thinking to overcome data scarcity. SSCR allows the model to consider out-of-distribution instructions paired with previous images. With the help of cross-task consistency (CTC), we train these counterfactual instructions in a self-supervised scenario. Extensive results show that SSCR improves the correctness of ILBIE in terms of both object identity and position, establishing a new state of the art (SOTA) on two IBLIE datasets (i-CLEVR and CoDraw). Even with only 50% of the training data, SSCR achieves a comparable result to using complete data.
