SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.03208 · 2022

Revisiting Pretraining Objectives for Tabular Deep Learning

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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 4 have no contract verdict; 4 failures of our instrument; 4 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/2207.03208.json · badge: /api/ran/2207.03208.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
puhsu/tabular-dl-pretrain-objectives canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
kalelpark/DeepLearning-for-Tabular-Data community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
FunctionStatusWhere it lives
geglu Ran
ran; our contract draft was wrong, not the code
kalelpark/DeepLearning-for-Tabular-Data/model/fttransformer.py
code served (permissive licence) · get_code("d7bace13fb369137")
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 (2, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# The geglu function takes a single parameter x which is a Tensor
# It chunks x along the last dimension into 2 equal parts
# So x needs to have an even size in the last dimension
# Let's create a small tensor with batch size 2 and last dimension 4 (even)

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 (2, 2) — shape (2, 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
geglu Ran
ran; our contract draft was wrong, not the code
kalelpark/DeepLearning-for-Tabular-Data/model/common.py
code served (permissive licence) · get_code("267506bc9a077f62")
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 3, dtype family float, shape (2, 3, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# The geglu function takes a Tensor x and:
# 1. Asserts that the last dimension is even
# 2. Chunks it into two equal parts along the last dimension
# 3. Returns a * F.gelu(b)

# So we need a tensor with an even last dimension
# Using batch=2, and last_dim=4 (even), with some intermediate dimensions for variety
x = torch.randn(2, 3, 4)

ARGS = {
    "x": x
}
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 3, dtype family float, shape (2, 3, 2) — shape (2, 3, 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_DataLoader Ran
ran on a synthesized input
kalelpark/DeepLearning-for-Tabular-Data/dataset.py
code served (permissive licence) · get_code("3516d62bde618799")
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 1, 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 torch
import numpy as np
from torch.utils.data import Dataset, DataLoader

torch.manual_seed(0)

# Create small sample data
# Using distinct dimensions: 2 samples, 4 features for data; 2 samples, 3 classes for labels
train_data_array = np.random.randn(2, 4).astype(np.float32)
train_label_array = np.random.randint(0, 3, size=(2,)).astype(np.int64)

valid_data_array = np.random.randn(2, 4).astype(np.float32)
valid_label_array = np.random.randint(0, 3, size=(2,)).astype(np.int64)

test_data_array = np.random.randn(2, 4).astype(np.float32)
test_label_array = np.random.randint(0, 3, size=(2,)).astype(np.int64)

# Create dictionaries with required keys
train_data = {
    'N_train': train_data_array,
    'y_train': train_label_array
}

valid_data = {
    'N_val': valid_data_array,
    'y_val': valid_label_array
}

test_data = {
    'N_test': test_data_array,
    'y_test': test_label_array
}

# Create config dict with batchsize
config = {
    'batchsize': 2
}

ARGS = {
    'train_data': train_data,
    'valid_data': valid_data,
    'test_data': test_data,
    'config': config
}
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, ndim 1, 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
get_loss Ran
ran on a synthesized input
kalelpark/DeepLearning-for-Tabular-Data/utils.py
code served (permissive licence) · get_code("95e5ab23ac9b1697")
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.functional as F
import typing as ty

torch.manual_seed(0)

# The function takes info_dict as its only parameter
# info_dict is a dict with string keys and string values
# The function checks info_dict['task_type'] to determine which loss function to return

ARGS = {
    'info_dict': {
        'task_type': 'binclass'
    }
}
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_optimizer Ran
ran on a synthesized input
kalelpark/DeepLearning-for-Tabular-Data/utils.py
code served (permissive licence) · get_code("38f46a7da72f1a57")
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 Adam. 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
import torch.optim as optim

torch.manual_seed(0)

# Build a minimal model with parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = TinyModel()

# Build config dict with required keys
config = {
    'optim': 'AdamW',
    'lr': '0.001',
    'weight_decay': '0.0001'
}

ARGS = {
    'model': model,
    'config': config
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
load_dataset Ran
ran on a synthesized input
kalelpark/DeepLearning-for-Tabular-Data/dataset.py
code served (permissive licence) · get_code("003cd9aa1bf19f07")
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 1, 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 os
import json
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure for the dataset
temp_dir = tempfile.mkdtemp()

# Create sample data files
np.random.seed(0)

# Training data
N_train_data = np.random.randn(10, 5).astype(np.float32)
y_train_data = np.array(['cat', 'dog', 'cat', 'dog', 'cat', 'dog', 'cat', 'dog', 'cat', 'dog'])
np.save(os.path.join(temp_dir, 'N_train.npy'), N_train_data)
np.save(os.path.join(temp_dir, 'y_train.npy'), y_train_data)

# Validation data
N_val_data = np.random.randn(4, 5).astype(np.float32)
y_val_data = np.array(['cat', 'dog', 'cat', 'dog'])
np.save(os.path.join(temp_dir, 'N_val.npy'), N_val_data)
np.save(os.path.join(temp_dir, 'y_val.npy'), y_val_data)

# Test data
N_test_data = np.random.randn(3, 5).astype(np.float32)
y_test_data = np.array(['cat', 'dog', 'cat'])
np.save(os.path.join(temp_dir, 'N_test.npy'), N_test_data)
np.save(os.path.join(temp_dir, 'y_test.npy'), y_test_data)

# Create info.json
info_dict = {
    'task_type': 'multiclass',
    'n_features': 5,
    'n_classes': 2
}
with open(os.path.join(temp_dir, 'info.json'), 'w') as f:
    json.dump(info_dict, f)

ARGS = {
    'data_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
reglu Ran
ran; our contract draft was wrong, not the code
kalelpark/DeepLearning-for-Tabular-Data/model/fttransformer.py
code served (permissive licence) · get_code("2fb665ac3ecd7c20")
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 (2, 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)

# The function reglu takes a Tensor x, chunks it in half along the last dimension,
# and returns a * relu(b). So we need a tensor with an even last dimension.
x = torch.randn(2, 8)  # batch size 2, last dim 8 (will be chunked into two size-4 tensors)

ARGS = {
    "x": x
}
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 (2, 4) — shape (2, 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
reglu Ran
ran; our contract draft was wrong, not the code
kalelpark/DeepLearning-for-Tabular-Data/model/common.py
code served (permissive licence) · get_code("618ead3731b2c637")
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 (2, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small tensor with even last dimension
# Shape: (batch=2, features=4) where 4 is even for chunking
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 (2, 2) — shape (2, 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
gen_masks Not yet run
unverified (harvested, no recorded run)
puhsu/tabular-dl-pretrain-objectives/bin/contrastive.py
pointer only (licence: NONE) · get_code("654f1fcd1eb02728")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, puhsu/tabular-dl-pretrain-objectives when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_accuracy_score Not yet run
unverified (harvested, no recorded run)
kalelpark/DeepLearning-for-Tabular-Data/metrics.py
code served (permissive licence) · get_code("755cfe893c1d9d02")
How it ran

no invocation recorded.

get_rmse_score Not yet run
unverified (harvested, no recorded run)
kalelpark/DeepLearning-for-Tabular-Data/metrics.py
code served (permissive licence) · get_code("8b0c1b12fef2c111")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
kalelpark/DeepLearning-for-Tabular-Data/model/common.py
code served (permissive licence) · get_code("d13ea26797a378f5")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
geglu 8 other papers
1 dated earlier, 7 later
2102.08921 (2021-02)
How Faithful is your Synthetic Data? Sample-level Metrics for Evaluating and Auditing Generative Models
2209.15421 (2022-09)
TabDDPM: Modelling Tabular Data with Diffusion Models
2309.16220 (2023-09)
Unmasking the Chameleons: A Benchmark for Out-of-Distribution Detection in Medical Tabular Data
and 5 more not named here
reglu 8 other papers
1 dated earlier, 7 later
2102.08921 (2021-02)
How Faithful is your Synthetic Data? Sample-level Metrics for Evaluating and Auditing Generative Models
2209.15421 (2022-09)
TabDDPM: Modelling Tabular Data with Diffusion Models
2309.16220 (2023-09)
Unmasking the Chameleons: A Benchmark for Out-of-Distribution Detection in Medical Tabular Data
and 5 more not named here
geglu 3 other papers
1 dated earlier, 2 later
2106.11959 (2021-06)
Revisiting Deep Learning Models for Tabular Data
2211.16887 (2022-11)
T2G-Former: Organizing Tabular Features into Relation Graphs Promotes Heterogeneous Feature Interaction
2403.01570 (2024-03)
Small Models are LLM Knowledge Triggers for Medical Tabular Prediction
reglu 3 other papers
1 dated earlier, 2 later
2106.11959 (2021-06)
Revisiting Deep Learning Models for Tabular Data
2211.16887 (2022-11)
T2G-Former: Organizing Tabular Features into Relation Graphs Promotes Heterogeneous Feature Interaction
2403.01570 (2024-03)
Small Models are LLM Knowledge Triggers for Medical Tabular Prediction

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

Recent deep learning models for tabular data currently compete with the traditional ML models based on decision trees (GBDT). Unlike GBDT, deep models can additionally benefit from pretraining, which is a workhorse of DL for vision and NLP. For tabular problems, several pretraining methods were proposed, but it is not entirely clear if pretraining provides consistent noticeable improvements and what method should be used, since the methods are often not compared to each other or comparison is limited to the simplest MLP architectures. In this work, we aim to identify the best practices to pretrain tabular DL models that can be universally applied to different datasets and architectures. Among our findings, we show that using the object target labels during the pretraining stage is beneficial for the downstream performance and advocate several target-aware pretraining objectives. Overall, our experiments demonstrate that properly performed pretraining significantly increases the performance of tabular DL models, which often leads to their superiority over GBDTs.

For agents

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

get_harvested_code_for_paper("2207.03208")
get_code_for_paper("2207.03208")
have("2207.03208")

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

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

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

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

Connect an agent — have() is free.