MySAM: Inverting Any Object Identity into the Prompt Space of SAM3

Tilemachos Aravanis, Bill Psomas, Giorgos Kordopatis-Zilos, Giorgos Tolias

Czech Technical University in Prague

Published December 1, 2026 · on the feed December 2, 2026 · ▲ 14 · arXiv 2612.01964

The abstract

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.

The Brief

2:00

A short podcast summary of the paper. Written and voiced by AI.

Transcript

MySAM. Inverting Any Object Identity into the Prompt Space of SAM3. By Tilemachos Aravanis and three others, from the Czech Technical University in Prague. Published on the first of December.

Personalized segmentation starts from a single reference image with one object masked. The goal is to segment every object sharing that identity in a new image, and to segment nothing if it is absent. SAM3, which the authors call the most capable segmentation foundation model, does not support this. It is prompted with language, and language cannot always describe what sets an object apart from its look-alikes. Asking for a mug finds every mug. Asking for this particular mug, and not the nearly identical one beside it, is something words often cannot express.

The paper shows that SAM3's prompt space, although trained with semantic supervision, can encode object identity. MySAM inverts the masked reference into prompt embeddings for a frozen SAM3, with no extra pre-training on labelled object identities. Instead of describing the object in words, MySAM finds the prompt that points at it directly, written in the model's own internal vocabulary rather than in language.

Optimization runs once per reference object, and after that each test image needs a single forward pass. The cost is paid once, up front, and using the result is as cheap as running SAM3 normally. What makes the inversion work is the training signal. Augmented views of the reference on their own are not enough to learn to tell the object apart from its look-alikes. The key is negatives that are hard but diverse, retrieved from unlabelled images. Those negatives steer MySAM away from what the object is, its semantics, toward which one it is, its identity.

MySAM sets a new state of the art on the largest personalized segmentation benchmark to date. That benchmark is also the first to include hard negatives: images where look-alikes are present and the object itself is absent, exactly the case where saying nothing is the correct answer.

The capability was already inside the frozen model. What unlocks it is the contrast the optimization is shown: not more views of the object, but examples of what it must not be confused with.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.