SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.13168 · ICCV · 2023

IOMatch: Simplifying Open-Set Semi-Supervised Learning with Joint Inliers and Outliers Utilization

Yang Gao, Yinghuan Shi, Zekun Li, Lei Qi

arXiv · PDF · Open in the Atlas

Code that ran

12 of 12 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 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/2308.13168.json · badge: /api/ran/2308.13168.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
nukezil/IOMatch canonical (classifier label)
classifier basis: census
12 ran · 0 no recorded run
FunctionStatusWhere it lives
ce_loss Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/utils/loss.py
code served (permissive licence) · get_code("c2e202cd61888d8e")
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 1, dtype family float, shape (2,) 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)

# Case 1: logits and targets have the same shape (soft labels case)
logits_soft = torch.randn(2, 4)  # batch_size=2, num_classes=4
targets_soft = torch.softmax(torch.randn(2, 4), dim=-1)  # soft targets, shape [2, 4]

# Case 2: logits and targets have different shapes (hard labels case)
logits_hard = torch.randn(2, 4)  # batch_size=2, num_classes=4
targets_hard = torch.tensor([0, 2])  # hard targets, shape [2]

# We'll use the soft labels case for demonstration
ARGS = {
    'logits': logits_soft,
    'targets': targets_soft,
    'reduction': '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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
consistency_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nukezil/IOMatch/semilearn/algorithms/utils/loss.py
code served (permissive licence) · get_code("9db92459be6a39f2")
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. 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)

# Set up logits: shape [batch_size, num_classes]
batch_size = 2
num_classes = 4
logits = torch.randn(batch_size, num_classes)

# Set up targets as soft labels (same shape as logits for ce_loss to use softmax path)
targets = torch.rand(batch_size, num_classes)
targets = targets / targets.sum(dim=1, keepdim=True)  # normalize to sum to 1

# Set up mask: shape [batch_size] with binary values
mask = torch.tensor([1.0, 0.5])

ARGS = {
    'logits': logits,
    'targets': targets,
    'name': 'ce',
    'mask': mask
}
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
em_loss_func Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/openmatch/utils.py
code served (permissive licence) · get_code("c3efb74e3d8bf8f3")
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. 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)

# The function expects two logits tensors that will be:
# 1. Reshaped to (batch_size, 2, -1)
# 2. Softmax applied along dimension 1
# 3. Entropy computed
# So we need tensors that can be reshaped to (batch, 2, num_classes)
# With batch=2, we'll create tensors of shape (2, 2, 4) = (2, 8) flattened

batch_size = 2
num_logits = 8  # This will reshape to (2, 2, 4)

logits_open_u1 = torch.randn(batch_size, num_logits)
logits_open_u2 = torch.randn(batch_size, num_logits)

ARGS = {
    "logits_open_u1": logits_open_u1,
    "logits_open_u2": logits_open_u2,
}
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
group_parameters Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/nets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from yaxinhou/CPG, is pointer only (licence: NONE) · get_code("9f81b5759307e67f")
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 yaxinhou/CPG, 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.

load_checkpoint Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/nets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from yaxinhou/CPG, is pointer only (licence: NONE) · get_code("641c72db6fa25923")
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 yaxinhou/CPG, 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.

mb_sup_loss Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/iomatch/utils.py
code served (permissive licence) · get_code("7e70f65666cc9e56")
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. 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)

# Create logits_ova tensor
# The function expects shape (batch_size, 2, num_classes) after reshaping
# So we need to create a tensor that when reshaped to (batch_size, 2, -1) makes sense
# Let's use batch_size=2, and create a tensor of shape (2, 2*4) = (2, 8)
# which will reshape to (2, 2, 4) where num_classes=4
logits_ova = torch.randn(2, 8)

# Create label tensor
# label should have size (batch_size,) with values in range [0, num_classes)
# num_classes will be 4 after reshaping
label = torch.tensor([1, 2])

ARGS = {
    "logits_ova": logits_ova,
    "label": label
}
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
ova_loss_func Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/openmatch/utils.py
code served (permissive licence) · get_code("0bc828082031b11c")
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. 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:
# - logits_open: a tensor that gets reshaped to (batch_size, 2, num_classes)
#   So input should be (batch_size, 2 * num_classes)
# - label: a tensor of class indices, one per batch element
#   Should be shape (batch_size,) with values in range [0, num_classes)

batch_size = 2
num_classes = 4

# logits_open needs to be reshapeable to (batch_size, 2, num_classes)
# So it should have shape (batch_size, 2 * num_classes) = (2, 8)
logits_open = torch.randn(batch_size, 2 * num_classes)

# label should be shape (batch_size,) with values in [0, num_classes)
label = torch.tensor([1, 3], dtype=torch.long)

ARGS = {
    "logits_open": logits_open,
    "label": label,
}
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
param_groups_weight_decay Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/nets/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from yewen1486/emtal, is pointer only (licence: NONE) · get_code("88f4962784e09b88")
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 yewen1486/emtal, 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.

pil_loader Ran
ran, honoured the contract we drafted
nukezil/IOMatch/semilearn/algorithms/openmatch/openmatch.py
code served (permissive licence) · get_code("f321f54723433661")
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 Image. 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
from PIL import Image
import io
import os
import tempfile

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a simple RGB image and save it to a temporary file
img = Image.new('RGB', (10, 10), color=(73, 109, 137))
test_image_path = os.path.join(temp_dir, 'test_image.jpg')
img.save(test_image_path)

ARGS = {
    'path': test_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
smooth_targets Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/utils/loss.py
code served (permissive licence) · get_code("90f8ce204153de70")
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 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 small tensors for the function
batch_size = 2
num_classes = 4

# logits: tensor of shape (batch_size, num_classes) - raw model outputs
logits = torch.randn(batch_size, num_classes)

# targets: tensor of shape (batch_size,) - class indices
targets = torch.tensor([0, 2])

# smoothing: float parameter for label smoothing strength
smoothing = 0.1

ARGS = {
    "logits": logits,
    "targets": targets,
    "smoothing": smoothing,
}
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 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
socr_loss_func Ran
ran; our contract draft was wrong, not the code
nukezil/IOMatch/semilearn/algorithms/openmatch/utils.py
code served (permissive licence) · get_code("e03f22da7466f079")
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. 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)

# The function expects two logits tensors that will be:
# 1. Reshaped to (batch_size, 2, -1)
# 2. Softmax applied along dimension 1
# 3. Difference computed and squared
# 4. Mean computed

# Create two logits tensors
# Shape: (batch_size, feature_dim) where feature_dim is divisible by 2
# Let's use batch_size=2, and feature_dim=8 so after reshape it becomes (2, 2, 4)
batch_size = 2
feature_dim = 8

logits_open_u1 = torch.randn(batch_size, feature_dim)
logits_open_u2 = torch.randn(batch_size, feature_dim)

ARGS = {
    "logits_open_u1": logits_open_u1,
    "logits_open_u2": logits_open_u2,
}
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
str2bool Ran
ran, violated the contract we drafted
nukezil/IOMatch/semilearn/algorithms/utils/misc.py
pointer only (licence: MIT); the stored copy get_code serves, from yaxinhou/CPG, is pointer only (licence: NONE) · get_code("8d9acf594cf19c23")
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 yaxinhou/CPG, 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.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 8 later) and 4 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
str2bool 175 other papers
80 dated earlier, 4 the same month, 88 later, 3 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
pil_loader 66 other papers
31 dated earlier, 4 the same month, 28 later, 3 same year, order not determinable
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
and 63 more not named here
param_groups_weight_decay 15 other papers
4 dated earlier, 11 later
2210.08823 (2022-10)
Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning
2304.14065 (2023-04)
Lightweight, Pre-trained Transformers for Remote Sensing Timeseries
2305.13002 (2023-05)
Rethinking Semi-supervised Learning with Language Models
and 12 more not named here
group_parameters 6 other papers
2 dated earlier, 4 later
2210.08823 (2022-10)
Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning
2307.11342 (2023-07)
Tuning Pre-trained Model via Moment Probing
2312.10136 (2023-12)
Gradient-based Parameter Selection for Efficient Fine-Tuning
and 3 more not named here
ce_loss 2 other papers
2 later
2503.02231 (2025-03)
CGMatch: A Different Perspective of Semi-supervised Learning
2510.03993 (2025-10)
Keep It on a Leash: Controllable Pseudo-label Generation Towards Realistic Long-Tailed Semi-Supervised Learning
consistency_loss 1 other paper
1 later
2503.02231 (2025-03)
CGMatch: A Different Perspective of Semi-supervised Learning
load_checkpoint 1 other paper
1 later
2510.03993 (2025-10)
Keep It on a Leash: Controllable Pseudo-label Generation Towards Realistic Long-Tailed Semi-Supervised Learning
smooth_targets 1 other paper
1 later
2410.23227 (2024-10)
(FL) 2 : Overcoming Few Labels in Federated 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) aims to leverage massive unlabeled data when labels are expensive to obtain. Unfortunately, in many real-world applications, the collected unlabeled data will inevitably contain unseen-class outliers not belonging to any of the labeled classes. To deal with the challenging open-set SSL task, the mainstream methods tend to first detect outliers and then filter them out. However, we observe a surprising fact that such approach could result in more severe performance degradation when labels are extremely scarce, as the unreliable outlier detector may wrongly exclude a considerable portion of valuable inliers. To tackle with this issue, we introduce a novel open-set SSL framework, IOMatch, which can jointly utilize inliers and outliers, even when it is difficult to distinguish exactly between them. Specifically, we propose to employ a multi-binary classifier in combination with the standard closed-set classifier for producing unified open-set classification targets, which regard all outliers as a single new class. By adopting these targets as open-set pseudo-labels, we optimize an open-set classifier with all unlabeled samples including both inliers and outliers. Extensive experiments have shown that IOMatch significantly outperforms the baseline methods across different benchmark datasets and different settings despite its remarkable simplicity. Our code and models are available at https://github.com/nukezil/IOMatch.

For agents

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

get_harvested_code_for_paper("2308.13168")
get_code_for_paper("2308.13168")
have("2308.13168")

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

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

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

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

Connect an agent — have() is free.