SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.05635 · 2026

From Uniform to Learned Knots: A Study of Spline-Based Numerical Encodings for Tabular Deep Learning

Manish Kumar, Anton Thielmann, Benjamin Säfken, Christoph Weisser

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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2604.05635.json · badge: /api/ran/2604.05635.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
mkumar73/tdl-numerical-encodings canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
consolidate_results Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/run_simulated_resolution_sweep.py
code served (permissive licence) · get_code("80608bb92e582beb")
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 tempfile
import pandas as pd
from pathlib import Path

# Create temporary directories for the test
temp_result_dir = tempfile.mkdtemp()
temp_output_dir = tempfile.mkdtemp()

result_dir_path = Path(temp_result_dir)
output_dir_path = Path(temp_output_dir)

# Create sample result CSV files with the expected structure
# The function expects files named 'CONSOLIDATED_detailed_results_*.csv'
sample_data_1 = pd.DataFrame({
    'preprocessing': ['method_a', 'method_a', 'method_b', 'method_b'],
    'seed': [0, 0, 0, 0],
    'nrmse': [0.15, 0.16, 0.20, 0.19]
})

sample_data_2 = pd.DataFrame({
    'preprocessing': ['method_a', 'method_a', 'method_b', 'method_b'],
    'seed': [1, 1, 1, 1],
    'nrmse': [0.14, 0.17, 0.21, 0.18]
})

# Write the sample CSV files to the temp directory
sample_data_1.to_csv(result_dir_path / 'CONSOLIDATED_detailed_results_0.csv', index=False)
sample_data_2.to_csv(result_dir_path / 'CONSOLIDATED_detailed_results_1.csv', index=False)

ARGS = {
    'result_dir': temp_result_dir,
    'output_dir': temp_output_dir,
    'basis_values': [10, 20, 30],
    'n_seeds': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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
get_classification_datasets Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/config.py
code served (permissive licence) · get_code("5026148715c7e17b")
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 torch

# Set random seed for reproducibility
torch.manual_seed(0)

# The function get_classification_datasets takes one optional parameter: is_test
# It returns a list of dictionaries, each with 'name' and 'target_column' keys
# The function doesn't actually use the parameter value in computation,
# it just branches on it to return different lists

ARGS = {
    'is_test': False
}
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 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
get_regression_datasets Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/config.py
code served (permissive licence) · get_code("c89d42680cb09fad")
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 torch

torch.manual_seed(0)

ARGS = {
    'is_test': False
}
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 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
get_relative_path Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/logger.py
code served (permissive licence) · get_code("16a3f13287bc232e")
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.

from pathlib import Path
import tempfile
import os

# Create a temporary directory to act as a pseudo-project root
temp_dir = tempfile.mkdtemp()
PROJECT_ROOT = Path(temp_dir)

# Create a subdirectory structure
subdir = PROJECT_ROOT / "src" / "models"
subdir.mkdir(parents=True, exist_ok=True)

# Create test file paths
test_file_within = subdir / "model.py"
test_file_within.touch()

test_file_outside = Path(tempfile.gettempdir()) / "external_file.py"
test_file_outside.touch()

# Build ARGS dict with a path that is relative to PROJECT_ROOT
ARGS = {
    "path": test_file_within
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_standard_config Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/config.py
code served (permissive licence) · get_code("ff904316cd31061d")
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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'n_basis': 7,
    'adaptive': False,
    'n_epochs': 200,
}
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 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
load_yaml_config Ran
ran; our contract draft was wrong, not the code
mkumar73/tdl-numerical-encodings/src/config_loader.py
code served (permissive licence) · get_code("5aa67120fbea577e")
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 tempfile
from pathlib import Path
import yaml

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_path = Path(temp_dir) / "config.yaml"

config_content = {
    'task': 'regression',
    'datasets': {
        'base_path': '/data/datasets',
        'target_column': 'target',
        'items': ['dataset1', 'dataset2']
    },
    'models': ['linear_regression', 'neural_network'],
    'preprocessing_methods': ['standardization', 'normalization'],
    'input_scale_range': [0, 1],
    'n_seeds': 3,
    'random_state': 42,
    'knot_strategy': 'quantile',
    'n_basis_functions': 10,
    'bspline_degree': 3,
    'n_ple_bins': 5,
    'adaptive': False,
    'min_basis_functions': 3,
    'max_basis_functions': 100,
    'min_ple_bins': 3,
    'max_ple_bins': 50,
    'target_scaling_method': 'standard',
    'scale_target': True,
    'split_strategy': 'cv',
    'n_folds': 5,
    'test_size': 0.2,
    'val_size': 0.1,
    'cv_validation_split': 0.1,
    'optimizer': 'adamw',
    'learning_rate': 0.001,
    'weight_decay': 1e-4,
    'batch_size': 32,
    'n_epochs': 100,
    'early_stopping_patience': 10,
    'lr_scheduler': None,
    'dropout': 0.5,
    'activation': 'relu',
    'normalization': 'batchnorm',
    'n_resnet_blocks': 2,
    'log_level': 'DEBUG',
    'verbose': True,
    'learnable': {
        'spline_type': 'bspline',
        'lr_knots': 0.0001,
        'lam_spacing': 0.01,
        'spacing_power': 2.0,
        'freeze_knots_epochs': 20,
        'track_knots': True
    }
}

# Write the config to the temporary file
with open(config_path, 'w') as f:
    yaml.dump(config_content, f)

ARGS = {
    'config_path': config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
consolidate_results Not yet run
unverified (harvested, no recorded run)
mkumar73/tdl-numerical-encodings/src/run_simulated_baseline.py
code served (permissive licence) · get_code("f97d757528026f5a")
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, 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 7 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

Numerical preprocessing remains a critical component of tabular deep learning, as the representation of continuous features can strongly affect downstream performance. We systematically study spline-based numerical encodings, including B-splines, M-splines, and integrated splines (I-splines), under uniform, quantile-based, target-aware, and learnableknot placement. For the learnable variants, we adopt a differentiable knot parameterization that enables stable end-to-end optimization of knot locations jointly with the backbone. We evaluate these encodings on a diverse collection of public regression and classification datasets using MLP, ResNet, and FT-Transformer backbones, and compare them against common numerical preprocessing baselines. Our results show that the effectiveness of numerical encoding depends strongly on the task, encoding size, and backbone. For classification, piecewise-linear encoding (PLE) is the most robust choice overall, while spline-based encodings remain competitive. For regression, no single encoding dominates, with performance depending on the spline family and knot-placement strategy, and larger gains generally observed for MLP and ResNet than for FT-Transformer. Learnable-knot variants can be optimized stably but may substantially increase training cost. Overall, numerical encodings should therefore be assessed jointly in terms of predictive performance and computational overhead. The implementation is publicly available at https://github.com/mkumar73/tdl-numerical-encodings/.

For agents

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

get_harvested_code_for_paper("2604.05635")
get_code_for_paper("2604.05635")
have("2604.05635")

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

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

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

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

Connect an agent — have() is free.