Research board

L83: Can a training loss ignore selected regions?

Engineering diagnostic on one previously viewed training image, using artificial test rectangles; not a trained model, a real ignore annotation, or evidence of better segmentation. One rectangle deliberately covers a known positive to test that it remains supervised.

On the installed YOLO instance-segmentation loss, a wrapper zeroed classification loss at selected negative anchors while preserving anchors with a positive target score. Assignment, box and distribution losses, and instance-mask loss were unchanged.

Anchor groupCountWhat was observed
Ignored negatives473Direct classification gradient changed from nonzero to zero.
Positives inside ignored region10Classification gradient unchanged.
Negatives outside ignored region4,893Classification gradient unchanged.
Source mask and synthetic ignore rectangles, with ignored and positive anchor points

The model shares weights across anchors, so suppressing a direct gradient does not guarantee its predictions there remain unchanged. Instance-mask loss still penalizes pixels inside the annotated target's bounding box, including uncertain overlaps. The test gives no method for identifying real unannotated diatoms or their ignore regions.

Source image: Khanom diatom dataset, CC BY 4.0. The installed framework and starting model have separate terms.

Protocol · Results and input hashes · Saved anchor and gradient arrays · Verification · Research note