SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.07848 · 2026

Information-Theoretic Requirements for Gradient-Based Task Affinity Estimation in Multi-Task Learning

Bryan Cheng, Jasper Zhang

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 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, 1 violated it and 0 have no contract verdict; 7 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/2604.07848.json · badge: /api/ran/2604.07848.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
JasperZG/gradientmtl canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
bootstrap_confidence_interval Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
JasperZG/gradientmtl/analysis/statistical_tests.py
code served (permissive licence) · get_code("e3895c4f86c12476")
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 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 numpy as np
from scipy import stats

# Set random seed for reproducibility
np.random.seed(0)

# Create small but realistic gradient conflict matrix (K x K)
# This represents pairwise gradient conflicts between K=5 concepts
K = 5
G = np.random.rand(K, K)
G = (G + G.T) / 2  # Make symmetric

# Create small literature relationship matrix (K x K)
# This represents relationships between concepts based on literature
L = np.random.rand(K, K)
L = (L + L.T) / 2  # Make symmetric
# Add some non-zero entries to ensure sufficient pairs for bootstrap
L[L < 0.3] = 0  # Sparsify to have some structure

# Ensure we have enough non-zero pairs for bootstrap
# by making sure at least some off-diagonal elements are non-zero
L[0, 1] = 0.5
L[1, 0] = 0.5
L[1, 2] = 0.6
L[2, 1] = 0.6
L[2, 3] = 0.7
L[3, 2] = 0.7
L[3, 4] = 0.4
L[4, 3] = 0.4

# Parameters for the bootstrap function
n_bootstrap = 1000  # Smaller for quick execution
confidence = 0.95
statistic = 'pearson'

ARGS = {
    'G': G,
    'L': L,
    'n_bootstrap': n_bootstrap,
    'confidence': confidence,
    'statistic': statistic
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
compute_empirical_correlations Ran
ran, honoured the contract we drafted
JasperZG/gradientmtl/analysis/empirical_correlations.py
code served (permissive licence) · get_code("9268858c0d79576b")
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, ndim 3, 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file with sample endpoint data
temp_dir = tempfile.mkdtemp()
data_path = os.path.join(temp_dir, "test_data.csv")

# Create sample data with multiple endpoints
np.random.seed(42)
n_molecules = 100

data = {
    "molecule_id": range(n_molecules),
    "endpoint_A": np.random.randn(n_molecules),
    "endpoint_B": np.random.randn(n_molecules) + 0.5 * np.random.randn(n_molecules),
    "endpoint_C": np.random.randn(n_molecules),
    "endpoint_D": np.random.randn(n_molecules) + 0.3 * np.random.randn(n_molecules),
}

# Add some missing values
for key in ["endpoint_A", "endpoint_B", "endpoint_C", "endpoint_D"]:
    missing_indices = np.random.choice(n_molecules, size=5, replace=False)
    data[key] = data[key].astype(object)
    for idx in missing_indices:
        data[key][idx] = np.nan

df = pd.DataFrame(data)
df.to_csv(data_path, index=False)

ARGS = {
    "data_path": data_path,
    "endpoints": ["endpoint_A", "endpoint_B", "endpoint_C", "endpoint_D"],
    "min_samples": 50,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
compute_empirical_matrix_tox21 Ran
ran; our contract draft was wrong, not the code
JasperZG/gradientmtl/analysis/empirical_correlations.py
code served (permissive licence) · get_code("010a6e50dcfe05e8")
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 numpy as np
import pandas as pd
import tempfile
import os

# Create a temporary CSV file with Tox21-like endpoint data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, 'tox21.csv')

# Create sample data with the Tox21 endpoints
endpoints = ['NR-AR', 'NR-AR-LBD', 'NR-AhR', 'NR-Aromatase', 'NR-ER', 'NR-ER-LBD', 'NR-PPAR-gamma', 'SR-ARE', 'SR-ATAD5', 'SR-HSE', 'SR-MMP', 'SR-p53']

# Generate synthetic data with some correlations
np.random.seed(42)
n_molecules = 100
data = {}

# Create base random variables
base1 = np.random.randn(n_molecules)
base2 = np.random.randn(n_molecules)

for i, ep in enumerate(endpoints):
    if i < 3:
        # First group: correlated with base1
        data[ep] = base1 + np.random.randn(n_molecules) * 0.5
    elif i < 6:
        # Second group: correlated with base2
        data[ep] = base2 + np.random.randn(n_molecules) * 0.5
    else:
        # Third group: independent
        data[ep] = np.random.randn(n_molecules)
    
    # Add some missing values
    missing_indices = np.random.choice(n_molecules, size=5, replace=False)
    data[ep][missing_indices] = np.nan

df = pd.DataFrame(data)
df.to_csv(csv_path, index=False)

ARGS = {
    'data_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
compute_gradient_similarity_qm9 Ran
ran, honoured the contract we drafted
JasperZG/gradientmtl/experiments/cross_domain_validation.py
code served (permissive licence) · get_code("a5a27ba424bf8c95")
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 ndarray, ndim 2, dtype family float, shape (12, 12) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 as nn
import numpy as np
from scipy.stats import pearsonr

torch.manual_seed(0)
np.random.seed(0)

# Create a minimal QM9MultiTask instance
class QM9MultiTask:
    TARGETS = ['mu', 'alpha', 'homo', 'lumo', 'gap', 'r2', 'zpve', 'u0', 'u298', 'h298', 'g298', 'cv']
    
    def __init__(self, root: str='./data/qm9'):
        self.root = root
        self.data = None
    
    def load(self) -> bool:
        return False

qm9 = QM9MultiTask()

# Create minimal synthetic data
n_samples = 8
n_features = 4
n_tasks = len(QM9MultiTask.TARGETS)

qm9.data = {
    'features': np.random.randn(n_samples, n_features).astype(np.float32),
    'targets': {
        target: np.random.randn(n_samples).astype(np.float32)
        for target in QM9MultiTask.TARGETS
    }
}

# Create task_indices dict with overlapping molecule assignments
task_indices = {}
n_shared = 2
shared_idx = np.array([0, 1])
for i, target in enumerate(QM9MultiTask.TARGETS):
    disjoint_start = 2 + i
    disjoint_idx = np.array([disjoint_start % n_samples])
    task_indices[target] = np.concatenate([shared_idx, disjoint_idx])

ARGS = {
    'qm9': qm9,
    'task_indices': task_indices,
    'n_epochs': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (12, 12) — shape (12, 12) 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
compute_silhouette_score Ran
ran; our contract draft was wrong, not the code
JasperZG/gradientmtl/analysis/statistical_tests.py
code served (permissive licence) · get_code("2f789f5c396d6e36")
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 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 numpy as np

# Set random seeds for reproducibility
np.random.seed(0)

# Create a small gradient conflict matrix (K x K)
# This represents conflicts between 4 tasks
K = 4
G = np.array([
    [1.0, 0.3, 0.2, 0.1],
    [0.3, 1.0, 0.4, 0.25],
    [0.2, 0.4, 1.0, 0.35],
    [0.1, 0.25, 0.35, 1.0]
])

# Create task names
task_names = ["task_0", "task_1", "task_2", "task_3"]

ARGS = {
    "G": G,
    "task_names": task_names,
    "n_clusters": None,
    "method": "average"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — 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_gnn_encoder Ran
ran; our contract draft was wrong, not the code
JasperZG/gradientmtl/models/gnn_encoder.py
code served (permissive licence) · get_code("022c496e4b6c17ab")
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 GCNEncoder. 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 torch_geometric.data import Data, Batch

torch.manual_seed(0)

# Create small sample graphs for a batch
def create_sample_batch():
    # Graph 1: 3 nodes
    x1 = torch.randn(3, 4)  # 3 nodes, 4 features
    edge_index1 = torch.tensor([[0, 1, 1, 2], [1, 0, 2, 1]], dtype=torch.long)
    
    # Graph 2: 2 nodes
    x2 = torch.randn(2, 4)  # 2 nodes, 4 features
    edge_index2 = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)
    
    # Create Data objects
    data1 = Data(x=x1, edge_index=edge_index1)
    data2 = Data(x=x2, edge_index=edge_index2)
    
    # Create batch
    batch = Batch.from_data_list([data1, data2])
    return batch

sample_batch = create_sample_batch()

ARGS = {
    'encoder_type': 'gcn',
    'input_dim': 4,
    'hidden_dims': [8, 8, 8],
    'output_dim': 16,
    'dropout': 0.2,
    'heads': 4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GCNEncoder — a GCNEncoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GCNEncoder 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
fit_sigmoid Ran
ran; our contract draft was wrong, not the code
JasperZG/gradientmtl/experiments/cross_domain_validation.py
code served (permissive licence) · get_code("79e573f63c0088fe")
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 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 numpy as np

# Set seed for reproducibility
np.random.seed(42)

# Create synthetic overlap vs correlation data
# overlaps: x-axis values (typically ranging from 0 to 100)
# correlations: y-axis values (typically ranging from 0 to 1, following sigmoid pattern)
overlaps = np.linspace(0, 100, 50)
# Generate correlations following a sigmoid-like pattern with some noise
correlations = 0.8 / (1 + np.exp(-0.1 * (overlaps - 30))) + 0.1 + np.random.normal(0, 0.05, 50)
# Clip to valid range
correlations = np.clip(correlations, 0, 1)

ARGS = {
    'overlaps': overlaps,
    'correlations': correlations
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
get_empirical_matrix_for_tasks Ran
ran, honoured the contract we drafted
JasperZG/gradientmtl/analysis/empirical_correlations.py
code served (permissive licence) · get_code("6d0b32023d4337fb")
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 ndarray, ndim 2, dtype family float, shape (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 numpy as np
import pandas as pd
import tempfile
import os

# Create a minimal temporary CSV file with Tox21-like data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, 'tox21.csv')

# Create sample data with the Tox21 endpoints
endpoints_full = ['NR-AR', 'NR-AR-LBD', 'NR-AhR', 'NR-Aromatase', 'NR-ER', 'NR-ER-LBD', 'NR-PPAR-gamma', 'SR-ARE', 'SR-ATAD5', 'SR-HSE', 'SR-MMP', 'SR-p53']
n_samples = 100

# Generate synthetic data with some correlations
np.random.seed(42)
data_dict = {}
for ep in endpoints_full:
    data_dict[ep] = np.random.randn(n_samples) + np.random.randn()

df = pd.DataFrame(data_dict)
df.to_csv(csv_path, index=False)

# Define task names that will be passed to the function
task_names = ['Tox21_NR-AR', 'NR-AR-LBD', 'NR-AhR', 'SR-ARE']

ARGS = {
    'task_names': task_names,
    'data_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (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
get_literature_matrix Ran
ran, honoured the contract we drafted
JasperZG/gradientmtl/analysis/literature_matrix.py
code served (permissive licence) · get_code("984288421ae56814")
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 ndarray, ndim 2, dtype family float, shape (10, 10) 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 numpy as np
from typing import List

# The function requires a list of task names
# Let's create a simple list of task names from the LITERATURE_RELATIONSHIPS dict
task_names = [
    'ESOL',
    'Lipophilicity',
    'Solubility_AqSolDB',
    'Caco2_Wang',
    'BBB_Martins',
    'BBBP',
    'HIA_Hou',
    'Bioavailability_Ma',
    'Pgp_Broccatelli',
    'CYP2D6_Veith'
]

ARGS = {
    'task_names': task_names
}
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 ndarray, ndim 2, dtype family float, shape (10, 10) — shape (10, 10) 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
permutation_test Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
JasperZG/gradientmtl/analysis/statistical_tests.py
code served (permissive licence) · get_code("60210e7e92e2a3ea")
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 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 numpy as np
from scipy import stats

np.random.seed(42)

# Create small gradient conflict matrix (K×K)
# This represents conflicts between K different gradient directions
K = 5
G = np.random.rand(K, K)
G = (G + G.T) / 2  # Make symmetric

# Create literature relationship matrix (K×K)
# This represents documented relationships from literature
L = np.random.rand(K, K)
L = (L + L.T) / 2  # Make symmetric
# Add some zeros to simulate sparse documentation
L[L < 0.3] = 0

n_permutations = 100
statistic = 'pearson'

ARGS = {
    'G': G,
    'L': L,
    'n_permutations': n_permutations,
    'statistic': statistic,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
sigmoid Ran
ran, violated the contract we drafted
JasperZG/gradientmtl/experiments/cross_domain_validation.py
code served (permissive licence) · get_code("dd392bf580ac3e08")
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 ndarray, ndim 1, dtype family float, shape (100,) 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 numpy as np

# The sigmoid function takes 5 parameters: x, L, k, x0, b
# All are numeric values used in the sigmoid calculation
# x is the input variable, L is the curve's maximum, k controls steepness,
# x0 is the midpoint, and b is the vertical offset

x = np.linspace(0, 10, 100)  # Input array for the sigmoid function
L = 1.0  # Curve maximum (amplitude)
k = 1.5  # Steepness parameter
x0 = 5.0  # Midpoint of transition
b = 0.0  # Vertical offset

ARGS = {
    "x": x,
    "L": L,
    "k": k,
    "x0": x0,
    "b": b
}
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 ndarray, ndim 1, dtype family float, shape (100,) — shape (100,) 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
validate_gradient_matrix Ran
ran; our contract draft was wrong, not the code
JasperZG/gradientmtl/analysis/literature_matrix.py
code served (permissive licence) · get_code("7286042fe3310563")
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 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 numpy as np
from typing import Dict, List, Tuple, Optional

# Set random seed for reproducibility
np.random.seed(0)

# Create a small set of task names
task_names = ['ESOL', 'Lipophilicity', 'BBBP', 'Caco2_Wang']

# Create a gradient conflict matrix (K×K where K=4)
# This should be a symmetric matrix with values representing gradient conflicts
K = len(task_names)
G = np.array([
    [1.0, -0.75, -0.45, -0.35],
    [-0.75, 1.0, 0.55, 0.42],
    [-0.45, 0.55, 1.0, 0.58],
    [-0.35, 0.42, 0.58, 1.0]
])

# Ensure G is symmetric
G = (G + G.T) / 2

ARGS = {
    'G': G,
    'task_names': task_names,
    'verbose': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
train_epoch Not yet run
unverified (harvested, no recorded run)
JasperZG/gradientmtl/experiments/deep_analysis_1_gradient_dynamics.py
code served (permissive licence) · get_code("1f9e668a11cdd14b")
How it ran

no invocation recorded.

Also present in other papers' code

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

Multi-task learning shows strikingly inconsistent results-sometimes joint training helps substantially, sometimes it actively harms performance-yet the field lacks a principled framework for predicting these outcomes. We identify a fundamental but unstated assumption underlying gradient-based task analysis: tasks must share training instances for gradient conflicts to reveal genuine relationships. When tasks are measured on the same inputs, gradient alignment reflects shared mechanistic structure; when measured on disjoint inputs, any apparent signal conflates task relationships with distributional shift. We discover this sample overlap requirement exhibits a sharp phase transition: below 30% overlap, gradienttask correlations are statistically indistinguishable from noise; above 40%, they reliably recover known biological structure. Comprehensive validation across multiple datasets achieves strong correlations and recovers biological pathway organization. Standard benchmarks systematically violate this requirement-MoleculeNet operates at <5% overlap, TDC at 8-14%-far below the threshold where gradient analysis becomes meaningful. This provides the first principled explanation for seven years of inconsistent MTL results.

For agents

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

get_harvested_code_for_paper("2604.07848")
get_code_for_paper("2604.07848")
have("2604.07848")

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

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

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

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

Connect an agent — have() is free.