Responsible Visual Editing

Minheng Ni, Yeli Shen, Lei Zhang, Wangmeng Zuo

Abstract

Responsible Visual Editing is a novel task focused on neutralizing harmful or risky concepts in images—such as violence, nudity, or privacy violations—while preserving the original context and visual fidelity. This paper introduces CoEditor, a framework that utilizes Large Multimodal Models (LMMs) to mimic human cognitive processes for image editing. By separating perception (localization) from behavior (planning), CoEditor effectively handles abstract risks that traditional models struggle with. To facilitate safe research, the authors also present AltBear, a dataset using teddy bear proxies to represent sensitive scenarios.

The Challenge of Abstract Risks

While AI-driven image editing has seen significant progress, existing tools like InstructPix2pix are primarily designed for concrete, attribute-level changes (e.g., "change the color of the car"). They often fail when tasked with abstract concepts like "make this image less violent." This failure stems from two main issues:

  1. Localization: Identifying which specific pixels or objects constitute an abstract risk in a complex scene.
  2. Planning: Determining a contextually appropriate replacement that neutralizes the risk without compromising the image's narrative or aesthetic quality.

Methodology: The CoEditor Framework

The proposed Cognitive Editor (CoEditor) addresses these challenges by breaking the editing process into two distinct stages:

1. Perceptual Cognitive Process (PCP)

To locate the risky area, CoEditor employs a "Set-of-Mark" approach. The image is segmented into various objects, each labeled with a numeric tag. An LMM (such as GPT-4V) then reasons about which numbered regions contribute to the risky concept. For instance, it might identify that a specific region represents a weapon or a privacy-violating identifier.

2. Behavioral Cognitive Process (BCP)

Once the region is identified, the LMM acts as a strategist. Rather than simply deleting the content, it generates a detailed description of a "responsible" replacement that fits the scene's context. For example, it might suggest replacing a bottle of alcohol with a glass of juice, ensuring the final image remains contextually rational.

The resulting "thoughts" are then executed by a standard Stable Diffusion Inpainting model. This training-free approach leverages the inherent reasoning capabilities of existing LMMs.

The AltBear Dataset

A significant hurdle in safety research is the ethical risk of handling and distributing harmful images of real people. To mitigate this, the authors introduced AltBear, a dataset of 300 image groups featuring fictional teddy bears as protagonists.

Overview of the AltBear dataset and responsible editing tasks.

AltBear allows researchers to study safety, fairness, and privacy across various categories—such as alcohol consumption, nudity, and racial representation—without the ethical complications of real-world harmful data.

Key Results and Insights

CoEditor significantly outperforms traditional editing baselines across the three core sub-tasks: Safety, Fairness, and Privacy.

  • Neutralization Success: On the AltBear dataset, CoEditor achieved a 65.56% success rate, nearly doubling the performance of InstructPix2pix (31.93%).
  • Visual Fidelity: CoEditor maintained a high visual similarity score (0.5188), indicating that it successfully limits changes to only the necessary risky regions.
  • Efficiency: The model is relatively lightweight, requiring only ~7.3GB of VRAM and taking approximately 14 seconds per image.
Example of privacy-driven editing using the Einstein proxy.

A key insight from the study is that models tested on "cartoonized" risks in AltBear show consistent performance when applied to real-world data. This validates the use of non-human proxies for building safer AI benchmarks.

Conclusion

CoEditor demonstrates that the bottleneck in responsible image editing is often "thinking" rather than "drawing." By leveraging the reasoning power of LMMs, the framework can identify and neutralize complex social risks. Future work will focus on expanding these capabilities to video editing and incorporating deeper cultural contexts to handle even more nuanced social concepts.

Summary updated

BibTeX
@inproceedings{ni2024responsible,
  author = {Minheng Ni and Yeli Shen and Lei Zhang and Wangmeng Zuo},
  title = {{Responsible Visual Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72670-5\_18},
}
Figure