# R24 · Direction and blank controls for local-feature retrieval

## Controls on L23's development set · 2026-12-01

L23 scores a partial query against a whole reference by finding, for each selected query feature, its best reference feature and averaging those best similarities. As a control, reverse the direction: for each selected reference feature, find its best query feature and average. Both directions use the same 12 texture-selected positions per image, the same frozen ResNet layer, the same five-reference gallery, and no labels to select the nearest reference. This is a scoring control, not a new trained model. Reuse the same 42 paired synthetic query halves from one public source slide.

For half A, forward and reverse matching share the public query genus 21/42 and 16/42 times; the closest individual reference changes in eight cases. For half B, they match 16/42 and 18/42 times; the closest reference changes in nine cases. These selected examples show sensitivity to the scoring direction, not evidence that either rule generalizes. Features have large receptive fields, cells are selected using texture rather than specimen masks, and multiple features may reuse one match. [View the summary](/results/r24/) and [download the counts](/results/r24/patch-controls.json).

For an evidence-removal control, replace each entire query with its own median gray value and run the same forward feature search. With no abstention option, all 42 blank inputs return the gallery's Ctenophora reference; nine query metadata labels also happen to be Ctenophora. This is not identification from evidence and does not mean those blank queries were assigned a high or calibrated confidence. It demonstrates why a forced-choice reference match must never be presented as a certain taxon when the input contains no diagnostic structure. Scores are in [L23's machine-readable output](/results/l23/patch-retrieval.json).

All queries come from one nonrandom public-slide prefix, are paired across conditions and have been used to develop these methods. The half-image edits are not real partial specimens. Do not use these counts as accuracy or tune a deployed abstention threshold on them. Use independent validation to calibrate unknown/debris rejection, evaluate intentionally blank or obscured controls, and have experts assess the actual visible traits on sample-separated partial and overlapping local specimens. Reproduce with `/tmp/diatom-research-venv/bin/python research/l23_patch_retrieval.py` followed by `/tmp/diatom-research-venv/bin/python research/r24_patch_controls.py`.
