SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.16785 · 2024

CARTE: Pretraining and Transfer for Tabular Learning

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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, 1 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/2402.16785.json · badge: /api/ran/2402.16785.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
soda-inria/carte canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
carte_gridsearch Ran
ran; our contract draft was wrong, not the code
soda-inria/carte/carte_ai/src/carte_gridsearch.py
code served (permissive licence) · get_code("4b924c5969fa9958")
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 copy

class MockCARTEEstimator:
    """Mock CARTE estimator for testing."""
    def __init__(self, learning_rate=0.01, hidden_dim=16, num_model=2):
        self.learning_rate = learning_rate
        self.hidden_dim = hidden_dim
        self.num_model = num_model
        self.valid_loss_ = None
    
    def fit(self, X, y):
        """Mock fit method that simulates training."""
        # Simulate valid_loss_ for each model
        self.valid_loss_ = [np.random.rand() for _ in range(self.num_model)]
        return self
    
    def predict(self, X):
        """Mock predict method."""
        return np.zeros(len(X))


class MockGraphObject:
    """Mock graph object representing a transformed table."""
    def __init__(self, node_features=None, edges=None):
        self.node_features = node_features if node_features is not None else np.random.randn(5, 4)
        self.edges = edges if edges is not None else np.array([[0, 1], [1, 2]])


# Setup arguments for carte_gridsearch
estimator = MockCARTEEstimator(learning_rate=0.01, hidden_dim=16, num_model=2)

# Create mock graph objects for X_train (list of graph objects)
X_train = [MockGraphObject() for _ in range(3)]

# Create mock target variable
y_train = np.array([0.1, 0.5, 0.3])

# Define parameter distributions for grid search
param_distributions = {
    'learning_rate': [0.001, 0.01],
    'hidden_dim': [8, 16],
}

ARGS = {
    'estimator': estimator,
    'X_train': X_train,
    'y_train': y_train,
    'param_distributions': param_distributions,
    'refit': True,
    'n_jobs': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
joblib, numpy, pandas, sklearn — 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
generate_df_cdd Ran
ran; our contract draft was wrong, not the code
soda-inria/carte/carte_ai/src/visualization_utils.py
code served (permissive licence) · get_code("d5b96afdb72d8b1e")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a small normalized dataframe with the required columns
df_normalized = pd.DataFrame({
    'data_name': ['dataset_a', 'dataset_b', 'dataset_a', 'dataset_c'],
    'num_train': [100, 200, 100, 300],
    'random_state': [42, 123, 42, 456],
    'metric_col': [0.95, 0.87, 0.92, 0.88]
})

ARGS = {
    'df_normalized': df_normalized,
    'train_size': 'all'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
set_score_criterion Ran
ran; our contract draft was wrong, not the code
soda-inria/carte/carte_ai/src/evaluate_utils.py
code served (permissive licence) · get_code("b3d047e62b963310")
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 numpy as np

torch.manual_seed(0)

# The function set_score_criterion takes a single parameter: task
# It expects task to be a string that is either 'regression' or something else (classification)
# The function only uses string comparison, so we just need a valid string

ARGS = {
    'task': 'regression'
}
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 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
set_split Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
soda-inria/carte/carte_ai/src/evaluate_utils.py
code served (permissive licence) · get_code("eaa00d5714148e18")
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
from sklearn.model_selection import GroupShuffleSplit

# Create a small DataFrame with necessary columns
np.random.seed(0)
n_samples = 12
n_entities = 3

data = pd.DataFrame({
    'feature_1': np.random.randn(n_samples),
    'feature_2': np.random.randn(n_samples),
    'feature_3': np.random.randn(n_samples),
    'entity_id': np.repeat(np.arange(n_entities), n_samples // n_entities),
    'target': np.random.randn(n_samples)
})

data_config = {
    'target_name': 'target',
    'repeated': True,
    'entity_name': 'entity_id'
}

num_train = 2
random_state = 42

ARGS = {
    'data': data,
    'data_config': data_config,
    'num_train': num_train,
    'random_state': random_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — 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
sign_array Ran
ran, violated the contract we drafted
soda-inria/carte/carte_ai/src/visualization_utils.py
code served (permissive licence) · get_code("3eb9de7b9abcc25a")
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

# Construct a small p-values array for testing
# The function expects p_values to be convertible to np.ndarray
# It performs comparisons with alpha and sets values based on conditions
# It also uses np.fill_diagonal, which requires a 2D array

p_values_input = np.array([
    [0.5, 0.02, 0.08, 0.01],
    [0.03, 0.5, 0.10, 0.04],
    [0.06, 0.02, 0.5, 0.001],
    [0.02, 0.07, 0.03, 0.5]
])

alpha_value = 0.05

ARGS = {
    "p_values": p_values_input,
    "alpha": alpha_value
}
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 (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
extract_llm_features Not yet run
unverified (harvested, no recorded run)
soda-inria/carte/carte_ai/src/preprocess_utils.py
code served (permissive licence) · get_code("7e99a09bb11ae525")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 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.

FunctionAlso present inEarliest-datedOthers named
sign_array 1 other paper
1 later
2403.04551 (2024-03)
Dissecting Sample Hardness: A Fine-Grained Analysis of Hardness Characterization Methods for Data-Centric AI

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

Pretrained deep-learning models are the go-to solution for images or text. However, for tabular data the standard is still to train tree-based models. Indeed, transfer learning on tables hits the challenge of data integration: finding correspondences, correspondences in the entries (entity matching) where different words may denote the same entity, correspondences across columns (schema matching), which may come in different orders, names... We propose a neural architecture that does not need such correspondences. As a result, we can pretrain it on background data that has not been matched. The architecture -- CARTE for Context Aware Representation of Table Entries -- uses a graph representation of tabular (or relational) data to process tables with different columns, string embedding of entries and columns names to model an open vocabulary, and a graph-attentional network to contextualize entries with column names and neighboring entries. An extensive benchmark shows that CARTE facilitates learning, outperforming a solid set of baselines including the best tree-based models. CARTE also enables joint learning across tables with unmatched columns, enhancing a small table with bigger ones. CARTE opens the door to large pretrained models for tabular data.

For agents

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

get_harvested_code_for_paper("2402.16785")
get_code_for_paper("2402.16785")
have("2402.16785")

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

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

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

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

Connect an agent — have() is free.