SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.09865 · 2026

LLM-as-a-Discriminator: When Synthetic Tables Still Look Real

Manel Slokom, Malek Slokom, Thierno Kante

arXiv · PDF · Open in the Atlas

Code that ran

4 of 11 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; 3 failures of our instrument; 7 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/2606.09865.json · badge: /api/ran/2606.09865.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
SlokomManel/LLM-as-a-Discriminator community
Papers with Code archive
4 ran · 7 no recorded run
FunctionStatusWhere it lives
_is_quota_error Ran
ran, violated the contract we drafted
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("6d0a4f28c66011af")
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 bool, 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 numpy as np

# The function _is_quota_error takes an Exception and checks if its string
# representation contains certain quota/rate-limit related keywords.
# We need to construct various Exception objects to test this function.

# Test case 1: Exception with a 429 status code
exc_429 = Exception("HTTP 429: Too Many Requests")

# Test case 2: Exception with "quota" keyword
exc_quota = Exception("API quota exceeded")

# Test case 3: Exception with "rate limit" keyword
exc_rate_limit = Exception("Rate limit exceeded")

# Test case 4: Exception with "resource_exhausted" keyword
exc_resource = Exception("resource_exhausted: quota limit")

# Test case 5: Exception without any quota-related keywords
exc_normal = Exception("Connection timeout")

# Use the first exception as the main test case
ARGS = {
    "exc": exc_429
}
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 bool, 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
build_prompt_c1 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("add56714fd2d46c7")
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 pandas as pd
import numpy as np

# Create a small sample DataFrame
np.random.seed(42)
df = pd.DataFrame({
    'age': np.random.randint(18, 80, size=50),
    'income': np.random.randint(20000, 150000, size=50),
    'credit_score': np.random.randint(300, 850, size=50),
    'num_accounts': np.random.randint(1, 10, size=50),
    'is_customer': np.random.choice([0, 1], size=50)
})

ARGS = {
    'df': df,
    'n_rows_shown': 20
}
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, 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
extract_metadata Ran
ran; our contract draft was wrong, not the code
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("510a41a47044ed3e")
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 pandas as pd
import numpy as np
from scipy import stats

# Create a small sample dataframe with various column types
np.random.seed(42)
n_rows = 100

df = pd.DataFrame({
    'numeric_col1': np.random.randn(n_rows),
    'numeric_col2': np.random.randn(n_rows) * 2 + 5,
    'numeric_col3': np.random.exponential(2, n_rows),
    'categorical_col1': np.random.choice(['A', 'B', 'C', 'D'], n_rows),
    'categorical_col2': np.random.choice(['X', 'Y', 'Z'], n_rows),
    'bool_col': np.random.choice([True, False], n_rows),
})

# Add some missing values
df.loc[np.random.choice(df.index, 5), 'numeric_col1'] = np.nan
df.loc[np.random.choice(df.index, 3), 'categorical_col1'] = np.nan

ARGS = {
    'df': df,
    'label': 'test_dataset'
}
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 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
metadata_to_text Ran
ran; our contract draft was wrong, not the code
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("f6dc779efe98dad3")
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
import numpy as np
from typing import Dict, Any

ARGS = {
    "meta": {
        "shape": {
            "rows": 1000,
            "columns": 5
        },
        "missing": {
            "age": 2.5,
            "salary": 1.2,
            "department": 0.0
        },
        "columns": {
            "age": {
                "dtype": "int64",
                "n_unique": 45,
                "missing_pct": 2.5,
                "distribution": {
                    "mean": 38.2,
                    "std": 12.5,
                    "min": 18,
                    "p25": 28,
                    "median": 38,
                    "p75": 48,
                    "max": 65,
                    "skewness": 0.15,
                    "kurtosis": -0.42,
                    "shapiro_p": 0.08
                }
            },
            "salary": {
                "dtype": "float64",
                "n_unique": 987,
                "missing_pct": 1.2,
                "distribution": {
                    "mean": 65000.0,
                    "std": 22000.0,
                    "min": 25000.0,
                    "p25": 45000.0,
                    "median": 62000.0,
                    "p75": 80000.0,
                    "max": 150000.0,
                    "skewness": 0.82,
                    "kurtosis": 1.23
                }
            },
            "department": {
                "dtype": "object",
                "n_unique": 8,
                "missing_pct": 0.0,
                "top_values": {
                    "Engineering": 0.35,
                    "Sales": 0.25,
                    "HR": 0.18,
                    "Finance": 0.12,
                    "Operations": 0.10
                },
                "entropy": 2.15
            },
            "years_experience": {
                "dtype": "int64",
                "n_unique": 40,
                "missing_pct": 0.5,
                "distribution": {
                    "mean": 12.3,
                    "std": 9.8,
                    "min": 0,
                    "p25": 3,
                    "median": 10,
                    "p75": 20,
                    "max": 40,
                    "skewness": 0.45,
                    "kurtosis": -0.60,
                    "shapiro_p": 0.02
                }
            },
            "performance_score": {
                "dtype": "float64",
                "n_unique": 100,
                "missing_pct": 0.0,
                "distribution": {
                    "mean": 7.2,
                    "std": 1.5,
                    "min": 1.5,
                    "p25": 6.2,
                    "median": 7.5,
                    "p75": 8.3,
                    "max": 10.0,
                    "skewness": -0.25,
                    "kurtosis": 0.15
                }
            }
        },
        "correlations": {
            ("age", "salary"): 0.72,
            ("years_experience", "salary"): 0.68,
            ("age", "years_experience"): 0.85,
            ("performance_score", "salary"): 0.42,
            ("years_experience", "performance_score"): 0.35,
            ("age", "performance_score"): 0.18,
            ("salary", "department"): -0.12,
            ("age", "age"): 1.0
        }
    }
}
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 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
build_prompt_c2 Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("e194463efa1df311")
How it ran

no invocation recorded.

call_anthropic Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("1cbb0091511cf939")
How it ran

no invocation recorded.

call_github_models Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("b6f921f6a9949951")
How it ran

no invocation recorded.

call_google Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("538cb132e17633b4")
How it ran

no invocation recorded.

call_groq Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("9692ab58ac3057b5")
How it ran

no invocation recorded.

call_openai Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("25d0149b1ef798f7")
How it ran

no invocation recorded.

run_trial Not yet run
unverified (harvested, no recorded run)
SlokomManel/LLM-as-a-Discriminator/code/evaluate.py
code served (permissive licence) · get_code("62ec72f6139cbf5b")
How it ran

no invocation recorded.

Also present in other papers' code

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

Privacy and data sharing are often in tension. Many organizations use synthetic data to reduce privacy risk and still share useful data. For tabular data, auditing privacy remains hard. In many cases, even humans cannot easily tell if a table is real or synthetic. In this paper, we propose a method based on LLM discrimination. We ask an LLM to classify each table sample as REAL or SYNTHETIC. We test two settings: C1 with table only, and C2 with table plus distributional metadata. We use LLaMA as an open model and Gemini as a reference model. In our experiments, we run three synthesis models, CTGAN, TVAE, and Gaussian Copula, on two public datasets, UCI Adult and ACS Census. We collect 451 valid trials. Our results show clear differences between models. On Adult, LLaMA reaches DRS=0% in reported cells, while Gemini reaches DRS=100% for CTGAN and TVAE. On Census, LLaMA predicts SYNTHETIC for most samples, while Gemini stays high in C1 but drops for CTGAN and TVAE in C2. We also compare with a classifier two-sample test (C2ST) and record linkage as distributional baselines, and with a human pilot of 2 annotators and 240 trials. Our results show that LLM discrimination is a practical privacy audit signal when model choice, per provider reporting, and data encoding are handled with care. For reproducibility, code and experiment scripts are available at https://github.com/SlokomManel/LLM-as-a-Discriminator.

For agents

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

get_harvested_code_for_paper("2606.09865")
get_code_for_paper("2606.09865")
have("2606.09865")

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

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

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

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

Connect an agent — have() is free.