# L31 · Grid-mask ranking by prompt stability

The six previously inspected R38 synthetic scenes use six public polygons over one Academy background. Generate fixed 64-pixel grid prompts and retain area 300–50,000, score ≥0.6, mask NMS IoU 0.8. Take at most 20 quality-ranked candidates, perturb each prompt by +4 pixels in X and Y, and rerank by IoU between original and perturbed masks. Match selected masks posthoc to visible references at IoU 0.5. This does not use references to rank candidates, but reference-based matching is evaluation only.

| Pair | Condition | Quality top 5 | Stability top 5 | Quality top 10 | Stability top 10 | All ≤20 |
|---|---|---:|---:|---:|---:|---:|
| 1 | separated | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 |
| 1 | crossing | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 |
| 2 | separated | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 |
| 2 | crossing | 0/2 | 0/2 | 0/2 | 0/2 | 0/2 |
| 3 | separated | 2/2 | 2/2 | 2/2 | 2/2 | 2/2 |
| 3 | crossing | 1/2 | 1/2 | 1/2 | 1/2 | 1/2 |

[Results](/results/l31/) · [data](/results/l31/results.json). Re-ranking requires an extra SAM prompt for each candidate, and a stable mask can be debris, merged specimens, or the wrong object. The six opaque scenes, preselection, small budget, single jitter, previously inspected examples, unknown image-source training overlap, and one background prevent generalization. Test fresh scenes and real fields without assuming stable candidates are correct.

In this diagnostic, stability reranking did not change the number of matched visible targets at any of the 5, 10 or 20 candidate budgets in any of the six scenes. In crossing pair 2, neither ranking matched either target even when all 20 candidates were considered. The preliminary bottleneck is therefore candidate availability or mask fit in this particular case, not just the ordering tested here. This does not establish that stability is ineffective elsewhere.
