betaFeedback

WorksComputer Science

Synthetic Augmentation for Data-Scarce Object Detection: Allocation, Dose, and Filtering Across Six Datasets

Abstract

Robotic perception for capturing uncooperative orbital objects and inspecting variable industrial products must often operate with limited labelled imagery. We examine a modular synthetic-augmentation pipeline, evaluating generation planning and post-generation filtering as separate interventions, with computational cost as a design constraint. Across six object-detection datasets, FLUX.1-Fill with class-specific LoRA adaptation produced dataset-dependent dose effects; the validation-selected augmentation improved mAP@50:95 on four datasets and reduced it on two. Filtering did not yield consistent gains, and FID, KID, precision, recall, and LPIPS did not consistently track detector changes. The results do not establish that image quality alone identifies useful samples. They motivate standardised evaluation and inexpensive candidate-utility measures that could identify useful samples before detector retraining, reducing repeated training cost.

Introduction

Robotic capture of uncooperative orbital objects illustrates a setting in which acquiring representative real imagery is difficult. Inspection and repair in circular manufacturing face a related data constraint when products vary in appearance and condition. These applications motivate a broader question: can object detection improve when only a small labelled real dataset is available? Synthetic augmentation may help, but plausible images need not add useful training information. The present experiments test the approach on general detection benchmarks rather than on these application domains.

The value of synthetic data may depend on what is generated, how much is added, and which candidates are retained. We study these choices in a modular, diffusion-based pipeline, comparing generation-planning approaches, including one with detector feedback, and assessing post-generation filtering separately. Computational cost is a design constraint.

We also test whether the effect changes with synthetic-data quantity and whether image-level metrics track detector performance.

Related Work

Diffusion-based approaches have been used to generate object-detection training data. ODGEN combines object- and layout-conditioned synthesis for domain-specific detection [16]; FLORA studies efficient data generation through LoRA adaptation of FLUX [12]. Controllable diffusion augmentation has also used semantic scores to reject unsuitable candidates [5]. Earlier detector studies found that rendering choices affect how well synthetic-image training transfers to real scenes [13]. Flow matching provides a continuous-time approach to generative modelling by learning vector fields along paths between noise and data distributions [11]. These works motivate synthetic generation and candidate assessment, but results from different datasets and protocols do not provide a controlled ranking for the present study.

Dataset allocation and selection offer a separate line of work. SD4OD analyses dataset-level deficits to guide synthetic-data creation [3]. Coreset selection for object detection formalises representativeness and diversity in subset construction [9]. GenDataAgent uses downstream-model feedback and gradient-based signals to guide image-classification augmentation [10]; a similar feedback strategy could be explored for object detection. Our study compares a dataset-statistics allocation rule with one detector-weighted variant, then evaluates a separate post-generation selector.

Image-level metrics capture different properties of generated data. FID and KID compare feature distributions [6, 1]; generative precision and recall estimate feature-space fidelity and coverage [8]; LPIPS measures perceptual differences between paired images [15]. Analysing these measures alongside detector metrics makes it possible to examine how image-level assessments relate to downstream detection performance.

Method

Generation and Allocation

The pipeline analyses real training annotations, allocates generation requests, adapts class-specific LoRA modules, and inpaints selected objects in source scenes. Figure 1 summarises the stages. For Detector-Feedback-Weighted Allocation (DFWA), validation results from the real-only detector set generation priorities before candidates are produced.

Figure 1. Experimental pipeline from dataset analysis and generation planning through LoRA adaptation, local inpainting, candidate selection, and detector evaluation. The detector signal is used only by DFWA to set pre-generation priorities.

The four allocation strategies vary in the information used to choose requests. Random Allocation selects source objects without target-group priorities. Class-Quota Allocation assigns quotas at class level. Dataset-Statistics-Guided Allocation (DSGA) directs requests towards under-represented class-conditioned buckets based on object size, aspect ratio, and position. DFWA multiplies the DSGA gap score for target group tt by a class-level weakness estimate:

Pt=BtWc,Wc=0.5(1−APc)+0.5Cc,(1)P_t = B_t W_c,\qquad W_c = 0.5(1 - AP_c) + 0.5C_c, \tag*{(1)}

where BtB_t is the dataset-statistics gap score, APcAP_c is validation AP@50:95, and CcC_c is the normalised validation confusion rate for class cc. The detector weights remain unchanged during this allocation stage.

For each dataset, a deterministic rule selects 200 labelled real training images. Synthetic conditions add K∈{50,100,200}K \in\{50, 100, 200\} images from the selected pool, giving training sets denoted 200+K200 + K. FLUX.1-Fill is adapted with class-specific LoRA modules using annotation-derived object crops and masks, except for MRI, where full-frame examples with class-specific masks are used. Each generation request specifies the source object, mask, class prompt, and sampling seed; the generated region is composited into its source scene, retaining the inherited detection annotations. LoRA uses rank r=32r = 32 and scaling α=32\alpha= 32 [7]. The experiment varies allocation and dose, not the pretrained diffusion architecture. Figure 2 shows representative source and generated images with their inherited annotations. Source-image attribution and licensing details are listed in Ref. [4].

Figure 2. Representative source and generated pairs from four datasets. Red boxes and class tags show the inherited YOLO annotations. Generated panels are inpainted modifications of the source images.

Filtering

Filtering addresses candidate choice after generation and is evaluated only on candidates generated by DSGA. Integrity gates check whether the edit remains local, whether the mask boundary has a pronounced discontinuity, and whether enough pixels within the mask changed. The minimum-change ratio rir_i is the proportion of masked pixels with at least one RGB channel changing by more than five intensity levels; candidates require ri≥0.15r_i \ge0.15.

The selector maintains class and target-group counts and limits reuse of a source image. When a scene contains multiple annotations, all inherited labels contribute to class-count constraints; feature ranking represents the edited target object from its inherited box using a frozen real-only YOLOv7 detector. L2-normalised features are compared by cosine distance to same-class real objects and to already selected candidates. Feature distance ranks candidates but does not determine whether a candidate is accepted or rejected. If passing candidates cannot fill a quota within the source-reuse limit, candidates from the corresponding unfiltered subset are used as fallbacks.

Evaluation Protocol

We evaluate six datasets from Roboflow-100 [2]: Aquarium, Cotton, MRI, Road Traffic, Robotmaster, and Underwater. YOLOv7 [14] is trained on each real-only and augmented condition using the same three detector seeds (11, 23, and 37); paired changes are calculated relative to the real-only run with the matching seed. The primary metric is mAP@50:95. Allocation and dose selection use validation performance. After selection, the unfiltered DSGA dose chosen for each dataset is evaluated on the held-out test partition. The fixed training schedule is 100 epochs.

Image metrics are calculated separately from detector evaluation. For the association analysis, FID, KID, precision, recall, and LPIPS are measured on each unfiltered DSGA dose subset. FID and KID use both the complete dataset partitions and the 200-image generation-source subset as references. Precision and recall use validation and test images as an image-only reference; no test labels or detector outputs enter these calculations. LPIPS is averaged over paired source–generation images. For each dataset, we subtract the mean across its three doses from each metric value and paired validation mAP change. Pearson correlation is then calculated over the 18 dataset-dose pairs. This measures whether dose-level changes in an image metric accompany dose-level changes in detector performance within datasets, rather than comparing absolute metric values across datasets. The dose subsets are nested, so the 18 pairs are not independent observations.

Results

Allocation Strategy and Synthetic Dose

Table 1 shows a trade-off across the 18 dataset-dose comparisons. Random Allocation produced the largest equal-weight mean paired change, while DSGA had positive mean changes in 12 comparisons, one more than Random Allocation. DSGA was carried forward because the validation selection criterion prioritised the frequency of positive changes. For Robotmaster, DSGA and DFWA specified identical target groups and therefore produced the same results.

StrategyMean Δ\DeltaPositive cells
Random Allocation+0.029111/18
DSGA+0.023712/18
Class-Quota Allocation+0.010211/18
DFWA+0.00989/18

Table 1. Validation allocation summary across available matched dataset-dose comparisons. Mean Δ\Delta is the equal-weight average of the 18 dataset-dose mean changes; positive cells count means above the real-only baseline.

Table 2 shows non-monotonic dose responses on all six datasets. The best of the tested doses exceeded the real-only mean in five datasets, with gains ranging from 0.009 mAP@50:95 for Aquarium to 0.179 for MRI. Every tested Road Traffic dose remained below its real-only baseline. The dose with the largest mean change varied across datasets. Doses above 200 were not tested.

DatasetK=50K = 50K=100K = 100K=200K = 200
Aquarium+0.0090 ±\pm 0.0152−0.0091 ±\pm 0.0136−0.0090 ±\pm 0.0111
Cotton+0.0188 ±\pm 0.0592+0.0079 ±\pm 0.0306+0.0113 ±\pm 0.0279
MRI+0.1787 ±\pm 0.1477+0.0781 ±\pm 0.0367+0.1470 ±\pm 0.1406
Road Traffic−0.0202 ±\pm 0.0199−0.0145 ±\pm 0.0098−0.0606 ±\pm 0.0098
Robotmaster−0.0740 ±\pm 0.3389+0.0349 ±\pm 0.3659+0.0229 ±\pm 0.3405
Underwater+0.0275 ±\pm 0.0697+0.0214 ±\pm 0.0219+0.0563 ±\pm 0.0365

Table 2. Paired validation Δ\Delta mAP@50:95 for DSGA relative to the same-seed real-only result. Entries are means ±σΔ\pm\sigma_{\Delta} over three paired seed differences.

Filtering and Image Metrics

Filtering increased mean mAP@50:95 in 7 of 18 matched dataset-dose comparisons and decreased it in the other 11; filtered conditions exceeded real-only training in 9 comparisons. The direction varied by dataset. In Robotmaster, the integrity gates and source-reuse limit left too few passing candidates to fill 95 of 350 requested positions across doses, so the selector used examples from the corresponding unfiltered subsets for those slots. This is a limitation of the evaluated selector under that candidate pool.

Table 3 reports the associations between dose-level image metrics and detector changes. The largest positive value was r=0.32r = 0.32 for train-200 KID, and recall had the most negative value (r=−0.41r = -0.41). These are exploratory associations across 18 observations, not evidence of predictive utility.

Image metric and referenceWithin-dataset rr
FID, full train–validation–test reference0.12
FID, train-200 reference0.12
KID, full train–validation–test reference0.21
KID, train-200 reference0.32
LPIPS, source–generation pairs−0.05
Generative precision, validation/test reference−0.003
Generative recall, validation/test reference−0.41

Table 3. Within-dataset-centred Pearson correlations between image metrics and paired validation ΔmAP@50:95\Delta\mathrm{mAP}@50:95 (n=18n = 18 dataset-dose observations). Dose subsets overlap; coefficients are descriptive and no significance test was conducted.

Held-Out Test Evaluation

The validation-selected unfiltered DSGA condition improved test mAP@50:95 in four datasets and decreased it in two (Table 4). The equal-weight mean paired change across the six datasets was +3.02 percentage points, with the largest absolute increase for MRI (+10.18 points) and the largest decrease for Road Traffic (−2.79 points). Relative to each dataset’s real-only mean, the changes ranged from −6.2% for Road Traffic to +87.7% for Underwater; the equal-weight mean of the six dataset-specific percentage changes was +29.8%.

Dataset (KK)Real-onlyDSGAODGEN (200 + 5000)FLORA (200 + 500)
Aquarium (50)35.93 ±\pm 1.8135.50 ±\pm 0.90 (−0.43-0.43)29.6 →\to 38.5 (+8.9)29.6 →\to 41.0 (+11.4)
Cotton (50)8.14 ±\pm 2.4810.97 ±\pm 1.44 (+2.83)20.5 →\to 43.2 (+22.7)20.5 →\to 44.5 (+24.0)
MRI (50)21.40 ±\pm 9.4131.58 ±\pm 1.58 (+10.18)27.4 →\to 41.5 (+14.1)27.4 →\to 37.6 (+10.2)
Road Traffic (100)44.77 ±\pm 1.8441.98 ±\pm 0.33 (−2.79-2.79)41.0 →\to 43.8 (+2.8)41.0 →\to 62.3 (+21.3)
Robotmaster (100)18.58 ±\pm 16.6221.64 ±\pm 18.90 (+3.06)26.5 →\to 34.7 (+8.2)26.5 →\to 38.2 (+11.7)
Underwater (200)6.02 ±\pm 2.2411.30 ±\pm 4.79 (+5.28)19.4 →\to 22.0 (+2.6)19.4 →\to 24.5 (+5.1)

Table 4. Table 4. Test mAP@50:95 for this study and published RF7 YOLOv7 results [16, 12]. This study reports held-out means ±σseed\pm\sigma_{\mathrm{seed}} in percent; gains in parentheses are changes from the real-only baseline in percentage points.

The ODGEN and FLORA values are taken from their papers; neither pipeline was run here. They are contextual references: despite both reporting RF7 results, their budgets and evaluation protocols differ, and no shared end-to-end benchmark or reporting format currently supports exact reproduction across methods.

Discussion and Conclusion

Adding generated images did not produce a uniform increase in detector performance. Dose responses differed by dataset, and the held-out results do not support a general claim of improvement. Stronger gains on specialised datasets are consistent with greater marginal value where pretrained representations may be weaker; the experiments do not isolate this factor from other dataset differences. Performance in circular manufacturing remains untested.

Filtering did not consistently improve detection. The image metrics describe distributional or perceptual properties, and their measured associations did not reliably indicate detector changes. Candidate-level utility estimates could guide generation towards samples likely to help a target detector, reducing repeated generation and retraining. Detector–generator feedback is one possible route, although it would increase computational cost and require controls that separate generator changes from detector adaptation.

Three detector seeds and one synthetic pool per condition reveal seed variation, not full-pipeline generalisation. Future benchmarks should share splits, generation budgets, and detector protocols, and include independent synthetic pools and detector runs.

Code and reproduction resources will be added at https://github.com/JGuedesFelix/flux-od.

References

  1. [1]Bińkowski, M., Sutherland, D.J., Arbel, M., Gretton, A.: Demystifying MMD GANs. In: International Conference on Learning Representations (2018)arxiv.org/abs/1801.01401
  2. [2]Ciaglia, F., Zuppichini, F.S., Guerrie, P., McQuade, M., Solawetz, J.: Roboflow 100: A rich, multi-domain object detection benchmark (2022) J. G. Félix, A. Dehban, and R. Ventura
  3. [3]Clearbox AI: SD40D: Synthetic data generation for object detection datasets (2026), https://github.com/Clearbox-AI/SD40D, GitHub repository, accessed 14 May 2026
  4. [4]Dwyer, B., Rodriguez, A., Aljouma, M.A.A., Shree, R., J, S.: Source images for figure 2: Aquarium combined, axial, road traffic, and bt cotton datasets. Roboflow Universe dataset records, dataset metadata identifies the images as CC BY 4.0. Aquarium (Brad Dwyer): https://universe.roboflow.com/brad-dwyer/aquarium-combined; Axial MRI (Adrian Rodriguez): https://universe.roboflow.com/tfg-2nmge/axial-dataset; Road Traffic (Muntaser Al Abdulla Aljouma): https://universe.roboflow.com/due/detection-dlzhy; Cotton (Roopa Shree and Shriya J): https://universe.roboflow.com/cotton-nqp2x/bt-cotton. Licence: https://creativecommons.org/licenses/by/4.0/
  5. [5]Fang, H., Han, B., Zhang, S., Zhou, S., Hu, C., Ye, W.M.: Data augmentation for object detection via controllable diffusion models. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (2024)DOI
  6. [6]Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., Hochreiter, S.: GANs trained by a two time-scale update rule converge to a local nash equilibrium. In: Advances in Neural Information Processing Systems (2017)
  7. [7]Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-rank adaptation of large language models. In: International Conference on Learning Representations (2022)arxiv.org/abs/2106.09685
  8. [8]Kynkäänniemi, T., Karras, T., Laine, S., Lehtinen, J., Aila, T.: Improved precision and recall metric for assessing generative models. In: Advances in Neural Information Processing Systems (2019)arxiv.org/abs/1904.06991
  9. [9]Lee, H., Kim, S., Lee, J., Yoo, J., Kwak, N.: Coreset selection for object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (2024)arxiv.org/abs/2404.09161
  10. [10]Li, Z., Chen, L., Andrews, J., Ba, Y., Zhang, Y., Xiang, A.: GenDataAgent: On-the-fly dataset augmentation with synthetic data. In: The Thirteenth International Conference on Learning Representations (2025)
  11. [11]Lipman, Y., Chen, R.T.Q., Ben-Hamu, H., Nickel, M., Le, M.: Flow matching for generative modeling. In: International Conference on Learning Representations (2023)arxiv.org/abs/2210.02747
  12. [12]Patricio, A., Dehban, A., Ventura, R.: FLORA: Efficient synthetic data generation for object detection in low-data regimes via finetuning Flux LoRA. arXiv preprint (2025)arxiv.org/abs/2508.21712
  13. [13]Rozantsev, A., Lepetit, V., Fua, P.: On rendering synthetic images for training an object detector. Computer Vision and Image Understanding (2015)DOI
  14. [14]Wang, C.Y., Bochkovskiy, A., Liao, H.Y.M.: YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2023)arxiv.org/abs/2207.02696
  15. [15]Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2018)arxiv.org/abs/1801.03924
  16. [16]Zhu, J., Li, S., Liu, Y., Yuan, J., Huang, P., Shan, J., Ma, H.: ODGEN: Domain-specific object detection data generation with diffusion models. In: Advances in Neural Information Processing Systems (2024)arxiv.org/abs/2405.15199

Paper details

vlnc:W_6bkccc3x
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents