Collaborative Score Distillation for Consistent Visual Editing

Subin Kim, Kyungmin Lee, June Suk Choi, Jongheon Jeong, Kihyuk Sohn, Jinwoo Shin

Large-scale text-to-image diffusion models have revolutionized how we create and edit 2D art. However, when attempting to apply these "single-image" experts to complex, multi-view data like video, 3D scenes, or massive panoramas, the results often fall apart. Without a mechanism to communicate across frames or views, individual outputs diverge, leading to flickering videos or 3D objects that look like a jumbled mess of conflicting styles.

In their NeurIPS 2023 paper, researchers from KAIST and Google Research introduce Collaborative Score Distillation (CSD), a framework that forces multiple image samples to "collaborate" during the editing process to ensure global consistency.

TL;DR

CSD enables consistent visual editing across sets of images (videos, 3D scenes, panoramas) by treating them as interacting "particles" in an optimization process. By generalizing Score Distillation Sampling (SDS) through the lens of Stein Variational Gradient Descent, the authors allow 2D diffusion models to synthesize coherent results across multiple views or frames simultaneously.

What Problem Does This Paper Address?

The core challenge is inter-sample consistency. Standard diffusion models are trained on individual images; they inherently lack a concept of temporal flow in a video or geometric constraints in a 3D scene.

If you ask a standard model to "turn this man into an anime character" frame-by-frame, the character's hair might be blue in frame one and red in frame two. Existing solutions often require expensive retraining on video datasets or rely on complex, modality-specific hacks. The authors sought a "modality-agnostic" way to leverage pre-trained 2D models for any task involving a set of related images.

Methods: From Single Scores to Collaborative Particles

The researchers build upon Score Distillation Sampling (SDS), the technique famously used in DreamFusion to create 3D objects from text. SDS optimizes a 3D model so that its 2D renders look "good" according to a diffusion model.

Overview of the Collaborative Score Distillation (CSD) framework, illustrating how multiple samples act as particles to synchronize diffusion priors across diverse modalities.

The Stein Variational Twist

The breakthrough of this paper is applying Stein Variational Gradient Descent (SVGD). In SVGD, optimization does not occur on a single point, but rather across a set of "particles." * Collaboration: CSD treats each image (a video frame, a 3D view, or a panorama patch) as a particle. * The Kernel: A kernel function (typically RBF) is used to measure the affinity between these particles. * Information Sharing: During optimization, the gradient for one image is influenced by the "scores" of other similar images. If two frames are visually similar, they exchange more information, forcing them to evolve toward the same edited style.

CSD-Edit

For the specific task of editing, the authors introduce CSD-Edit. Standard SDS subtracts random noise during the update, which often leads to blurry results. CSD-Edit instead subtracts an image-conditional noise estimate (using the Instruct-Pix2Pix model). This acts as a smarter baseline, ensuring the model only changes what the text prompt asks for while preserving the original structure and fine details of the source image.

Datasets

The authors evaluated CSD across three distinct domains:

  • Panoramas: A custom collection of 32 high-resolution panorama images (aspect ratio > 3).
  • Video: Sequences from the popular DAVIS 2017 dataset (e.g., the lucia and bear sequences).
  • 3D Scenes: Reconstructed 3D scenes, specifically the Fangzhou NeRF scene.

Key Insights and Ideas

  • SDS is a Special Case: Mathematically, the authors show that standard SDS is simply CSD where the number of particles ($N$) is 1. CSD is the natural multi-sample generalization.
  • Repulsive Forces: The SVGD framework naturally includes a "repulsive force" that prevents all particles from collapsing into a single, identical image. This preserves necessary diversity, such as different perspectives in a 3D scene.
  • Variance Reduction: By replacing random noise with conditional noise in the gradient update, they effectively perform a form of variance reduction, leading to much sharper and more stable optimization than previous distillation methods.

Key Results

The paper demonstrates that CSD-Edit is a highly versatile tool for maintaining consistency across various modalities:

Comparison of panorama editing methods. CSD-Edit achieves both spatial consistency and high instruction fidelity, unlike patch-wise or overlapping Instruct-Pix2Pix baselines.
  • Panorama Editing: CSD-Edit achieved a superior trade-off between instruction fidelity (how well it followed the prompt) and spatial consistency compared to MultiDiffusion. It successfully avoided the "seams" often seen when editing large images patch-by-patch.
  • Video Editing: In quantitative tests, CSD-Edit outperformed zero-shot methods like FateZero and Pix2Video. It was also significantly faster—3.3x faster than FateZero and 1.3x faster than Pix2Video.
  • 3D NeRF Editing: When compared to Instruct-NeRF2NeRF, CSD-Edit produced sharper facial details and better preserved the semantics of the original scene (e.g., making a person smile without accidentally adding a beard).

Limitations and Future Work

Despite the impressive results, some hurdles remain:

  • Model Biases: Because the framework relies on Instruct-Pix2Pix, it inherits that model's biases and its occasional inability to reorganize objects or dramatically change viewpoints.
  • Boundary Artifacts: In very high-resolution panoramas, artifacts can still appear at the extreme corners of patches if they aren't sampled frequently enough during optimization.
  • Video Flickering: While temporal consistency is vastly improved, some flickering persists due to the underlying Stable Diffusion autoencoder's limitations in compressing video data.

The authors suggest that integrating CSD with diffusion models specifically trained on video or 3D data—rather than relying solely on 2D image priors—could be the next major leap forward for consistent visual editing.

Summary updated

BibTeX
@inproceedings{kim2023collaborative,
  author = {Subin Kim and Kyungmin Lee and June Suk Choi and Jongheon Jeong and Kihyuk Sohn and Jinwoo Shin},
  title = {{Collaborative Score Distillation for Consistent Visual Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=0tEjORCGFD},
}
Figure