Manuscript Offprint

arXiv:2610.26922

Controllable Multi-Object Insertion for Detection Data Augmentation

Jiyang Huang, Tianwei Zhang, Xiaoqin Zhang, Ling Shao, Shijian Lu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Controllable object insertion provides a targeted approach to augmenting object detection datasets that require category-count fidelity, annotation alignment, and source-content preservation beyond visual realism. Several approaches have been proposed to address this grand challenge, but most suffer from different constraints in precise category-count requests and visual consistency, limited coordination across categories and instances, and poor localization of multiple objects of specific category and count. We design SceneP2F, a two-stage trainable framework that connects scene-aware joint planning with layout-aligned generation leveraging explicit instance-level layouts. SceneP2F consists of two novel designs. The first is SCENEPLAN which allocates one class-labeled query per requested instance, jointly predicts scene-compatible object centers, and separately estimates box sizes conditioned on the planned centers and scene context. The second is SCENEALIGN-FILL which combines geometry- and appearance-aware conditioning, box-class-guided regional attention, and an annotation-region-weighted flow-matching objective to render the planned objects while limiting unintended changes to source content. Extensive experiments on three challenging benchmarks UAVDT, VisDrone, and BDD100K show that SceneP2F outperforms representative general-purpose editors and object-insertion methods consistently, demonstrating the value of coordinating instance-level planning and generation for category-targeted detection augmentation.

1 INTRODUCTION

Object-detection data often suffer from a long-tail class distribution, motivating controllable object insertion as a targeted approach to adding selected instances to real images. Rather than collecting and annotating entirely new scenes, object insertion preserves existing backgrounds and annotations while enriching the training distribution with selected instances. To make such augmentation effective, the inserted objects must be visually consistent with the source scene and occupy plausible locations, while content outside the intended editing regions is preserved. Reliable control over object categories and counts is equally important for achieving reliable augmentation benefits.

Existing methods have demonstrated the feasibility of object insertion and its utility for downstream tasks. General-purpose image editors, such as GPT-Image-2.5, FLUX.2 (Labs, 2025), and Qwen-Image-Edit (Wu et al., 2025), provide strong generative priors for instruction-guided editing. More directly relevant to our task, task-specific object-insertion methods (Yang et al., 2024; Zhao et al., 2024; Tewel et al., 2025) improve controllability through specialized training or inference-time guidance. However, general-purpose editors may transfer poorly to specialized domains, limiting their utility for detection augmentation, while existing object-insertion methods often rely on free-form requests without instance-level constraints for coordinating new objects with the scene, resulting in unpredictable placement and unreliable category count control. Some methods (Yeh et al., 2026; Hou et al., 2026; Petersen et al., 2025) explicitly predict or sample the spatial layout before image synthesis, improving the plausibility of candidate insertion locations. But they still are not able

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

Figure

Figure 1: Given a source image and an object insertion request, representative image editing and object insertion approaches may fail to satisfy the requested categories or counts, alter existing objects, or generate implausible placements, scales, and appearances, as highlighted by the red boxes. SceneP2F, a two-stage framework comprising ScenePlan and SceneAlign-Fill, first predicts a scene-compatible, class-labeled box layout and then jointly synthesizes the requested instances within the planned regions, aiming to improve those questions in multi-object insertion task.

to jointly achieve precise multi-object control, visual consistency with the source scene, plausible placement, and background preservation, potentially limiting the benefits of downstream data augmentation.

We propose SceneP2F, a two-stage planning–generation framework for scene-conditioned, category-and count-controlled multi-object insertion in challenging downstream domains. Given a source scene, the objective of SceneP2F is to add the specified number of new instances at plausible locations and scales while maintaining visual consistency and preserving existing content, with the ultimate goal of enabling effective object-level augmentation for downstream detection.

SceneP2F comprises two key designs, namely, ScenePlan and SceneAlign-Fill. ScenePlan decomposes box prediction into size and position components while retaining their conditional dependence, conditioned on the source image, existing annotations, and admissible insertion regions. It jointly models dependencies among the requested instances and incorporates scene context and geometric feasibility constraints to produce a scene-compatible layout with the requested cardinality. Given this layout, SceneAlign-Fill jointly renders the planned objects using geometry and appearance conditioning. Regional attention guided by box-class tokens associates each planned region with its target category, while an annotation-region-weighted flow-matching objective emphasizes generation within the designated regions. These mechanisms encourage the synthesized instances to follow the planned boxes and remain visually compatible with the source scene, while limiting unintended changes outside the editing regions. Together, the two stages connect explicit category-count constraints at the layout level with instance-level control during image synthesis.

We evaluate our framework on two challenging UAV object detection benchmarks, UAVDT (Du et al., 2018) and VisDrone (Zhu et al., 2021), with BDD100K (Yu et al., 2020) providing a complementary driving-scene benchmark. Our task-aligned evaluation suite covers two dimensions: request fidelity, which measures adherence to the requested categories and counts of newly inserted instances, and scene fidelity, which assesses insertion naturalness and preservation of the original scene and existing objects. Comparisons against FLUX.2-dev, Qwen-Image-Edit-2511, Add-SD, and Add-it suggest that SceneP2F improves category-count adherence and provides competitive scene consistency under our evaluation protocol. SceneP2F achieves the lowest mTCE (Mean Total Count Error) across all three datasets, with particularly large reductions over the best competing baseline on UAVDT (2.744 to 0.817) and BDD100K (5.523 to 1.924). It also improves Outsides PSNR by 5.49, 3.94, and 3.33 dB on UAVDT, VisDrone, and BDD100K, respectively, while achieving the highest DINO similarity and CLIP-I across all three benchmarks. Adding the resulting synthetic images to detector training improves bus AP 50_{50} from 22.9 to 31.0 and truck AP 50_{50} from 7.2 to 12.2, demonstrating the potential value of category-targeted insertion for detection augmentation.

Our main contributions are summarized as follows: (1) We introduce SceneP2F, a trainable framework for annotated detection data generation that integrates category-count control, object-size modeling, appearance alignment, and source-content preservation through explicit instance-level layouts; (2) We propose SCENEPLAN to jointly plan scene-compatible layouts through coupled size and position modeling. SCENEALIGN-FILL uses box-class-guided regional attention and an annotation-region-weighted flow-matching objective to align generated objects with the planned instances while preserving source content; (3) We show that SceneP2F-generated images and corresponding annotations improve detection of long-tail categories on UAVDT, demonstrating the potential utility of our framework for targeted data augmentation.

References (59)