SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.12746 · 2023

TabuLa: Harnessing Language Models for Tabular Data Synthesis

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2310.12746.json · badge: /api/ran/2310.12746.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
team-tud/ctab-gan canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
cond_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
team-tud/ctab-gan/model/synthesizer/ctabgan_synthesizer.py
code served (permissive licence) · get_code("4bbe2e79518752b3")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# The function processes data through output_info items
# For 'softmax' items, it computes cross_entropy between data and conditional vectors
# output_info contains tuples of (size, activation_type)
# We need:
# - data: tensor of shape (batch_size, total_feature_dim)
# - output_info: list of tuples with (feature_count, 'tanh' or 'softmax')
# - c: conditional vectors of shape (batch_size, total_conditional_dim)
# - m: mask matrix of shape matching tmp_loss after stacking

batch_size = 2
tanh_dim = 3
softmax_dim_1 = 4
softmax_dim_2 = 5

total_data_dim = tanh_dim + softmax_dim_1 + softmax_dim_2

# Create data tensor (synthesized by generator)
# Shape: (batch_size, total_data_dim)
data = torch.randn(batch_size, total_data_dim)

# Create output_info describing the structure
# First item: tanh activation with 3 features
# Second item: softmax with 4 classes
# Third item: softmax with 5 classes
output_info = [
    (tanh_dim, 'tanh'),
    (softmax_dim_1, 'softmax'),
    (softmax_dim_2, 'softmax')
]

# Create conditional vectors
# Shape: (batch_size, total_data_dim) to match the structure
c = torch.randn(batch_size, total_data_dim)
# Make sure softmax dimensions are valid probabilities
c[:, tanh_dim:tanh_dim+softmax_dim_1] = F.softmax(c[:, tanh_dim:tanh_dim+softmax_dim_1], dim=1)
c[:, tanh_dim+softmax_dim_1:] = F.softmax(c[:, tanh_dim+softmax_dim_1:], dim=1)

# Create mask matrix
# The tmp_loss will have shape (batch_size, 2) since there are 2 softmax items
# m should have the same shape to mask the losses
m = torch.ones(batch_size, 2)

ARGS = {
    'data': data,
    'output_info': output_info,
    'c': c,
    'm': m
}
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 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
get_st_ed Ran
ran, honoured the contract we drafted
team-tud/ctab-gan/model/synthesizer/ctabgan_synthesizer.py
code served (permissive licence) · get_code("fdf3594c00498f7f")
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 int; 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

torch.manual_seed(0)

# Analyzing the function:
# - target_col_index: an integer index
# - output_info: a list of tuples where each tuple contains:
#   * item[0]: a numeric value (dimension/size)
#   * item[1]: a string ('tanh' or 'softmax')
# The function iterates through output_info and accumulates st based on item[0]
# It uses c as a counter that increments when item[1] == 'softmax'
# It breaks when c == target_col_index
# Finally it accesses output_info[tc][0]

# Create a simple output_info structure
# Each item is (size, activation_type)
output_info = [
    (3, 'tanh'),      # column 0: tanh activation, size 3
    (2, 'softmax'),   # column 1: softmax activation, size 2
    (4, 'softmax'),   # column 2: softmax activation, size 4
    (5, 'tanh'),      # column 3: tanh activation, size 5
]

# target_col_index should be a valid column index
# Let's use 1 as the target column (second softmax column)
target_col_index = 1

ARGS = {
    'target_col_index': target_col_index,
    'output_info': output_info,
}
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 int — 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_utility_metrics Ran
ran, honoured the contract we drafted
team-tud/ctab-gan/model/eval/evaluation.py
code served (permissive licence) · get_code("af5fd55aef888255")
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 (2, 3) 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 temporary CSV files for testing
def create_temp_csv(data, filename):
    """Helper to create a temporary CSV file"""
    df = pd.DataFrame(data)
    path = os.path.join(tempfile.gettempdir(), filename)
    df.to_csv(path, index=False)
    return path

# Create a small real dataset (10 samples, 4 features, 1 binary target)
np.random.seed(42)
real_data = np.random.randn(10, 4)
real_target = np.random.randint(0, 2, 10)
real_dataset = np.column_stack([real_data, real_target])

# Create synthetic datasets (2 replicas)
fake_data_1 = np.random.randn(10, 4)
fake_target_1 = np.random.randint(0, 2, 10)
fake_dataset_1 = np.column_stack([fake_data_1, fake_target_1])

fake_data_2 = np.random.randn(10, 4)
fake_target_2 = np.random.randint(0, 2, 10)
fake_dataset_2 = np.column_stack([fake_data_2, fake_target_2])

# Write to temporary CSV files
real_path = create_temp_csv(real_dataset, 'real_data.csv')
fake_path_1 = create_temp_csv(fake_dataset_1, 'fake_data_1.csv')
fake_path_2 = create_temp_csv(fake_dataset_2, 'fake_data_2.csv')

ARGS = {
    'real_path': real_path,
    'fake_paths': [fake_path_1, fake_path_2],
    'scaler': 'MinMax',
    'classifiers': ['lr', 'dt'],
    'test_ratio': 0.2
}
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 ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
random_choice_prob_index_sampling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
team-tud/ctab-gan/model/synthesizer/ctabgan_synthesizer.py
code served (permissive licence) · get_code("9657c375134712d3")
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 int, 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 numpy as np

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

# Create sample data for the function
# probs: a list/array of probability distributions
# Each element is a probability distribution over categories
probs = [
    np.array([0.2, 0.3, 0.5]),      # 3 categories
    np.array([0.1, 0.4, 0.3, 0.2]), # 4 categories
    np.array([0.6, 0.4]),            # 2 categories
    np.array([0.25, 0.25, 0.25, 0.25]) # 4 categories
]

# col_idx: indices to select which probability distributions to sample from
col_idx = np.array([0, 1, 2, 3])

ARGS = {
    "probs": probs,
    "col_idx": col_idx
}
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 int, 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
supervised_model_training Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
team-tud/ctab-gan/model/eval/evaluation.py
code served (permissive licence) · get_code("bf1c81ec7e0e2bd8")
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, 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 numpy as np
from sklearn.neural_network import MLPClassifier

np.random.seed(0)

# Create small synthetic datasets for binary classification
n_train_samples = 10
n_test_samples = 5
n_features = 4

x_train = np.random.randn(n_train_samples, n_features).astype(np.float32)
y_train = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=int)

x_test = np.random.randn(n_test_samples, n_features).astype(np.float32)
y_test = np.array([0, 1, 0, 1, 0], dtype=int)

model_name = 'lr'

ARGS = {
    'x_train': x_train,
    'y_train': y_train,
    'x_test': x_test,
    'y_test': y_test,
    'model_name': model_name
}
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 list, ndim 1, dtype family float — a list 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

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, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 0 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
cond_loss 1 other paper
1 later
2606.16941 (2026-06)
A nonparametric two-sample test using a parametric integral probability metric
get_st_ed 1 other paper
1 later
2606.16941 (2026-06)
A nonparametric two-sample test using a parametric integral probability metric
get_utility_metrics 1 other paper
1 later
2606.16941 (2026-06)
A nonparametric two-sample test using a parametric integral probability metric
random_choice_prob_index_sampling 1 other paper
1 later
2606.16941 (2026-06)
A nonparametric two-sample test using a parametric integral probability metric
supervised_model_training 1 other paper
1 later
2606.16941 (2026-06)
A nonparametric two-sample test using a parametric integral probability metric

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

Tabular data synthesis is crucial for addressing privacy and security concerns in industries reliant on tabular data. While recent advancements adopt large language models (LLMs) for realistic tabular data generation, their long training times and limited reusability hinder practical applications. In this paper, we propose Tabula, a tabular data synthesizer that leverages the structure of LLM. Unlike state-of-the-art (SOTA) LLM-based tabular data synthesizers that rely on pre-trained LLMs, Tabula discards the pre-trained weights originally designed for natural language tasks, focusing instead on a tailored approach for tabular data. In addition, Tabula introduces a token sequence compression strategy that significantly reduces training time while maintaining data quality, alongside a novel token padding method that improves sequence alignment across training batches. Experiments on six datasets show that Tabula achieves superior synthetic data utility compared to current SOTA methods. Additionally, the results demonstrate that Tabula model trained on tabular datasets serves effectively as a foundational model for synthesizing new tabular datasets. Furthermore, the proposed padding method outperforms the conventional left and right padding strategies. Finally, the results highlight that Tabula averagely reduces training time per epoch by 46.2% compared to state-of-the-art LLM approaches while achieving higher data utility. Our code is available at https://github.com/zhao-zilong/Tabula

For agents

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

get_harvested_code_for_paper("2310.12746")
get_code_for_paper("2310.12746")
have("2310.12746")

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

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

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

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

Connect an agent — have() is free.