HiddenObjects: Scalable Diffusion-Distilled Spatial Priors for Object Placement

1Technical University of Denmark 2University of Copenhagen 3Pioneer Center for AI

Accepted to WACV 2027

WACV 2027, January 4–8, Orlando, Florida
Spatial prior extraction by inpainting candidate boxes
(a) Spatial Prior Extraction
Spatial priors for pizza, potted plant, cake and cat
(b) Multi-class Spatial Priors

Spatial priors for object placement. (a) We score candidate bounding boxes for object insertion using a diffusion inpainting pipeline. Each location is inpainted and evaluated by three possible outcomes: (i) pizza detected, (ii) wrong object, or (iii) no object. Plausible placements contribute to the prior. (b) Aggregating predictions across many scenes and object categories produces heatmaps reflecting common compositional patterns in natural scenes.

Abstract

We learn explicit, class-conditioned spatial priors for object placement in natural scenes by distilling placement knowledge from text-conditioned diffusion models. Prior methods rely on sparse manual annotations or on inpainting object-removal pipelines, whose artifacts promote shortcut learning. To address these limitations, we propose a scalable pipeline that evaluates dense candidate placements by inserting objects into clean backgrounds. This produces HiddenObjects, a dataset of 27M bounding-box annotations (2M positives) across 27k diverse scenes and object categories. Human evaluators prefer our image editing composites over those guided by sparse annotations in 65.6% of comparisons. We distill the priors into a lightweight placement model that achieves the best accuracy among dedicated baselines and zero-shot vision-language models.

Highlights

27M
Placement annotations (2M positives) on 27k Places365 scenes, 50 COCO classes
87.1%
Verifier–human agreement (ROC–AUC 0.931, Cohen's κ = 0.714)
65.6%
Human preference for our composites over sparse OPA annotations
3.90
vs. 2.68 for human annotations (ImgEdit-Judge, 1–5)
21.0
mAPcls of our placement model vs. 5.4 for the best baseline
3.77 ms
Per image after distillation, 230,000× faster than the pipeline

Dataset

We construct HiddenObjects by pairing 27k background images from 126 scene categories of Places365 with 50 COCO foreground categories across 10 macro-classes (food, furniture, animal, vehicle, …). Each scene–category pair is annotated with 1,004 ranked bounding box proposals, yielding 27M placement annotations in total.

Explore the Annotations

Hover over any image to reveal its placement annotations. Green = accepted.

Loading visualization...

Comparison with Existing Datasets

Dataset # Boxes + / inst − / inst Real Img Dense Scalable Clean BG
DreamEditBench 220 1 0 ✓ ✗ ✗ ✓
MureCom 640 1 0 ✓ ✗ ✗ ✓
OPA 0.07M 1.9 3.8 ✓ ✗ ✗ ✓
OPA-ext 0.15M 2.2 4.3 ✓ ✗ ✗ ✓
PIPE 0.89M 1 0 ✗ ✗ ✓ ✗
SAM-FB 3M 1 0 ✗ ✗ ✓ ✗
HiddenObjects 27M 77.7 926.3 ✓ ✓ ✓ ✓

Where and How Big Are the Objects?

Dataset bias visualization

Method

① Inpainter

Qwen-Image + ControlNet synthesises class-consistent object insertions at each bounding box in a sliding-window grid. ControlNet conditioning enforces scene geometry and refuses physically impossible placements.

② Verifier

Grounded-SAM-2 detects whether the target object was successfully inpainted in the proposed region. Low-confidence detections, wrong categories, and object replacements are discarded.

③ Ranker

ImageReward assigns a human-preference score to each verified insertion. The ranked scores define the final spatial prior distribution over all valid locations.

Pizza spatial prior

Example spatial prior creation. Our pipeline performs an exhaustive sliding-window search on a kitchen scene for pizza insertions.

Faster Inpainting with Early Exit

After one denoising step, the conditional–unconditional noise gap flags failed insertions (81% recall). Skipping them gives a 2.4× speedup without degrading the prior.

Distribution of conditional–unconditional noise gap per denoising step Recall versus threshold and time per image
Top: noise gap for successful vs. failed insertions. Bottom: recall vs. threshold and time per image.

Image Editing Performance

We inpaint objects at each method's boxes and score the edits with ImgEdit-Judge (1–5).

65.6%
Human preference for composites guided by our priors over sparse OPA annotations
2.68 → 3.90
ImgEdit-Judge score on OPA when replacing sparse OPA annotations with our boxes

Example Edits

Image inpainting with object placement priors
Image inpainting with object placement priors on OPA and HiddenObjects backgrounds. Dashed boxes show the inpainting region: ours, OPA annotation, random. Scores are ImgEdit-Judge (1–5). Click to open at full resolution.

Model Distillation

A lightweight transformer predicts ranked boxes from an image and a class: 230,000× faster and 300× less memory than the full pipeline.

Distilled model architecture
Distilled model. Image + class embedding → ranked boxes.

Placement Accuracy vs. Baselines

21.0 vs. 5.4
mAPcls vs. best baseline
7.8 → 21.0
mAPcls when trained on HiddenObjects instead of OPA
3.43 vs. 2.68
Image editing score vs. human OPA boxes

Slides

BibTeX

@misc{schouten2026hiddenobjects,
      title={HiddenObjects: Scalable Diffusion-Distilled Spatial Priors for Object Placement}, 
      author={Marco Schouten and Ioannis Siglidis and Serge Belongie and Dim P. Papadopoulos},
      year={2026},
      eprint={2604.10675},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2604.10675}, 
}