The model can point at its own mistakes
If interesting means failure cases, the model is its own best detector. Three kinds of signal:
- Uncertainty. Least confident, : one minus the probability of the top class. Or the margin between the top two classes, or the entropy of the prediction. It's cheap, and it finds the decision boundary. It also loves ambiguous and junk images, because a model is unsure about anything unlike its training data.
- Disagreement. When two models disagree, one of them is wrong. Compare the current model with the last version, a big model with a small one, the model with a weak signal like metadata, or one video frame with the next. A prediction that flickers between frames is a free error signal.
- Predicted error. After a round or two you have labeled mistakes. Train a small classifier on the embeddings to predict whether the model got an image wrong, and run it over the pile. Last round's errors become a detector for next round's.
Once a failure mode has a name, train a quick classifier for that slice, run it over everything, and label what it fires on. These per-slice classifiers are probes: linear models on the embeddings, trained on a few hundred yes and no labels.
Expect a noisy stream. In a talk on Tesla's data engine, Karpathy describes doing this for occluded stop signs, and says roughly one in ten returned images was the real thing. That's fine. A labeler rejects a false positive in a second, and the true ones are images random sampling would almost never surface.
In the editor, write least_confident(p) and margin(p). Each list holds the model's class probabilities for one image: p_close_call splits nearly evenly between two classes, and p_sure doesn't.