SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.13998 · 2021

Targeted Supervised Contrastive Learning for Long-Tailed Recognition

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 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 5 have no contract verdict; 5 failures of our instrument; 4 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/2111.13998.json · badge: /api/ran/2111.13998.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
lth14/targeted-supcon canonical (classifier label)
classifier basis not recorded on the link
10 ran · 4 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lth14/targeted-supcon/main_moco_supcon_imba.py
code served (permissive licence) · get_code("131a82fd65128218")
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 list, ndim 2, dtype family float; 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 torch

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
num_classes = 4

# output: logits/scores tensor of shape (batch_size, num_classes)
output = torch.randn(batch_size, num_classes)

# target: class indices tensor of shape (batch_size,)
target = torch.tensor([1, 3])

# topk: tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "topk": topk,
}
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 list, ndim 2, dtype family float — 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
adjust_learning_rate Ran
ran on a synthesized input
lth14/targeted-supcon/main_moco_supcon_imba.py
code served (permissive licence) · get_code("75b34b1b9cfea207")
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 float, 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 as nn
from torch.optim import SGD

torch.manual_seed(0)

# Create a minimal model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Create a minimal args object
class Args:
    def __init__(self):
        self.lr = 0.1
        self.cos = True
        self.schedule = [30, 60, 90]

args = Args()

# Define ARGS dict mapping all parameters
ARGS = {
    'optimizer': optimizer,
    'epoch': 15,
    'total_epochs': 100,
    'args': args
}
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 float, 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
alexnet Ran
ran; our contract draft was wrong, not the code
lth14/targeted-supcon/moco_models/alexnet.py
code served (permissive licence) · get_code("69e2ce68b6db2411")
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 AlexNet. 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
from typing import Any

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
    'progress': 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 AlexNet — a AlexNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AlexNet 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
densenet121 Ran
ran; our contract draft was wrong, not the code
lth14/targeted-supcon/moco_models/densenet.py
code served (permissive licence) · get_code("9eb4b3b03ed7a1c9")
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 DenseNet. 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)

def densenet121(
    pretrained: bool = False,
    progress: bool = True,
    memory_efficient: bool = False,
    num_classes: int = 1000
) -> nn.Module:
    r"""Densenet-121 model from
    `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf>`_
    
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
        progress (bool): If True, displays a progress bar of the download to stderr
        memory_efficient (bool): If True, uses checkpointing. Much more memory efficient
          but slower. Default: *False*
        num_classes (int): Number of classes
    """
    growth_rate = 32
    block_config = (6, 12, 24, 16)
    num_init_features = 64
    bn_size = 4
    drop_rate = 0.0
    
    # This is the function signature we need to match
    model = DenseNet(
        growth_rate=growth_rate,
        block_config=block_config,
        num_init_features=num_init_features,
        bn_size=bn_size,
        drop_rate=drop_rate,
        num_classes=num_classes,
        memory_efficient=memory_efficient
    )
    
    return model

ARGS = {
    'pretrained': False,
    'progress': True,
    'memory_efficient': False,
    'num_classes': 1000
}
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 DenseNet — a DenseNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DenseNet 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
densenet169 Ran
ran; our contract draft was wrong, not the code
lth14/targeted-supcon/moco_models/densenet.py
code served (permissive licence) · get_code("858b62a0718acf3c")
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 DenseNet. 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)

def densenet169(pretrained=False, progress=True, **kwargs):
    """Constructs a DenseNet-169 model.

    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
        progress (bool): If True, displays a progress bar while downloading the model

    """
    model = DenseNet(num_init_features=64, growth_rate=32, block_config=(6, 12, 32, 32), **kwargs)
    if pretrained:
        state_dict = torch.hub.load_state_dict_from_url(model_urls['densenet169'], progress=progress)
        model.load_state_dict(state_dict)
    return model

ARGS = {
    'pretrained': False,
    'progress': True,
    'num_classes': 1000,
    'memory_efficient': False
}
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 DenseNet — a DenseNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DenseNet 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
get_data_transform Ran
ran on a synthesized input
lth14/targeted-supcon/dataset/imagenet.py
code served (permissive licence) · get_code("a117231916d15cb9")
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 Compose. 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
from torchvision import transforms

torch.manual_seed(0)

ARGS = {
    'split': 'train',
    'rgb_mean': [0.485, 0.456, 0.406],
    'rbg_std': [0.229, 0.224, 0.225]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
googlenet Ran
ran; our contract draft was wrong, not the code
lth14/targeted-supcon/moco_models/googlenet.py
code served (permissive licence) · get_code("cc86d582f7c75a6d")
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 GoogLeNet. 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
from typing import List, Callable, Optional

torch.manual_seed(0)

class BasicConv2d(nn.Module):
    def __init__(self, in_channels: int, out_channels: int, **kwargs):
        super(BasicConv2d, self).__init__()
        self.conv = nn.Conv2d(in_channels, out_channels, bias=False, **kwargs)
        self.bn = nn.BatchNorm2d(out_channels, eps=0.001)
    
    def forward(self, x):
        x = self.conv(x)
        x = self.bn(x)
        return F.relu(x, inplace=True)

class Inception(nn.Module):
    def __init__(self, in_channels: int, out_1x1: int, red_3x3: int, out_3x3: int, 
                 red_5x5: int, out_5x5: int, out_pool: int):
        super(Inception, self).__init__()
        
        self.branch1 = BasicConv2d(in_channels, out_1x1, kernel_size=1)
        
        self.branch2 = nn.Sequential(
            BasicConv2d(in_channels, red_3x3, kernel_size=1),
            BasicConv2d(red_3x3, out_3x3, kernel_size=3, padding=1)
        )
        
        self.branch3 = nn.Sequential(
            BasicConv2d(in_channels, red_5x5, kernel_size=1),
            BasicConv2d(red_5x5, out_5x5, kernel_size=5, padding=2)
        )
        
        self.branch4 = nn.Sequential(
            nn.MaxPool2d(kernel_size=3, stride=1, padding=1),
            BasicConv2d(in_channels, out_pool, kernel_size=1)
        )
    
    def forward(self, x):
        branch1 = self.branch1(x)
        branch2 = self.branch2(x)
        branch3 = self.branch3(x)
        branch4 = self.branch4(x)
        return torch.cat([branch1, branch2, branch3, branch4], 1)

class InceptionAux(nn.Module):
    def __init__(self, in_channels: int, num_classes: int):
        super(InceptionAux, self).__init__()
        self.avgpool = nn.AdaptiveAvgPool2d((4, 4))
        self.conv = BasicConv2d(in_channels, 128, kernel_size=1)
        self.fc1 = nn.Linear(128 * 4 * 4, 1024)
        self.fc2 = nn.Linear(1024, num_classes)
    
    def forward(self, x):
        x = self.avgpool(x)
        x = self.conv(x)
        x = torch.flatten(x, 1)
        x = F.relu(self.fc1(x), inplace=True)
        x = F.dropout(x, p=0.7, training=self.training)
        x = self.fc2(x)
        return x

ARGS = {
    'num_classes': 10,
    'aux_logits': True,
    'transform_input': False,
    'init_weights': True,
    'blocks': [BasicConv2d, Inception, InceptionAux]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GoogLeNet — a GoogLeNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GoogLeNet 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
shot_acc Ran
ran on a synthesized input
lth14/targeted-supcon/imagenet_inat/utils.py
code served (permissive licence) · get_code("985b6559d5dbe2f7")
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, ndim 1, dtype family float; 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
import torch

torch.manual_seed(0)

# Create small numpy arrays for predictions and labels
# preds should be class indices matching labels shape
num_samples = 10
num_classes = 5

preds = np.array([0, 1, 2, 3, 4, 0, 1, 2, 3, 4])
labels = np.array([0, 1, 2, 3, 4, 0, 1, 2, 3, 4])

# Create training data - should be array-like with labels
# Need to have enough samples in each class to distribute across many/median/low shot
train_data = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                       1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
                       2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
                       3, 3, 3, 3, 3,
                       4])

ARGS = {
    'preds': preds,
    'labels': labels,
    'train_data': train_data,
    'many_shot_thr': 10,
    'low_shot_thr': 3,
    'acc_per_cls': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
source_import Ran
ran on a synthesized input
lth14/targeted-supcon/imagenet_inat/utils.py
code served (permissive licence) · get_code("07cca9631fe4f26a")
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 module. 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 importlib
import tempfile
import os

# Create a temporary Python module file to import
temp_dir = tempfile.mkdtemp()
module_file = os.path.join(temp_dir, "test_module.py")

with open(module_file, "w") as f:
    f.write("""
def hello_world():
    return "Hello from imported module"

class TestClass:
    def __init__(self):
        self.value = 42
""")

ARGS = {
    "file_path": module_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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
validate Ran
ran on a synthesized input
lth14/targeted-supcon/main_lincls_imba.py
code served (permissive licence) · get_code("a7758cbaed64d10d")
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. 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, 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 as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Build a minimal model
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 10)
    
    def forward(self, x):
        return self.linear(x)

# Build a minimal logger
class MinimalLogger:
    def log_value(self, name, value, epoch):
        pass

# Build minimal args
class Args:
    def __init__(self):
        self.print_freq = 1

# Create a minimal data loader (list of batches)
val_loader = [
    (torch.randn(2, 4), torch.randint(0, 10, (2,)), torch.zeros(2)),
    (torch.randn(2, 4), torch.randint(0, 10, (2,)), torch.zeros(2)),
]

# Instantiate components
model = MinimalModel()
criterion = nn.CrossEntropyLoss()
epoch = 0
args = Args()
logger = MinimalLogger()

ARGS = {
    'val_loader': val_loader,
    'model': model,
    'criterion': criterion,
    'epoch': epoch,
    'args': args,
    'logger': logger
}
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
densenet161 Not yet run
unverified (harvested, no recorded run)
lth14/targeted-supcon/moco_models/densenet.py
code served (permissive licence) · get_code("e945c7af558f65a9")
How it ran

no invocation recorded.

init_weights Not yet run
unverified (harvested, no recorded run)
lth14/targeted-supcon/imagenet_inat/utils.py
code served (permissive licence) · get_code("4826cd3596c12660")
How it ran

no invocation recorded.

load_data_imagenet Not yet run
unverified (harvested, no recorded run)
lth14/targeted-supcon/dataset/imagenet.py
code served (permissive licence) · get_code("457c95f8c16efe85")
How it ran

no invocation recorded.

parse_option_stage1 Not yet run
unverified (harvested, no recorded run)
lth14/targeted-supcon/cifar_dirty/main_supcon_imba.py
code served (permissive licence) · get_code("215b209f49176d4e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 8 later) and 6 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
accuracy 116 other papers
28 dated earlier, 2 the same month, 86 later · 8 only as an assembly brick
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1610.05820 (2016-10)
Membership Inference Attacks Against Machine Learning Models
1905.03696 (2019-05)
HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision
and 113 more not named here
densenet121 5 other papers
5 later
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2307.07873 (2023-07)
Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
densenet161 5 other papers
5 later
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2307.07873 (2023-07)
Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
densenet169 5 other papers
5 later
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2307.07873 (2023-07)
Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
init_weights 5 other papers
3 dated earlier, 2 later
2001.01385 (2020-01)
Identifying and Compensating for Feature Deviation in Imbalanced Deep Learning
2004.03706 (2020-04)
Long-Tailed Recognition Using Class-Balanced Experts
2007.11978 (2020-07)
The Devil is in Classification: A Simple Framework for Long-tail Object Detection and Instance Segmentation
and 2 more not named here
source_import 4 other papers
2 dated earlier, 2 later
2004.03706 (2020-04)
Long-Tailed Recognition Using Class-Balanced Experts
2007.11978 (2020-07)
The Devil is in Classification: A Simple Framework for Long-tail Object Detection and Instance Segmentation
2207.13378 (2022-07)
Identifying Hard Noise in Long-Tailed Sample Distribution
and 1 more not named here
alexnet 3 other papers
1 dated earlier, 2 later
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2306.13856 (2023-06)
Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification
2411.02853 (2024-11)
ADOPT: Modified Adam Can Converge with Any β 2 with the Optimal Rate
googlenet 1 other paper
1 later
2411.02853 (2024-11)
ADOPT: Modified Adam Can Converge with Any β 2 with the Optimal Rate

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

Real-world data often exhibits long tail distributions with heavy class imbalance, where the majority classes can dominate the training process and alter the decision boundaries of the minority classes. Recently, researchers have investigated the potential of supervised contrastive learning for long-tailed recognition, and demonstrated that it provides a strong performance gain. In this paper, we show that while supervised contrastive learning can help improve performance, past baselines suffer from poor uniformity brought in by imbalanced data distribution. This poor uniformity manifests in samples from the minority class having poor separability in the feature space. To address this problem, we propose targeted supervised contrastive learning (TSC), which improves the uniformity of the feature distribution on the hypersphere. TSC first generates a set of targets uniformly distributed on a hypersphere. It then makes the features of different classes converge to these distinct and uniformly distributed targets during training. This forces all classes, including minority classes, to maintain a uniform distribution in the feature space, improves class boundaries, and provides better generalization even in the presence of long-tail data. Experiments on multiple datasets show that TSC achieves state-of-the-art performance on long-tailed recognition tasks.

For agents

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

get_harvested_code_for_paper("2111.13998")
get_code_for_paper("2111.13998")
have("2111.13998")

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

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

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

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

Connect an agent — have() is free.