SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.18966 · 2026

Self-Improving Tabular Language Models via Iterative Reward-Guided Post-Training

Mario Fritz, Alexandra Brintrup, Tejumade Afonja, Yunbo Long, Guangya Hao

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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.18966.json · badge: /api/ran/2604.18966.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
Yunbo-max/Post-Training-Tabular-Language-Models canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
add_space_before_string Ran
ran; our contract draft was wrong, not the code
Yunbo-max/Post-Training-Tabular-Language-Models/baselines/great/post_process.py
code served (permissive licence) · get_code("1b5ebc195ff8697c")
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 str. 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

def add_space_before_string(s):
    for _ in range(len(s)):
        s = s.strip(' ')
    return ' ' + s

ARGS = {
    's': 'hello'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
dpo_loss Ran
ran, honoured the contract we drafted
Yunbo-max/Post-Training-Tabular-Language-Models/loss.py
code served (permissive licence) · get_code("5aa6cff234d655cd")
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 as nn

torch.manual_seed(0)

class SimpleLM(nn.Module):
    def __init__(self, vocab_size: int = 100, hidden_size: int = 16):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.linear = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, attention_mask=None):
        embeddings = self.embedding(input_ids)
        logits = self.linear(embeddings)
        
        class Output:
            pass
        
        output = Output()
        output.logits = logits
        return output

batch_size = 2
seq_length = 5
vocab_size = 100
hidden_size = 16

model = SimpleLM(vocab_size=vocab_size, hidden_size=hidden_size)
reference_model = SimpleLM(vocab_size=vocab_size, hidden_size=hidden_size)

chosen_ids = torch.randint(0, vocab_size, (batch_size, seq_length))
rejected_ids = torch.randint(0, vocab_size, (batch_size, seq_length))
chosen_mask = torch.ones((batch_size, seq_length), dtype=torch.long)
chosen_mask[0, 3:] = 0
rejected_mask = torch.ones((batch_size, seq_length), dtype=torch.long)
rejected_mask[1, 4:] = 0

inputs = {
    'chosen_ids': chosen_ids,
    'rejected_ids': rejected_ids,
    'chosen_mask': chosen_mask,
    'rejected_mask': rejected_mask,
}

beta = 0.5
device = torch.device('cpu')

ARGS = {
    'model': model,
    'reference_model': reference_model,
    'inputs': inputs,
    'beta': beta,
    'device': device,
}
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
load_data Ran
ran; our contract draft was wrong, not the code
Yunbo-max/Post-Training-Tabular-Language-Models/eval/mle/tabular_dataload.py
code served (permissive licence) · get_code("e0e546de505d2d71")
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 os
import json
import pandas as pd
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure with the required files
temp_dir = tempfile.mkdtemp()
data_dir = os.path.join(temp_dir, 'data', 'test_dataset')
os.makedirs(data_dir, exist_ok=True)

# Create sample train.csv
train_data = pd.DataFrame({
    'num_col_0': [1.0, 2.0, 3.0],
    'cat_col_0': ['a', 'b', 'c'],
    'target_col_0': [0, 1, 0]
})
train_data.to_csv(os.path.join(data_dir, 'train.csv'), index=False)

# Create sample test.csv
test_data = pd.DataFrame({
    'num_col_0': [4.0, 5.0],
    'cat_col_0': ['d', 'e'],
    'target_col_0': [1, 0]
})
test_data.to_csv(os.path.join(data_dir, 'test.csv'), index=False)

# Create info.json
info = {
    'task_type': 'regression',
    'num_col_idx': [0],
    'cat_col_idx': [1],
    'target_col_idx': [2]
}
with open(os.path.join(data_dir, 'info.json'), 'w') as f:
    json.dump(info, f)

# Change working directory to temp_dir so relative paths work
original_dir = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'name': 'test_dataset'
}
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 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
row_to_str Ran
ran; our contract draft was wrong, not the code
Yunbo-max/Post-Training-Tabular-Language-Models/generate_dpo_synthetic.py
code served (permissive licence) · get_code("3fe471fa481a99fb")
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 str. 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 sample pandas Series (row) with various data types
row = pd.Series({
    'name': 'Alice',
    'age': 30,
    'score': 95.5,
    'missing_value': np.nan,
    'infinity_value': np.inf,
    'category': 'A'
})

ARGS = {
    'row': row
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
score_classifier Ran
ran, honoured the contract we drafted
Yunbo-max/Post-Training-Tabular-Language-Models/reward_scorers.py
code served (permissive licence) · get_code("f533df6c960cab53")
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 (5,) 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

# Create small test dataframes with mixed types
np.random.seed(42)

# Real dataframe: 5 rows, 4 columns (mix of numeric and categorical)
real_df = pd.DataFrame({
    'col_numeric_1': np.random.randn(5),
    'col_numeric_2': np.random.randn(5) * 100,
    'col_categorical': ['A', 'B', 'A', 'C', 'B'],
    'col_low_cardinality': [1, 2, 1, 2, 1]
})

# Synthetic dataframe: same shape and types
syn_df = pd.DataFrame({
    'col_numeric_1': np.random.randn(5),
    'col_numeric_2': np.random.randn(5) * 100,
    'col_categorical': ['A', 'B', 'C', 'A', 'B'],
    'col_low_cardinality': [2, 1, 2, 1, 2]
})

ARGS = {
    'real_df': real_df,
    'syn_df': syn_df,
    'n_estimators': 100
}
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 1, dtype family float, shape (5,) — shape (5,) 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
score_dcr Ran
ran, honoured the contract we drafted
Yunbo-max/Post-Training-Tabular-Language-Models/reward_scorers.py
code served (permissive licence) · get_code("2c871f7a5561f413")
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 (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

# Create small sample DataFrames for testing
np.random.seed(0)

# Real dataframe: 5 rows, mix of numeric and categorical columns
real_df = pd.DataFrame({
    'col_numeric': [1.5, 2.3, 3.1, 4.2, 5.0],
    'col_categorical': ['A', 'B', 'A', 'C', 'B'],
    'col_low_cardinality': [1, 2, 1, 2, 1]
})

# Synthetic dataframe: 3 rows, same structure
syn_df = pd.DataFrame({
    'col_numeric': [1.8, 2.5, 4.1],
    'col_categorical': ['A', 'B', 'A'],
    'col_low_cardinality': [1, 1, 2]
})

ARGS = {
    'real_df': real_df,
    'syn_df': syn_df,
    'batch_size': 1000
}
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 1, dtype family float, shape (3,) — shape (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
score_density Not yet run
unverified (harvested, no recorded run)
Yunbo-max/Post-Training-Tabular-Language-Models/reward_scorers.py
code served (permissive licence) · get_code("8973105894e603d8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 6 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
load_data 1 other paper
1 later
2606.20878 (2026-06)
Understanding Latent Flow Models for Tabular Data Synthesis: Targets, Paths, and Sampling

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-24.

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 language models can generate synthetic tables by modeling rows as token sequences, but they are typically trained once with supervised fine-tuning and then used as static synthesizers. This is limiting because next-token likelihood does not directly optimize the distributional, utility, and indistinguishability properties used to evaluate synthetic data. We study iterative reward-guided post-training for tabular language models through a generate-score-align protocol, where a generator samples synthetic rows, a task-specified reward ranks them, and the model is updated relative to a fixed supervised reference. Within this protocol, we propose TabGRAA (Tabular Group-Relative Advantage Alignment), a grouprelative alignment method that compares high-and low-reward generated groups using group-averaged policy/reference log-ratios rather than one-to-one preference pairs. Across five mixed-type benchmarks, TabGRAA improves a GReaT backbone beyond additional supervised fine-tuning and achieves the strongest average tradeoff among adapted DPO, KTO, and NPO baselines on fidelity and downstream utility, while maintaining empirical privacy diagnostics near the supervised baseline. Ablations show that the gains depend on meaningful reward ranking and stable group-level updates rather than extra training alone. Reward-substitution and scorerseparation studies further show that the post-training loop can use both classifierbased and classifier-free rewards, and that proper scorer separation is important for preserving the fidelity-utility-privacy trade-off. These results position TabGRAA as a self-improving post-training method for tabular language-model generators, complementary to strong static tabular synthesizers. Our code is available at https://github.com/Yunbo-max/Post-Training-Tabular-Language-Models.

For agents

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

get_harvested_code_for_paper("2604.18966")
get_code_for_paper("2604.18966")
have("2604.18966")

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

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

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

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

Connect an agent — have() is free.