A real new concept shows up many times
Novelty alone has a flaw: the most novel images are often broken ones.
| Image | Novelty vs. the training set | Pile neighbors above cosine 0.85 | What it is |
|---|---|---|---|
| A | 0.92 | 0 | corrupted JPEG, gray blocks |
| B | 0.88 | 1 | blank frame |
| C | 0.61 | 340 | delivery robots on sidewalks |
| D | 0.55 | 2,100 | e-scooters, a known rare slice |
| E | 0.20 | 50,000 | an ordinary street scene |
A real new concept behaves differently from junk. In a billion images it shows up many times. A delivery robot on a sidewalk appears in thousands of photos, while a corrupted file is corrupted in its own way. So add a second number: how dense the image's neighborhood is in the pile itself.
Ranking by novelty alone puts A and B on top. Require at least 20 neighbors in the pile, a density floor, and A and B drop out. C and D lead.
Three fixes, in the order you add them
- Filter first. Quality filters and PDQ's quality score remove most images like A and B before any scoring.
- Put a density floor under novelty. Only images with enough neighbors in the pile can score as novel. Settles calls the general idea information density: an informative example is not only uncertain, it's also representative of the data, in a dense region of it.
- Score clusters, not points. Take clusters whose centroid sits far from . Label five images from each, and promote or drop the whole cluster. Five labels judge all 340 delivery-robot images at once.
Here is a pile with ordinary images near the training set, a tight group of a new concept, and a sprinkle of junk. Rank it by distance alone, then raise the density floor.
- Junk
- 14
- New concept
- 6
- Ordinary
- 0
Novelty is the distance to the 3rd nearest training image. Neighbors are pile images within 0.35 of a point. Junk sits alone, far from everything. A real new concept is far from the training set too, but it shows up many times.
In the editor, write novelty(X, R, k=10) with NumPy, then pick(scores, neighbors, floor=20). The tests use images A to E from the table: scores holds their novelty and neighbors their count of neighbors in the pile.