ObjectMate: A Recurrence Prior for Object Insertion and Subject-Driven Generation

Daniel Winter, Asaf Shul, Matan Cohen, Dana Berman, Yael Pritch, Alex Rav-Acha, Yedid Hoshen

TL;DR

This paper introduces ObjectMate, a novel method for seamlessly composing objects into existing scenes, addressing both object insertion and subject-driven generation. By leveraging the "object recurrence prior" – the observation that everyday objects appear frequently across diverse online images – they construct a massive, supervised dataset that enables a simple diffusion model to achieve state-of-the-art results without slow test-time tuning.

What Problem Does This Paper Address?

Creating realistic composite images, where an object is inserted into a scene or a subject is generated based on a description, is a long-standing challenge in computer vision. Existing methods often struggle with two key aspects: (1) harmonizing the inserted object with the scene's photorealism, including pose and lighting, and (2) preserving the object's original identity. While supervised learning is ideal for this, creating large-scale, high-quality datasets for training is prohibitively expensive and time-consuming. Current approaches either rely on slow test-time tuning of generative models or use synthetic data that may not fully capture real-world diversity, leading to suboptimal results.

Methods

ObjectMate's core innovation lies in its data generation strategy, which leverages the "object recurrence prior." The authors observed that many mass-produced objects appear repeatedly in large, unlabeled image datasets, across various scenes, poses, and lighting conditions.

  1. Dataset Creation:
    • They first detect objects in large datasets (like WebLI) and extract deep "instance retrieval" (IR) features. These features are crucial for identifying identical objects, unlike semantic features from models like CLIP or DINO, which might only find similar objects.
  2. Using these IR features, they build a k-Nearest Neighbors (kNN) graph to find multiple diverse views of the same object.
  3. For object insertion, they use a specialized model (ObjectDrop) to remove the original object, its shadows, and reflections, creating a clean background.
  4. For subject generation, they use image captioning to get text descriptions of the scenes.
  5. This process results in a massive supervised dataset of object compositions.
  6. ObjectMate Model:
    • ObjectMate then trains a standard UNet-based diffusion model on this dataset. The model takes a grid of reference object views and a scene description (either an image with a mask for insertion or a text prompt for generation) as input.
  7. Crucially, ObjectMate does not require test-time tuning, making inference much faster.

Datasets

  • Training Data: The paper constructs a novel, large-scale supervised dataset for object composition. This dataset is derived from unsupervised image datasets, primarily a subset of WebLI, containing 55 million detected objects. The resulting dataset comprises 4.5 million objects, each with at least 3 retrieved distinct views.
  • Evaluation Data: For object insertion evaluation, they introduce a new test set of 34 objects, each captured in 4 poses and scenes, yielding 136 samples. This dataset includes ground truth images and corresponding background/reference views.

Key Insights and Ideas

  • The "Object Recurrence Prior": The most significant insight is that everyday objects are highly recurrent in large, unlabeled image collections. This provides a powerful, naturally occurring source of supervision for generative tasks.
  • Instance Retrieval is Key: Using instance retrieval features (rather than semantic ones) is critical for finding identical objects across diverse contexts, enabling the creation of a high-quality dataset for identity preservation.
  • Simple Architectures Shine with Good Data: The paper demonstrates that even a straightforward diffusion model architecture, when trained on their massive, curated dataset, can achieve state-of-the-art performance, highlighting the importance of data quality and scale.
  • Identity Preservation is a Distinct Challenge: The authors emphasize that existing metrics often fail to accurately capture identity preservation, proposing IR features as a more reliable proxy, validated by user studies.

Key Results

  • State-of-the-Art Performance: ObjectMate outperforms existing methods in both object insertion and subject-driven generation across various metrics, including composition realism and identity preservation.
  • Superior Identity Preservation: User studies and IR metric comparisons show ObjectMate significantly better preserves object identity compared to baselines.
  • Fast Inference: Unlike many other advanced methods, ObjectMate does not require slow test-time tuning, making it much more practical for real-world applications.
  • Scalability: The paper shows that increasing the size of the unsupervised dataset used for training further improves performance, suggesting potential for even better results with larger datasets.

Limitations and Future Work

  • Human Subjects: The current IR features used were not specifically designed for retrieving human images, and the study did not focus on human subject generation. Future work could explore adapting these methods for human subjects.
  • Dataset Exploration: The authors suggest their dataset creation method could benefit other tasks like 3D geometry and object editing.
  • Architecture Improvements: While their current architecture is simple and effective, further exploration of more advanced diffusion model architectures could yield even better results.
  • Retrieval Feature Improvement: The paper notes that improving retrieval features could further enhance performance.

Summary updated

BibTeX
@inproceedings{winter2025objectmate,
  author = {Daniel Winter and Asaf Shul and Matan Cohen and Dana Berman and Yael Pritch and Alex Rav-Acha and Yedid Hoshen},
  title = {{ObjectMate: A Recurrence Prior for Object Insertion and Subject-Driven Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure