Learning Affinities, Optimizing IdentitiesMinimum Cost Multicut for 3D Object Mapping

Yutong Chen1  Shaoxuan Yuan2  Nikolai Kalischek3  Sergey Prokudin1  Siyu Tang1

1ETH Zurich2CUHK3Google

Given a 2D RGB video, our framework recovers semantic 3D object point clouds and bounding boxes. It generalizes to diverse object categories, indoor and outdoor environments, and is completely built upon open-source models.

Live 3D demo Paper soon Code soon BibTeX
 
 
drag to orbit · scroll to zoom
hover an object to name it

Loading the scene…

We adopt off-the-shelf image models to extract per-frame 2D object masks, and associate them into identity-consistent instances. Our core idea is to solve identity association as a structured combinatorial problem, namely minimum cost multicut.
2D masks 3D objects

Each point first takes the color of the 2D mask it came from. Slide right and the masks that multicut puts in one cluster share a color and a box.

Abstract

3D object mapping, parsing multi-view RGB observations of a static 3D environment into persistent, localized object entities, is central to spatial intelligence. Recent research efforts increasingly train large end-to-end models on curated 3D instance annotations, yet these models often struggle to generalize to unseen environments. Even proprietary frontier vision-language models can miss objects or fail to consistently associate identities across views in cluttered scenes.

Instead of relying on monolithic end-to-end learning, we show that the core of this task can be formulated as a structured combinatorial problem. Specifically, given per-frame object masks extracted by off-the-shelf image detectors, we establish consistent identities by framing multi-view association as a Minimum Cost Multicut problem: solving for a globally coherent partition over an undirected graph whose nodes represent individual masks and whose edges are weighted by pairwise affinities. To supply the multicut optimization with unbiased affinity estimates, we introduce a novel transformer model that jointly processes appearance and geometric cues from multi-view 2D observations. Despite being trained solely on synthetic indoor data, this model generalizes reliably to out-of-domain scenes. Optimizing multicut over the predicted affinities achieves significantly better clustering than prior heuristic-based methods.

Finally, pairing our identity association method with modern off-the-shelf image detectors achieves state-of-the-art zero-shot performance on downstream 3D instance segmentation and bounding box estimation, even outperforming a frontier VLM-based pipeline.

Our results demonstrate that when a task possesses clear mathematical structure, combining learned local perception with principled global optimization offers a compelling alternative to scaling up end-to-end 3D training.

Method

Identity Association Is a Structured Combinatorial Problem

Pipeline: an RGB video and a class query go through Gemma and SAM to 2D proposals; IDFormer predicts pairwise affinities on an undirected graph; multicut partitions it into identity clusters, which are lifted to 3D boxes.
We decompose 3D object mapping into local visual perception, global identity association, and 2D-to-3D unprojection. Our main contribution is to solve the global identity association stage as a minimum cost multicut problem.
first

Local Visual Perception

Given an RGB video and an open-vocabulary class query, we first employ Gemma 4 to detect 2D boxes in each input frame, and send them to SAM 3 to extract per-view masks. These 2D proposals are identity-agnostic local visual evidence of target objects.

second

Global Identity Association

We group 2D proposals into identity-consistent clusters by solving a minimum cost multicut problem. We train a transformer named IDFormer to jointly process all 2D proposals and predict their pairwise affinities. Then we solve for a globally coherent partition on the undirected graph formed by the 2D proposals (nodes) and their affinities (edge weights).

finally

2D-to-3D Unprojection

For each identity cluster, which contains all 2D masks of a single object, we use pre-computed cameras and depths to unproject its pixels into 3D, and estimate the instance point cloud and bounding box.

IDFormer

Learning Affinities

To estimate pairwise identity affinities, i.e. whether two masks observe the same object, we introduce a novel transformer, named IDFormer. Instead of scoring pairs in isolation, IDFormer jointly processes all 2D masks of a category with alternating attention layers, and predicts pairwise affinity logits. It is trained to model both attractive force (positive logit) and repulsive force (negative logit), which is essential for the subsequent multicut optimization.

IDFormer architecture: 2D proposals are tokenized into crop, image and register tokens, pass through L blocks of local, global and register attention, and pairs of output register tokens go through an MLP head to give affinity logits.
Architecture of IDFormer. Given 2D proposals M with estimated cameras Π and depths D, each proposal is represented by crop, image and learnable register tokens. All tokens pass through L alternating attention blocks. Pairwise features fuv formed from the final register tokens go through a shared MLP head, which predicts the affinity logits ce.

Minimum Cost Multicut

Optimizing Identities

\[ \min_{\mathbf{y}\in\mathcal{Y}} \; \mathbf{c}^{\top}\mathbf{y} \]

\(\mathcal{Y}\) are valid multicuts satisfying cycle constraints.

Ground-truth identities: one mask of a first object, two masks of a second object
 
Ground-truth identities
Incoherent affinities c1 = +1, c2 = -6, c3 = +3
c = (1, −6, 3)
Incoherent affinities
Greedy contraction keeps every edge, cost 0
c⊤ya = 0
(a) Greedy contraction
Minimum cost multicut cuts c1 and c2, cost -5
c⊤yb = −5 < 0
(b) Minimum cost multicut
Cutting only c2 violates the cycle constraint
c⊤yc = −6, y2 > y1 + y3
(c) Cycle constraints violated

When pairwise affinities carry conflicting noise, (a) greedy contraction merges every positive edge (c1, c3) and wrongly groups two identities into one cluster, at cost 0. (b) Minimum cost multicut recovers the ground-truth partition by cutting c1 and c2, a strictly lower cost of −5. Curved black lines denote the multicut. (c) Cycle constraints (y2 ≤ y1 + y3) rule out the infeasible solution that cuts only c2.

Compared with previous association methods

Input 2D proposals on a shelf of six packed boxes, and the color-coded ground-truth identities
Input 2D proposals and color-coded ground-truth identities (right), on a shelf of six packed boxes from the Hypersim test set.
Boxer clusters
BCubed precision / recall = 20 / 100
MaskClustering clusters
BCubed precision / recall = 100 / 61
Our clusters
Ours
BCubed precision / recall = 100 / 100

Predicted 3D clusters (gray marks discarded masks). Heuristic baselines either merge neighbors (Boxer) or discard objects that lack geometric cues (MaskClustering). Our method cleanly recovers all six objects.

Results

Zero-shot Performance on Four Unseen Datasets

Identity Clustering

Given identical 2D ground-truth masks, we evaluate how well each method associates them with consistent identities.

Bars show the BCubed F1 score; the marks give BCubed precision and BCubed recall. Greedy merging on the same IDFormer affinities reaches high recall but over-merges.

Downstream 3D Object Mapping

Given identical RGB frames, estimated cameras and depths, and open-vocabulary queries, we evaluate how accurately each method predicts 3D instance segmentation and bounding boxes.

AP25 at IoU 0.25 and mAP over 0.05 to 0.50. Gray italic cells are models trained on this dataset's own 3D labels and are left out of the ranking. Bold is best and underlined second among zero-shot methods. Segmentation methods share our 3D box estimation.

Side by side

Qualitative comparison

Predictions lifted to 3D with identical estimated geometry; each matched prediction takes the color of its ground-truth instance.

BibTeX

@misc{chen2026multicut,
  title  = {Learning Affinities, Optimizing Identities:
            Minimum Cost Multicut for 3D Object Mapping},
  author = {Chen, Yutong and Yuan, Shaoxuan and Kalischek, Nikolai
            and Prokudin, Sergey and Tang, Siyu},
  year   = {2026}
}