MySAM: Inverting Any Object Identity into the Prompt Space of SAM3
We address personalized segmentation, where given a single reference image with a masked object, the goal is to segment all objects sharing its identity in a new image, and nothing when it is absent. SAM3, the most capable segmentation foundation model, does not support this task since language cannot always describe what sets an object apart from its look-alikes. We show that the prompt space of SAM3, though trained with semantic supervision, can encode object identity. We introduce MySAM, which inverts the masked reference into prompt embeddings of a frozen SAM3, without additional pre-training on labeled object identities; optimization runs once per reference object, and each test image needs one forward pass. Augmented views of the reference alone are not enough to learn the discrimination of the object from its look-alikes. The key is hard but diverse negatives, retrieved from unlabeled images, which steer MySAM from the object's semantics to its identity. MySAM sets a new state of the art on the largest personalized segmentation benchmark to date, the first to include hard negatives, i.e. images with look-alikes present and the object absent.
- arXiv
- 2612.01964
- Authors
- Tilemachos Aravanis, Bill Psomas, Giorgos Kordopatis-Zilos, Giorgos Tolias
- Categories
- cs.CV