Task-Conditioned Detail Allocation for Synthetic Segmentation Data

Chunming He, Dingming Zhang, Jifan Zhang, Yuhan Dong, Longxiang Tang, Youwei Pang, Xiaoqi Zhao, Fengyang Xiao, Sina FarsiuarXiv 2026

Imagine you’re training a self-driving car to see in a thick fog, or a vision system to spot a perfectly camouflaged octopus. You need thousands of labeled images, but real-world examples are rare and expensive to annotate. Naturally, you turn to generative AI to "hallucinate" more data.

But here’s the catch: not all synthetic images are created equal. Some look great to a human but offer zero "nutritional value" to a machine learning model. Others might actually be misleading. This paper introduces a clever way to sift through the synthetic noise and even "repair" the duds.

TL;DR

Not all synthetic training data is useful; some images look realistic but lack the specific visual cues a model needs to learn a task. This paper proposes Task-Conditioned Detail Allocation (TCDA), a method that uses a "blurring trick" to identify which synthetic images have high-quality details and "repairs" the low-quality ones to maximize their training value.

What Problem Does This Paper Address?

Generative models (like Stable Diffusion or ControlNet) are fantastic at creating images that follow a specific label map. However, just because an image looks like a car doesn't mean its textures and lighting provide the right signals for a segmentation model to learn why it's a car.

In difficult tasks like Camouflaged Object Detection (COD), the "details" are everything. If a generative model makes a camouflaged animal's outline too obvious, it’s no longer a good example of camouflage. Conversely, if it’s just a blurry mess, the model learns nothing. The authors tackle the "utility gap": how do we measure and improve the training value of synthetic images without needing a human to grade every single one?

Methods

The authors introduce a pipeline they call Task-Conditioned Detail Allocation (TCDA). It works in four main steps:

  1. Candidate Generation: For a single real label (e.g., the silhouette of an owl), they generate six different synthetic candidates using a generative model.
  2. The Blurring Trick (Scoring): This is the "aha!" moment. They use a small "Task Reference" model trained on real data. They feed it a synthetic candidate, then feed it a blurred version of the same image.
  3. The difference between the two responses tells us which parts of the image's details were actually helping the model recognize the object.
  4. If these helpful details align perfectly with the ground-truth label, the image gets a high Detail Allocation Score.
  5. Selection & Repair: They keep the top-scoring candidates. For the "almost good" ones, they identify specific regions where the details are misleading or missing. They then use a generative "repairer" to locally edit those regions while keeping the rest of the image intact.
  6. Training: Finally, they train the actual downstream segmenter using a mix of real images and these high-quality/repaired synthetic views.
Figure 1. Selection and local repair of synthetic segmentation data. (1) Six candidates are generated from a source image and its label. (2) A task reference scores the spatial alignment of blur-induced class responses with the label. (3) Up to two candidates are selected, and up to two others are considered for repair. Source-relative region contributions trigger whole-foreground edits in binary tasks and guide region selection in multiclass tasks. (4) Selected candidates and accepted repairs reuse the label and train the segmenter with real images.

Datasets

The authors tested their method across three distinct and difficult segmentation challenges:

  • Camouflaged Object Detection (COD): Using datasets like COD10K, CAMO, CHAMELEON, and NC4K.
  • Degraded Salient Object Detection (SOD): Using CSOD10K and WXSOD-real, focusing on objects in low light or backlight.
  • Adverse-Condition Semantic Segmentation: Using ACDC (fog, rain, night, snow) and Cityscapes for driving scenes.

Key Insights and Ideas

  • Details are Task-Specific: An image might have "high quality" in a general sense (sharpness, realism), but "low quality" for a specific task. TCDA measures quality relative to the task by seeing if the details actually trigger the right class response in a reference model.
  • Blurring as a Probe: Blurring is a computationally cheap way to isolate high-frequency details. By comparing "sharp vs. blurry," the authors can map exactly where the useful information is located spatially.
  • Don't Waste, Repair: Most synthetic data pipelines are "keep or toss." TCDA recognizes that a synthetic image might be 90% useful and only needs a local "patch" to become a great training example.
Visualizing the score: Higher-scoring candidates (left) show detail responses that align better with the object's shape than lower-scoring ones (right).

Key Results

The results show that being picky pays off. Simply adding all synthetic data often hurts performance, but adding TCDA-selected data consistently helps.

  • Camouflage (COD10K): TCDA improved the S-measure ($S_\alpha$) by 0.019 over training on real data alone.
  • Driving Scenes (ACDC): On the ACDC dataset (which is notoriously difficult due to weather), TCDA improved the mean Intersection over Union (mIoU) by 2.86 points.
  • Efficiency: Selection is fast, requiring only two feature passes per candidate. The "repair" step is more expensive but significantly more effective than just generating more random images.

Limitations and Future Work

  • Source Dependency: TCDA requires a real "source" image to start with to calculate the discrepancy. It can't score purely "from scratch" synthetic images without a reference.
  • Reference Model Bias: The system relies on a "Task Reference" model trained on real data. If the real data is extremely biased, the selection process might inherit those biases.
  • Future Direction: The authors suggest using the "region contributions" (the maps showing where an image is failing) to guide the generative model during the initial creation phase, rather than just as a post-hoc repair.

If you're interested in the nitty-gritty math of how they standardize response maps to be invariant to rescaling, check out Section 3.2 of the full paper!

Summary updated

Abstract

Synthetic images sharing a segmentation label can differ in their training value. We propose Task-Conditioned Detail Allocation (TCDA) to select useful candidates and locally edit some remaining images. We ask whether image details provide class-specific cues in the regions marked by the label. We train a small task reference on frozen image features from real training images. We compare its class responses before and after blurring each candidate, and score how well these response changes align with the labeled regions. This detail allocation score ranks candidates from the same source. Comparing their response--label alignment with that of the real source image also guides repair decisions and, in multiclass tasks, the choice of regions to edit. Selected candidates and accepted repairs are used for training with the original labels and the unchanged downstream segmenter. Experiments on camouflaged object detection, degraded salient object detection, and adverse-condition semantic segmentation show that our selection outperforms equally sized random and label-agreement subsets. Combining selection and repair improves over real-only training by up to 0.019 in $S_α$ on COD10K and 2.86 mIoU points on ACDC.
BibTeX
@misc{he2026task,
  author = {Chunming He and Dingming Zhang and Jifan Zhang and Yuhan Dong and Longxiang Tang and Youwei Pang and Xiaoqi Zhao and Fengyang Xiao and Sina Farsiu},
  title = {{Task-Conditioned Detail Allocation for Synthetic Segmentation Data}},
  year = {2026},
  eprint = {2611.28841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28841},
}
Figure