PICS: Pairwise Image Compositing with Spatial Interactions

Hang Zhou, Xinxin Zuo, Sen Wang, Li cheng

TL;DR

PICS (Pairwise Image Compositing with Spatial Interactions) is a new framework that allows AI to insert multiple objects into an image simultaneously while realistically modeling how they interact. By moving away from step-by-step "sequential" editing and using a specialized "Interaction Transformer," the model masters complex spatial relationships like occlusion, support, and containment without the artifacts common in previous methods.

Examples of spatial interactions handled by PICS, including support, containment, occlusion, and deformation.

What Problem Does This Paper Address?

Image compositing—the art of seamlessly blending objects from different images into a new background—has seen huge leaps thanks to diffusion models. However, these models usually struggle with "multi-turn" edits. If you add a basket to a scene and then try to add bread inside it, the model often "forgets" the basket's details or creates messy, unrealistic boundaries where the two objects meet.

The authors identify a core flaw: most existing methods treat compositing as a series of independent steps. They lack a mechanism to understand how two objects should physically relate to each other and the background at the same time. This leads to "physical inconsistency," where objects appear to overlap incorrectly, float, or merge into a blurry mess.

Methods

The authors propose PICS, which shifts the paradigm from sequential to parallel compositing. Instead of adding objects one by one, PICS processes a pair of objects and the background in a single pass.

Architecture of the Interaction Diffusion Network and the Interaction Transformer Block.

Key technical innovations include:

  • Interaction Transformer Block: The researchers replaced standard U-Net residual blocks with a custom architecture. It uses a mask-guided Mixture-of-Experts (MoE) approach.
  • Region-Specific Experts: The model routes different parts of the image to specialized "experts": one for the background, one for regions where only one object exists (exclusive regions), and a crucial Overlap Expert for where objects intersect.
  • Adaptive $\alpha$-blending: In overlapping areas, the model doesn't just average the objects. It uses a "gating query" derived from the background to act as a referee, deciding which object should dominate based on the local context (e.g., which one is "in front").
  • Geometry-aware Augmentations: To help the model understand 3D space, they incorporate a multi-view shape prior. They use an off-the-shelf 3D reconstruction tool (Zero123++) to generate auxiliary views of objects during training, teaching the model how an object's appearance changes with its pose.

Datasets

The model was trained on a massive, curated collection of nearly 1 million samples derived from:

  • LVIS & Objects365: General object datasets used to learn diverse categories.
  • VITON-HD: Specifically for virtual try-on scenarios (clothing interactions).
  • Street Scene Datasets: Including Cityscapes, Mapillary Vistas, and BDD100K to handle complex outdoor environments.
  • DreamBooth: Used for testing to ensure the model preserves the specific identity of unique objects.

Key Insights and Ideas

  • The Background is the Referee: One of the most elegant ideas in PICS is using the background features to guide occlusion. The background provides the "semantic floor" that helps the model decide if an object is sitting on something or inside something.
  • Parallelism Prevents "Forgetting": By processing objects together, the model avoids the "overwriting" problem where a second edit destroys the work of the first.
  • 3D Intuition for 2D Tasks: Even though the output is a 2D image, providing the model with multi-view 3D data during training significantly improves its ability to handle "out-of-plane" rotations—like placing a toy at an angle it wasn't originally photographed in.

Key Results

PICS demonstrates a clear lead over state-of-the-art baselines like AnyDoor and OmniPaint:

  • Quantitative Superiority: On the LVIS validation set, PICS achieved a PSNR of 13.88, significantly higher than the next best method (12.20). It also showed marked improvements in SSIM and LPIPS, particularly in the tricky "intersection regions" where objects overlap.
  • Qualitative Realism: Visual results show much sharper boundaries and more logical physical placements (e.g., a dog's leg correctly appearing behind a sofa cushion rather than merging into it).
  • User Preference: In a user study with 20 participants, PICS was ranked highest for image quality, identity fidelity, and spatial consistency, outperforming the next best method by a wide margin in "Consistency" (22.5% vs 15.9%).

Limitations and Future Work

While PICS is a major step forward, the authors note a few areas for improvement. In extremely "busy" or cluttered scenes, the model can still experience some degradation in geometry and texture. Additionally, the current shape encoder has limited capacity, which can occasionally lead to a loss of fine-grained detail. Finally, while the paper shows results for 3 and 4 objects, the core logic is built on "pairwise" interactions. Future work will look at optimizing routing and fusion to handle even more complex multi-object scenes while maintaining perfect lighting and semantic fidelity.

Summary updated

BibTeX
@inproceedings{zhou2026pics,
  author = {Hang Zhou and Xinxin Zuo and Sen Wang and Li cheng},
  title = {{PICS: Pairwise Image Compositing with Spatial Interactions}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=zNCNEOhKps},
}
Figure