SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.13904 · 2022

Reducing Certified Regression to Certified Classification for General Poisoning Attacks

arXiv · PDF · Open in the Atlas

Code that ran

5 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 5 have no contract verdict; 0 failures of our instrument; 3 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.13904.json · badge: /api/ran/2208.13904.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
ZaydH/certified-regression canonical (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
calc Ran
ran on a synthesized input
ZaydH/certified-regression/src/bound/_greedy_bound.py
code served (permissive licence) · get_code("582a8f172dd52000")
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 GreedyBound. 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 collections
import dataclasses
from typing import Set

torch.manual_seed(0)

# Define a minimal model class that satisfies the interface used in calc()
class MinimalModel:
    def __init__(self, n_models: int, n_ds_parts: int):
        self.n_models = n_models
        self.n_ds_parts = n_ds_parts
        # Create a mapping from model_id to dataset parts
        self._model_ds_parts = {}
        for model_id in range(n_models):
            # Each model gets a subset of dataset parts
            self._model_ds_parts[model_id] = list(range(model_id % n_ds_parts, min(model_id % n_ds_parts + 3, n_ds_parts)))
    
    def get_submodel_ds_parts(self, model_id: int):
        """Return the dataset parts (blocks) for a given model"""
        return self._model_ds_parts.get(model_id, [])

# Create a minimal model with odd number of models
model = MinimalModel(n_models=5, n_ds_parts=8)

# Create models_list as a LongTensor containing model IDs
models_list = torch.LongTensor([0, 1, 2, 3, 4])

# Set perturb_dist to a value greater than 1
perturb_dist = 3

ARGS = {
    "model": model,
    "models_list": models_list,
    "perturb_dist": perturb_dist
}
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 GreedyBound — a GreedyBound output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GreedyBound output the recorded ndim 1 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
calc_hash_tensor Ran
ran on a synthesized input
ZaydH/certified-regression/src/bound/types.py
code served (permissive licence) · get_code("7263bde6869dc8fa")
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 int, 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 hashlib
import numpy as np
import torch
from torch import LongTensor, Tensor

torch.manual_seed(0)

# Create a small numpy array with shape (2, 4)
# The function iterates over the first dimension and hashes each row
np_arr = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

ARGS = {
    "np_arr": np_arr
}
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 Tensor, ndim 1, dtype family int, 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
get_group_mask Ran
ran on a synthesized input
ZaydH/certified-regression/src/bound/learner_ensemble.py
code served (permissive licence) · get_code("32d193223b6dbd5e")
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 (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 group_id tensor with some example group IDs
# Shape: (4,) - 4 examples with their group IDs
group_id = torch.tensor([0, 1, 2, 1], dtype=torch.long)

# Create a list of group IDs we want to filter by
group_lst = [0, 2]

ARGS = {
    "group_id": group_id,
    "group_lst": group_lst,
}
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 (4,) — shape (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
harmonic Ran
ran on a synthesized input
ZaydH/certified-regression/src/bound/utils.py
code served (permissive licence) · get_code("8f6cf22e3faef570")
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

torch.manual_seed(0)

ARGS = {
    "n": 10
}
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
in1d Ran
ran on a synthesized input
ZaydH/certified-regression/src/bound/learner_ensemble.py
code served (permissive licence) · get_code("4d00f84289106bb4")
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 (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 two small LongTensor arguments
# ar1 will contain some values, ar2 will contain a reference set
ar1 = torch.tensor([0, 2, 4, 1], dtype=torch.long)
ar2 = torch.tensor([1, 3, 5, 0], dtype=torch.long)

ARGS = {
    "ar1": ar1,
    "ar2": ar2,
}
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 (4,) — shape (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
construct_filename Not yet run
unverified (harvested, no recorded run)
ZaydH/certified-regression/src/bound/utils.py
code served (permissive licence) · get_code("5e06fdc43ab1f81c")
How it ran

no invocation recorded.

get_new_model Not yet run
unverified (harvested, no recorded run)
ZaydH/certified-regression/src/bound/utils.py
code served (permissive licence) · get_code("059244200ff283cb")
How it ran

no invocation recorded.

print_configuration Not yet run
unverified (harvested, no recorded run)
ZaydH/certified-regression/src/bound/_config.py
code served (permissive licence) · get_code("2975a2bfd3baa586")
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, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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
calc_hash_tensor 1 other paper
1 later
aaai_30106 (2024 (year only))
Provable Robustness against a Union of ℓ 0 Adversarial Attacks
in1d 1 other paper
1 later
aaai_30106 (2024 (year only))
Provable Robustness against a Union of ℓ 0 Adversarial Attacks

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

Adversarial training instances can severely distort a model's behavior. This work investigates certified regression defenses, which provide guaranteed limits on how much a regressor's prediction may change under a poisoning attack. Our key insight is that certified regression reduces to voting-based certified classification when using median as a model's primary decision function. Coupling our reduction with existing certified classifiers, we propose six new regressors provably-robust to poisoning attacks. To the extent of our knowledge, this is the first work that certifies the robustness of individual regression predictions without any assumptions about the data distribution and model architecture. We also show that the assumptions made by existing state-of-the-art certified classifiers are often overly pessimistic. We introduce a tighter analysis of model robustness, which in many cases results in significantly improved certified guarantees. Lastly, we empirically demonstrate our approaches' effectiveness on both regression and classification data, where the accuracy of up to 50% of test predictions can be guaranteed under 1% training set corruption and up to 30% of predictions under 4% corruption. Our source code is available at https://github.com/ZaydH/certified-regression.

For agents

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

get_harvested_code_for_paper("2208.13904")
get_code_for_paper("2208.13904")
have("2208.13904")

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

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

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

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

Connect an agent — have() is free.