SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.14442 · ICML · 2024

Improving Antibody Humanness Prediction using Patent Data

Tom Diethe, Talip Uc ¸ar, Aubin Ramon, Dino Oglic, Rebecca Croasdale-Wood, Pietro Sormanni

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 0 have no contract verdict; 4 failures of our instrument; 1 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/2401.14442.json · badge: /api/ran/2401.14442.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
AstraZeneca/SelfPAD canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
append_tensors_to_lists Ran
ran; our contract draft was wrong, not the code
AstraZeneca/SelfPAD/utils_common/eval_utils.py
code served (permissive licence) · get_code("242bd5342da699db")
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. 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)

# Create list_of_lists with 3 inner lists containing numpy arrays
list_of_lists = [
    [np.array([1.0, 2.0, 3.0, 4.0])],
    [np.array([5.0, 6.0, 7.0, 8.0])],
    [np.array([9.0, 10.0, 11.0, 12.0])]
]

# Create list_of_tensors with mixed types: torch.Tensor, tuple, list, numpy array
list_of_tensors = [
    torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
    (0.1, 0.2, 0.3, 0.4),
    [0.5, 0.6, 0.7, 0.8],
    np.array([0.9, 1.0, 1.1, 1.2])
]

# Adjust list_of_lists to have same length as list_of_tensors
list_of_lists = [
    [np.array([1.0, 2.0, 3.0, 4.0])],
    [np.array([5.0, 6.0, 7.0, 8.0])],
    [np.array([9.0, 10.0, 11.0, 12.0])],
    [np.array([13.0, 14.0, 15.0, 16.0])]
]

ARGS = {
    "list_of_lists": list_of_lists,
    "list_of_tensors": list_of_tensors
}
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 — a list 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
concatenate_lists Ran
ran; our contract draft was wrong, not the code
AstraZeneca/SelfPAD/utils_common/eval_utils.py
code served (permissive licence) · get_code("9956995de8597cf7")
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. 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
from typing import List

# Create sample numpy arrays with distinct sizes
arr1_1 = np.array([[1, 2, 3], [4, 5, 6]])  # shape (2, 3)
arr1_2 = np.array([[7, 8, 9]])  # shape (1, 3)

arr2_1 = np.array([[10, 11], [12, 13], [14, 15]])  # shape (3, 2)
arr2_2 = np.array([[16, 17]])  # shape (1, 2)

# Test case 1: List with a single inner list (should return single ndarray)
single_list = [[arr1_1, arr1_2]]

# Test case 2: List with multiple inner lists (should return list of ndarrays)
multiple_lists = [[arr1_1, arr1_2], [arr2_1, arr2_2]]

ARGS = {
    "list_of_lists": multiple_lists
}
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 list — a list 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
get_arguments Ran
ran; our contract draft was wrong, not the code
AstraZeneca/SelfPAD/utils_common/arguments.py
code served (permissive licence) · get_code("e35d7f4b2df4e9c5")
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 Namespace. 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 argparse import ArgumentParser

torch.manual_seed(0)

ARGS = {
    'humanness': 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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
register_dataset Ran
ran; our contract draft was wrong, not the code
AstraZeneca/SelfPAD/utils_finetune/load_data_humanness.py
code served (permissive licence) · get_code("b5e4ef25e7e4854d")
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 function. 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, Callable, Dict, List, Tuple, Union

# Initialize the registry that the decorator will use
DATASET_REGISTRY = {}

def register_dataset(dataset_name: str):
    """Decorator to register dataset loading functions."""

    def decorator(func: Callable):
        DATASET_REGISTRY[dataset_name.lower()] = func
        return func
    return decorator


# Create a sample dataset loading function to use as the decorator argument
def sample_dataset_loader():
    """A simple dataset loading function."""
    return [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(3)]


# Define ARGS with the parameter for register_dataset
ARGS = {
    "dataset_name": "my_test_dataset"
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_config Not yet run
unverified (harvested, no recorded run)
AstraZeneca/SelfPAD/utils_common/arguments.py
code served (permissive licence) · get_code("60a6a89da3d4bb51")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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

We investigate the potential of patent data for improving the antibody humanness prediction using a multi-stage, multi-loss training process. Humanness serves as a proxy for the immunogenic response to antibody therapeutics, one of the major causes of attrition in drug discovery and a challenging obstacle for their use in clinical settings. We pose the initial learning stage as a weaklysupervised contrastive-learning problem, where each antibody sequence is associated with possibly multiple identifiers of function and the objective is to learn an encoder that groups them according to their patented properties. We then freeze a part of the contrastive encoder and continue training it on the patent data using the crossentropy loss to predict the humanness score of a given antibody sequence. We illustrate the utility of the patent data and our approach by performing inference on three different immunogenicity datasets, unseen during training. Our empirical results demonstrate that the learned model consistently outperforms the alternative baselines and establishes new state-of-the-art on five out of six inference tasks, irrespective of the used metric.

For agents

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

get_harvested_code_for_paper("2401.14442")
get_code_for_paper("2401.14442")
have("2401.14442")

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

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

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

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

Connect an agent — have() is free.