# Where is My Mug? Training-Free Framework for Personalized Image Segmentation

Top-K Sinkhorn matching lets training-free segmentation find the right mug among look-alikes

Quang Qui-Vinh Nguyen, Hung Nguyen, Rang Nguyen, Khoi Nguyen · arXiv · 2026-11-11

- **Problem** Existing personalized segmentation methods look strong only on single-instance benchmarks. In cluttered scenes with several same-category look-alikes, point-prompt methods often never surface the correct instance as a prompt.
- **Method** The system generates high-recall object proposals with a class-agnostic detector, then matches each proposal to the reference with BLIP-2 features. Top-K Sinkhorn scores only each candidate's most confident patches, and SAM refines the chosen box.
- **Results** On the validation split, top-K Sinkhorn reaches 87.97 mIoU, compared to 85.04 for full Sinkhorn.

## Why single-instance scores mislead

Personalized image segmentation asks a model to find, in a target image, the one physical object that a reference photo identifies. Existing benchmarks typically feature only one same-class object per target image, so their scores look high. PerSeg, PerMIS and DAVIS adaptations report high mIoU of 95–97%, yet those numbers don't expose the failures that dominate in clutter.

Those failures are proposal recall, instance-level discrimination and robustness to clutter, which single-instance scores never test.

On PerMultiSeg, the same point-prompt methods drop sharply, with PerSAM reaching 21.65 mIoU. PDM scores 23.65 mIoU and P2SAM scores 31.58 mIoU on the same benchmark. SAM confidence maps in point-prompt pipelines miss the correct instance in clutter, so the correct instance often never becomes a prompt. Proposal recall reaches 34.33 for PerSAM, 30.60 for PDM and 34.33 for P2SAM under their native protocols.

The proposal-based system reaches 89.55 recall under the same native protocol approach. A missing instance at the proposal stage stays lost for every downstream module.

Few-shot segmentation doesn't fix this either, because it generalizes to new semantic classes rather than to one object instance. A few-shot method would segment every mug in a scene instead of the one mug the reference shows.

## What PerMultiSeg adds

PerMultiSeg is built to expose the failures that single-instance scores hide, so each scene needs several look-alikes. The benchmark places 3 to 4 same-class objects in each scene on average, with varied viewpoints, natural distractors, and occlusions. Each target image holds 3.67 same-category objects on average, so a reference usually faces several look-alikes.

The distractors share the reference's product and colour, so category and colour can't settle the match. This removes category and colour shortcuts and pushes the matcher toward fine-grained, localised evidence. Prior benchmarks differ: PerSeg is essentially single-instance, while PerMIS and DAVIS come from video with minimal reference-to-target variation.

Table 1 places PerMultiSeg next to these sets, with 2,147 references, 1,377 identities, and 45 categories. PerSeg lists 40 references and 1.00 objects per image, while PerMIS has 3.10 and DAVIS has 3.18. Categories skew toward portable manufactured goods and indoor scenes, which limits how far the results transfer.

The authors kept the criterion because near-identical units must co-occur naturally in real scenes. On this set, Table 2 reports proposal recall of 34.33 for PerSAM, 30.60 for PDM, and 34.33 for P2SAM. Our method reaches 89.55 recall on PerMultiSeg, which is the gap the benchmark is built to show.

## How the matcher scores candidates

The key idea is to keep the proposal stage broad and to make the matcher skip the patches that don't match. The pipeline has three stages: class-agnostic proposals, reference-candidate matching and SAM refinement. Because the stages are decoupled, the detector, encoder or matcher can be replaced without retraining. The figure shows the same flow: boxes from a detector, features from an encoder, a distance-based choice, then SAM.

![Figure 3: Given a reference and target image, we first use an object detector to identify all potential object candidates in the target image. These candidate…](https://refivu.com/papers/0286e0e9-1ea4-424a-aa68-549360c643fc/figures/figure-f26dd16b6a344131f10ef486a670e4ec.png?thumb=512)

**Figure 3** . Given a reference and target image, we first use an object detector to identify all potential object candidates in the target image. These candidates, along with the reference image, are then passed through an image encoder to extract feature representations. Next, we determine the best-matching candidate by computing the distance between each candidate’s features and the reference features. Finally, the selected candidate’s bounding box is fed into SAM, which generates the final segmentation mask.

[Original paper](https://arxiv.org/abs/2611.15216v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Quang Qui-Vinh Nguyen, Hung Nguyen, Rang Nguyen, Khoi Nguyen · Where is My Mug? Training-Free Framework for Personalized Image Segmentation · Original paper figure · Extracted the figure area from page 6 of the original PDF.

Each proposal is compared to the reference with BLIP-2 features, where a global token gives a cosine distance and patch tokens feed the transport cost. The patch distance starts from the cross term of the entropic Sinkhorn divergence, and the self-terms are dropped because they add no discriminative signal. That cross term sums over all N by N patch pairs, so background and shared-category patches add cost in proportion to their number.

Top-K instead works from the Sinkhorn dual potentials, which give the marginal cost of each patch. A patch with a close match gets a small, often negative term, while an unmatched patch gets a large one. Given a keep-ratio K, the method sets \\(M=\\lfloor KN \\rfloor\\) and sums only the M smallest contributions on each side. \\\[\\widetilde{\\mathrm{OT}}^{K}\_{\\epsilon}(\\mathbf{V}^{r},\\mathbf{V}^{(i)})=\\sum\_{m=1}^{M}(\\mathbf{a}\\odot\\mathbf{f}^{\\star})\_{(m)}+\\sum\_{m=1}^{M}(\\mathbf{b}\\odot\\mathbf{g}^{\\star})\_{(m)}\\\] At K = 1 this recovers full entropic OT, and smaller K keeps only the cleanest inlier subset.

The trimming acts on the dual potentials the Sinkhorn solver already returns, so only a sort per pair is added. The authors state this costs O(N log N) on top of the standard forward pass and leaves the iteration unchanged. The default K = 1/3 keeps the cleanest third of the patches on each side. The final choice minimizes \\(\\alpha\_p d\_p+\\alpha\_g d\_g\\), so \\(i^\\star=\\arg\\min\_i\[\\alpha\_p d\_p+\\alpha\_g d\_g\]\\), with \\(\\alpha\_p=0.75\\) and \\(\\alpha\_g=0.25\\).

The selected box then prompts SAM to produce the mask.

## Does trimming match partial OT?

Instead, the authors trim the dual potentials of the full Sinkhorn solve as a cheap surrogate.

![Table 5: Matcher ablation on the PerMultiSegvalidationsplit (135 pairs). All rows use BLIP-2 +α p = 0.75+ the same frozen pro- posals (paper default). Top-KSin…](https://refivu.com/papers/0286e0e9-1ea4-424a-aa68-549360c643fc/figures/figure-d7cdb8b8e0469905f0ec2b09c494b68e.png?thumb=512)

**Table 5** . Matcher ablation on the PerMultiSegvalidationsplit (135 pairs). All rows use BLIP-2 +α p = 0.75+ the same frozen pro- posals (paper default). Top-KSinkhorn is indistinguishable from the partial-OT solver at this sample size, at a fraction of its latency.

[Original paper](https://arxiv.org/abs/2611.15216v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

On the 135-pair validation split, every row shares the same proposals, SAM checkpoint and BLIP-2 encoder. Only the patch distance changes between rows, so the comparison isolates the matcher. Top-K Sinkhorn reaches 87.97 mIoU, compared to 85.04 for full Sinkhorn and 83.86 for the \[CLS\] token only matcher. The partial-OT solver also scores 87.97 mIoU, so trimming matches its accuracy in this table.

Against full Sinkhorn, top-K gains +2.93 mIoU at the shared default alpha\_p = 0.75, and +1.74 best-versus-best. Average feature maps reach only 65.29 mIoU, and mutual-NN filtering reaches 81.70 mIoU. Trimming correspondences after the solve, through mutual-NN filtering, doesn't work as well because it disturbs the transport coupling. Matching accounts for only about 1.5% of end-to-end latency, so it's effectively free at deployment.

Across six encoders, top-K beats the CLS-only matcher, with DINOv2 gaining +13.75 mIoU. The Top-K column reports the best result per encoder from the K sweep, so those values are tuned on the sweep. Top-K stays robust for any K between 1/3 and 1/2, and the authors use K = 1/3, the most aggressive setting.

## Comparison with PerSAM, PDM and P2SAM

The authors report that Ours exceeds P2SAM by more than 45 mIoU on this benchmark. The SAM-detector variant, which uses no external detector, scores 74.33 mIoU. The authors say even this detector-free variant clears every baseline by a large margin. SAM2 and SAM3 appear in the table for context, because they address related tasks rather than matching one specific instance.

The pipeline differs from the baselines in two ways: it uses more pretrained components and box prompts instead of point prompts. To separate these factors, the authors ran three controls. That gap is roughly half of the total +48.49, so the prompt type explains only part of the result. Using only SAM, the same backbone as PerSAM with no external detector, still gives +42 mIoU over P2SAM.

On PerMIS, Ours scores 65.65 mIoU, compared to 43.57 for P2SAM and 42.30 for PDM. On DAVIS2017, Ours reaches 78.68 J&F, against 75.80 for PDM. PerSeg contains essentially one instance per target, so it says little about instance discrimination.

## Where the results stop

The failure case in the last row of the qualitative figure hides the discriminative label on the correct mug. A distractor shows a similar label facing the camera, so an appearance-based matcher prefers the more visible mug.

The equivalence between top-K Sinkhorn and partial OT rests on 135 validation pairs. At that sample size, top-K Sinkhorn is indistinguishable from the partial-OT solver at a fraction of its latency. The two methods select the same candidate on all 135 pairs, at 8 versus 848 ms per pair.

The trim stays robust for any K between 1/3 and 1/2, and the default uses the most aggressive value, K = 1/3. The encoder study reports the best K for each encoder, so its Top-K column comes from a per-encoder sweep.

PerMultiSeg skews toward portable manufactured goods and indoor settings, which bounds its external validity. The skew leaves the comparisons intact, since every method sees identical pairs. PerSAM, PDM and P2SAM ran at their default settings with the same SAM checkpoint. The timings are per pair on the validation split, measured on an A100 40GB GPU.

## Paper info

- **Authors**: Quang Qui-Vinh Nguyen, Hung Nguyen, Rang Nguyen, Khoi Nguyen
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-11
- **Added**: 2026-11-13
- **Updated**: 2026-11-11
- **Version**: v1
- **arXiv**: 2611.15216
- **Category**: cs.CV · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.15216v1) · [PDF ↗](https://arxiv.org/pdf/2611.15216v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

\\textbf{Personalized Image Segmentation (PIS)} aims to segment the specific object in a target image that matches a user-provided reference. Unlike category-based segmentation or few-shot segmentation, PIS must discriminate between multiple visually similar instances, a requirement central to deployed applications such as augmented reality, personalized content editing, robotics manipulation, inventory tracking, and fine-grained visual retrieval. We show that the strong numbers reported by existing PIS methods are largely an artifact of single-instance benchmarks: when evaluated on realistic scenes with several same-category look-alikes, prior point-prompt methods collapse, because the correct instance is frequently never surfaced as a prompt. We trace this to a recall bottleneck rather than a mask-quality one, and address it with a training-free, modular system. The pipeline first generates high-recall object proposals using an off-the-shelf class-agnostic detector, then matches each proposal to the reference using foundation-model features (e.g., BLIP-2), and finally refines the selected box with SAM. For robust matching we propose \\textbf{top-$K$ Sinkhorn}, a patch-level distance that scores each candidate only on its most confidently matched patches; trimming the Sinkhorn dual potentials recovers the robustness of partial optimal transport at more than $100\\times$ lower cost, keeping it inside the per-proposal candidate loop. To evaluate this regime, we introduce \\textbf{\\datasetname}, a realistic multi-instance benchmark. Across \\datasetname, PerSeg, PerMIS, and DAVIS, our system surpasses PerSAM, $\\mathrm{P}^2\\mathrm{SAM}$, and PDM by up to $\\sim\\!48$ mIoU while matching their runtime and using fewer parameters, establishing a strong, deployable training-free baseline for real-world personalized segmentation.

## Quote from the paper

Quang Qui-Vinh Nguyen, Hung Nguyen, Rang Nguyen, Khoi Nguyen (2026). Where is My Mug? Training-Free Framework for Personalized Image Segmentation. arXiv:2611.15216v1. https://arxiv.org/abs/2611.15216v1

**BibTeX**

```
@misc{nguyen2026where,
  title = {{Where is My Mug? Training-Free Framework for Personalized Image Segmentation}},
  author = {Quang Qui-Vinh Nguyen and Hung Nguyen and Rang Nguyen and Khoi Nguyen},
  year = {2026},
  eprint = {2611.15216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15216v1}
}
```

## Other paper commentary

- [Keep Images in Sight: Visual Position Re-Anchoring for Long-Context MLLMs](https://refivu.com/en/papers/834b8971-2b7d-4073-a903-6858850b7bab-keep-images-in-sight-visual-position-re-anchoring.md)
- [Fog-FWL: A Large-Scale Full-Waveform LiDAR Dataset for Recovering Fog-Hidden Objects](https://refivu.com/en/papers/a693efcf-4c23-4056-b199-4d5ec95df3c3-fog-fwl-a-large-scale-full-waveform-lidar.md)
- [Hand in Silhouette: Synthetic-to-Real Multi-View Hand Reconstruction via Binary Masks](https://refivu.com/en/papers/5032160a-4375-483b-8efc-7a1fb2dd091e-hand-in-silhouette-synthetic-to-real-multi-view.md)
- [Can an LVLM Perceive Event Boundaries Like a Human?](https://refivu.com/en/papers/b1c80004-c84d-44dc-ba90-cf23e70b8597-can-an-lvlm-perceive-event-boundaries-like-a.md)
- [Measuring Preferred Representation in AI-generated Images with Community Scorers](https://refivu.com/en/papers/32e7e0e7-e783-4523-b60c-f186fa61a14b-measuring-preferred-representation-in-ai-generated-images.md)
- [Where to Generate Touch: Do Image Latents Preserve Material Recognition?](https://refivu.com/en/papers/e2cf8e29-f9c8-4051-9306-a95f82b3fe19-where-to-generate-touch-do-image-latents-preserve.md)
- [The Neighbour's Label: Opposite Subgroup Effects of Same-Dialogue Exposure in Next-Act Evaluation](https://refivu.com/en/papers/c48d4fb9-6b58-4535-adf3-ac3ff1fd009d-the-neighbour-s-label-opposite-subgroup-effects-of.md)
- [DiFiT: Distribution-Fidelity-guided Visual Token Pruning for Multimodal Large Language Models](https://refivu.com/en/papers/ded3d71e-2778-4155-b22f-1de96026dbd7-difit-distribution-fidelity-guided-visual-token-pruning-for.md)
- [Prediction or Persistence? What Future-Prediction Scores Miss About World Models](https://refivu.com/en/papers/53dba3ea-c12a-477f-9185-cafdd295d815-prediction-or-persistence-what-future-prediction-scores-miss.md)
- [Tokenization: Hardness and Bicriteria Approximation Algorithms](https://refivu.com/en/papers/1f62be8b-f2d0-4aa2-b1ed-52835980285d-tokenization-hardness-and-bicriteria-approximation.md)
- [BiPOP: Partial-Order Planning for Long-Horizon Bimanual Robotic Manipulation](https://refivu.com/en/papers/55e404ff-0514-4f7f-89a0-367306aae1db-bipop-partial-order-planning-for-long-horizon-bimanual.md)
- [When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment](https://refivu.com/en/papers/bffeb870-d297-4786-a31b-cd7ba9c9f25e-when-does-learned-constraint-selection-pay-in-security.md)

## Terms in this paper

- [recall](https://refivu.com/en/terms/3774987267f3-recall)
- [BLIP-2](https://refivu.com/en/terms/d03727ce12f7-blip-2)
- [SAM](https://refivu.com/en/terms/702df428b8a1-sam)
- [DAVIS](https://refivu.com/en/terms/8b11a9dbcaf5-davis)
- [YOLOv11](https://refivu.com/en/terms/68faed98dbd9-yolov11)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/0286e0e9-1ea4-424a-aa68-549360c643fc-where-is-my-mug-training-free-framework-for)
