SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.08198 · NeurIPS · 2023

On Point Affiliation in Feature Upsampling

Hao Lu, Wenze Liu, Yuliang Liu, Zhiguo Cao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 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/2307.08198.json · badge: /api/ran/2307.08198.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
poppinace/sapa canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
tiny-smart/sapa canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FunctionStatusWhere it lives
atn_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
poppinace/sapa/sapa/sapa/forward_check.py
code served (permissive licence) · get_code("dfbff3205c2b778d")
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, 8, 6, 4) 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)

# Construct arguments for atn_ function
# atn_(attn, x, kernel_size=5, scale=2)

# Parameters:
# - attn: tensor that will be viewed as (B, H, scale, W, scale, kernel_size**2)
# - x: tensor with shape (B, H, W, C)
# - kernel_size: int, default 5
# - scale: int, default 2

B = 2
H = 4
W = 3
C = 4
kernel_size = 5
scale = 2

# x has shape (B, H, W, C)
x = torch.randn(B, H, W, C)

# attn needs to be viewable as (B, H, scale, W, scale, kernel_size**2)
# So total elements = B * H * scale * W * scale * (kernel_size**2)
attn_shape = (B, H, scale, W, scale, kernel_size ** 2)
attn = torch.randn(*attn_shape)

ARGS = {
    'attn': attn,
    'x': x,
    'kernel_size': kernel_size,
    'scale': scale
}
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, 8, 6, 4) — shape (2, 8, 6, 4) 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
av_pytorch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tiny-smart/sapa/sapa/sapa/forward_check.py
pointer only (licence: NONE) · get_code("3f7ca2dae48097f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tiny-smart/sapa 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.

nearest_interpolate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
poppinace/sapa/SAPAExp.py
code served (permissive licence) · get_code("d3d045791b24026d")
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, 6, 8, 5) 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)

# The function takes a tensor x with shape (b, h, w, c) and upsamples it
# using nearest neighbor interpolation by a scale_factor
# It uses: .shape, .repeat(), .reshape(), .permute()

# Create a small input tensor: (batch=2, height=3, width=4, channels=5)
x = torch.randn(2, 3, 4, 5)

ARGS = {
    "x": x,
    "scale_factor": 2
}
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, 6, 8, 5) — shape (2, 6, 8, 5) 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
qk_pytorch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tiny-smart/sapa/sapa/sapa/forward_check.py
pointer only (licence: NONE) · get_code("291c5b902b61c022")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tiny-smart/sapa 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.

sim_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
poppinace/sapa/sapa/sapa/forward_check.py
code served (permissive licence) · get_code("4ee76ace5719d8ea")
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, 10, 6, 25) 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)

# Analyze the function:
# - q: shape (B, H, scale, W, scale, C) after view
#   Before view: (B, H*scale, W*scale, C)
# - k: shape (B, C, H, W) before unfold
# - kernel_size: int, default 5
# - scale: int, default 2

# Build small tensors with distinct dimensions
B = 2
H = 3
W = 4
C = 5
scale = 2

# q needs to be reshaped to (B, H, scale, W, scale, C)
# So input q shape is (B, H*scale, W*scale, C) = (2, 6, 8, 5)
q = torch.randn(B, H * scale, W * scale, C)

# k shape is (B, C, H, W) = (2, 5, 3, 4)
k = torch.randn(B, C, H, W)

# kernel_size should be reasonable, default is 5
kernel_size = 5

ARGS = {
    "q": q,
    "k": k,
    "kernel_size": kernel_size,
    "scale": scale
}
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, 10, 6, 25) — shape (2, 10, 6, 25) 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
deform_av_pytorch Not yet run
unverified (harvested, no recorded run)
tiny-smart/sapa/deformsapa/deformsapa/forward_check.py
pointer only (licence: NONE) · get_code("9e10c1e1217bbd81")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tiny-smart/sapa 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. No invocation recorded.

deform_qk_pytorch Not yet run
unverified (harvested, no recorded run)
tiny-smart/sapa/deformsapa/deformsapa/forward_check.py
pointer only (licence: NONE) · get_code("d4c2fdca6d44e5e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tiny-smart/sapa 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. No invocation recorded.

sample Not yet run
unverified (harvested, no recorded run)
tiny-smart/sapa/deformsapa/deformsapa/forward_check.py
pointer only (licence: NONE) · get_code("97a4ea089539d2f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tiny-smart/sapa 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. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

We introduce the notion of point affiliation into feature upsampling. By abstracting a feature map into non-overlapped semantic clusters formed by points of identical semantic meaning, feature upsampling can be viewed as point affiliation-designating a semantic cluster for each upsampled point. In the framework of kernel-based dynamic upsampling, we show that an upsampled point can resort to its low-res decoder neighbors and high-res encoder point to reason the affiliation, conditioned on the mutual similarity between them. We therefore present a generic formulation for generating similarity-aware upsampling kernels and prove that such kernels encourage not only semantic smoothness but also boundary sharpness. This formulation constitutes a novel, lightweight, and universal upsampling solution, Similarity-Aware Point Affiliation (SAPA). We show its working mechanism via our preliminary designs with window-shape kernel. After probing the limitations of the designs on object detection, we reveal additional insights for upsampling, leading to SAPA with the dynamic kernel shape. Extensive experiments demonstrate that SAPA outperforms prior upsamplers and invites consistent performance improvements on a number of dense prediction tasks, including semantic segmentation, object detection, instance segmentation, panoptic segmentation, image matting, and depth estimation. Code is made available at: https://github.com/tiny-smart/sapa.

For agents

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

get_harvested_code_for_paper("2307.08198")
get_code_for_paper("2307.08198")
have("2307.08198")

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

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

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

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

Connect an agent — have() is free.