# L83 · Can YOLO ignore unannotated regions?

Use the installed instance-segmentation loss and fixed saved model predictions to test classification-gradient masking of synthetic ignored regions. Preserve positive anchors and compare untouched box, distribution and mask losses. This is an engineering control, not a trained model or a claim that real unlabeled regions are known. [Protocol](/results/l83/protocol.json).

## Engineering gradient control · 2026-12-02

[Visual report](/results/l83/) · [protocol](/results/l83/protocol.json) · [results and source hashes](/results/l83/results.json) · [saved gradients](/results/l83/gradient-data.npz) · [verification](/results/l83/verify.log). In the installed Ultralytics v8 instance-segmentation loss, unassigned anchors receive zero class targets and contribute negative BCE gradients. Instance-mask BCE is cropped to each assigned source box; its pixels are a separate mechanism. The `255` ignore convention found in the installed semantic-segmentation loss is a different task and does not automatically apply to this instance-segmentation trainer. Standard YOLO polygon labels do not provide a general verified instance-ignore region mechanism here.

Using one fixed mixed-model forward pass on a previously viewed training image, deliberately designate two test ignore rectangles, one covering the annotated positive. A custom elementwise BCE wrapper masks ignored **negative** classification anchors while preserving anchors with any positive target score. On 5,376 anchors, all **473** selected negative anchors changed from nonzero direct classification gradient to zero; all **10** selected positive anchors and **4,893** outside negatives had identical classification gradients, and box, distribution and instance-mask loss values were unchanged. The retained-array verifier reconstructed anchor-region membership and checked every reported gradient and artifact hash without rerunning model forward.

These rectangles are artificially defined for an engineering test, with one derived from the source label; they are not a deployable means of locating unlabeled diatoms. This masks only direct class loss at anchor centers. Shared model parameters can still change ignored-region predictions; positives with zero target score require further analysis; and standard instance-mask BCE inside positive boxes still penalizes unlabeled overlap pixels. It does not prove improved segmentation or solve partial labels. The next controlled experiment should hide known labels on existing public training images and use their true locations as an explicitly **oracle** ignore-region mechanism, with matched no-ignore controls, training-path instrumentation and source-separated development evaluation. Real ignore-region acquisition and mask-pixel uncertainty remain unsolved.
