TL;DR
When using cloud-based Multimodal Large Language Models (MLLMs) to edit images, substituting sensitive regions with fake "surrogates" protects privacy but leaves a major blind spot: how do you seamlessly restore the original private details into the cloud-edited image locally? This paper introduces SPPE, the first benchmark dedicated to surrogate-based privacy-preserving image editing, alongside two novel methods: ERMA for predicting if a surrogate can successfully handle an edit, and $C^2E$-S2SER for faithfully recovering the final edited image while maintaining source integrity.
What Problem Does This Paper Address?
Instruction-driven image editing via cloud-hosted MLLMs is incredibly powerful, but it comes with a massive catch: privacy. Uploading personal photos risks exposing sensitive data like faces, home addresses, or financial documents to unauthorized data usage or profiling.
To mitigate this, standard privacy-preserving pipelines use a local agent to swap out sensitive regions with synthetic "surrogates" (e.g., replacing your face with a generated one) before sending the image to the cloud. However, this introduces an output-side dilemma. The cloud MLLM edits the surrogate image, returning an output that contains the fake data.
Unlike text editing—where restoring a placeholder like [NAME] back to Bob is trivial—image recovery is highly complex. If you ask the model to make a person "smile" or change the background to a "beach," you cannot simply copy-paste the original private face back into the edited image; you must intelligently transfer the edit effect back to the original private source locally. This paper addresses the lack of standardized benchmarks and robust algorithms for this pre-edit feasibility assessment and post-edit local recovery process.
Methods
The authors propose a complete framework consisting of two core components to handle the pre-edit and post-edit challenges:
1. ERMA (Editability-aware Relational Multi-modal Assessment)
Before wasting compute and API calls on a cloud MLLM, how do we know if the generated surrogate still preserves the necessary context for the edit? ERMA acts as a pre-edit gatekeeper. Instead of using generic Image Quality Assessment (IQA) metrics that only look at visual distortion, ERMA uses frozen CLIP vision-language encoders to project the source image, surrogate image, and text prompt into a shared semantic space. It explicitly models the multi-modal relationships (similarities and differences) to predict an "editability score," ensuring the surrogate retains the specific features the text prompt intends to modify.
2. $C^2E$-S2SER (Cycle-Consistent Edit-Conditioned Surrogate-to-Source Edit Recovery)
Once the cloud MLLM returns the edited surrogate, this module handles local recovery using a multi-modal diffusion transformer (MM-DiT) architecture (built on FLUX). It introduces two key innovations:
- Edit-Conditioned Tag Guidance: An internal generator analyzes the pre- and post-edit surrogate pair to predict a coarse edit tag (e.g.,
⟨ADD/REMOVE⟩,⟨EDIT⟩,⟨STYLE⟩). This tag is prepended to the text prompt, helping the model disambiguate the exact nature of the visual transformation. - Cycle-Consistent Regularization: To prevent "over-editing" and preserve the original unedited details of the source image, the model is trained with a reverse path. It must be able to take the recovered image, reverse the visual evidence, and reconstruct the original source image.
Datasets
The authors introduce SPPE (Surrogate-based Privacy-Preserving Editing), a comprehensive benchmark specifically designed for this task. It includes:
- 36 fine-grained privacy categories spanning visual (faces, body), textual (documents, contact info), and multimodal (financial info, license plates) data.
- 65 diverse editing instructions covering style transfer, object addition/removal, and appearance modification.
- 55,696 editing instances generated using SDXL inpainting for surrogates and SmartEdit for MLLM editing.
To evaluate generalization, the authors also test their recovery model on a subset of the public InstructPix2Pix dataset, using full-image surrogates across 934 unique prompts.
Key Insights and Ideas
- Editability is Task-Dependent, Not Quality-Dependent: A surrogate image can look heavily altered or low-quality according to standard metrics, but if it preserves the specific semantic structure needed for the prompt (e.g., keeping a license plate outline for a "turn to pencil sketch" prompt), it is still highly editable.
- The Surrogate Pair is the "In-Context" Exemplar: The text prompt alone isn't enough for local recovery because the cloud MLLM might interpret it unpredictably. The difference between the pre-edit surrogate and post-edit surrogate provides the ground-truth visual evidence of what the cloud model actually did.
- The Cycle-Consistency Trade-Off: Forcing the model to be able to undo its edits acts as a powerful anchor for source integrity. However, excessive training on cycle regularization can make the model too conservative, favoring source appearance over the new edit. A staged training schedule is essential to balance this trade-off.
Key Results
Task 1: Editability Assessment
ERMA significantly outperformed standard full-reference IQA and perceptual similarity baselines (like DISTS and TOPIQ-FR) on the SPPE dataset:
- SRCC (Spearman's Rank Correlation): Improved to 0.6655 (a 13.9% boost over the best baseline).
- PLCC (Pearson's Linear Correlation): Improved to 0.6826 (a 12.3% boost over the best baseline).
Task 2: Surrogate-to-Source Edit Recovery
On the SPPE test set, $C^2E$-S2SER outperformed all recovery baselines (including VISII, EditTransfer, and SOER) across all 8 metrics evaluating source integrity and edit consistency.
- It achieved a 5.4% improvement in PSNR (Source) and a 2.9% improvement in PSNR (Ground Truth) over the previous state-of-the-art method (SOER).
- On the unseen InstructPix2Pix dataset, $C^2E$-S2SER demonstrated robust generalization, leading across all metrics (e.g., achieving a CLIP-Sim (GT) of 0.8595 compared to SOER's 0.7857).
Limitations and Future Work
- Backbone Dependency: The recovery performance is inherently bounded by the generative capabilities and biases of the underlying diffusion transformer (FLUX).
- Hyperparameter Sensitivity: The staged optimization schedule relies on a carefully tuned warm-up boundary ($T_w$) to introduce cycle regularization at the right time.
- Future Directions: The authors suggest exploring tighter integration between the surrogate generation step and the recovery step to optimize the pipeline end-to-end.
Summary updated