# L78 · Point-prompt adaptation for partial and crossing masks

R54 adapted the MobileSAM decoder using reference-derived boxes; L67 found no improvement at matched automatic point prompts. R90 shows that geometric/focus link evidence alone cannot establish object identity. Investigate whether a decoder trained specifically on point prompts and synthetic visible partial/crossing masks can improve candidate quality before association, using only public resources and local experiments.

Predeclare source and background groups before generating scenes; hold out all evaluation source images, related scene pairs and Academy fields from training, and record exact source bytes, license, focal/plane provenance and overlap uncertainty. Construct diverse separated, partial, overlapping and debris-adjacent scenes with known visible masks, but explicitly treat synthetic rendering as proxy. Train a reproducible point-prompt decoder with positive seed sampling and carefully documented negative-point strategy; retain the baseline checkpoint. Measure model quality calibration, candidate recall/ranking and per-object visible-mask IoU at fixed automatic prompt and reviewer budgets, alongside blind source-pair and alternate-background replays. Compare same points and same eligibility criteria, preserve all masks and alternatives, and use annotation-derived prompts only for training or clearly labeled oracle diagnostics.

Do not infer biological independence merely from filenames or claim real heavy-overlap accuracy from composites. Document model/dataset licensing and realistic model runtime; protect native source imagery needed for eventual species identification. Seek better public real-overlap references in parallel with local work and delay user/professional feedback until local options have been exhausted.

## Training and paired point-prompt replay (2026-12-02)

[Synthetic visual comparison](/results/l78/) · [different-source Menne replay](/results/l78/menne.html) · [training protocol](/results/l78/protocol.json) · [training record](/results/l78/training-run.json) · [evaluation protocol](/results/l78/evaluation-protocol.json) · [all synthetic scores](/results/l78/evaluation.json) · [per-target reference-assisted audit](/results/l78/target-audit.json) · [checkpoint provenance](/experiments/checkpoints/l78-point-decoder.README.md).

### Source leakage audit before training

The initial lexical selection of 16 source train files was never used to train a model: `Amos Lake 1_6_3.jpg` and L75 evaluation source `Amos Lake 1_6.jpg` have identical whole-image 63-bit coarse DCT hashes and crop hash distance 4 despite distinct SHA-256; another train field is visually similar by coarse whole-image hash. This is strong evidence of possible shared/related imagery, not proof of the same biological object. The [initial selection](/results/l78/initial-training-selection.json), [image manifest](/results/l78/initial-image-manifest.json), and [initial audit](/results/l78/initial-source-audit.json) are preserved.

Version 2 excludes all L75 filename group proxies (basename with trailing underscore-number sequences removed) and source train filenames shared with validation/test annotations, then selects eight train images from each public source folder by filename and the largest polygon per field. Its 16 image SHA-256s differ from the eight L75 source images, and the [coarse screen](/results/l78/source-audit.json) over 128 training/evaluation image pairs has minimum masked-crop hash distance 16; whole-image minimum is 6, so potential similarities remain. This evaluation-aware selection change avoids the obvious leak but means the test is **not blind**. High coarse-hash distances, filenames and source split do not prove separate specimens or biological samples. The 16 train images are from the same public archive as the evaluation sources; many training filenames are sequential. Eight Academy training backgrounds are prior R3 crops from ≥1 GB scans with slide names different from the L75 background slide. Source images and masks are retained with hashes and attribution.

### Model and synthetic scenes

Eight source pairs were each rendered into separated, 90° crossing and edge-clipped arrangements (24 scenes, 48 eligible visible targets) on the eight fixed backgrounds. Opaque compositing does not model real optics. The original MobileSAM image and prompt encoders were frozen; only its mask decoder was trained using 64 reference-derived point-prompt examples: one single positive per target plus positive/neighbor-negative examples for crossings. Two fixed-seed AdamW epochs at 1e-5 gave mean training losses 0.1751 and 0.1623; these are training losses only. Both original and adapted decoders and source masks remain available; model confidence may change under decoder adaptation.

The fixed evaluation reuses all 16 previously examined L75 scenes with identical 256 automatic grid prompts, quality ≥0.6, area 300–50,000, within-stream IoU 0.8 NMS and fixed quality/spatial ranking. Cached baseline masks for the first 12 points of each scene were rerun and reproduced exactly; adapted masks were inferred for all 256. One-to-one visible support matches at IoU ≥0.5, quality ranking, per-scene top-30 budget:

| Previously viewed source fields | Condition | Original top 30 | Adapted top 30 | Original all kept | Adapted all kept | Raw original / adapted oracle |
|---|---|---:|---:|---:|---:|---:|
| Development | separated | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 · 4/4 |
| Development | crossing | 1/4 | 2/4 | 2/4 | 2/4 | 2/4 · 2/4 |
| Development | near-coincident | 2/4 | 4/4 | 4/4 | 4/4 | 4/4 · 4/4 |
| Development | edge-clipped | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 · 4/4 |
| Separate source-file replay | separated | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 · 4/4 |
| Separate source-file replay | crossing | 0/4 | 1/4 | 2/4 | 3/4 | 2/4 · 4/4 |
| Separate source-file replay | near-coincident | 2/4 | 2/4 | 3/4 | 3/4 | 3/4 · 3/4 |
| Separate source-file replay | edge-clipped | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 · 4/4 |

The raw oracle is a retrospective all-256-mask upper bound, not a usable automatic review policy. In separate source-file crossing scenes, the two rear targets' best raw IoUs changed 0.4876→0.5146 and 0.4960→0.5213, both close to the scoring cutoff. One adapted qualifying raw mask was suppressed by NMS; the other first appears at retained quality rank 60. At IoU ≥0.75 both models match 0/4 at top 30, and original/adapted all-kept matches are 1/4 versus 0/4. Across all 16 scenes original/adapted retained counts were 1,494/1,414; source regions in background are unlabeled. The improved 0.5 synthetic count is promising but not proven robust, independent or practically reviewable.

### River Menne separate-dataset replay

After synthetic outcomes, fixed a different-source check on the same 18 previously examined R44/R79 fields and 64 automatic point locations, reusing cached original decoder masks and reproducing the first 12 masks per scene. Original and adapted decoders use equal point/quality/NMS/ranking budgets; no detector-box masks included. The original/point-trained decoder matched 15/29 vs 14/29 source regions at IoU ≥0.5 and 12/29 vs 14/29 at IoU ≥0.75, at top 30 or across all kept masks. The public dataset is distinct from the Khanom training archive, but fields and prior splits were examined in earlier work and model exposure/biological independence are unknown. Source labels omit many fragments and aggregates; no severe-overlap, false-positive or species result follows. The 18 source field files have been mirrored with verified hashes and CC BY 4.0 attribution.

Training verifier rebuilt all 24 scene pixels and references, validated 16 source ZIP members, eight backgrounds, 64 prompts and checkpoint hash; evaluation verifiers replayed point coordinates, masks, NMS, ranking and scores on both 16 synthetic and 18 Menne fields. These do not independently rerun training or all neural inference. Keep the adapted checkpoint experimental: synthetic threshold gains and the mixed different-source replay are insufficient to choose it for production. Next evaluate on a frozen, actually unused source/scene selection and raw-score calibration, then investigate preservation of low-ranked valid masks through NMS; local work remains before amateur or professional review.
