SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.15715 · ICCV · 2023

Segment Every Reference Object in Spatial and Temporal Spaces

Ping Luo, Yi Jiang, Zehuan Yuan, Huchuan Lu, Bin Yan, Jiannan Wu

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2312.15715.json · badge: /api/ran/2312.15715.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
foundationvision/uniref canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
aligned_bilinear Ran
ran; our contract draft was wrong, not the code
foundationvision/uniref/projects/UniRef/uniref/models/ddetrs.py
code served (permissive licence) · get_code("29dbbaafa4be18e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 8, 10) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a 4D tensor with shape (batch, channels, height, width)
# Using distinct sizes: batch=2, channels=3, height=4, width=5
tensor = torch.randn(2, 3, 4, 5)

# Factor must be >= 1 and an integer
factor = 2

ARGS = {
    "tensor": tensor,
    "factor": factor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 8, 10) — shape (2, 3, 8, 10) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bounding_box Ran
ran, honoured the contract we drafted
foundationvision/uniref/projects/UniRef/uniref/uniref.py
code served (permissive licence) · get_code("8243ac0c601917dc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes an image (numpy array) and finds its bounding box
# It uses np.any() to find rows and columns with non-zero elements
# Then extracts min/max indices to compute bounding box coordinates

# Create a simple test image with some non-zero values
# We'll make a small image with a clear bounding box region
img = np.zeros((6, 8), dtype=np.uint8)
# Add a rectangular region of non-zero values
img[1:4, 2:6] = 1

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_locations Ran
ran, honoured the contract we drafted
foundationvision/uniref/projects/UniRef/uniref/models/ddetrs.py
pointer only (licence: MIT); the stored copy get_code serves, from bo-miao/refhuman, is pointer only (licence: NONE) · get_code("ed1a308adb65f645")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from bo-miao/refhuman, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_mask_iou Ran
ran; our contract draft was wrong, not the code
foundationvision/uniref/projects/UniRef/uniref/models/uniref_sam.py
code served (permissive licence) · get_code("4de0dcaf9f33183b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with shape [N, H*W]
# N=2 (batch size), H*W=4 (flattened spatial dimensions)
inputs = torch.randn(2, 4)  # mask logits (unbounded values)
targets = torch.randint(0, 2, (2, 4)).float()  # binary masks

ARGS = {
    "inputs": inputs,
    "targets": targets,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
concat_mask_dict_features Ran
ran; our contract draft was wrong, not the code
foundationvision/uniref/projects/UniRef/uniref/uniref.py
code served (permissive licence) · get_code("286983a8483318b8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct ref_feats_dict1
# The function expects 'refs', 'ref_values', 'masks', 'ref_embeds' keys
# Each value is a list with 'level' elements (number of levels)

level = 2  # number of levels

# Create ref_feats_dict1
ref_feats_dict1 = {
    'refs': [
        torch.randn(2, 4, 3),  # shape: (batch=2, seq=4, dim=3)
        torch.randn(2, 4, 3),
    ],
    'ref_values': [
        torch.randn(2, 4, 5),  # shape: (batch=2, seq=4, dim=5)
        torch.randn(2, 4, 5),
    ],
    'masks': [
        torch.randn(2, 4, 6),  # shape: (batch=2, seq=4, dim=6)
        torch.randn(2, 4, 6),
    ],
    'ref_embeds': [
        torch.randn(2, 7),  # shape: (batch=2, dim=7)
        torch.randn(2, 7),
    ],
}

# Create ref_feats_dict2 with compatible shapes
ref_feats_dict2 = {
    'refs': [
        torch.randn(2, 4, 3),  # shape: (batch=2, seq=4, dim=3)
        torch.randn(2, 4, 3),
    ],
    'ref_values': [
        torch.randn(2, 4, 5),  # shape: (batch=2, seq=4, dim=5)
        torch.randn(2, 4, 5),
    ],
    'masks': [
        torch.randn(2, 4, 6),  # shape: (batch=2, seq=4, dim=6)
        torch.randn(2, 4, 6),
    ],
    'ref_embeds': [
        torch.randn(2, 7),  # shape: (batch=2, dim=7)
        torch.randn(2, 7),
    ],
}

ARGS = {
    'ref_feats_dict1': ref_feats_dict1,
    'ref_feats_dict2': ref_feats_dict2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dice_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
foundationvision/uniref/projects/UniRef/uniref/models/uniref_sam.py
code served (permissive licence) · get_code("a1c2083ec2eaeb22")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (arbitrary shape, will be flattened to (batch, features))
# targets: binary labels with same shape as inputs
batch_size = 2
height = 4
width = 3

inputs = torch.randn(batch_size, height, width)
targets = torch.randint(0, 2, (batch_size, height, width)).float()

# num_masks: number of masks (used for normalization)
num_masks = 2.0

# scale: scaling factor for normalization
scale = 1000

# eps: small epsilon for numerical stability
eps = 1e-06

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks,
    "scale": scale,
    "eps": eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_dynamic_params Ran
ran; our contract draft was wrong, not the code
foundationvision/uniref/projects/UniRef/uniref/models/ddetrs.py
code served (permissive licence) · get_code("46f34dc9f9a94b67")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function to understand parameter requirements:
# - params: 2D tensor, size(0) = num_insts, size(1) = sum(weight_nums) + sum(bias_nums)
# - channels: int, used for reshaping
# - weight_nums: list of ints, specifies weight dimensions for each layer
# - bias_nums: list of ints, specifies bias dimensions for each layer

# Set up small concrete values
num_insts = 2
channels = 4
num_layers = 2

# Define weight and bias numbers for 2 layers
# Layer 0 (not last): weight has some size, bias has some size
# Layer 1 (last): weight has some size, bias has some size
weight_nums = [12, 8]  # weight dimensions for each layer
bias_nums = [4, 1]     # bias dimensions for each layer

# params tensor must have:
# - dim 0: num_insts = 2
# - dim 1: sum(weight_nums) + sum(bias_nums) = 12 + 8 + 4 + 1 = 25
total_params = sum(weight_nums) + sum(bias_nums)
params = torch.randn(num_insts, total_params)

ARGS = {
    "params": params,
    "channels": channels,
    "weight_nums": weight_nums,
    "bias_nums": bias_nums,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sigmoid_ce_loss Ran
ran; our contract draft was wrong, not the code
foundationvision/uniref/projects/UniRef/uniref/models/uniref_sam.py
code served (permissive licence) · get_code("e28a878991e1e696")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits), shape (batch=2, height=4, width=3)
inputs = torch.randn(2, 4, 3, dtype=torch.float32)

# targets: binary labels with same shape as inputs
targets = torch.randint(0, 2, (2, 4, 3), dtype=torch.float32)

# num_masks: a positive float for normalization
num_masks = 2.0

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
unfold_wo_center Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
foundationvision/uniref/projects/UniRef/uniref/uniref.py
pointer only (licence: MIT); the stored copy get_code serves, from Pxtri2156/AdelaiDet_v2, is pointer only (licence: NOASSERTION) · get_code("6bc62d34967e2917")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Pxtri2156/AdelaiDet_v2, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
aligned_bilinear 17 other papers
11 dated earlier, 1 the same month, 4 later, 1 same year, order not determinable · 1 only as an assembly brick
2201.00487 (2022-01)
Language as Queries for Referring Video Object Segmentation
2203.12827 (2022-03)
Sparse Instance Activation for Real-Time Instance Segmentation
2206.03789 (2022-06)
Language-Bridged Spatial-Temporal Interaction for Referring Video Object Segmentation
and 14 more not named here
sigmoid_ce_loss 17 other papers
3 the same month, 14 later · 1 only as an assembly brick
2312.02228 (2023-12)
PixelLM: Pixel Reasoning with Large Multimodal Model
2312.10103 (2023-12)
GSVA: Generalized Segmentation via Multimodal Large Language Models
2312.17240 (2023-12)
LISA++: An Improved Baseline for Reasoning Segmentation with Large Language Model
and 14 more not named here
dice_loss 16 other papers
1 dated earlier, 3 the same month, 12 later · 1 only as an assembly brick
2311.05348 (2023-11)
u-LLaVA: Unifying Multi-Modal Tasks via Large Language Model
2312.02228 (2023-12)
PixelLM: Pixel Reasoning with Large Multimodal Model
2312.10103 (2023-12)
GSVA: Generalized Segmentation via Multimodal Large Language Models
and 13 more not named here
compute_locations 12 other papers
6 dated earlier, 5 later, 1 same year, order not determinable · 1 only as an assembly brick
2201.00487 (2022-01)
Language as Queries for Referring Video Object Segmentation
2207.14012 (2022-07)
Video Mask Transfiner for High-Quality Video Instance Segmentation
aaai_25201 (2023 (year only))
InstanceFormer: An Online Video Instance Segmentation Framework
and 9 more not named here
parse_dynamic_params 9 other papers
5 dated earlier, 3 later, 1 same year, order not determinable
2004.01177 (2020-04)
Tracking Objects as Points
2201.00487 (2022-01)
Language as Queries for Referring Video Object Segmentation
2207.14012 (2022-07)
Video Mask Transfiner for High-Quality Video Instance Segmentation
and 6 more not named here
unfold_wo_center 3 other papers
3 dated earlier
2003.05664 (2020-03)
Conditional Convolutions for Instance Segmentation
2303.15904 (2023-03)
Mask-Free Video Instance Segmentation
2307.00764 (2023-07)
Hierarchical Open-vocabulary Universal Image Segmentation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The reference-based object segmentation tasks, namely referring image segmentation (RIS), referring video object segmentation (RVOS), and video object segmentation (VOS), aim to segment a specific object by utilizing either language or annotated masks as references. Despite significant progress in each respective field, current methods are task-specifically designed and developed in different directions, which hinders the activation of multi-task capabilities for these tasks. In this work, we end the current fragmented situation and propose UniRef to unify the three reference-based object segmentation tasks with a single architecture. At the heart of our approach is the multiwayfusion for handling different task with respect to their specified references. And a unified Transformer architecture is then adopted for performing instance-level segmentation. With the unified designs, UniRef can be jointly trained on a broad range of benchmarks and can flexibly perform multiple tasks at runtime by specifying the corresponding references. We evaluate the jointly trained network on various benchmarks. Extensive experimental results indicate that our proposed UniRef achieves state-of-the-art performance on RIS and RVOS, and performs competitively on VOS with a single network.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2312.15715")
get_code_for_paper("2312.15715")
have("2312.15715")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2312.15715.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2312.15715.svg)](https://syntology.ai/paper/2312.15715)

Connect an agent — have() is free.