SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.01539 · ICLR · 2025

Multi-Scale Fusion for Object Representation

Joni Pajarinen, Juho Kannala, Rongzhen Zhao, Vivienne Wang

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2410.01539.json · badge: /api/ran/2410.01539.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
Genera1Z/MultiScaleFusion marked official in Papers with Code
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
VQVAEZ Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/MultiScaleFusion/object_centric_bench/model/vaez.py
code served (permissive licence) · get_code("387ca97d860cea0b")
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 an instance of its own class, VQVAEZ: the run constructed the object and did not call it, so no result was computed. 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 as pt
import torch.nn as nn

pt.manual_seed(0)

class SimpleEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 4, kernel_size=1)
    
    def forward(self, x):
        return self.conv(x)

class SimpleDecoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(4, 3, kernel_size=1)
    
    def forward(self, x):
        return self.conv(x)

class SimpleQuantizer(nn.Module):
    def __init__(self):
        super().__init__()
        self.codebook = nn.Embedding(8, 4)
    
    def forward(self, x):
        # x shape: (b, h, w, c)
        b, h, w, c = x.shape
        flat = x.reshape(-1, c)
        dists = pt.cdist(flat, self.codebook.weight)
        zidx = dists.argmin(dim=1)
        quant = self.codebook(zidx)
        quant = quant.reshape(b, h, w, c)
        return zidx.reshape(b, h, w), quant

encode = SimpleEncoder()
decode = SimpleDecoder()
quant = SimpleQuantizer()

ARGS = {
    'encode': encode,
    'decode': decode,
    'quant': quant,
    'alpha': 0.5,
    'retr': True
}
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 VQVAEZ — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VQVAEZ 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
VQVAEZMultiScale Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/MultiScaleFusion/object_centric_bench/model/vaez.py
code served (permissive licence) · get_code("c8029fe62c0f124b")
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 an instance of its own class, VQVAEZMultiScale: the run constructed the object and did not call it, so no result was computed. 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 as pt
import torch.nn as nn
import torch.nn.functional as ptnf

pt.manual_seed(0)

# Minimal encoder: takes (b, c, h, w) -> (b, c_out, h_out, w_out)
class MinimalEncoder(nn.Module):
    def __init__(self, in_channels=3, out_channels=4):
        super().__init__()
        self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1)
    
    def forward(self, x):
        return self.conv(x)

# Minimal decoder: takes (b, c, h, w) -> (b, 3, h, w)
class MinimalDecoder(nn.Module):
    def __init__(self, in_channels=4, out_channels=3):
        super().__init__()
        self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1)
    
    def forward(self, x):
        return self.conv(x)

# Minimal quantizer with match and select methods
class MinimalQuantizer(nn.Module):
    def __init__(self, num_embeddings=8, embedding_dim=4):
        super().__init__()
        self.embedding = nn.Embedding(num_embeddings, embedding_dim)
        self.num_embeddings = num_embeddings
    
    def forward(self, x):
        # x shape: (b, h, w, c)
        b, h, w, c = x.shape
        x_flat = x.reshape(-1, c)
        # Compute distances to embeddings
        distances = pt.cdist(x_flat, self.embedding.weight)
        zidx = distances.argmin(dim=1).reshape(b, h, w)
        quant = self.embedding(zidx)
        return zidx, quant
    
    def match(self, x):
        # x shape: (n, c)
        distances = pt.cdist(x, self.embedding.weight)
        zsoft = ptnf.softmax(-distances, dim=-1)
        zidx = distances.argmin(dim=1)
        return zsoft, zidx
    
    def select(self, zidx):
        return self.embedding(zidx)

# Minimal project module
class MinimalProject(nn.Module):
    def __init__(self, dim=4, proj_dim=2):
        super().__init__()
        self.linear = nn.Linear(dim, proj_dim)
        self.linear_inv = nn.Linear(proj_dim, dim)
    
    def forward(self, x, pinv=False):
        # x shape: (b, h, w, c) or (s, b, h, w, c)
        original_shape = x.shape
        if pinv:
            # Project down
            x_flat = x.reshape(-1, original_shape[-1])
            x_proj = self.linear(x_flat)
            return x_proj.reshape(*original_shape[:-1], -1)
        else:
            # Project up
            x_flat = x.reshape(-1, original_shape[-1])
            x_proj = self.linear_inv(x_flat)
            return x_proj.reshape(*original_shape[:-1], -1)

# Create multi-scale quantizer module list
encode = MinimalEncoder(in_channels=3, out_channels=4)
decode = MinimalDecoder(in_channels=4, out_channels=3)

# For multi-scale: we need 1 + num_scale quantizers
num_scale = 3
quant_list = nn.ModuleList([MinimalQuantizer(num_embeddings=8, embedding_dim=4) for _ in range(1 + num_scale)])

project = MinimalProject(dim=4, proj_dim=2)

ARGS = {
    'encode': encode,
    'decode': decode,
    'quant': quant_list,
    'project': project,
    'num_scale': num_scale,
    'alpha': 0.5,
    'retr': True,
    'eaq': False,
    'tau': 0.1,
}
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 VQVAEZMultiScale — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VQVAEZMultiScale 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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 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 2 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

Representing images or videos as object-level feature vectors, rather than pixellevel feature maps, facilitates advanced visual tasks. Object-Centric Learning (OCL) primarily achieves this by reconstructing the input under the guidance of Variational Autoencoder (VAE) intermediate representation to drive so-called slots to aggregate as much object information as possible. However, existing VAE guidance does not explicitly address that objects can vary in pixel sizes while models typically excel at specific pattern scales. We propose Multi-Scale Fusion (MSF) to enhance VAE guidance for OCL training. To ensure objects of all sizes fall within VAE's comfort zone, we adopt the image pyramid, which produces intermediate representations at multiple scales; To foster scale-invariance/variance in object super-pixels, we devise inter/intra-scale fusion, which augments lowquality object super-pixels of one scale with corresponding high-quality superpixels from another scale. On standard OCL benchmarks, our technique improves mainstream methods, including state-of-the-art diffusion-based ones. The source code is available on https://github.com/Genera1Z/MultiScaleFusion.

For agents

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

get_harvested_code_for_paper("2410.01539")
get_code_for_paper("2410.01539")
have("2410.01539")

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

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

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

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

Connect an agent — have() is free.