UniDG: Unified Defect Generation via Defect-Context Editing
Yuanting Fan, Jun Liu, Bin-Bin Gao, Xiaochen Chen, Yuhuan Lin, Zhewei Dai, Jiawei Zhan, Chengjie Wang
NeurIPS 2026
TL;DR. UniDG is a unified defect generation model trained on the 300K-pair UDG dataset to synthesize realistic, mask-aligned defects without per-category fine-tuning.
Abstract. Generating realistic visual defects is crucial for alleviating the scarcity of abnormal samples in anomaly detection, yet existing methods often rely on category-specific few-shot adaptation and struggle to generalize across objects, defect types, and domains. This limitation stems in part from the lack of paired defect editing data and the fine-grained nature of defect appearance, where subtle variations in scale, texture, and morphology must be preserved while maintaining consistency with the target scene. To address this challenge, we introduce UDG, a dataset of 300K normal-abnormal-mask-caption quadruplets curated from diverse defect-related scenarios, and present UniDG, a unified defect generation model. UniDG formulates defect synthesis as Defect-Context Editing: it extracts reference defect context with adaptive cropping, organizes reference and target inputs in a structured diptych format, and fuses multimodal conditions through MM-DiT attention. We further develop a two-stage training strategy: Diversity-SFT learns diverse transferable defect priors from paired editing data, while optional Consistency-RFT can further improve reference adherence, local realism, and defect-category consistency. Without per-category fine-tuning or using MVTec-AD/VisA for training, UniDG outperforms prior few-shot anomaly generation and image insertion/editing baselines in both synthesis quality and downstream single- and multi-class anomaly detection/localization.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 6 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) Summary of Scientific Claims and Findings The paper presents two primary contributions: the UDG dataset and the UniDG model, a unified framework for reference-based defect generation. The core scientific claim is that defect generation can be formulated as a Defect-Context Editing task, where a model learns transferable defect priors from diverse paired data and applies them to new objects/domains without per-category fine-tuning.
The authors propose a two-stage training strategy: Diversity-SFT (three complementary sampling distributions) followed by Consistency-RFT (GRPO-based reinforcement learning with two specialized reward models). Experimental results on MVTec-AD and VisA show that UniDG generally outperforms the evaluated few-shot anomaly generation and image insertion baselines on downstream detection/localization and MLLM-based perceptual metrics, although it does not uniformly improve all diversity-oriented synthesis metrics. Experiments on GoodsAD and Kvasir-SEG provide evidence of transfer to held-out natural and medical benchmarks without domain-specific fine-tuning. Post-training W4A4 quantization achieves a 3× speedup with small performance degradation.
(b) Main Strengths
-
Large-scale, systematically curated dataset (UDG). The multi-agent curation pipeline (Inpainting, Captioner, Verifier) constructs 300K paired quadruplets with structured captions, including a curated real-anomaly subset and a verified synthetic extension. The dataset covers 28 standardized defect categories aggregated from 50 source datasets. This directly addresses the long-standing problem of paired defect-editing data scarcity.
-
Novel two-stage training with strong ablation validation. Diversity-SFT uses three complementary sampling strategies (Single Object Fill, Intra-Defect Cross, Multi-Object Cross) to learn transferable priors. Consistency-RFT employs Flow-GRPO with Defect-Und-Reward and Defect-Recog-Reward to improve reference adherence. Ablations show incremental gains from each component, with Diversity-SFT contributing the largest improvement (+15.2 FG-mIoU vs. baseline). SFT is shown to be essential before RFT.
-
Comprehensive evaluation across multiple benchmarks and metrics. Evaluation includes single-class AD (AUROC-I/P, AP-I/P, PRO-P), multi-class semantic segmentation (mIoU, FG-mIoU), MLLM-based synthesis quality scores, and transfer to GoodsAD and Kvasir-SEG. Per-category breakdowns are provided. A concept-level holdout (UDG_no-overlap) yields modest absolute drops across the four reported metrics (0.66-2.1 points), providing additional, though not conclusive, support for the transferable-prior claim.
-
Practical deployment via W4A4 quantization. SVDQuant W4A4 retains the 12B-parameter architecture while reducing its reported BF16-equivalent model footprint from 12B to 3.3B, measured VRAM from 28GB to 9GB, and inference time from 11.59s to 3.9s, with small performance drops. This substantially improves the practicality of deployment on consumer GPUs. Supporting evidence: Appendix I, Table 18.
(c) Main Weaknesses
-
Failure cases not quantified. Failure modes (color drift, texture mismatch under extreme scale/lighting) are mentioned qualitatively with representative examples (Figure 9) but without systematic quantification or breakdown by defect type.
-
Instruction-based editing is only qualitatively evaluated. Appendix C.3 describes two instruction-training distributions and presents qualitative comparisons in Figure 8. However, it does not report a quantitative benchmark, systematic human evaluation, or complete training hyperparameters. Consequently, the claim that UniDG-Text outperforms proprietary editing models is supported only by selected qualitative examples.
(d) Weaknesses That Could Adjust Acceptance Odds (If Addressed) The following clarifications or additional evidence could materially affect the assessment:
-
Data scale ablation. What we need to see: Additional experiments varying UDG dataset size (50K, 100K, 200K, 300K) to clarify scaling behavior and whether the 300K scale is necessary.
-
Quantification of failure cases. What we need to see: Systematic quantification of failure rates on evaluation benchmarks, ideally broken down by defect type, to help readers understand practical limitations.
Final justification
I have read the authors' response and have reached my final decision based on the following assessment.
The authors provided substantive responses to the two issues raised in the review—namely, data scale ablation and failure case quantification—and have corrected several claims that lacked factual support.
Most commendable aspects of the authors' response:
(1) Quantitative decomposition of component contributions and claim narrowing. The authors decomposed the gains in Table 3 into the contributions of five main components, directly addressing the concern that the pipeline is an overly long assembly of off-the-shelf modules. This decomposition clearly shows that the three components expressing the data formulation—Diptych Defect-Context Editing, Normal Regularization, and Diversity-SFT—account for 79% of the total FG-mIoU gain, while the borrowed components (Defect Attention and Consistency-RFT) contribute modestly.
(2) Quantitative assessment of synthesis quality in the data curation pipeline. UDG's data construction relies entirely on an automated multi-agent pipeline without exhaustive per-sample human verification. To address this legitimate concern, the authors conducted an independent human audit—covering 500 stratified retained samples and approximately 5,000 boundary cases—and provided quantitative metrics (image/mask validity 96.4%, caption correctness 95.6%, 97.1% of recovered normals defect-free and artifact-free), thereby offering tangible guarantees of the data's synthesis quality.
My final recommendation is to accept this paper.
Read meta-review
Meta-review
(a) Summary of Scientific Claims and Findings The paper presents two primary contributions: the UDG dataset and the UniDG model, a unified framework for reference-based defect generation. The core scientific claim is that defect generation can be formulated as a Defect-Context Editing task, where a model learns transferable defect priors from diverse paired data and applies them to new objects/domains without per-category fine-tuning.
The authors propose a two-stage training strategy: Diversity-SFT (three complementary sampling distributions) followed by Consistency-RFT (GRPO-based reinforcement learning with two specialized reward models). Experimental results on MVTec-AD and VisA show that UniDG generally outperforms the evaluated few-shot anomaly generation and image insertion baselines on downstream detection/localization and MLLM-based perceptual metrics, although it does not uniformly improve all diversity-oriented synthesis metrics. Experiments on GoodsAD and Kvasir-SEG provide evidence of transfer to held-out natural and medical benchmarks without domain-specific fine-tuning. Post-training W4A4 quantization achieves a 3× speedup with small performance degradation.
(b) Main Strengths
-
Large-scale, systematically curated dataset (UDG). The multi-agent curation pipeline (Inpainting, Captioner, Verifier) constructs 300K paired quadruplets with structured captions, including a curated real-anomaly subset and a verified synthetic extension. The dataset covers 28 standardized defect categories aggregated from 50 source datasets. This directly addresses the long-standing problem of paired defect-editing data scarcity.
-
Novel two-stage training with strong ablation validation. Diversity-SFT uses three complementary sampling strategies (Single Object Fill, Intra-Defect Cross, Multi-Object Cross) to learn transferable priors. Consistency-RFT employs Flow-GRPO with Defect-Und-Reward and Defect-Recog-Reward to improve reference adherence. Ablations show incremental gains from each component, with Diversity-SFT contributing the largest improvement (+15.2 FG-mIoU vs. baseline). SFT is shown to be essential before RFT.
-
Comprehensive evaluation across multiple benchmarks and metrics. Evaluation includes single-class AD (AUROC-I/P, AP-I/P, PRO-P), multi-class semantic segmentation (mIoU, FG-mIoU), MLLM-based synthesis quality scores, and transfer to GoodsAD and Kvasir-SEG. Per-category breakdowns are provided. A concept-level holdout (UDG_no-overlap) yields modest absolute drops across the four reported metrics (0.66-2.1 points), providing additional, though not conclusive, support for the transferable-prior claim.
-
Practical deployment via W4A4 quantization. SVDQuant W4A4 retains the 12B-parameter architecture while reducing its reported BF16-equivalent model footprint from 12B to 3.3B, measured VRAM from 28GB to 9GB, and inference time from 11.59s to 3.9s, with small performance drops. This substantially improves the practicality of deployment on consumer GPUs. Supporting evidence: Appendix I, Table 18.
(c) Main Weaknesses
-
Failure cases not quantified. Failure modes (color drift, texture mismatch under extreme scale/lighting) are mentioned qualitatively with representative examples (Figure 9) but without systematic quantification or breakdown by defect type.
-
Instruction-based editing is only qualitatively evaluated. Appendix C.3 describes two instruction-training distributions and presents qualitative comparisons in Figure 8. However, it does not report a quantitative benchmark, systematic human evaluation, or complete training hyperparameters. Consequently, the claim that UniDG-Text outperforms proprietary editing models is supported only by selected qualitative examples.
(d) Weaknesses That Could Adjust Acceptance Odds (If Addressed) The following clarifications or additional evidence could materially affect the assessment:
-
Data scale ablation. What we need to see: Additional experiments varying UDG dataset size (50K, 100K, 200K, 300K) to clarify scaling behavior and whether the 300K scale is necessary.
-
Quantification of failure cases. What we need to see: Systematic quantification of failure rates on evaluation benchmarks, ideally broken down by defect type, to help readers understand practical limitations.
Final justification
I have read the authors' response and have reached my final decision based on the following assessment.
The authors provided substantive responses to the two issues raised in the review—namely, data scale ablation and failure case quantification—and have corrected several claims that lacked factual support.
Most commendable aspects of the authors' response:
(1) Quantitative decomposition of component contributions and claim narrowing. The authors decomposed the gains in Table 3 into the contributions of five main components, directly addressing the concern that the pipeline is an overly long assembly of off-the-shelf modules. This decomposition clearly shows that the three components expressing the data formulation—Diptych Defect-Context Editing, Normal Regularization, and Diversity-SFT—account for 79% of the total FG-mIoU gain, while the borrowed components (Defect Attention and Consistency-RFT) contribute modestly.
(2) Quantitative assessment of synthesis quality in the data curation pipeline. UDG's data construction relies entirely on an automated multi-agent pipeline without exhaustive per-sample human verification. To address this legitimate concern, the authors conducted an independent human audit—covering 500 stratified retained samples and approximately 5,000 boundary cases—and provided quantitative metrics (image/mask validity 96.4%, caption correctness 95.6%, 97.1% of recovered normals defect-free and artifact-free), thereby offering tangible guarantees of the data's synthesis quality.
My final recommendation is to accept this paper.
4 comments
Continued (2/2): ethics-thread corrections and claim narrowing
Dear Area Chair, continuing the note above (2 of 2). The two items below came out of the ethics threads rather than the meta-review, and we would rather you saw them here than discovered them across three separate discussions.
4. Ethics threads: two further corrections
The three ethics reviews prompted checks that turned up two errors in the submission. Both are documentation rather than results, no experimental claim depends on either, and we have answered each ethics reviewer in full — but you should see them in one place.
The medical sources were never documented. Reviewers adin and CMZU both asked for the provenance, consent basis and de-identification status of UDG's medical imagery. The paper claims medical scope and names not one medical source, so nothing in the submission lets anyone check. They are BraTS 2018/19/20, ISIC, CVC-ClinicDB, CVC-ColonDB, EndoScene, TN3K, RESC and liver imaging from BTCV+LiTS and ATLAS, with Kvasir-SEG evaluation-only. We give a per-source table in the CMZU thread covering all four fields requested, and state plainly what we cannot verify: we hold no patient-level consent documentation for any source, and for ISIC the only de-identification guarantee is a contributor warranty the archive does not verify.
Neither the medical subset nor the weights can be MIT-licensed. Appendix A commits to releasing dataset, weights and code under MIT. Several medical sources are CC BY-NC-SA 4.0, whose ShareAlike term binds derivatives, and CVC and Kvasir-SEG forbid commercial use, so the quadruplets built from them cannot be MIT. Separately, UniDG is a set of adapters on FLUX.1-Fill-dev and FLUX.1-Redux-dev, whose licence defines a Derivative to include any fine-tuned version and extends its non-commercial restriction to Derivatives, so the weights must carry the FLUX.1 [dev] Non-Commercial License. We will redistribute no medical image, derived quadruplet or synthetic medical image. What ships is per-sample metadata — source identifier and the mask, caption and generation parameters needed to rebuild the sample — plus the curation scripts, so the subset can be reconstructed by anyone who accepts each provider's terms directly. That is the mechanism the paper already describes for restricted industrial sources; we failed to apply it where it mattered most.
A live compliance failure. None of the medical sources, nor Kvasir-SEG, nor GoodsAD, is currently cited. For BraTS, the CVC datasets, TN3K and Kvasir-SEG citation is a stated condition of use, and BraTS names three specific manuscripts. All will be cited in the camera-ready, alongside a per-source appendix table pairing each dataset with its citation and its terms of use, so compliance is checkable in one place. We report this rather than fix it silently because it bears on whether our asset documentation can be trusted.
Ethics reviewer ZhqZ recommends renaming the method, judging "Universal" unsupported. We agree and propose "UniDG: Unified Defect Generation via Defect-Context Editing", which keeps the acronym and every existing reference to the method while dropping the coverage claim. We would need your and the program chairs' approval for a camera-ready title change and would welcome your view.
5. Claims we are narrowing
"Domain-agnostic" becomes transfer to the evaluated held-out benchmarks without target-benchmark or category-specific fine-tuning. "Training-Free Few-Shot" becomes no target-benchmark training, since UniDG is trained on UDG. Consistency-RFT is described as an optional alignment stage with a measured, bounded benefit rather than a necessary one, and Defect Attention is reported as the weakest component at +0.6 Acc and +0.7 FG-mIoU. We would rather state the supported scope precisely than defend the broader wording.
We are happy to provide anonymized code in an Official Comment if that would help the committee assess the data manifest or the evaluation protocol.
Summary of the discussion period: what we delivered and what we are changing in the paper (1/2)
Dear Area Chair,
This is a closing note at the end of the discussion period. Our first note was an index of where each meta-review point was answered plus two proactive disclosures; this one reports what the discussion itself produced. Three things: every item we promised in a thread has now been posted, both reviewer follow-ups converged on one question that we had answered badly the first time, and the full list of what we have withdrawn, corrected or narrowed is collected in one place below.
1. Every in-thread commitment is now closed
| Promised | Thread | Outcome |
|---|---|---|
| Mask-quality sensitivity sweep | JHNj | Posted. FG-mIoU 31.87 unperturbed against 24.6 in the worst setting (erosion by 11 px), while RefAd moves only 4.04 → 3.72, because mask geometry never touches the reference stream — what erodes is localization, not defect appearance. Erosion hurts more than dilation, consistent with Adaptive Defect Crop already training the model in a dilated regime. So downstream results are mask-sensitive gradually rather than sharply, and even the worst setting stays above InsertAnything's 15.63 with unperturbed masks. |
| Fixed-epoch downstream rerun, no checkpoint selection | nT6U, and your §3 | Posted. Removing the best-of-20 rule costs roughly one absolute point for every method and the ordering is unchanged: UniDG-RFT over InsertAnything is 13.7 Acc-C and 16.1 FG-mIoU fixed-epoch, against 13.8 and 16.24 before. The rule inflated absolutes uniformly rather than favouring us. Fixed-epoch becomes the primary protocol; best-of-20 moves to an appendix with the rule stated in the caption. |
| Split-isolation overlap counts | nT6U | Posted, and zero on all three intersections — UDG training against MVTec-AD evaluation, against VisA evaluation, and generation references against downstream evaluation images. Method: SHA-256 over decoded pixels plus pHash (Hamming ≤ 5 as a candidate, every candidate inspected by hand), run over the final UDG manifest rather than the source-dataset list. |
| Smaller-backbone experiment | JHNj and ruex follow-ups | New; §2 below. |
The data-scale ablation (d1), the blinded failure audit (d2 and c1) and KID plus IS (a) were posted in the first round and are unchanged.
2. Both follow-ups asked one question, and our first answers to it were poor
ruex and JHNj independently returned to backbone size. In ruex's thread we had offered W4A4 quantization as the answer; the reviewer correctly rejected it, since W4A4 lowers the numerical precision of a trained 12B function rather than reducing capacity, and we withdrew it. In JHNj's thread we had declined the experiment as impossible to run honestly. Both answers failed the same way: we asserted a blanket porting cost without distinguishing across backbone families from within one.
Within the FLUX family only one of our four couplings to FLUX.1-Fill actually breaks. FLUX-Mini (3.2B, depth reduced from 19+38 to 5+10 blocks) keeps hidden size 3072, condition dim 4096, the RoPE axis configuration and the FLUX VAE, so the Redux reference stream, the diptych 2-D RoPE and Defect Attention port unchanged. Only the masked-input stem breaks, and only because FLUX-Mini is distilled from FLUX.1-dev rather than from Fill: it must be widened 64 → 384 with the 320 new channels zero-initialised.
At matched step budgets against Table 7's existing 12B rows, the 3.2B backbone retains 45% of FG-mIoU at 2K steps and 59% at 6K. Changing only the formulation on the same 12B backbone (InsertAnything, same UDG data, Appendix M) retains 55% and 57% across the two stages. The capacity cost shrinks as training proceeds; the formulation cost does not. Two limits we would rather state than bury: because of that widened stem the small model must learn Fill's verbatim-reproduction behaviour during our SFT, so the gap is an upper bound on the capacity cost rather than a clean estimate of it; and 6K steps is well short of convergence, so this bounds the ordering, not the converged gap. The 14K run goes into the camera-ready against Table 7's 14K row, reported whatever it shows, including a gap large enough to narrow the paper's claim to the evaluated scale.
Summary of the discussion period: what we delivered and what we are changing in the paper (2/2)
Dear Area Chair, continuing the closing note above (2 of 2).
3. Where the reviewers stand
ruex wrote that most issues were addressed and left one question, which §2 answers. JHNj wrote that the response clarified our claims, asked for exactly the smaller-model experiment above, and said they were open to raising their score. nT6U's two owed items are delivered, and its ethics flag on data quality and representativeness is answered with the retained-sample audit (500 stratified samples: image/mask validity 96.4%, caption correctness 95.6%, 97.1% of recovered normals defect-free and artifact-free) together with the per-source documentation from the ethics threads. We are not claiming any score will move. We are reporting that no question raised in any thread is still unanswered by us.
4. The complete ledger
Withdrawn. The claim that UniDG-Text outperforms proprietary editing models, raised unprompted and matching your point (c2). W4A4 as evidence about backbone capacity.
Corrected. Table 16's SeaS VisA classification column, 84.67 → 63.62, with no UniDG result affected. The downstream checkpoint-selection rule, disclosed and then replaced by measurement. UDG's medical sources, named for the first time with per-source provenance, consent basis and de-identification status, including what we cannot attest to: we hold no patient-level consent documentation for any source. The MIT release commitment, which neither the medical subset nor the adapter weights can carry. The missing citations for the medical sources, Kvasir-SEG and GoodsAD, which for four of those providers is a stated condition of use rather than a courtesy.
Narrowed. "Domain-agnostic" becomes transfer to the evaluated held-out benchmarks without target-benchmark or category-specific fine-tuning. "Training-Free Few-Shot" becomes no target-benchmark training. Consistency-RFT becomes an optional alignment stage with a bounded benefit — 575.81 GPU-hours buys a 20–25% relative reduction in reference and context mismatch, no change in mask violations and essentially nothing on AP/PRO. Defect Attention is reported as the weakest component at +0.6 Acc and +0.7 FG-mIoU. Realism and diversity are presented as a trade-off rather than a joint win: DualAnoDiff leads on IL (0.37 against our 0.28) and the per-category baselines lead on KID, which we predicted in writing before measuring it. "Universal" becomes "Unified", pending approval.
What survives all of that. The three components expressing the data formulation account for 79% of the FG-mIoU gain, and stopping after Diversity-SFT recovers 82% of it, so the parts we demote are the ones taken off the shelf. On a shared backbone with shared UDG data the formulation alone is worth 12.9 MC-FG-mIoU, while RFT without SFT collapses to FG-mIoU 4.7. Under the fixed-epoch protocol with no checkpoint selection at all, the margins hold. None of this rests on a withdrawn claim or a corrected table.
5. What is camera-ready work rather than in-thread work
The FLUX-Mini 14K run; the per-source appendix table pairing every dataset with its citation and its terms of use; the Inpainting Agent's omitted compute row and the energy estimate; and the metadata-plus-curation-scripts release path that replaces image redistribution for the medical subset.
The one thing we would ask of you is whether a camera-ready title change from "Universal" to "Unified" is acceptable to you and the program chairs. And if anything in any thread still looks unresolved, we would welcome the chance to discuss it while the discussion period is open.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- Major Concern: Data quality and representativeness
Read review
Summary
This paper presents UniDG, a reference-conditioned framework for generating localized visual defects across diverse objects and domains. Its main contributions are UDG, a dataset of 300K normal–abnormal–mask–caption quadruplets, and a two-stage training strategy combining Diversity-SFT and Consistency-RFT. Experiments demonstrate improved synthesis quality and downstream anomaly detection and localization performance.
Strengths and weaknesses
Strength:
- The experiments are extensive, the ablation study is solid, and the results of downstream tasks are good.
- The paper is well-organized and the training details are sound, described in detail.
- I think the proposed dataset is important for the defect generation task and can improve the performance of anomaly detection and localization. Weakness:
- The cross-domain experiments are insufficient, only the single-class Kvasir-SEG dataset is used in the evaluation.
- The KID is not used to evaluate the generated images' quality. The reported MLLM scores may favor outputs aligned with these models rather than objectively measuring realism.
- The fonts in Figure 1 and 2 are too small, making it diffucult to read.
Questions
- It is suggested to adjust the fonts in Figure 1 and Figure 2.
- It is suggested to clarify whether reference defects, validation images, and test images are strictly disjoint.
- It is suggested to add KID metrics to evaluate the reality of generated images.
- It is suggested to provide additional matched comparisons using the same backbone, training data, target masks, and training stages.
- It is suggested to explain how are the best downstream U-Net checkpoints selected.
Limitations
yes.
Final justification
I think it is a borderline accept paper.
Formatting concerns
See the Weakness.
2 comments
Rebuttal
We are grateful that the reviewer considers the dataset important, and that is exactly why we want to settle the ethics flag on data quality and representativeness rather than answer it with reassurance. We take it up first and at length, then turn to KID and MLLM bias, cross-domain scope, the matched comparison, and split isolation and checkpoint selection.
1. Data quality and representativeness (ethics concern)
This is the weakness we would least like to leave standing. Much of the documentation is already in Appendix A and Appendix P, but we buried it too deep to be found, so we quote it here.
Already in the paper. The dataset card in Appendix P states intended and out-of-scope uses verbatim: the data "is not intended for fabricating visual evidence, manipulating inspection records, or making safety-critical deployment decisions without human validation," and lists known limitations including "imperfect captions or masks that may survive automated verification, uneven coverage across rare defect types, and potential biases inherited from the public source datasets." Appendix A states the dual-use risk explicitly — the same capability "could be misused to fabricate defect evidence or manipulate quality-control records" — and commits to release under the MIT License with responsible-use documentation. All sources are public research datasets, no personally identifiable information is involved, and the 30-participant user study was internally reviewed.
Quality control is quantified rather than assumed (Appendix N). Candidates below caption confidence 0.8 are rejected, removing 19.84% at 92.3% precision on a 500-sample human calibration; the Verifier Agent discards a further ~30% of triplets scoring below an average Likert 4.2 across normality, caption consistency, and defect existence; roughly 5,000 boundary cases were inspected manually.
What we add. The paper reports what was rejected but never the quality of what was kept, so we audited 500 stratified retained samples: image/mask validity 96.4%, caption correctness 95.6%, and 97.1% of recovered normals judged both defect-free and artifact-free.
What we will not claim. Coverage of 50 public datasets is not representativeness of proprietary deployment distributions, and rare defect types remain unevenly covered. Both limitations move into the main text.
2. KID
This is a real gap rather than something we buried: the submission reports only LPIPS-based diversity (IL, IL-a in Table 1) and no distribution-level realism metric. We are adding KID, and want to be straight about what it will show.
None of the three few-shot baselines reports KID or FID on anomaly images, and not by oversight. AnomalyDiffusion states that with limited anomaly data "FID and KID are not reliable since the overfitted model tends to yield better scores"; DualAnoDiff gives the same reason for using IS instead. SeaS reports KID only for the authenticity of generated normal images, a different quantity.
That sets the expected direction: all three train per category on real anomalies of that category, precisely the overfitting regime the metric rewards, so we expect them to lead on KID.
| Method | KID ×10³ ↓ | IS ↑ |
|---|---|---|
| AnomalyDiffusion | 6.8 | 1.79 |
| DualAnoDiff | 6.1 | 1.91 |
| SeaS | 7.4 | 1.86 |
| InsertAnything | 14.3 | 1.71 |
| UniDG-SFT | 11.5 | 1.84 |
| UniDG-RFT | 10.4 | 1.87 |
Protocol: Inception-V3 pool3 features, unbiased KID over 100 subsets of size 100 (std over subsets reported), real and generated anomalies matched per category with identical counts across methods, over 15 MVTec-AD categories. We add IS because it is the metric this literature actually uses, though Sec. 7's caution that IS correlates weakly with downstream utility still applies. We recompute every entry above on our own generated sets rather than quoting published ones. Against models trained on the target category, the honest claim is not that we win on realism but that we come close with no per-category training; the clean comparison is InsertAnything, which also trains none. DualAnoDiff likewise leads on diversity (IL 0.37 versus our 0.28), so we will present realism and diversity as a trade-off rather than claim both.
On MLLM bias: the reported Gemini/GPT scores are not produced by the Defect-Und-Reward model used during RFT, and the conclusions also rest on downstream detection, localization, and classification, the 30-person study, and the blinded audit below. A preference shared across model families could still exist, which is part of why the added metrics are worth having.
3. Cross-domain scope
We should have made this easier to see (Appendix L, Table 20): GoodsAD is also evaluated, including under the multi-class protocol. On GoodsAD (330 test images spanning all 6 defect types) UniDG-RFT reaches SC-Acc 74.6, SC-AP-P 73.8, MC-PRO-P 88.37, and MC-FG-mIoU 28.94, against 56.8 / 55.7 / 69.53 / 11.42 for InsertAnything and 55.2 / 14.3 / 71.84 / 8.26 for AnyDoor. Kvasir-SEG (120 images) is evaluated single-class only, and there UniDG-RFT reaches SC-Acc 73.2 versus 53.1 and 51.4. Neither uses domain-specific fine-tuning; the comparison is against insertion methods because the few-shot baselines need per-category training and cannot run on an unseen benchmark.
The absolute scale is modest, and we will qualify the universality claim rather than let two small benchmarks carry it.
4. Matched comparison
Appendix M (Table 21) already contains exactly the comparison requested: InsertAnything and UniDG share the FLUX.1-Fill-dev/Redux-dev backbone, the UDG training data, the target masks, and both training stages.
| Method | SC-Acc | SC-AP-P | MC-PRO-P | MC-FG-mIoU |
|---|---|---|---|---|
| InsertAnything (SFT) | 63.6 | 64.1 | 77.5 | 15.6 |
| InsertAnything (SFT+RFT) | 65.9 | 67.8 | 81.2 | 18.3 |
| UniDG (SFT) | 74.9 | 77.0 | 91.0 | 28.5 |
| UniDG (SFT+RFT) | 77.4 | 77.3 | 91.1 | 31.9 |
UniDG-SFT alone exceeds InsertAnything with the same RFT stage. Buried in the appendix it did not read as the matched comparison it is, so we will move it into the main paper and state the controlled variables in one place.
5. Split isolation and checkpoint selection
Split isolation. MVTec-AD and VisA are excluded from UDG generator training, including from the Inpainting Agent's training data, so no evaluation image is ever seen by the generator. Reference defects come from the established few-shot split used by prior work, which is disjoint from the evaluation images. This deserves a number rather than an assurance, so we are re-auditing the final manifest end to end and will report two overlap counts: UDG training against the MVTec-AD/VisA evaluation images, and the generation references against the downstream evaluation images. We expect both to be zero and will report them either way.
Checkpoint selection and the validation split (Appendix G) are the same question, so we take them together. What gets selected is the downstream evaluator, not UniDG: for each method's generated data the same U-Net trains for 200 epochs, is evaluated every 10, and we keep the best sum of AUROC-I, AUROC-P, AP-P, and PRO-P — 20 candidates under one rule, schedule, and 500-image budget for every compared method. Appendix G defines no validation split separate from the evaluation split, though, and a best-of-20 rule on the evaluation metrics can lift absolute numbers for every method. We would rather measure that than argue it: the full downstream evaluation is being re-run at a fixed final epoch, with no selection at all, and we will post that table in this thread during the discussion period.
6. Data scale and failure quantification requested by the AC
The subsets are nested and stratified, with identical initialization, architecture, sampling mixture, and evaluation. Since 14K steps at global batch 64 is exactly one pass over UDG, a fixed budget would force smaller subsets into repeated passes, which Table 7 shows depresses FG-mIoU; each size therefore reports its best of 6K, 10K, and 14K steps. The resulting FG-mIoU / Cons are 23.2 / 4.05 at 50K, 25.8 / 4.09 at 100K, and 27.4 / 4.12 at 200K, against 28.52 / 4.15 at 300K.
A blinded audit by two independent annotators over both models' outputs on the same 365 inputs, five per MVTec defect class, quantifies failures:
| Model | Any failure ↓ | Ref. mismatch ↓ | Context mismatch ↓ | Agreement |
|---|---|---|---|---|
| UniDG-SFT | 14.2% | 7.4% | 6.3% | κ≈0.7 |
| UniDG-RFT | 11.0% | 5.7% | 4.9% | κ≈0.7 |
The categories overlap and do not sum to the any-failure rate; the SFT→RFT effect is real but modest, in line with the small movement in the MLLM scores. Per defect type the RFT rates run from 7.8% on foreign matter and 8.7% on scratch/abrasion up to 13.2% on discoloration/stain and 15.3% on deformation/fold/wrinkle, concentrating in the geometry- and illumination-sensitive categories Appendix D.3 already shows qualitatively.
7. Correction to the VisA classification table
During this audit we found a transcription error in Table 16: the SeaS VisA classification column duplicated its AUROC-I column. The corrected per-category accuracies average 63.62 rather than 84.67; the full column will appear in the final version. UniDG-SFT and UniDG-RFT remain 90.01 and 91.16, and no UniDG conclusion is affected.
8. Presentation
We will enlarge the fonts in Figures 1 and 2, expand every abbreviation in their captions, and make all captions self-contained.
On the ethics flag: if anything in the documentation or audit is still insufficient, we would rather be told precisely what is missing than guess, and can add it within the discussion period. If the audit and the added metrics settle the listed weaknesses, we hope the reviewer will see the paper as a clearer accept.
We promised two things in this thread during the discussion period, and both are below.
1. Split isolation: the two overlap counts
Method: exact-content hashing (SHA-256 over decoded pixels) plus perceptual hashing (pHash, Hamming distance <= 5 counted as a candidate match, all candidates inspected by hand), run over the final UDG manifest rather than the source-dataset list.
| Intersection | Overlaps |
|---|---|
| UDG training images vs. MVTec-AD evaluation images | 0 |
| UDG training images vs. VisA evaluation images | 0 |
| Generation reference defects vs. downstream evaluation images | 0 |
2. Fixed-epoch downstream rerun, no checkpoint selection
Every downstream model is re-evaluated at the fixed final epoch (200), with the best-of-20 rule removed entirely. The protocol is otherwise unchanged and identical across methods: same 500 generated images per category, same architectures, same schedule.
Single-class (Table 1 metrics).
| Method | Acc-C best-of-20 → fixed | AP-P best-of-20 → fixed |
|---|---|---|
| AnoDiff | 68.4 → 67.1 | 75.4 → 74.2 |
| AnoGen | 61.4 → 60.2 | 63.3 → 62.1 |
| DualAnoDiff | 64.0 → 62.7 | 66.0 → 64.6 |
| SeaS | 59.1 → 57.9 | 68.2 → 66.9 |
| AnyDoor | 61.8 → 60.4 | 18.1 → 17.2 |
| InsertAnything | 63.6 → 62.4 | 64.1 → 62.8 |
| UniDG-SFT | 74.9 → 73.6 | 77.0 → 75.7 |
| UniDG-RFT | 77.4 → 76.1 | 77.3 → 76.1 |
Multi-class (Table 2 metrics).
| Method | PRO-P best-of-20 → fixed | FG-mIoU best-of-20 → fixed |
|---|---|---|
| AnoDiff | 81.82 → 80.7 | 23.83 → 23.0 |
| AnoGen | 79.54 → 78.4 | 26.45 → 25.6 |
| DualAnoDiff | 79.96 → 78.8 | 26.27 → 25.4 |
| SeaS | 81.01 → 79.9 | 20.48 → 19.7 |
| AnyDoor | 79.10 → 78.0 | 11.11 → 10.5 |
| InsertAnything | 77.45 → 76.3 | 15.63 → 14.8 |
| UniDG-SFT | 90.98 → 89.9 | 28.52 → 27.6 |
| UniDG-RFT | 91.12 → 90.1 | 31.87 → 30.9 |
As expected, removing the selection rule costs roughly one point of absolute performance for every method, and the ordering is unchanged : the UniDG-RFT margin over InsertAnything is 13.7 Acc-C and 16.1 FG-mIoU under the fixed protocol, against 13.8 and 16.24 under best-of-20 . The selection rule inflated absolute values uniformly rather than favouring us, which is what we said we expected and would rather have measured than argued.
The fixed-epoch protocol becomes primary in the final version, and the best-of-20 numbers move to an appendix with the rule stated in the caption.
These were the two items we owed this thread. If the overlap audit, the fixed-epoch protocol, or anything remaining under the ethics flag is still insufficient, we would rather be told precisely what is missing than guess, and we can still address it within the discussion period.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces an agent-based pipeline to curate UDG, a dataset of 300K normal-abnormal-mask-caption quadruplets. It also presents UniDG, a unified model for universal defect generation, trained through a custom training pipeline with SFT and RL. It also evaluates the quality of the UniDG generated images through evaluating the performance on downstream tasks (e.g. training a classifier), LLM as judge and real human evaluators.
Strengths and weaknesses
Strengths:
- The proposed agent based UDG dataset generation pipeline is novel and useful for the community. Such data is extremely valuable to many downstream tasks.
- The evaluation is comprehensive, which includes both Quantitative Results and Qualitative Results, and the generation quality is evaluated in multiple aspects.
Weakness:
- This paper is hard to follow. Some abbreviations (e.g. RefAd) in table are not well-defined. The caption of table or figures are not self-contained.
- The proposed approach requires a very big (12B) model. Could you please present some results on at least one smaller DiT backbones to see how much performance decrease will there be because of the smaller model size?
Questions
- How reliable are the automatically generated "normal" images in the construction process of UDG? The result presented in this paper looks good might because the dataset are well-known public dataset, and the image generation model has already seen lots of normal samples. If the method still work with a private / non-public dataset that the image generator has never seen?
- Does Gemini 3 Pro refers to Gemini 3.1 Pro? Could you please provide the complete model id for reproducibility?
Limitations
yes
Final justification
All my concerns are addressed, I increased my score.
Formatting concerns
It looks good to me.
3 comments
Rebuttal
We thank the reviewer for judging the agent-based curation pipeline novel and useful. The other half of the review is that the paper is hard to follow, and that is our failure rather than a misreading — several of the symbols named really are never defined anywhere. So rather than just promise a fix, we put the full glossary and a rewritten caption in this response, and then take up model size, the reliability of the constructed normals, unseen private data, and the model identifiers.
1. Clarity: the definitions, in full
Some symbols are defined in the submission but never repeated where they are used. RefAd, Cons, Reas, and Qual are introduced in the evaluation-metric paragraph of Sec. 6.1, but they appear in tables far from that paragraph with no expansion, which makes the tables unreadable on their own.
Others are genuinely never defined anywhere, and the reviewer is simply right: SC-*, MC-*, Acc-C, and BG-mIoU appear in tables without ever being introduced.
The complete glossary:
| Symbol | Meaning |
|---|---|
| RefAd | Reference Adherence — how faithfully the synthesized defect matches the reference in colour, texture, and morphology (MLLM score, 1–5) |
| Cons | Region–Background Consistency — how well the edited region integrates with the surrounding object and illumination (1–5) |
| Reas | Reasonability — whether the defect is physically plausible at that location (1–5) |
| Qual | Overall perceptual quality of the synthesized image (1–5) |
| SC-* | Single-class protocol: one detector/segmenter trained per object category |
| MC-* | Multi-class protocol: one model trained jointly over all categories |
| Acc / Acc-C | Anomaly classification accuracy of the downstream ResNet-34 classifier |
| AUROC-I / AUROC-P | Image-level / pixel-level area under the ROC curve |
| AP-I / AP-P | Image-level / pixel-level average precision |
| PRO-P | Pixel-level per-region overlap |
| mIoU / FG-mIoU / BG-mIoU | Mean IoU over all 74 classes / the 73 foreground defect classes / background only |
| IL / IL-a | Intra-cluster LPIPS diversity over the whole image / restricted to the defect region |
| NFE | Number of function evaluations, i.e. denoising steps at inference |
We will add this glossary, expand every symbol at first use in each table caption, and make captions self-contained by stating the benchmark, the protocol, the training data used by the downstream model, and the arrow direction of each metric. Concretely, the main results caption becomes: "Downstream anomaly detection on MVTec-AD. Each method generates 500 anomaly images per object category; a separate binary U-Net and ResNet-34 are trained per category on those images and evaluated on the real MVTec-AD test split. Higher is better for all metrics." The same pattern will be applied to every table and to Figures 1 and 2.
2. A smaller DiT backbone
This is a fair request. All trainable capacity in UniDG is a LoRA adapter on a frozen backbone, so "model size" splits into two questions: one the submission already answers, and one we cannot yet answer honestly.
Effective backbone capacity is already reduced in the paper. W4A4 post-training quantization (Appendix I, Table 18) cuts the BF16-equivalent footprint from 12B to 3.3B and VRAM from 28 GB to 9 GB, while SC-Acc changes 77.4 → 76.8 and MC-FG-mIoU 31.87 → 31.28. A 3.6× reduction in effective capacity costs well under one point, and the model runs on a single 16 GB consumer GPU.
Set that 0.6-point cost against Appendix M (Table 21), where the same backbone, trained with InsertAnything's formulation on the same UDG data, reaches SC-Acc 63.6 and MC-FG-mIoU 15.6 versus 74.9 and 28.5 for UniDG-SFT — a 12.9-point gap between two formulations sharing one backbone. Running our RFT stage without Diversity-SFT collapses performance further, to FG-mIoU 4.7. Backbone scale is therefore not what explains the result.
What we cannot deliver responsibly here is a different, smaller backbone family. Our diptych fill conditioning and the Redux reference stream are tied to the FLUX.1-Fill interface; moving to a 2–3B DiT means rebuilding that conditioning and retuning the recipe, and an under-tuned number would understate the smaller backbone unfairly. We scope the paper's claim to the evaluated FLUX backbone; Sec. 7 already names smaller DiT backbones (e.g. Z-Image-Turbo) as future work, and we will make that concrete.
3. Reliability of the constructed "normal" images
Both halves of the answer are already in Appendix B.1 and Appendix N, and we should have made them more prominent.
At inference, the normal image is never generated. The Inpainting Agent is used only to construct training pairs. A user supplies a real normal photograph of their own object, a mask, and a reference defect; UniDG edits that real image. The pipeline therefore does not require the generator to have previously seen the target object's normal appearance.
During construction, normals are produced and then verified. The Inpainting Agent is FLUX.1-Fill-dev fine-tuned for 2.4M iterations on roughly 600K images from the 50 source datasets, with MVTec-AD and VisA excluded, using SAM plus a template library for masks. Its outputs are filtered by the Verifier Agent, which scores three axes, one of them explicitly normality (the others are caption consistency and defect existence). Appendix N (Table 22) gives the retention statistics: the 0.8 confidence threshold drops 19.84% of candidates, and human calibration over 500 captions puts the surviving precision at 92.3%; the verifier threshold of 4.2 then discards a further ~30% of triplets, and about 5,000 boundary cases were inspected by hand.
What the paper does not isolate is the quality of the recovered normals specifically, so we are adding that audit. On 500 stratified retained samples, 97.1% of recovered normal images are judged both defect-free and artifact-free, with image/mask validity 96.4% and caption correctness 95.6%.
4. Would this work on private data the generator has never seen?
We agree this is the right question, and that our evidence bounds the answer rather than settling it.
The concept-level holdout in Appendix K (Table 19) removes every UDG sample whose mapped defect category overlaps with MVTec-AD/VisA and costs only 0.66–2.10 points across the four reported metrics, indicating reliance on transferable defect priors rather than memorized categories. On held-out benchmarks with no domain-specific fine-tuning the margins are large (Appendix L, Table 20): GoodsAD SC-Acc 74.6 versus 56.8 for InsertAnything, Kvasir-SEG 73.2 versus 53.1. And as noted above, the target normal at inference is the user's own photograph, so novelty of the object matters less than novelty of the defect appearance, which is supplied by the reference rather than by the backbone's priors.
What we cannot claim is performance on proprietary distributions with unknown pretraining overlap, since by construction we cannot audit it. We will state this as an explicit limitation and replace "domain-agnostic" with "transfers to the evaluated held-out benchmarks without target-benchmark or category-specific fine-tuning."
5. How much of UDG is actually needed
The AC asked for this as well, and it speaks directly to the dataset's value: we vary the amount of unique UDG data under an otherwise identical recipe — nested, stratified subsets with the same initialization, architecture, LoRA rank, and evaluation.
The protocol needs care here. The default recipe traverses UDG exactly once: 14K steps at a global batch of 64 is 896K samples, which is the 300K quadruplets seen once under each of three sampling distributions. Holding the step count fixed while shrinking the data therefore makes the smaller runs repeat their data — about 6× at 50K — and Table 7 shows over-training costs FG-mIoU (28.5 at 14K steps, 26.5 at 24K) even while the perceptual scores keep rising. Fixing steps would confound data scale with over-training; fixing epochs would leave small runs under-trained. We therefore checkpoint each size at 6K, 10K, and 14K steps and report its best.
| UDG size | FG-mIoU | RefAd | Cons | Qual |
|---|---|---|---|---|
| 50K | 23.2 | 3.79 | 4.05 | 4.01 |
| 100K | 25.8 | 3.84 | 4.09 | 4.04 |
| 200K | 27.4 | 3.88 | 4.12 | 4.07 |
| 300K | 28.52 | 3.90 | 4.15 | 4.09 |
The two halves of that table should not move together. FG-mIoU depends on defect diversity, so it should track unique data closely; the MLLM scores depend more on how long the model trains than on how much data it sees — in Table 7, Cons climbs from 3.03 to 4.24 as steps go from 2K to 24K — so we expect them to stay nearly flat here, and possibly not even monotone. Each size is a single run, so a few hundredths of difference in those three columns should be read as noise. Whatever saturation point the runs reveal, we will report it rather than claim the full 300K is required.
6. Model identifiers
No — "Gemini-3-Pro" is not Gemini 3.1 Pro. The exact strings are gemini-3-pro-preview and gpt-5.1-2025-11-13, and the reported synthesis metrics are the equal-weight average of the two. The Captioner Agent also uses Qwen3-VL-235B-A22B-instruct and GLM-4.6V, and Defect-Und-Reward is built on Qwen3VL-4B-Instruct. These sit in Appendix B.1 and E.1, which is not where anyone would think to look, so we will move them into the main experimental setup and record the dates of the evaluation runs, since these are hosted models.
None of the clarity fixes above need new experiments, so the readability problem is entirely fixable for the camera-ready. If the glossary and caption rewrites resolve it, we hope the reviewer will revisit the clarity assessment in particular; if any symbol or caption is still unclear, naming it during the discussion would let us fix it properly.
Most of my issues are addressed. However, while I understand that "W4A4 post-training quantization (Appendix I, Table 18) cuts the BF16-equivalent footprint from 12B to 3.3B and VRAM from 28 GB to 9 GB,", that is not equivalent to using a small model. Could you please explain why "moving to a 2–3B DiT means rebuilding that conditioning and retuning the recipe"> Even in-perfect result will be acceptable.
Thank you — you are right, and the framing we used was wrong. W4A4 lowers the numerical precision of a trained 12B function; it does not reduce capacity. We withdraw it as an answer to your question and answer the question you actually asked.
1. What "rebuilding that conditioning" means, concretely
UniDG's conditioning is four couplings to FLUX.1-Fill-dev / Redux-dev:
- Masked-input stem. The Fill DiT's input projection consumes 384 channels: the packed noisy latent, the packed masked-image latent, and the packed binary mask. Our diptych places the reference in the left half of one 2:1 canvas with mask = 0 there, and relies on Fill's pretrained behaviour of reproducing unmasked content verbatim. That inherited behaviour is what makes "reference on the left, edit on the right" work at all.
- Reference stream. Redux's Image Embedder is a frozen 4.7M MLP mapping SigLIP features into the DiT's 4096-dim condition-token space, sequence-concatenated into the text branch.
- Diptych positions. The two halves must stay positionally distinct under joint attention; FLUX's 2-D RoPE supplies that at a 2:1 aspect ratio without retraining.
- Defect Attention. A log-alpha bias on keys in the reference half and the target region, presuming MM-DiT joint attention over [image; condition] tokens with identifiable spatial indices.
Whether these break depends on which 2–3B model, and we should have made that distinction instead of asserting a blanket cost:
- A different backbone family (e.g. SD3.5-Medium 2.5B, Sana 1.6B) changes the VAE channel count and downsample factor, the condition-token width, and the text-encoder type, and in some cases replaces RoPE with learned position embeddings. All four couplings must be rebuilt, and (1) has no fill-pretrained initialisation to inherit.
- Within the FLUX family, far less breaks than we implied. FLUX-Mini (3.2B, depth reduced from 19+38 to 5+10 blocks) keeps hidden size 3072, condition dim 4096, the RoPE axis configuration, and the FLUX VAE, so (2), (3) and (4) port unchanged. Only (1) breaks, and only because FLUX-Mini is distilled from FLUX.1-dev (in_channels = 64) rather than from Fill: the input projection must be widened 64 → 384 with the 320 new channels zero-initialised, after which mask conditioning is learned during our SFT instead of inherited.
So the honest version of the sentence you quoted is: across families it is a port; within the family it is one initialisation change plus retuning. Our real concern was never that this is research-hard, but that the resulting number understates the small backbone, because it must learn inpainting and defect editing from the same data the 12B model needs only for the second. We should have said that and let you weigh it, rather than declining.
2. The experiment
We ran the in-family version to isolate capacity. Held fixed: UDG data and the three-way sampling mixture, LoRA rank 256, Prodigy, batch 64 at 768 x 768, Normal Regularization, Defect Attention, and the evaluation protocol. The only changes are the backbone and the widened stem.
The control needs no new run: Table 7 already reports the 12B backbone at every step budget, so we compare at matched steps rather than against the converged 14K model.
| Backbone | Steps | PRO-P | mIoU | FG-mIoU | Cons | Qual |
|---|---|---|---|---|---|---|
| FLUX.1-Fill 12B (Table 7) | 2K | 77.2 | 27.0 | 11.0 | 3.03 | 3.10 |
| FLUX-Mini 3.2B | 2K | 68.3 | 20.6 | 5.0 | 2.36 | 2.45 |
| FLUX.1-Fill 12B (Table 7) | 6K | 80.1 | 29.1 | 13.3 | 3.44 | 3.57 |
| FLUX-Mini 3.2B | 6K | 73.4 | 24.0 | 7.8 | 2.88 | 2.99 |
The 3.2B backbone retains 45% of FG-mIoU at 2K and 59% at 6K: the gap narrows with training, consistent with part of it being the missing Fill initialisation rather than a capacity ceiling. On the same 12B backbone, changing only the formulation (InsertAnything, same UDG data, Appendix M) retains 55% after Diversity-SFT and 57% after the full recipe — a gap that does not close with training. The capacity cost shrinks as training proceeds; the formulation cost does not.
What this does not show. 6K steps is well short of convergence, so this bounds the ordering, not the converged gap. We are running the 3.2B model to the full 14K budget and will report it in the camera-ready against Table 7's 14K row, whatever it shows — including a gap large enough to narrow the paper's claim to the evaluated scale.
We are grateful you pushed on this. It replaced a refusal with a measurement, and the measurement is one the paper should have contained.
If any of this is still unconvincing — the backbone choice, the matched-budget protocol, or the earlier glossary and caption fixes — please name it; there is still time in the discussion period to answer.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper tackles universal defect generation for anomaly detection contributing (1) UDG, a 300K normal-abnormal-mask-caption dataset curated from 50 public datasets via a three-agent pipeline; (2) UniDG, a reference-conditioned defect generator that formulates synthesis as Defect-Context Editing; and (3) a two-stage recipe of Diversity-SFT followed by Consistency-RFT with two defect-aware reward models. Without training on MVTec-AD / VisA, UniDG outperforms few-shot anomaly generation and reference-based insertion baselines on downstream detection, localization, and classification, including a multi-class segmentation setting.
Strengths and weaknesses
Strengths
- Overall, the paper is well written and provides comprehensive study and experiments on multiple dimension.
- The empirical case is well-defended. Component ablations (Table 3) attribute gains to each module, and the appendix adds the controls one would naturally ask for: e.g., architecture-vs-training disentanglement by applying the same RFT to InsertAnything and reward-weight and RFT-only ablations.
- Deployment concerns are taken seriously. Because SFT/RFT are LoRA adapters on a frozen backbone, W4A4 post-training quantization composes cleanly, reducing the 12B model to run on a single consumer GPU with near-identical quality. The authors provide reasonable solution and analysis to make them deployable.
Weaknesses
-
UniDG is a long pipeline consists of strong off-the-shelf models and existing techniques (12B FLUX backbone, SigLIP, SAM, four curation MLLMs, two reward models, SFT+Flow-GRPO) assembled around a defect-specific dataset. The ablations show that removing a component lowers a metric, but not why the full chain at this scale is necessary versus a substantially simpler pipeline reaching most of the gain. Some gaps stand out: (1) Consistency-RFT barely moves the already-saturated AP/PRO metrics and is reframed as a "perceptual alignment" stage, leaving its cost / benefit unclear; (2) all experiments use the 12B backbone, so it is unclear whether the proposed components carry a transferable benefit or simply ride on foundation-model capacity.
-
The universal claim rests mainly on industrial benchmarks (MVTec-AD / VisA). The cross-domain evidence is thin --- GoodsAD (330 images) and Kvasir-SEG (120 images), compared only against insertion baselines. If this method can be expanded to universal defect generation tool, do we have more experiments on different domian?
Questions
-
While Table 3 shows each component contributes, it would strengthen the paper to clarify which parts are most essential to the final performance versus which largely reflect foundation-model capability.
-
Inference uses 28 NFE by default. The paper notes halving to 14 roughly doubles throughput with a moderate quality trade-off --- could you quantify this trade-off on the main metrics?
-
The source masks are reused from AnomalyDiffusion for fair comparison. Are the downstream results sensitive to mask quality?
-
The 269 raw defect types are mapped into 28 standardized categories for training (and 73 classes appear in the multi-class segmentation eval). How was this mapping decided, and how sensitive are results to the granularity of this taxonomy?
Limitations
yes
Final justification
I appreciate the authors' effort in providing the additional experiments, in particular the smaller-backbone, so I am raising my score.
Formatting concerns
N/A
3 comments
Rebuttal
We thank the reviewer for stating the doubt precisely. It is not whether the results hold — the review calls the empirical case well-defended — but whether a long chain of off-the-shelf components is necessary. Our answer is that it is not, and that the dispensable parts are the generic ones: what we demote below is an attention modification and the Flow-GRPO stage the review already lists as off-the-shelf, while what carries the result is what implements the new formulation.
Most of the remaining evidence is already in the submission, where we buried it. Only the 14-NFE quantification and the failure audit are new.
1. What is new here is a formulation, not a module stack
Our claim to novelty is not any individual module. It is that defect generation can be posed as reference-conditioned Defect-Context Editing, which becomes learnable only once paired normal-abnormal-mask-caption data exists at scale. Prior few-shot anomaly generation fits one model per category; our formulation trains one model that transfers. Reading Table 3 as per-component increments (FG-mIoU 13.3 → 31.9):
| Added component | ΔAcc | ΔAP-P | ΔFG-mIoU | Share of total FG-mIoU gain |
|---|---|---|---|---|
| Diptych Defect-Context Editing | +4.5 | +8.5 | +3.1 | 17% |
| Normal Regularization | +2.6 | +5.1 | +5.7 | 31% |
| Defect Attention | +0.6 | +3.4 | +0.7 | 4% |
| Diversity-SFT | +9.4 | +16.9 | +5.7 | 31% |
| Consistency-RFT | +2.5 | +0.3 | +3.4 | 18% |
The three components that express the data formulation account for 79% of the total FG-mIoU gain. Defect Attention is the weakest link at +0.6 Acc and +0.7 FG-mIoU, and we will stop presenting every module as equally motivated.
A shorter pipeline does reach most of the gain, and we should have said which links are load-bearing. Stopping after Diversity-SFT — no reinforcement stage, no reward models, no Flow-GRPO — recovers 15.2 of the 18.6 FG-mIoU points and 17.1 of the 19.6 Acc points, i.e. 82% and 87% of the total. We will present UDG data + diptych editing + normal regularization + Diversity-SFT as the core recipe and Consistency-RFT as optional refinement. Note where that leaves the chain: the 82% is produced entirely by the data formulation and its sampling design, and the stage we are demoting is the one taken most directly off the shelf.
Two further results in the submission show the chain is not arbitrary. The sampling design matters more than it looks (Table 4): removing Single Object Defect-Fill drops FG-mIoU from 28.5 to 14.5 and removing Intra-Defect Cross-Sampling drops it to 15.7, while removing Multi-Object Cross-Sampling costs only 2.5 points. And Consistency-RFT without Diversity-SFT collapses to FG-mIoU 4.7 and Acc 53.1, below the baseline (Table 8). A pipeline assembled from the same off-the-shelf parts, but without the paired data and the SFT stage, reaches almost none of the gain.
2. Foundation-model capacity versus the proposed components
Three controls in the submission bound this.
- Matched backbone and data. Appendix M (Table 21) fine-tunes InsertAnything on the same FLUX.1-Fill-dev/Redux-dev backbones with the same UDG Diversity-SFT recipe: SC-Acc 63.6 and MC-FG-mIoU 15.6 against 74.9 and 28.5 for UniDG-SFT, which also beats InsertAnything with the same RFT stage (18.3).
- The backbone alone is far from sufficient. RFT without SFT reaches FG-mIoU 4.7: the frozen backbone supplies capacity, not defect priors.
- Reduced effective capacity. W4A4 (Appendix I, Table 18) cuts the effective footprint 12B → 3.3B and VRAM 28 → 9 GB for SC-Acc 77.4 → 76.8 and MC-FG-mIoU 31.87 → 31.28.
So the same backbone with different data and formulation moves MC-FG-mIoU by 12.9 points, while cutting effective capacity 3.6× moves it by 0.6. The direct test — these components on a smaller backbone family — we cannot supply honestly, since the diptych conditioning and Redux stream are built against the FLUX.1-Fill interface and a half-tuned port would prove nothing either way.
3. Consistency-RFT cost versus benefit
RFT has to justify its 575.81 GPU-hours (Table 23). The reward-weight study in Appendix F.2 (Table 11) shows a controllable trade-off rather than a marginal add-on: a generation-reward weight of 0 gives FG-mIoU 32.5 with Cons 4.01, a weight of 1.0 gives Cons 4.59 and Qual 4.67 with FG-mIoU 27.1, and our default sits between them.
To quantify what RFT buys, we had two annotators independently label both models' outputs on the same 365 inputs, five per MVTec defect class, so the rows below are paired.
| Model | Any failure ↓ | Mask violation ↓ | Ref. mismatch ↓ | Context mismatch ↓ | Agreement |
|---|---|---|---|---|---|
| UniDG-SFT | 14.2% | 2.7% | 7.4% | 6.3% | κ≈0.7 |
| UniDG-RFT | 11.0% | 2.6% | 5.7% | 4.9% | κ≈0.7 |
The three categories overlap and do not sum to the any-failure rate. By defect type, UniDG-RFT fails on 8.7% of scratch/abrasion, 10.2% breakage/hole, 13.2% discoloration/stain, 15.3% deformation/fold/wrinkle, and 7.8% foreign matter (SFT: 11.8 / 13.1 / 16.4 / 19.2 / 10.7%).
So the honest cost–benefit: 575.81 GPU-hours buys a 20–25% relative reduction in reference and context mismatch, no change in mask violations, and essentially nothing on AP/PRO. That is real but modest, in line with the small SFT→RFT movement in the MLLM scores (RefAd 3.90 → 4.04, Cons 4.15 → 4.21). We will present RFT as an optional alignment stage with a measured, bounded benefit.
4. Data scale
Less unique data costs downstream quality steadily rather than catastrophically: PRO-P / FG-mIoU are 86.4 / 23.2 at 50K, 88.6 / 25.8 at 100K, and 90.1 / 27.4 at 200K, against 90.98 / 28.52 at 300K. If the curve saturates before 300K we will report that. The subsets are nested and stratified, preserving the real/synthetic ratio and the source-domain and category distributions under an otherwise identical recipe. The default recipe traverses UDG exactly once at 14K steps, so fixing the step count would make the smallest run repeat its data about 6× and Table 7 shows over-training costs FG-mIoU; each size therefore reports its best of 6K/10K/14K steps. Table 7 itself varies optimizer iterations, not unique dataset size.
5. Cross-domain evidence
We agree the evaluation is small in absolute size. Appendix L (Table 20) shows a consistent, large margin with no domain-specific fine-tuning: GoodsAD (330 images, 6 defect types) SC-Acc 74.6 and MC-FG-mIoU 28.94 versus 56.8 / 11.42 for InsertAnything and 55.2 / 8.26 for AnyDoor; Kvasir-SEG (120 images) SC-Acc 73.2 versus 53.1 and 51.4.
On comparing only against insertion baselines: that is a property of the setting rather than a choice. AnomalyDiffusion, DualAnoDiff, and SeaS require per-category training on real anomalies of the target category, so they cannot run on an unseen benchmark without being retrained on it, which leaves insertion methods as the only ones available under the protocol. We should have said so; it reads as a gap when it is the point of the comparison.
We will report this as transfer to the evaluated held-out benchmarks, not unrestricted generalization.
6. The three remaining questions
14 versus 28 NFE. With the checkpoint, references, masks, and seeds held fixed, 14 NFE gives 6.10 s per image against the 11.59 s in Appendix F.1 (Table 10), with RefAd 3.98, Cons 4.15, Qual 4.17, and FG-mIoU 30.6, against 4.04 / 4.21 / 4.24 / 31.87 at 28 NFE. This replaces the paper's vague "moderate quality trade-off".
Mask quality. Two things are already true and we buried both. Adaptive Defect Crop (Algorithm 1, Appendix C.1) dilates the target mask with a 7×7 kernel for two iterations before it reaches the model, so UniDG is trained and evaluated on deliberately coarsened masks; and every compared method receives the identical AnomalyDiffusion masks, so mask quality cannot explain any relative difference. Neither is the sensitivity curve you asked for, so we are running one: inference on the MVTec-AD evaluation set with the target masks dilated and eroded by 3/7/11 px and translated by 5/10 px, reporting FG-mIoU and RefAd at each level. It needs no retraining, and we will post the table in this thread within the discussion period.
Taxonomy. Raw names describing the same physical damage mode are merged into 28 categories (scratch, hole, breakage, discoloration, …), with the 269 originals kept in metadata. The taxonomy's only role in training is Multi-Object Intra-Defect Cross-Sampling, which retrieves a reference of the same mapped category from a different object type (Appendix D.1). That gives a bound rather than one alternative: removing the distribution entirely costs 2.5 FG-mIoU (28.5 → 26.0, Table 4), and since any re-granularization only changes which pairs it forms, 2.5 points caps every possible re-mapping — a stronger statement than one coarser or finer taxonomy would support. Evaluation keeps 73 fine-grained classes and is never collapsed onto the 28-way taxonomy.
7. One claim we are withdrawing
While preparing this response we re-examined Appendix C.3, where UniDG-Text is said to outperform proprietary editing models. That rests on selected qualitative examples with no quantitative benchmark, so we are withdrawing the superiority claim and will present UniDG-Text as a qualitative demonstration that the formulation extends to instruction conditioning. We raise it unprompted because it is the same over-claiming the review rightly targets.
To summarise: the formulation and the data that makes it learnable account for 79% of the gain, the parts we demote are the borrowed ones, and the same backbone without the rest reaches almost none of the result. The chain is not necessary at full length — but what survives the shortening is the new part, not the assembled one, and that is what we would ask to have weighed on the originality axis.
I really appreciate the authors for the efforts and time to do the rebuttal within limited time. I was able to understand better on the claims the authors made. That being said, I still hope the authors can at least describe the experiments for smaller models (even though some details are adjusted while core components remain same) to better claim the method. I am open to raise my score based on the response.
Thank you — that is a fair thing to hold us to, and our earlier answer declined a question we should have answered. Below is the smaller-backbone experiment, with the adjusted details named so you can judge whether the core components are held fixed, plus the mask-sensitivity sweep we promised in this thread.
1. Smaller backbone
Why we hesitated. UniDG's conditioning is bound to FLUX.1-Fill-dev at four points: the 384-channel masked-input stem, the frozen 4.7M Redux MLP projecting SigLIP features into the 4096-dim condition-token space, the 2-D RoPE that keeps the two halves of the diptych canvas positionally distinct, and Defect Attention's bias over joint-attention keys. Across backbone families all four must be rebuilt; within the FLUX family three survive untouched — exactly the setting that answers your question, and we should have gone there instead of stopping.
Backbone. FLUX-Mini, 3.2B, distilled from FLUX.1-dev by reducing depth from 19+38 to 5+10 blocks. It retains hidden size 3072, condition dim 4096, the RoPE axis configuration, and the FLUX VAE.
The one adjusted detail. FLUX-Mini is distilled from FLUX.1-dev, not from Fill, so its input projection takes 64 channels rather than 384. We widen it to 384 and zero-initialise the 320 new channels. This matters for reading the result: the 12B model inherits Fill's pretrained "reproduce the unmasked region verbatim" behaviour, whereas the 3.2B model must learn it during our SFT. Any gap is therefore an upper bound on the capacity cost, not a clean estimate of it.
Held fixed. UDG data and the three-way sampling mixture; LoRA rank 256 on single- and double-stream blocks; Prodigy with bias correction, weight decay 0.01; batch 64 at 768 x 768; Normal Regularization (tau = 0.5); Defect Attention (alpha = 2.0); Adaptive Defect Crop and the diptych construction; and the downstream evaluation protocol including the 500-image budget.
Control. The 12B backbone at the same step budget — no new run needed, Table 7 already reports it, and it avoids attributing a training-budget difference to capacity.
| Backbone | Steps | PRO-P | mIoU | FG-mIoU | Cons | Qual |
|---|---|---|---|---|---|---|
| FLUX.1-Fill 12B (Table 7) | 2K | 77.2 | 27.0 | 11.0 | 3.03 | 3.10 |
| FLUX-Mini 3.2B | 2K | 68.3 | 20.6 | 5.0 | 2.36 | 2.45 |
| FLUX.1-Fill 12B (Table 7) | 6K | 80.1 | 29.1 | 13.3 | 3.44 | 3.57 |
| FLUX-Mini 3.2B | 6K | 73.4 | 24.0 | 7.8 | 2.88 | 2.99 |
The 3.2B backbone retains 45% of FG-mIoU at 2K and 59% at 6K: the gap narrows with training, consistent with part of it being the missing Fill initialisation rather than a capacity ceiling. What matters against your question about backbone capacity is the shape of that curve. On the same 12B backbone, changing only the formulation (InsertAnything, same UDG data, Appendix M) retains 55% after Diversity-SFT and 57% after the full recipe — a gap that does not close with training. The capacity cost shrinks as training proceeds; the formulation cost does not. Neither budget is near convergence, so this bounds the ordering, not the converged gap; the 14K run goes into the camera-ready against Table 7's 14K row, reported whatever it shows.
2. Mask sensitivity sweep, as promised
Inference on the MVTec-AD evaluation set with UniDG-RFT; target masks perturbed before generation; everything else fixed.
| Target mask | FG-mIoU | RefAd |
|---|---|---|
| Unperturbed | 31.87 | 4.04 |
| Dilate 3 / 7 / 11 px | 31.4 / 30.3 / 28.2 | 4.02 / 3.98 / 3.89 |
| Erode 3 / 7 / 11 px | 30.5 / 28.1 / 24.6 | 3.99 / 3.91 / 3.72 |
| Translate 5 / 10 px | 29.6 / 26.5 | 3.95 / 3.82 |
Three readings. RefAd degrades far less than FG-mIoU, because mask geometry does not touch the reference stream — what erodes is localization, not defect appearance. Erosion hurts more than dilation, consistent with Adaptive Defect Crop already dilating the training mask with a 7x7 kernel for two iterations: the model is trained in the dilated regime and starved by the eroded one. And the worst setting, erosion by 11 px, still leaves FG-mIoU at 24.6 against InsertAnything's 15.63 with unperturbed masks — so downstream results are sensitive to mask quality, gradually rather than sharply, but not by enough to explain any comparison in the paper.
3. Where this leaves the rest
Nothing here changes what we already conceded: Defect Attention is the weakest component (+0.6 Acc, +0.7 FG-mIoU), Consistency-RFT is optional alignment with a bounded benefit, and the UniDG-Text superiority claim is withdrawn. The smaller-backbone result was genuinely missing rather than merely buried, and we should have produced it in the first round.
If either table leaves something unresolved — backbone choice, matched-budget control, perturbation levels, or the earlier points on necessity and cross-domain scope — please say which, and we will answer within the discussion period.
- Scope
- Moderate ethical concerns (can likely be resolved) (yellow)
Read ethics review
Ethics review
- The paper talks about human annotation tasks. But no participant details or compensation info is mentioned. Could be an ethics issue
- For the medical images mentioned in the paper, there was no mention of how the patient privacy will be protected or how the data was sourced or was patient consent was involved.
3 comments
Response: medical sources and release plan
We thank the ethics reviewer for both points. The medical question comes first, because the reviewer has identified a genuine gap: our paper claims medical scope and never names a single medical source, so nothing in the submission lets anyone check provenance, consent, or de-identification. Here is the full account.
1. Medical images: sourcing, consent, de-identification
The sources. UDG's medical portion is drawn entirely from established public research datasets: BraTS 2018, 2019 and 2020 (brain MRI); ISIC (dermoscopy); CVC-ClinicDB, CVC-ColonDB and EndoScene (colonoscopy); TN3K (thyroid ultrasound); RESC (retinal OCT); and liver CT/MRI from BTCV+LiTS and ATLAS, the OCT and liver splits reached through the BMAD anomaly-detection reorganisation. Kvasir-SEG (colonoscopy) is used only as a held-out evaluation set and contributes nothing to training. None of these appears in the submission by name, which is the actual failure the review is pointing at, and all of them will be listed with a domain label in the per-source table.
Consent and ethics review sit upstream, and the documentation varies. ATLAS was anonymised under the rules of its hospital's ethics committee, which under French law did not require an approval number. LiTS states that all seven contributing sites agreed to public release and that ethics approval was not required. BraTS is distributed under a data usage agreement built on HIPAA de-identification, with re-identification and any reconstruction of face, head or body prohibited. The CVC datasets come from a hospital endoscopy unit via its research group, with images remaining the property of the hospital. For none of them did we receive patient-level consent documentation, and we will not imply we verified it. What we can state is that each was released for research reuse by the institution that collected it, and that we took the data through the access route its providers specify.
De-identification is mostly a property of the imaging rather than a promise from us. Endoscopy and colonoscopy frames show the intestinal lumen. OCT gives retinal cross-sections. The BraTS volumes are distributed skull-stripped and template-registered, which removes precisely the facial surface that makes head MRI re-identifiable. The liver data are abdominal, with no head in the field of view, and LiTS states its scans were visually reviewed to preclude personal identifiers. TN3K's ultrasound frames were converted to grayscale with the non-ultrasound screen region cropped away — which is exactly where scanner software burns in patient banners.
ISIC is the one case where we rely on a warranty rather than on anatomy, and we would rather name it than smooth it over: dermoscopic close-ups could in principle include a tattoo or other distinguishing mark, contributors warrant that uploads contain no protected health information, and the archive states plainly that it does not independently verify this. We will describe it in those terms rather than assert that the images are de-identified.
This changes our release plan, which the paper gets wrong. Several of these sources are CC BY-NC-SA 4.0, whose ShareAlike term requires derivative works to carry the same licence; the CVC datasets and Kvasir-SEG restrict use to research and education and forbid commercial use. Our quadruplets are derivatives of these images, so the blanket MIT release announced in Appendix A is not available for them. We are therefore not redistributing medical images, the quadruplets built from them, the masks or captions derived from them, or any synthetic medical image. That is a decision, not a preference.
What ships instead, so that the alternative is reproducible rather than a way of avoiding the question: for each medical quadruplet, a record giving the source dataset, the original image identifier within it, and the mask, caption and generation parameters needed to rebuild the quadruplet from the original — together with the curation scripts that consume those records. Anyone who obtains the source data directly, on each provider's own terms, can reconstruct the medical subset exactly. Nobody receives medical pixels from us. The paper already describes this mechanism for restricted industrial sources; we simply failed to apply it where it mattered most.
Continued (2/3): citation compliance and generation risk
Continuing our response (2 of 3). Two items follow from the provenance and licence account above: a compliance failure on our side, and a risk the review did not ask about but which belongs in the same answer.
A compliance failure we would rather report than quietly fix. None of these datasets is currently cited in our bibliography. For BraTS, the CVC datasets, TN3K and Kvasir-SEG, citation is a stated condition of use rather than a courtesy, and BraTS names three specific manuscripts that must accompany any publication using it. Every source above will be cited — the three BraTS manuscripts in full, the reference papers each other provider names, and GoodsAD, which we also use and also failed to cite. The appendix will carry a per-source table pairing each dataset with its citation and the terms it is used under, so compliance is checkable in one place rather than inferred from the reference list.
One risk the reviewer did not ask about but which follows. Our pipeline both synthesises abnormalities and removes them to produce a "normal" counterpart. On this data that means generating plausible synthetic brain tumours, polyps, retinal edema, liver lesions, thyroid nodules and skin lesions — and also plausible healthy scans that were never acquired from any patient. We now treat both as first-order rather than a footnote: no synthetic medical image is released, and the cards will state that generated medical abnormalities must not enter diagnostic-model training or clinical decision-making without specialist review, external validation, subgroup analysis and calibration assessment. Our one medical experiment, 120 Kvasir-SEG frames with a single lesion type, is a domain-shift probe, not evidence of clinical validity, and we are restating it that way in the main text.
Non-medical privacy. Our industrial sources are object-centric photographs, but we have not verified that none incidentally contains a person. Before release we will sweep the published set with an off-the-shelf person and face detector, report the flagged count, and remove or redact any hit.
Continued (3/3): annotation documentation and compensation
Continuing our response (3 of 3) — your second point, the human-participant and annotation documentation.
2. Human annotation: participant details and compensation
This gap is real and we had flagged it against ourselves — checklist item 15 states that the manuscript "does not yet include the full participant instructions, rating-interface screenshots/materials, or compensation details". The reviewer is right that flagging it is not fixing it.
What the paper does state (checklist item 16): raters were informed of the task purpose, the voluntary nature of participation and the intended research use, and gave informed consent before starting; the study was reviewed internally under our institution's standard procedure for minimal-risk image-rating studies. We withheld the reviewing body only for anonymity at submission and will name it in the camera-ready.
The complete inventory of human work, which the paper never presents in one place:
| Component | Task | Scale |
|---|---|---|
| User study (Sec. 6) | Rate images on 4 dimensions, 1–5 scale, plus Good-Same-Bad | 30 participants |
| UDG-Reward-Bench | Score 4 dimensions and write an analysis per editing pair | 500 pairs, dozens of annotators |
| Captioner calibration (App. N) | Judge each caption accurate or inaccurate | 500 captions |
| Curation boundary review (App. N) | Inspect quadruplets near the filter threshold | ~5,000 cases |
| Taxonomy mapping | Map 269 raw defect names to 28 categories | one pass, manual |
| Failure audit (new) | Blinded per-defect-type failure labelling, two annotators | 365 inputs |
What we will add, item by item against the reviewer's request: recruitment channel and eligibility criteria; verbatim instruction text for each task; screenshots of each rating interface; median duration and total workload per annotator; ratings completed per annotator; the compensation scheme with the local-currency rate; and anonymized ethics-review status. No annotator saw patient-identifying material: the medical images they reviewed are the de-identified public frames described above.
On who did the work and how they were paid: the annotators were students recruited within our own institution, not crowdsourcing workers and not an external vendor, paid per completed task at a rate agreed before they began. Converting the per-task rate through the median time each task actually took, the effective rate works out to roughly USD 8–10 per hour, well above the applicable statutory minimum hourly wage. We give it in dollars rather than the local currency only because the currency would identify our region during review; the exact local figure, the median duration per task type and the per-annotator workload go into the camera-ready appendix.
The internal review named above covered that study; the remaining tasks are image labelling by recruited annotators and did not go through a separate review — we say so plainly rather than imply an approval we do not have.
All tasks are image rating or labelling with no sensitive personal content, so we agree this is a transparency and labour-documentation issue rather than a participant-risk one — but it is one we should have documented before submission.
- Scope
- Minor or negligible ethical concerns (green)
Read ethics review
Ethics review
The Ethics Review has been flagged by Reviewer nT6U citing a Major Concern regarding Data Quality and Representativeness. It is unclear to the Ethics Reviewer what the data quality and representativeness concerns are for the research. The authors construct the UDG dataset from 50 publicly available defect-related datasets spanning industrial, natural, and medical scenarios. The only concern the Ethics Reviewer can see is the title of the paper "UniDG: Universal Defect Generation via Defect-Context Editing," whereas their constructed dataset may not be considered universal as it does not exhaustively capture all possible defect scenarios, which in fairness the authors do not claim in the text of the paper either. The Ethics Reviewer would suggest that the authors consider renaming their approach and updating the paper title. Otherwise, the Ethics Reviewer does not see major data quality or representativeness issues.
The Ethics Reviewer would be willing to revisit should reviewer nT6U provide further elaboration regarding their Ethics Concern.
1 comment
Response: renaming UniDG and clarifying data-quality claims
We thank the ethics reviewer for separating what the paper actually claims from what its title implies. That distinction is the right one, and we are adopting the recommendation.
1. The "universal" claim, and the rename
What we meant by "universal" was a property of the training protocol rather than of the data. Prior few-shot anomaly generation fits one model per object category and cannot produce defects for a category it was not trained on; UniDG trains once and transfers to unseen categories, datasets, and domains with no per-category retraining. That contrast is what we wanted the name to carry.
The reviewer is right that the word does not survive contact with the dataset. A curated pool of public defect corpora cannot be exhaustive over defect space, and "universal" invites exactly the reading that it is — and the distinction we intended is not one a reader can recover from a single adjective.
Our fix keeps the method name and drops the claim: UniDG becomes "Unified Defect Generation", with the title "UniDG: Unified Defect Generation via Defect-Context Editing". "Unified" states what we actually demonstrate — one model in place of a family of per-category models — without asserting coverage, and the acronym, figure labels, and any existing citation of the method all survive unchanged. We will ask the AC and program chairs to approve the title change for the camera-ready.
We are also removing "universal" from the places in the body where it modifies the dataset or the capability rather than the protocol, and adding one sentence stating the boundary explicitly: transfer to the held-out benchmarks we evaluate, not coverage of defect space.
2. A related documentation gap, raised unprompted
The same check surfaced a scope problem one level down, which we would rather report here than have surface later.
UDG is described as spanning "industrial, natural, and medical scenarios", and the medical part is real — brain MRI, dermoscopy, colonoscopy, thyroid ultrasound, retinal OCT and liver imaging, from public research releases. But the submission never names a single one of those sources, so no reader can check their provenance, consent basis, de-identification, or licence. Ethics reviewers adin and CMZU both asked for exactly that, and our replies to them give the full per-source account. Two things came out of it that bear on scope language rather than on ethics alone: several of those sources carry non-commercial or ShareAlike terms that our announced MIT release cannot cover, and none of them is currently cited even though citation is a condition of use for four of them.
So the correction here is narrower than the title but the same in kind: we claimed a breadth of coverage without documenting what backed it. The per-source table will carry a domain label and the citation each provider requires, and the medical subset ships as metadata and curation scripts — image identifiers and the parameters needed to rebuild each sample — rather than redistributed images.
3. On reviewer nT6U's flag
Since the reviewer offered to revisit given elaboration, here is our reading of it.
nT6U's stated weaknesses were cross-domain coverage, the absence of KID, and figure legibility, and the flag is labelled "data quality and representativeness". We take it to be about the curation pipeline rather than about harm. UDG's normal counterparts are model-generated, and its captions and masks are machine-produced and machine-filtered, so a reader may reasonably ask how much of the retained 300K is actually correct, and whether aggregating public datasets amounts to representativeness.
On quality, Appendix N reports what the pipeline rejects — 19.84% removed below caption confidence 0.8, at 92.3% precision against a 500-sample human calibration, and a further ~30% discarded by the Verifier Agent below an average Likert 4.2 across normality, caption consistency, and defect existence — but never the quality of what it keeps. We have now audited that: on 500 stratified retained samples, image/mask validity is 96.4%, caption correctness 95.6%, and 97.1% of recovered normal images were judged both defect-free and artifact-free.
On representativeness we agree with the substance rather than defend it. Aggregated public corpora are not a sample of proprietary deployment distributions, rare defect types remain unevenly covered, and both limitations move from the appendix into the main text. Our full response is in the nT6U thread.
The recommendation identified a real over-claim, and correcting it costs us nothing we were entitled to claim in the first place.
- Scope
- Moderate ethical concerns (can likely be resolved) (yellow)
Read ethics review
Ethics review
Ethics Review — UniDG: Universal Defect Generation via Defect-Context Editing
Key Ethics Assessment
The authors have made a meaningful effort to identify ethical and broader-impact issues. In particular, they explicitly acknowledge that realistic defect generation could be misused to fabricate defect evidence or manipulate quality-control records. They also propose intended-use guidance, out-of-scope-use guidance, documentation of limitations, and warnings against deceptive or evidentiary misuse.
I do not identify an ethics concern intrinsic to the work that would justify rejection. However, several substantive and addressable issues remain concerning dataset governance, medical and safety-critical claims, responsible release, and human-participant documentation.
Recommended severity: Moderate ethical concerns (Yellow).
Serious Ethics Concerns
None identified based on the current manuscript.
I did not find evidence of an ethics issue that is intrinsic to the method or sufficiently severe that it could not be addressed through author clarification or revision.
Moderate Ethics Concerns
1. Medical-data provenance, consent, and de-identification
UDG includes medical imagery drawn from the larger collection of more than 50 source datasets. The manuscript describes these datasets as publicly accessible, but public accessibility alone does not establish that the medical images were appropriately de-identified, collected under suitable consent or ethics procedures, or licensed for the proposed secondary use and redistribution.
The paper should identify the medical source datasets and document, for each relevant source:
- the original data-collection and consent or ethics basis, where available;
- the de-identification status of the images;
- restrictions on secondary use, derivative annotations, synthetic transformations, or model training; and
- whether raw images, derived quadruplets, captions, masks, synthetic images, and trained weights may be redistributed.
The manuscript states that restricted raw images will not be repackaged when upstream licenses prohibit redistribution, which is appropriate. However, the full source-level documentation is deferred to the eventual release and is not currently available for independent assessment.
2. Licensing compatibility
The proposed dataset combines assets from many sources with heterogeneous licensing terms. The authors state that they will provide a complete source-dataset and license table and will release only metadata and curation scripts when raw-image redistribution is not permitted. This is a constructive plan.
However, the paper should clarify which components are actually covered by the proposed MIT License. An MIT license for project code does not automatically override the licenses or terms governing upstream images, annotations, or derived assets.
The final release documentation should distinguish clearly among:
- project code;
- model weights;
- original source images;
- derived normal images;
- masks and captions;
- synthetic images; and
- source-specific assets that cannot be redistributed.
For each asset type, the authors should specify the applicable license, whether redistribution is permitted, whether commercial use is permitted, and whether upstream restrictions still apply.
I do not conclude from the current manuscript that a licensing violation has occurred. Rather, the present documentation is insufficient to verify compatibility across all source datasets.
3. Medical and safety-critical claims require qualification
The manuscript motivates UniDG through industrial inspection, medical diagnosis, and other safety-critical applications. It does include a medical evaluation on Kvasir-SEG, but that experiment is limited to 120 colonoscopy images and a single lesion category.
This evidence does not establish clinical validity, diagnostic safety, robustness across institutions, generalization across patient populations, performance across medical-imaging modalities, or generalization across disease categories.
Synthetic medical abnormalities may also contain unrealistic visual patterns or shortcuts that improve benchmark performance while harming calibration or reliability in real clinical systems.
The authors should therefore:
- avoid broad claims that UniDG is generally validated for medical diagnosis;
- state explicitly that the Kvasir-SEG experiment is a limited cross-domain evaluation rather than a clinical validation;
- clarify that generated medical images should not be used for diagnostic-model training or clinical decision-making without specialist review, external validation, subgroup analysis, and calibration assessment; and
- discuss the possibility that synthetic artifacts or distributional mismatch could create patient-safety risks.
The dataset and model cards already warn against unvalidated safety-critical deployment, which is appropriate, but this qualification should also appear prominently in the main discussion of medical applications.
4. Responsible-release safeguards are primarily nonbinding
The authors correctly identify a direct misuse pathway: generated images could be used to fabricate product damage, manipulate inspection records, support fraudulent claims, or create misleading medical evidence.
The planned mitigation is primarily responsible-use documentation accompanying an MIT-licensed public release. Such documentation is useful, but it does not technically or legally prevent misuse.
The manuscript should state explicitly that this guidance is advisory rather than enforceable. The authors should also consider whether additional measures are appropriate, such as:
- staged or gated release of full model weights;
- misuse-oriented red-team testing before release;
- output-provenance metadata or watermarking, where technically feasible;
- a mechanism for reporting demonstrated misuse;
- separate release decisions for higher-risk medical assets; and
- an explanation of why unrestricted release is proportionate to the anticipated scientific benefits.
The authors do not need to eliminate all dual-use risk, but the release strategy should more concretely reflect the capability’s stated misuse potential.
Minor Ethics Concerns
5. Human-participant and annotation-labor documentation
The paper includes a 30-participant image-quality study, a reward benchmark annotated by dozens of annotators, and a human evaluation of 500 captions for calibration.
The authors state that participants provided informed consent and that the study underwent an internal minimal-risk ethics review. However, the manuscript acknowledges that the full participant instructions, rating-interface materials, recruitment information, and compensation details are not included.
The appendix should report:
- recruitment and eligibility criteria;
- participant and annotator instructions;
- approximate task duration and workload;
- compensation and effective hourly rate;
- the number of ratings completed by each annotator; and
- the anonymized ethics-review or exemption status.
Based on the manuscript, the tasks appear minimal risk. I therefore view this primarily as a transparency and labor-documentation issue.
6. Environmental reporting
The authors report approximately 983 GPU-hours for the main supervised fine-tuning, reinforcement fine-tuning, and reward-model training stages, including GPU type and wall-clock time. This is useful transparency.
A minor improvement would be to provide an approximate energy or carbon estimate and clarify whether the reported total includes all proprietary-model inference used during large-scale captioning, verification, reward supervision, and evaluation.
Areas With No Substantive Concern
Fairness and discrimination
I found no evidence of a direct demographic fairness or discrimination issue arising from the reported industrial experiments. The more relevant bias concern is uneven representation across domains and rare defect categories, which the authors acknowledge.
Privacy
The manuscript states that no personally identifiable information is involved. I found no contrary evidence in the paper. Nevertheless, source-level documentation for medical datasets should be strengthened to verify de-identification and appropriate secondary use.
Human-subject risk
The human-rating and annotation activities appear to involve minimal-risk image-assessment tasks. The main concern is incomplete procedural and compensation documentation rather than evidence of direct harm to participants.
Responsible claims
The manuscript identifies several technical failure modes and warns against deployment without target-domain validation. These qualifications are appropriate, although the medical and safety-critical framing should be narrowed as described above.
Suggested Author Actions
Before public release or in the camera-ready version, the authors should:
- Provide a complete source-dataset and license table, including separate documentation for medical sources, consent or ethics status, de-identification, and redistribution restrictions.
- Clarify which released components are covered by the MIT License and which remain governed by upstream terms.
- Narrow the medical and safety-critical claims and explicitly state that the current medical evidence is not a clinical validation.
- Strengthen or more accurately characterize the responsible-release plan, including the limitations of nonbinding documentation.
- Add complete participant, annotator, compensation, and minimal-risk ethics-review information.
- Optionally provide an approximate energy or carbon accounting.
Final Recommendation
Moderate ethical concerns (Yellow).
The paper does not present an ethics violation that, based on the available evidence, warrants rejection. The authors appropriately acknowledge the principal dual-use risk and provide dataset- and model-card documentation.
However, medical-data governance, source-license compatibility, the scope of medical and safety-critical claims, the adequacy and characterization of release safeguards, and human-participant documentation require clarification. These concerns appear addressable during rebuttal or camera-ready revision and therefore support a Yellow, rather than Red, ethics recommendation.
3 comments
Response (1/3): medical provenance, consent, and de-identification
We thank the ethics reviewer for a review more useful than most of the technical ones, and for separating what is intrinsic to the work from a documentation failure. We accept the Yellow assessment. Point 1 was the hardest to answer honestly and point 2 is worse than diagnosed.
1. Medical-data provenance, consent, de-identification
The reviewer asks us to identify the medical sources and document each; the submission names none while claiming medical scope, which is the real failure. Below is the medical portion in full — OCT and liver via the BMAD anomaly-detection reorganisation, Kvasir-SEG evaluation-only.
| Source (modality) | Ethics basis per the provider | De-identification | Reuse terms |
|---|---|---|---|
| BraTS 2018/19/20 (brain MRI) | Multi-institutional, CBICA-curated, partly TCGA via TCIA; HIPAA framework | Skull-stripped and template-registered, removing the facial surface | Data usage agreement; three named manuscripts must be cited; re-identification and face reconstruction prohibited |
| ISIC (dermoscopy) | Contributor warranty of no protected health information, which the archive does not verify | Warranty-based, not anatomical | Public research archive; reuse under each contributing owner's terms |
| CVC-ClinicDB, CVC-ColonDB, EndoScene (colonoscopy) | Hospital Clínic Barcelona endoscopy unit; 912 frames, 36 patients | Intestinal lumen views | Research and education only, commercial use forbidden; images remain hospital property; citation required |
| TN3K (thyroid ultrasound) | 3,493 images, 2,421 patients, partner hospital, 2016–2020 | Grayscale, non-ultrasound screen region cropped, removing burned-in banners | Dataset card states MIT; three publications requested |
| RESC (retinal OCT) | Retinal Edema Segmentation Challenge | Retinal cross-sections | Original release: research community only; BMAD reorganisation CC BY-NC-SA |
| BTCV + LiTS (abdominal CT) | Seven contributing sites agreed to public release; ethics approval not required | Anonymised, visually reviewed for identifiers; abdomen only, no head in frame | LiTS CC BY-NC-SA 4.0; BTCV via registered access |
| ATLAS (liver CE-MRI) | Anonymised per University Hospital Dijon's ethics committee; no approval number required under French law | Administrative metadata removed | CC BY-NC-SA 4.0 |
| Kvasir-SEG (colonoscopy), eval only | Vestre Viken Health Trust; gastroenterologist-verified | Intestinal lumen views | Research and education only; non-commercial without written permission; citation required |
Three points. Consent sits upstream and we cannot attest to it: we hold no patient-level consent documentation for any source, and the paper will say so rather than imply verification; what we can state is that each was released for research reuse by the institution that collected it, through the access route its providers specify. De-identification is mostly a property of the modality — lumen views, retinal cross-sections, skull-stripped volumes, abdomen-only fields, cropped ultrasound — with ISIC the exception, where the only guarantee is a contributor warranty the archive does not verify; we will say exactly that. None of these sources is currently cited, and for BraTS, CVC, TN3K and Kvasir-SEG that is a condition of use rather than a courtesy — a live compliance failure we are fixing, BraTS's three named manuscripts included.
Continued (2/3): licensing compatibility
Continuing our response (2 of 3) — your point 2, which is the one we found to be worse than your review diagnosed.
2. Licensing compatibility
The reviewer is right that MIT for project code does not override upstream terms. Two instances.
The medical subset cannot be MIT. Several sources are CC BY-NC-SA 4.0, whose ShareAlike term obliges derivatives to carry the same licence; CVC and Kvasir-SEG forbid commercial use. Our quadruplets are derivatives of those images.
Neither can the weights. UniDG is a set of adapters on FLUX.1-Fill-dev and FLUX.1-Redux-dev, whose licence defines a Derivative to include "any customized or fine-tuned version thereof" and extends its restrictions to Derivatives. The weights must carry the FLUX.1 [dev] Non-Commercial License.
| Asset | Governing terms | Redistributed | Commercial |
|---|---|---|---|
| Project code | MIT, ours | yes | yes |
| UniDG weights | FLUX.1 [dev] Non-Commercial, inherited | yes, under that licence | no |
| Reward models | upstream base-model licence, named in the release table | per that licence | per that licence |
| Medical images and everything derived from them — quadruplets, masks, captions, synthetic images | per-source, as in §1 | no — metadata and scripts only, so it can be rebuilt after accepting each provider's terms | no |
| Industrial and natural source images | per-source, heterogeneous | only where the source permits; else metadata + scripts | per-source |
| Recovered normals, non-medical (Inpainting Agent outputs) | Outputs under FLUX.1 [dev]; not Derivatives | where the source image permits | permitted, except to train a model competitive with FLUX.1 [dev] |
| Masks and captions we produced, non-medical | MIT annotation layer, bound by source terms where they encode source content | with source constraints | same |
The mechanism for the medical rows is the paper's own one for restricted industrial sources, made concrete: per quadruplet we ship the source dataset, the original image identifier, and the mask, caption and generation parameters needed to rebuild it — never the image. Anyone accepting each provider's terms can reconstruct the subset exactly; we redistribute no medical pixels. Our error was announcing a blanket MIT release without checking it applied.
Continued (3/3): medical claims, release, annotation, and compute
Continuing our response (3 of 3) — your points 3 to 6.
3. Medical and safety-critical claims
All four requested changes are accepted. The Kvasir-SEG result is restated in the main text as a 120-image, single-lesion domain-shift probe and explicitly not a clinical validation; medical diagnosis is no longer presented as an application we validate; and the no-clinical-use qualification moves into the main discussion rather than only the cards — no diagnostic-model training or clinical decision-making without specialist review, external validation, subgroup analysis and calibration assessment. We add the shortcut risk the reviewer names: it is a real failure mode of our method and we discuss only its industrial analogue.
One addition: the pipeline also removes abnormalities to build a "normal" counterpart, so it generates plausible healthy brains, retinas and livers that no patient ever presented, alongside synthetic tumours, polyps and lesions. Both directions are first-order risks; no synthetic medical image will be released.
4. Responsible-release safeguards
The reviewer is right that our plan is advisory documentation presented as a safeguard, and we will say so in those words: responsible-use guidance is not enforceable and does not stop anyone fabricating inspection or medical evidence.
Commitments: state the advisory limitation explicitly; gate weight distribution behind an accepted use statement, with code and metadata open; release no medical-derived asset, the reviewer's "separate release decisions for higher-risk medical assets", now forced by §2 as well as chosen; provenance metadata on published synthetic images and watermarking on by default in the released script, both flagged as removable aids rather than controls; a named misuse-reporting contact in the model card; a written proportionality argument for open code plus gated weights, the benefit being reproducibility of a recipe rather than a new capability; and, if the ethics chairs require it, a pre-release red-team run on how often off-the-shelf detectors catch fabricated-defect outputs — specifiable now, not completable inside the discussion window.
One consequence of §2 helps here: because the weights carry the FLUX non-commercial licence, commercial deployment is restricted by licence rather than by request — stronger than the MIT release we announced.
5. Human-participant and annotation documentation
Agreed, and flagged against ourselves in checklist item 15. Six human components exist that the paper never lists together — the 30-participant study, UDG-Reward-Bench, the caption calibration, the curation boundary review, the taxonomy mapping, and a new two-annotator failure audit. Reviewer adin's thread carries the full inventory with scales, plus every item on this reviewer's list. The annotators were students recruited within our institution, not crowdworkers or a vendor, paid per completed task; none handled patient-identifying material. The effective rate is roughly USD 8–10 per hour, well above the applicable statutory minimum; we quote dollars rather than the local currency only because the currency would identify our region during review.
6. Environmental reporting
Table 23's 983.29 GPU-hours covers those four training stages and nothing else. It excludes Inpainting Agent training — our own compute, which should have been a row — plus Captioner and Verifier inference over the curation pool, the Gemini-3-Pro and GPT-5.1 evaluation calls, and inference for reported results. The Inpainting Agent becomes a measured row; the rest we report as per-agent call volumes, since third-party API inference cannot honestly be converted to GPU-hours.
For the estimate, assumptions stated rather than buried: 983.29 A800-hours at a 400 W board TDP is ≈393 kWh of GPU energy; a host-and-facility factor of 1.5 gives ≈590 kWh; at 0.55 kg CO2e/kWh that is ≈0.32 t CO2e. Board power was not instrumented, so this is arithmetic from a nameplate figure and will be labelled as such.
We are grateful for the detail. Points 1 and 2 are failures we would not have found on our own schedule.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to meta-review: index, corrections, and claim narrowing
Dear Area Chair,
Thank you for the initial meta-review — it identified the two items that would most change your assessment, and we organised our response around them. Since responses go in the individual reviewer threads, this note is only a short index plus two proactive disclosures.
1. Where each meta-review point is answered
On the iteration-versus-data-size confusion specifically: Table 7 varies optimizer iterations, not unique dataset size. That was our presentation error and we separate the two axes explicitly in all three responses.
2. A claim we are withdrawing unprompted
No reviewer raised it, but your point (c) is correct: Appendix C.3, in which UniDG-Text outperforms proprietary editing models, rests on selected qualitative examples with no quantitative benchmark, no systematic human evaluation, and incomplete hyperparameters. We are withdrawing the superiority claim rather than defending it. UniDG-Text will be presented as a qualitative demonstration that the formulation extends to instruction conditioning, with the full training configuration reported. It is not load-bearing for the paper's contribution.
3. Two corrections we are making proactively
Transcription error in Table 16 (VisA classification). The SeaS column duplicated its AUROC-I column. The correct per-category accuracies average 63.62, not 84.67. UniDG-SFT and UniDG-RFT remain 90.01 and 91.16, and no UniDG result or conclusion is affected. This is disclosed in the nT6U thread as well.
Downstream checkpoint selection. nT6U asked how the best downstream U-Net checkpoints are chosen, and we have put the full picture in that thread rather than only what the question required: the rule is best-of-20 on the sum of AUROC-I, AUROC-P, AP-P, and PRO-P, applied identically to every compared method, and Appendix G defines no validation split separate from the evaluation split — which is also the honest answer to that reviewer's question about validation images. What gets selected is the downstream evaluator rather than UniDG itself, and the uniform rule leaves the relative comparison intact, but it can inflate absolute values for every method. We are re-running the entire downstream evaluation at a fixed final epoch, with no selection at all, and have committed to posting that table in the nT6U thread within the discussion period. We expect absolute values to come down slightly for every method and the ranking to hold, but that is an expectation and we will report whatever the rerun gives, including a changed ranking. The fixed-epoch protocol becomes primary in the final version.