PS-Diffusion: Photorealistic Subject-Driven Image Editing with Disentangled Control and Attention

Weicheng Wang, Guoli Jia, Zhongqi Zhang, Liang Lin, Jufeng Yang
2/10/2026

No official code found. Best implementation: wei-cheng777/PS-Diffusion (24 stars, last commit 2025-10-20).

Abstract

Diffusion models pre-trained on large-scale paired image-text data achieve significant success in image editing. To convey more fine-grained visual details, subject-driven editing integrates subjects in user-provided reference images into existing scenes. However, it is challenging to obtain photorealistic results, which simulate contextual interactions, such as reflections, illumination, and shadows, induced by merging the target object into the source image. To address this issue, we propose PS-Diffusion, which ensures realistic and consistent object-scene blending while maintaining the invariance of subject appearance during editing. To be specific, we first divide the contextual interactions into those occurring in the foreground and the background areas. The effect of the former is estimated through intrinsic image decomposition, and the region of the latter is predicted in an additional background effect control branch. Moreover, we propose an effect attention module to disentangle the learning processes of interaction and subject, alleviating confusion between them. Additionally, we introduce a synthesized dataset, Replace-5K, consisting of 5,000 image pairs with invariant subject and contextual interactions via 3D rendering. Extensive quantitative and qualitative experiments on our dataset and two real-world datasets demonstrate that our method achieves state-of-the-art performance. The code is available in the https://github.com/wei-cheng777/PS-Diffusion.

DOISemantic Scholar

Code Implementations(1)

Official implementations for paper: PS-Diffusion: Photorealistic Subject-Driven Image Editing with Disentangled Control and Attention

240Shell, PythonMar 12, 20251 years ago

Similar Papers

Cite this paper

@article{wang2026psdiffusion,
  title  = {PS-Diffusion: Photorealistic Subject-Driven Image Editing with Disentangled Control and Attention},
  author = {Weicheng Wang and Guoli Jia and Zhongqi Zhang and Liang Lin and Jufeng Yang},
  year   = {2026},
  doi    = {10.1109/CVPR52734.2025.01706},
  url    = {https://doi.org/10.1109/CVPR52734.2025.01706},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/42be0f69e59223dfd16dda5a75277ad215e5ea29.svg)](https://codeofpaper.com/paper/42be0f69e59223dfd16dda5a75277ad215e5ea29)

Discussion