SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.13109 · 2026

BoSS: A Best-of-Strategies Selector as an Oracle for Deep Active Learning

Marek Herde, Denis Huseljic, Paul Hahn, Christoph Sandrock

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2603.13109.json · badge: /api/ran/2603.13109.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
dhuseljic/dal-toolbox canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
first_order_update Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/models/laplace.py
code served (permissive licence) · get_code("353b9cd8fa98a04b")
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 (3, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Parameters for first_order_update function

# features: list of tensors, each representing a feature vector
# From the function, we see: F.linear(feature, mean) is called
# F.linear expects (input, weight) where input shape is (..., in_features)
# and weight shape is (out_features, in_features)
# So feature should be 1D or batched tensor
features = [
    torch.randn(4),  # shape (4,) - single feature vector
    torch.randn(4),  # shape (4,) - another feature vector
]

# targets_onehot: list of one-hot encoded tensors
# From the function: target_onehot - probas is computed
# probas comes from logits.softmax(-1), so targets_onehot should have same shape
# logits = F.linear(feature, mean) where feature is (4,) and mean is (num_classes, 4)
# So logits will be (num_classes,) and probas will be (num_classes,)
# targets_onehot should be (num_classes,) as well
num_classes = 3
targets_onehot = [
    torch.tensor([1.0, 0.0, 0.0]),  # one-hot for class 0
    torch.tensor([0.0, 1.0, 0.0]),  # one-hot for class 1
]

# mean: weight matrix for linear layer
# From F.linear(feature, mean), mean should have shape (out_features, in_features)
# where in_features matches feature dimension (4) and out_features is num_classes (3)
mean = torch.randn(num_classes, 4)

# gamma: scalar parameter (default 1)
gamma = 1

# lmb: number of iterations (default 1)
lmb = 1

ARGS = {
    "features": features,
    "targets_onehot": targets_onehot,
    "mean": mean,
    "gamma": gamma,
    "lmb": lmb,
}
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 (3, 4) — shape (3, 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
list_diff Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/active_learning/data.py
code served (permissive licence) · get_code("9cfc7b9b3cafe7b9")
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 list, ndim 1, dtype family int; 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - list_diff takes two parameters: a and b, both are lists
# - It converts them to sets and returns the difference as a list
# - No special methods or attributes are called on the lists beyond set() conversion

# Create two lists with some overlapping and distinct elements
a = [1, 2, 3, 4, 5]
b = [3, 4, 6, 7]

ARGS = {
    "a": a,
    "b": b
}
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 list, ndim 1, dtype family int — 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
list_union Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/active_learning/data.py
code served (permissive licence) · get_code("e0cfb0149d7ca788")
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 list, ndim 1, dtype family int; 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)

# list_union takes two lists and returns their union
# The function converts each list to a set, unions them, and converts back to list
# So we need two simple lists with some overlapping and distinct elements

a = [1, 2, 3, 4, 5]
b = [4, 5, 6, 7, 8]

ARGS = {
    "a": a,
    "b": b,
}
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 list, ndim 1, dtype family int — 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
plot_grids Ran
ran on a synthesized input
dhuseljic/dal-toolbox/dal_toolbox/utils.py
code served (permissive licence) · get_code("d5986b80c712704e")
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 Figure. 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 torch.utils.data import Dataset

torch.manual_seed(0)

class DummyDataset(Dataset):
    def __init__(self, num_samples=4, img_channels=3, img_size=8):
        self.num_samples = num_samples
        self.img_channels = img_channels
        self.img_size = img_size
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        img = torch.randn(self.img_channels, self.img_size, self.img_size)
        label = torch.tensor(idx % 2)
        return img, label

train_ds = DummyDataset(num_samples=4, img_channels=3, img_size=8)
test_ds_id = DummyDataset(num_samples=4, img_channels=3, img_size=8)
test_ds_ood = DummyDataset(num_samples=4, img_channels=3, img_size=8)

ARGS = {
    'train_ds': train_ds,
    'test_ds_id': test_ds_id,
    'test_ds_ood': test_ds_ood,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pylab, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
second_order_update Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/models/laplace.py
code served (permissive licence) · get_code("f0a30d632ccbe1b4")
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. 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)

# Analyze function usage:
# - features: iterated over, each element used with torch.matmul(cov, feature) and F.linear(feature, mean)
#   suggests feature is 1D tensor
# - targets_onehot: iterated over, each element used with torch.outer and subtracted from probas
#   suggests target_onehot is 1D tensor matching number of classes
# - mean: used with F.linear(feature, mean), cloned, modified with torch.outer
#   suggests mean is 2D tensor (num_classes, feature_dim)
# - cov: used with torch.matmul(cov, feature), cloned, modified
#   suggests cov is 2D tensor (feature_dim, feature_dim)
# - cov_likelihood: string parameter, 'gaussian' or 'categorical'
# - gamma: scalar multiplier
# - lmb: number of iterations

# Create small tensors with distinct dimensions
feature_dim = 4
num_classes = 3
batch_size = 2

# features: list of 1D tensors, each of shape (feature_dim,)
features = [
    torch.randn(feature_dim),
    torch.randn(feature_dim)
]

# targets_onehot: list of 1D one-hot tensors, each of shape (num_classes,)
targets_onehot = [
    torch.tensor([1.0, 0.0, 0.0]),
    torch.tensor([0.0, 1.0, 0.0])
]

# mean: shape (num_classes, feature_dim)
mean = torch.randn(num_classes, feature_dim)

# cov: shape (feature_dim, feature_dim)
cov = torch.randn(feature_dim, feature_dim)

# cov_likelihood: string parameter
cov_likelihood = 'gaussian'

# gamma: scalar
gamma = 1.0

# lmb: number of iterations
lmb = 1

ARGS = {
    'features': features,
    'targets_onehot': targets_onehot,
    'mean': mean,
    'cov': cov,
    'cov_likelihood': cov_likelihood,
    'gamma': gamma,
    'lmb': lmb
}
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 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
setup_rng Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/utils.py
code served (permissive licence) · get_code("19fea5af109d9bbd")
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 RandomState. 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 numpy as np

def setup_rng(seed=None):
    """Returns a numpy random number generator. """
    if seed is None:
        rng = np.random.mtrand._rand
    else:
        rng = np.random.RandomState(seed)
    return rng

# Test with seed=None (uses default global RNG)
ARGS = {
    "seed": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RandomState — a RandomState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RandomState 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
unnormalize Ran
ran; our contract draft was wrong, not the code
dhuseljic/dal-toolbox/dal_toolbox/utils.py
code served (permissive licence) · get_code("32740d526d3118a3")
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 4, dtype family float, shape (2, 3, 4, 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 normalized image tensor
# Shape: (batch=2, channels=3, height=4, width=4)
img_normalized = torch.randn(2, 3, 4, 4)

# Define the mean and std tuples (default values from function signature)
mean = (0.5, 0.5, 0.5)
std = (0.2, 0.2, 0.2)

ARGS = {
    "img_normalized": img_normalized,
    "mean": mean,
    "std": std,
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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
kfac_update Not yet run
unverified (harvested, no recorded run)
dhuseljic/dal-toolbox/dal_toolbox/models/laplace.py
code served (permissive licence) · get_code("e090a7f151829158")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Active learning (AL) aims to reduce annotation costs while maximizing model performance by iteratively selecting valuable instances. While foundation models have made it easier to identify these instances, existing selection strategies still lack robustness across different models, annotation budgets, and datasets. To highlight the potential weaknesses of existing AL strategies and provide a reference point for research, we explore oracle strategies, i.e., strategies that approximate the optimal selection by accessing ground-truth information unavailable in practical AL scenarios. Current oracle strategies, however, fail to scale effectively to large datasets and complex deep neural networks. To tackle these limitations, we introduce the Best-of-Strategy Selector (BoSS), a scalable oracle strategy designed for large-scale AL scenarios. BoSS constructs a set of candidate batches through an ensemble of selection strategies and then selects the batch yielding the highest performance gain. As an ensemble of selection strategies, BoSS can be easily extended with new state-of-the-art strategies as they emerge, ensuring it remains a reliable oracle strategy in the future. Our evaluation demonstrates that i) BoSS outperforms existing oracle strategies, ii) state-of-the-art AL strategies still fall noticeably short of oracle performance, especially in large-scale datasets with many classes, and iii) one possible solution to counteract the inconsistent performance of AL strategies might be to employ an ensemble-based approach for the selection.

For agents

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

get_harvested_code_for_paper("2603.13109")
get_code_for_paper("2603.13109")
have("2603.13109")

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

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

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

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

Connect an agent — have() is free.