SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.07204 · NeurIPS · 2022

USB: A Unified Semi-supervised Learning Benchmark for Classification

Bernt Schiele, Jindong Wang, Hao Chen, Marios Savvides, Xing Xie, Yue Zhang, Bhiksha Raj, Yu-Feng Li, Yidong Wang, Wenxin Hou, Takahiro Shinozaki, Yue Fan, and 10 more

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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 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/2208.07204.json · badge: /api/ran/2208.07204.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
Westlake-AI/SemiReward extension (classifier label)
classifier basis: classifier_2025
7 ran · 0 no recorded run
beandkay/epass extension (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
add_gaussian_noise Ran
ran, honoured the contract we drafted
Westlake-AI/SemiReward/semilearn/algorithms/semireward/semireward.py
code served (permissive licence) · get_code("2ece83a7233a5806")
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 2, dtype family float, shape (2, 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

torch.manual_seed(0)

# Create a small tensor (batch_size=2, features=4)
tensor = torch.randn(2, 4)

# Define arguments for add_gaussian_noise
ARGS = {
    "tensor": tensor,
    "mean": 0,
    "std": 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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
comatch_contrastive_loss Ran
ran, honoured the contract we drafted
beandkay/epass/semilearn/algorithms/comatch/comatch.py
code served (permissive licence) · get_code("3346c66c873fff6a")
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)

# Analyze the function:
# - feats_x_ulb_s_0: tensor used in torch.mm(feats_x_ulb_s_0, feats_x_ulb_s_1.t())
#   Shape should be (batch_size, feature_dim)
# - feats_x_ulb_s_1: tensor used in torch.mm(..., feats_x_ulb_s_1.t())
#   Shape should be (batch_size, feature_dim)
# - Q: tensor used in element-wise multiplication with sim_probs
#   Shape should match sim_probs which is (batch_size, batch_size)
# - T: scalar temperature parameter (default 0.2)

batch_size = 2
feature_dim = 4

# Create feature tensors
feats_x_ulb_s_0 = torch.randn(batch_size, feature_dim)
feats_x_ulb_s_1 = torch.randn(batch_size, feature_dim)

# Create Q tensor - should be (batch_size, batch_size) for the multiplication
# Q represents pseudo-labels or target probabilities
Q = torch.randn(batch_size, batch_size)
Q = torch.softmax(Q, dim=1)  # Make it a valid probability distribution

T = 0.2

ARGS = {
    "feats_x_ulb_s_0": feats_x_ulb_s_0,
    "feats_x_ulb_s_1": feats_x_ulb_s_1,
    "Q": Q,
    "T": T,
}
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
cosine_similarity_n Ran
ran, honoured the contract we drafted
Westlake-AI/SemiReward/semilearn/algorithms/semireward/semireward.py
code served (permissive licence) · get_code("71e334da93aad8cd")
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 2, dtype family float, shape (2, 1) 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 two small tensors with batch size 2 and embedding dimension 4
x = torch.randn(2, 4)
y = torch.randn(2, 4)

ARGS = {
    "x": x,
    "y": y,
}
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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
create_usb_audio_config Ran
ran; our contract draft was wrong, not the code
beandkay/epass/scripts/config_generator_usb_audio.py
code served (permissive licence) · get_code("6fb7a7cca94b4e93")
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 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
import torch.nn as nn

torch.manual_seed(0)

class SimpleAudioNet(nn.Module):
    def __init__(self, num_classes):
        super().__init__()
        self.fc1 = nn.Linear(128, 64)
        self.fc2 = nn.Linear(64, num_classes)
    
    def forward(self, x):
        x = torch.relu(self.fc1(x))
        x = self.fc2(x)
        return x

ARGS = {
    'alg': 'fixmatch',
    'seed': 42,
    'dataset': 'usb_audio',
    'net': SimpleAudioNet(10),
    'num_classes': 10,
    'num_labels': 40,
    'port': 29500,
    'lr': 0.001,
    'weight_decay': 0.0005,
    'layer_decay': 1.0,
    'max_length_seconds': 4.0,
    'sample_rate': 16000,
}
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 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
create_usb_audio_config Ran
ran; our contract draft was wrong, not the code
Westlake-AI/SemiReward/scripts/config_generator_usb_audio.py
code served (permissive licence) · get_code("b805b717068a0596")
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 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
import torch.nn as nn

torch.manual_seed(0)

class SimpleAudioNet(nn.Module):
    def __init__(self, num_classes=10):
        super().__init__()
        self.conv1 = nn.Conv1d(1, 16, kernel_size=3, padding=1)
        self.fc = nn.Linear(16 * 100, num_classes)
    
    def forward(self, x):
        x = self.conv1(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

net = SimpleAudioNet(num_classes=10)

ARGS = {
    'alg': 'fixmatch',
    'seed': 42,
    'dataset': 'usb_audio',
    'net': net,
    'num_classes': 10,
    'num_labels': 40,
    'port': 29500,
    'lr': 0.001,
    'weight_decay': 0.0005,
    'layer_decay': 1.0,
    'max_length_seconds': 4.0,
    'sample_rate': 16000,
}
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 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
label_dim Ran
ran, honoured the contract we drafted
Westlake-AI/SemiReward/semilearn/algorithms/semireward/semireward.py
code served (permissive licence) · get_code("d7a641a66e8832f8")
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 int, ndim 0, dtype family int, 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 numpy as np

torch.manual_seed(0)

# The function label_dim takes parameter x and optional default_dim
# It returns the maximum of default_dim and x, converted to int
# x should be a numeric value that can be compared and converted to int

ARGS = {
    "x": 50,
    "default_dim": 100,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
read_TextClassificationDatasets Ran
ran; our contract draft was wrong, not the code
Westlake-AI/SemiReward/preprocess/preprocess_aclimdb.py
code served (permissive licence) · get_code("d954c448e1eee8c4")
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 tuple, 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 numpy as np
import os
import tempfile
import shutil

# Create a temporary directory structure with mock CSV files
temp_dir = tempfile.mkdtemp()
dataset_dir = os.path.join(temp_dir, 'TextClassificationDatasets', 'ag_news_csv')
os.makedirs(dataset_dir, exist_ok=True)

# Create a mock train.csv file for ag_news_csv format
# Format: "label","title","description"
train_csv_path = os.path.join(dataset_dir, 'train.csv')
with open(train_csv_path, 'w') as f:
    f.write('"1","World News","This is a world news article"\n')
    f.write('"2","Sports","This is a sports article"\n')
    f.write('"3","Business","This is a business article"\n')

ARGS = {
    'src_path': os.path.join(temp_dir, 'TextClassificationDatasets/'),
    'data_set': 'ag_news_csv',
    'data_type': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
read_aclImdb Ran
ran; our contract draft was wrong, not the code
Westlake-AI/SemiReward/preprocess/preprocess_aclimdb.py
code served (permissive licence) · get_code("eed03e5ff5639e09")
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 tuple, 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 numpy as np
import os
import random
import tempfile
import shutil

# Create a temporary directory structure that mimics aclImdb
temp_dir = tempfile.mkdtemp()
aclimdb_path = os.path.join(temp_dir, 'aclImdb')
os.makedirs(os.path.join(aclimdb_path, 'train', 'pos'), exist_ok=True)
os.makedirs(os.path.join(aclimdb_path, 'train', 'neg'), exist_ok=True)
os.makedirs(os.path.join(aclimdb_path, 'train', 'unsup'), exist_ok=True)
os.makedirs(os.path.join(aclimdb_path, 'test', 'pos'), exist_ok=True)
os.makedirs(os.path.join(aclimdb_path, 'test', 'neg'), exist_ok=True)

# Create sample files for train/pos
for i in range(2):
    with open(os.path.join(aclimdb_path, 'train', 'pos', f'file_{i}.txt'), 'w') as f:
        f.write(f'This is a positive review<br />\nwith some text {i}')

# Create sample files for train/neg
for i in range(2):
    with open(os.path.join(aclimdb_path, 'train', 'neg', f'file_{i}.txt'), 'w') as f:
        f.write(f'This is a negative review<br />\nwith some text {i}')

# Create sample files for train/unsup
for i in range(2):
    with open(os.path.join(aclimdb_path, 'train', 'unsup', f'file_{i}.txt'), 'w') as f:
        f.write(f'This is an unlabeled review<br />\nwith some text {i}')

# Create sample files for test/pos
for i in range(2):
    with open(os.path.join(aclimdb_path, 'test', 'pos', f'file_{i}.txt'), 'w') as f:
        f.write(f'This is a test positive review<br />\nwith some text {i}')

# Create sample files for test/neg
for i in range(2):
    with open(os.path.join(aclimdb_path, 'test', 'neg', f'file_{i}.txt'), 'w') as f:
        f.write(f'This is a test negative review<br />\nwith some text {i}')

ARGS = {
    'src_path': aclimdb_path + '/',
    'data_type': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
select_data Ran
ran; our contract draft was wrong, not the code
Westlake-AI/SemiReward/preprocess/preprocess_aclimdb.py
code served (permissive licence) · get_code("05dda2f18675eb59")
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 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
import numpy as np

torch.manual_seed(0)

# Construct arguments for select_data function
dataset = 'aclImdb'

# Create sample sentences (ori_sen)
ori_sen = [
    "This is a great movie!",
    "I really enjoyed this film.",
    "Terrible waste of time.",
    "Not worth watching.",
    "Amazing performance by the actors.",
    "Boring and predictable.",
    "One of the best films ever made.",
    "Absolutely horrible.",
    "Loved every minute of it.",
    "Could not finish watching it."
]

# Create sample labels - using 1-indexed labels to test the conversion logic
label = ['1', '1', '2', '2', '1', '2', '1', '2', '1', '2']

# data_type can be 'test', 'train', or 'dev'
data_type = 'train'

# Default train and dev numbers per class
train_num_per_class = 5000
dev_num_per_class = 2000

ARGS = {
    'dataset': dataset,
    'ori_sen': ori_sen,
    'label': label,
    'data_type': data_type,
    'train_num_per_class': train_num_per_class,
    'dev_num_per_class': dev_num_per_class
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 — 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

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, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 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.

FunctionAlso present inEarliest-datedOthers named
read_TextClassificationDatasets 5 other papers
5 later
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
2403.15567 (2024-03)
Do not trust what you trust: Miscalibration in Semi-supervised Learning
and 2 more not named here
read_aclImdb 5 other papers
5 later
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
2403.15567 (2024-03)
Do not trust what you trust: Miscalibration in Semi-supervised Learning
and 2 more not named here
select_data 5 other papers
5 later
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
2403.15567 (2024-03)
Do not trust what you trust: Miscalibration in Semi-supervised Learning
and 2 more not named here
comatch_contrastive_loss 3 other papers
3 later
2305.13002 (2023-05)
Rethinking Semi-supervised Learning with Language Models
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2403.15567 (2024-03)
Do not trust what you trust: Miscalibration in Semi-supervised Learning
add_gaussian_noise 1 other paper
1 later
2310.03013 (2023-10)
SemiReward: A General Reward Model for Semi-supervised Learning
cosine_similarity_n 1 other paper
1 later
2310.03013 (2023-10)
SemiReward: A General Reward Model for Semi-supervised Learning
label_dim 1 other paper
1 later
2310.03013 (2023-10)
SemiReward: A General Reward Model for Semi-supervised Learning

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

Semi-supervised learning (SSL) improves model generalization by leveraging massive unlabeled data to augment limited labeled samples. However, currently, popular SSL evaluation protocols are often constrained to computer vision (CV) tasks. In addition, previous work typically trains deep neural networks from scratch, which is time-consuming and environmentally unfriendly. To address the above issues, we construct a Unified SSL Benchmark (USB) for classification by selecting 15 diverse, challenging, and comprehensive tasks from CV, natural language processing (NLP), and audio processing (Audio), on which we systematically evaluate the dominant SSL methods, and also open-source a modular and extensible codebase for fair evaluation of these SSL methods. We further provide the pretrained versions of the state-of-the-art neural models for CV tasks to make the cost affordable for further tuning. USB enables the evaluation of a single SSL algorithm on more tasks from multiple domains but with less cost. Specifically, on a single NVIDIA V100, only 39 GPU days are required to evaluate FixMatch on 15 tasks in USB while 335 GPU days (279 GPU days on 4 CV datasets except for ImageNet) are needed on 5 CV tasks with TorchSSL.

For agents

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

get_harvested_code_for_paper("2208.07204")
get_code_for_paper("2208.07204")
have("2208.07204")

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

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

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

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

Connect an agent — have() is free.