POINT-PROMPTED SEGMENTATION, RECONSIDERED

MARSSegment Anything via Correspondence Matching

A point tells us where. A visual prompt tells us what.

Anonymous Submission

PaperSoonCodeSoonDatasetSoon

Code and dataset will be released upon acceptance.

VISUAL CORRESPONDENCEPaper results
MARS segmentation of the skier with five positive points SAM segmentation of the same skier using the identical prompts SAMMARS
Drag to compareCOCO · 5 positive points
Same image. Same prompts. A different way to match.

LIMITATION

Correct positive points can still yield background leakage or incomplete target coverage. These examples compare SAM, HQ-SAM, and MARS.

ABSTRACT

Promptable segmentation tells a model where the target is but not what it looks like, so even correct point prompts can leak into the background or leave holes. We recast the task as correspondence matching and introduce MARS: each positive point becomes a visual prompt pairing its position with the image feature sampled there, and a ViT matches these prompts against the whole image before a DPT head decodes the mask. Trained on MARSET, a new dataset of high-resolution renders with pixel-accurate masks, MARS outperforms SAM and HQ-SAM in most settings, keeps improving as prompts are added, and transfers to specialized domains and one-shot segmentation.

SEE THE DIFFERENCE

Same points.
More complete targets.

A correct positive point identifies a location on the target, yet the predicted mask can omit target regions or include the background. MARS uses local appearance at the prompted locations to match the target across the image.

These are precomputed results with the same five positive points. Drag the slider or select an example to inspect target coverage and background inclusion.

MARS segmentation of the skier with five positive points SAM segmentation of the same skier using the identical prompts SAMMARS
Drag to compareCOCO · 5 positive points

METHOD

MARS combines local appearance at each positive point with its position, then jointly processes visual prompts and image tokens to predict a dense target mask.

A frozen SAM encoder supplies image features. Feature fusion adds local RGB detail, visual prompts carry target appearance and position, and a ViT-DPT decoder predicts the mask.

Keep the fine detail

A convolutional branch adds local RGB detail to upsampled SAM features at quarter resolution, retaining cues for thin structures, boundaries, and narrow gaps before matching.

Give points an appearance

Sample a local image feature at each positive point and combine it with its positional encoding to form a visual prompt.

Match before decoding

A ViT jointly updates image and prompt tokens. A DPT head combines image features from multiple transformer depths to predict the target mask.

HIGH-RESOLUTION SEGMENTATION DATASET

MARSET

MARSET is a synthetic segmentation dataset rendered in Unreal Engine, with pixel-aligned masks derived from 3D asset identifiers.

1.04Mhigh-resolution images
34.33Mimage–mask pairs
1920 × 1080native image resolution
Three examples are shown for each of ten scenes. GT shows ground-truth masks overlaid on RGB images; Mask shows the corresponding instance-color label maps against a black background.

The gallery spans commercial, residential, and public interiors, as well as a rooftop garden, with varied viewpoints, lighting, object scales, and occlusion.

ABLATION STUDY

Starting from SAM retrained on COCONut-S, we evaluate visual prompts, the ViT-DPT decoder, MARSET supervision, and feature fusion cumulatively. The image encoder stays frozen throughout.

HQSeg-44K ablation · mIoU (%)
Configuration1 point5 points100 points
SAM baseline55.1968.2360.08
+ Visual prompts56.8774.7070.25
+ ViT-DPT decoder65.7582.3084.85
+ MARSET69.7184.1388.11
+ Feature fusion (MARS)71.2984.1088.20

Each row builds on the preceding configuration. MARSET replaces COCONut-S as the training dataset; all scores are mask mIoU on the HQSeg-44K evaluation set.

ZERO-SHOT EVALUATION

We compare MARS with SAM and HQ-SAM on COCO 2017, COCONut-S, LVIS v1, and HQSeg-44K using 1, 5, and 100 positive foreground points. Results report mask mIoU and boundary mBIoU.

HQSeg-44K

HQSeg-44K · mIoU / mBIoU (%)
PromptsSAMHQ-SAMMARS
mIoUmBIoUmIoUmBIoUmIoUmBIoU
1 point44.2335.9781.9070.8071.2964.12
5 points81.9070.8086.4677.9784.1076.68
100 points74.5563.5584.7876.1488.2081.62

All methods receive the same points for each target. Higher scores are better; bold, shaded cells indicate the best result for each metric and prompt setting.

From 5 to 100 points, MARS improves on all four benchmarks, while SAM and HQ-SAM decline. At 100 points, MARS has the best reported mIoU and mBIoU in each benchmark. HQ-SAM remains stronger at 1 and 5 points on HQSeg-44K; SAM leads at 1 point on LVIS v1.

CROSS-DOMAIN EVALUATION

We evaluate transfer to camouflaged objects (COD10K), leaf lesions (Leaf Disease), industrial defects (CDS2K), and colorectal polyps (CVC-ColonDB), using five positive points per target. These domains contain targets that resemble their surroundings or have subtle boundaries. MARS achieves the highest reported mIoU and mBIoU on each of the four datasets.

Cross-domain results · mIoU / mBIoU (%)
DatasetDomainSAMHQ-SAMMARS
mIoUmBIoUmIoUmBIoUmIoUmBIoU
COD10KCamouflage75.0065.2276.9567.2578.8969.52
Leaf DiseaseAgriculture40.7524.5947.7330.0951.5833.85
CDS2KIndustrial46.6239.7150.8442.8756.5447.71
CVC-ColonDBMedical62.7846.9968.8549.9280.5661.42

ONE-SHOT EVALUATION

Each method receives a reference image, its target mask, and a query image. For MARS, a frozen DINOv3 encoder matches the reference foreground to the query to generate up to five positive points. These points jointly condition the prediction of the query mask.

PerSeg one-shot results · scores in %
MethodmIoUmBIoUTime (s)Memory (GB)
PerSAM88.3070.496.512.11
Matcher90.6473.7112.813.68
MARS93.2681.286.793.33

Average runtime and peak GPU memory are measured on an RTX 3080. MARS strikes a balance between segmentation accuracy and computational efficiency.

Left: reference and query images. Method columns show prompt locations and predicted overlays above their binary masks.
Additional PerSeg examples. Columns: reference, query, ground truth, PerSAM, Matcher, and MARS. All methods receive the same reference image, reference mask, and query image; the displayed prompts are generated by each method.

RESEARCH RESOURCES

Build on visual correspondence.

Code and dataset will be released upon acceptance.

PaperSoonCodeSoonDatasetSoon
Manuscript citation

Anonymous manuscript citation; publication details will be updated when available.

@misc{mars,
  title = {MARS: Segment Anything via Correspondence Matching},
  author = {Anonymous},
  note = {Manuscript}
}