SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.14239 · NeurIPS · 2022

Decoupling Classifier for Boosting Few-shot Object Detection and Instance Segmentation

Jun Liu, Xi Wang, Chengjie Wang, Guannan Jiang, Bin-Bin Gao, Xiaochen Chen, Zhongyi Huang, Congchong Nie, Jinxiang Lai, B.-B Gao

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 1 has no contract verdict; 5 failures of our instrument; 1 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/2505.14239.json · badge: /api/ran/2505.14239.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
gaobb/DCFS community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
gaobb/DCFS/dcfs/evaluation/archs/resnet.py
code served (permissive licence) · get_code("d9def42110729a85")
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 Conv2d. 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
import torch.nn as nn

torch.manual_seed(0)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
gaobb/DCFS/dcfs/evaluation/archs/resnet.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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 Conv2d. 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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
filter_images_with_few_keypoints Ran
ran; our contract draft was wrong, not the code
gaobb/DCFS/dcfs/dataloader/build.py
pointer only (licence: MIT); the stored copy get_code serves, from jin-s13/UniFS, is pointer only (licence: NONE) · get_code("9517da58a95bac43")
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 jin-s13/UniFS, 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.

filter_images_with_only_crowd_annotations Ran
ran; our contract draft was wrong, not the code
gaobb/DCFS/dcfs/dataloader/build.py
pointer only (licence: MIT); the stored copy get_code serves, from jin-s13/UniFS, is pointer only (licence: NONE) · get_code("4c8a4908e88089ef")
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 jin-s13/UniFS, 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.

inference_on_dataset Ran
ran on a synthesized input
gaobb/DCFS/dcfs/evaluation/evaluator.py
code served (permissive licence) · get_code("236cab58a1cd1f88")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import logging

torch.manual_seed(0)

# Configure logging
logging.basicConfig(level=logging.INFO)

# Simple model that accepts inputs and returns outputs
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, inputs):
        # inputs is a list of tensors
        x = inputs[0]
        return self.linear(x)

# Simple evaluator that tracks inputs and outputs
class SimpleEvaluator:
    def __init__(self):
        self.results_data = []
    
    def reset(self):
        self.results_data = []
    
    def process(self, inputs, outputs):
        self.results_data.append((inputs, outputs))
    
    def evaluate(self):
        return {"accuracy": 0.95, "loss": 0.05}

# Config class with required attributes
class Config:
    def __init__(self):
        self.TEST = TestConfig()

class TestConfig:
    def __init__(self):
        self.PCB_ENABLE = False

# Placeholder for PrototypicalCalibrationBlock since it's not defined
class PrototypicalCalibrationBlock:
    def __init__(self, cfg):
        self.cfg = cfg
    
    def execute_calibration(self, inputs, outputs):
        return outputs

# Create model
model = SimpleModel()

# Create data loader - list of batches, each batch is a list of tensors
data_loader = [
    [torch.randn(2, 4)],
    [torch.randn(2, 4)],
    [torch.randn(2, 4)],
    [torch.randn(2, 4)],
    [torch.randn(2, 4)],
    [torch.randn(2, 4)],
]

# Create evaluator
evaluator = SimpleEvaluator()

# Create config
cfg = Config()

ARGS = {
    "model": model,
    "data_loader": data_loader,
    "evaluator": evaluator,
    "cfg": cfg,
}
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
resnet18 Ran
ran; our contract draft was wrong, not the code
gaobb/DCFS/dcfs/evaluation/archs/resnet.py
code served (permissive licence) · get_code("f6eff25d41b506dd")
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 ResNet. 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
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal ResNet18 model by understanding the function signature
# resnet18 function typically takes: pretrained, progress, **kwargs
# where kwargs can include num_classes, etc.

def resnet18(pretrained=False, progress=True, **kwargs):
    """
    Constructs a ResNet-18 architecture.
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
        progress (bool): If True, displays a progress bar for downloading the model
        **kwargs: Additional keyword arguments for ResNet initialization
    """
    # This is a minimal stub that shows what resnet18 signature looks like
    # In reality, it would construct and return a ResNet with BasicBlock, [2,2,2,2]
    pass

# Based on the code provided, we need to understand what resnet18() actually does.
# It likely calls ResNet(BasicBlock, [2, 2, 2, 2], **kwargs)

# The ARGS dict should contain all parameters that resnet18 accepts
ARGS = {
    'pretrained': False,
    'progress': True,
    'num_classes': 1000,
    'zero_init_residual': False,
    'groups': 1,
    'width_per_group': 64,
    'replace_stride_with_dilation': None,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
concat_all_gather Not yet run
unverified (harvested, no recorded run)
gaobb/DCFS/dcfs/evaluation/calibration_layer.py
code served (permissive licence) · get_code("73cecca9f3575f09")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 4 later) and 1 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
conv1x1 431 other papers
404 dated earlier, 2 the same month, 19 later, 5 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
292 dated earlier, 1 the same month, 14 later, 4 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
concat_all_gather 138 other papers
129 dated earlier, 6 later, 3 same year, order not determinable · 33 only as an assembly brick
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
1905.04899 (2019-05)
CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 135 more not named here
resnet18 95 other papers
86 dated earlier, 6 later, 2 same year, order not determinable, 1 undated
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
1902.08153 (2019-02)
Learned Step Size Quantization
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 92 more not named here
filter_images_with_few_keypoints 3 other papers
3 dated earlier
2207.11184 (2022-07)
Multi-Faceted Distillation of Base-Novel Commonality for Few-shot Object Detection
aaai_25216 (2023 (year only))
Disentangle and Remerge: Interventional Knowledge Distillation for Few-Shot Object Detection from a Conditional Causal Perspective
2404.19401 (2024-04)
UniFS: Universal Few-shot Instance Perception with Point Representations
filter_images_with_only_crowd_annotations 3 other papers
3 dated earlier
2207.11184 (2022-07)
Multi-Faceted Distillation of Base-Novel Commonality for Few-shot Object Detection
aaai_25216 (2023 (year only))
Disentangle and Remerge: Interventional Knowledge Distillation for Few-Shot Object Detection from a Conditional Causal Perspective
2404.19401 (2024-04)
UniFS: Universal Few-shot Instance Perception with Point Representations

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

This paper focus on few-shot object detection (FSOD) and instance segmentation (FSIS), which requires a model to quickly adapt to novel classes with a few labeled instances. The existing methods severely suffer from bias classification because of the missing label issue which naturally exists in an instance-level fewshot scenario and is first formally proposed by us. Our analysis suggests that the standard classification head of most FSOD or FSIS models needs to be decoupled to mitigate the bias classification. Therefore, we propose an embarrassingly simple but effective method that decouples the standard classifier into two heads. Then, these two individual heads are capable of independently addressing clear positive samples and noisy negative samples which are caused by the missing label. In this way, the model can effectively learn novel classes while mitigating the effects of noisy negative samples. Without bells and whistles, our model without any additional computation cost and parameters consistently outperforms its baseline and state-of-the-art by a large margin on PASCAL VOC and MS-COCO benchmarks for FSOD and FSIS tasks. 1

For agents

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

get_harvested_code_for_paper("2505.14239")
get_code_for_paper("2505.14239")
have("2505.14239")

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

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

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

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

Connect an agent — have() is free.