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 learnable-knot 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/.
Figures & tables
Figure 1: The figure illustrates how a single numerical value xi,j , shown by the red dashed line, is represented by different schemes. Std and MinMax keep one scalar value per feature, whereas PLE and B-/M-/I-splines expand the value into coordinates (e1,…,emj) by evaluating bin ramps or basis functions. The markers show the evaluated values and the bars show the resulting encoded coordinates. B-splines provide smooth local bases, M-splines nonnegative local bases, and I-splines cumulative monotone bases. For the PLE and spline panels, we set the output size to mj=6 for illustration. Details of the construction are provided in Appendix E .
Figure 2: Regression critical difference diagrams. CD diagrams aggregated over all backbones for output sizes m∈{7,15,30} . Lower average rank indicates better overall performance. Methods connected by a horizontal bar are not significantly different under the Nemenyi test. Preprocessing abbreviations are given in Table 3 , and detailed regression results for the corresponding output sizes are provided in Tables 11 , 12 , and 13 .
Figure 3: Critical difference diagrams for classification. The diagrams are aggregated over all backbones for output sizes m∈{7,15,30} . Lower average rank indicates better overall performance. Methods connected by a horizontal bar are not significantly different under the Nemenyi test. Preprocessing abbreviations are given in Table 3 , and detailed classification results for the corresponding output sizes are reported in Tables 14 , 15 , and 16 .
Figure 4: Average regression performance across backbones and output sizes. Each heatmap cell shows the mean test NRMSE ( ↓ ) across all regression datasets for a given backbone, preprocessing method, and output size m∈{7,15,30} . Preprocessing abbreviations are given in Table 3 , and detailed results are provided in Tables 11 , 12 , and 13 .
Figure 5: Average classification performance across backbones and output sizes. Each heatmap cell shows the mean test AUC ( ↑ ) across all classification datasets for a given backbone, preprocessing method, and output size m∈{7,15,30} . For multiclass datasets, AUC is computed as weighted one-vs-rest ROC-AUC. Higher values indicate better performance. Preprocessing abbreviations are given in Table 3 , and detailed results are provided in Tables 14 , 15 , and 16 .
Figure 6: PLE and cubic B-spline fits on simple synthetic examples with the same basis budget ( m=10 ). (a) Regression example with a smooth nonlinear target, fitted using Ridge regression. The B-spline fit is smoother and tracks the target more closely, whereas the PLE fit shows piecewise-linear changes at the bin boundaries. (b) Classification example with a piecewise-constant class-probability function, fitted using logistic regression. The PLE fit better captures the sharp transitions and flat regions, whereas the B-spline fit changes more smoothly across the boundaries. This figure is intended as an illustration of the different behaviors of the two encodings rather than as a benchmark result.
Preprocessing variant
Transformation cost
Forward
Backward
Std
O(dB)
–
–
MinMax
O(dB)
–
–
PLE
O(dBm)
–
–
Fixed knots
O(dBmp)
–
–
Learnable knots
–
O(dBmp)+O(dnint)
O(dBmp)+O(dBnint)
Table 1: Asymptotic time complexity per batch. Here, d denotes the number of numerical features, B the batch size, m the per-feature output size, p the spline degree, and nint the number of learnable internal knot parameters. Fixed knots refer to the B-, M-, and I-spline variants with uniform, quantile, and target-aware knot placement, while learnable knots refer to the gradient-based variants. Fixed preprocessing methods incur only transformation cost, whereas learnable-knot variants add forward and backward overhead during joint training with the backbone. Preprocessing abbreviations are given in Table 3 .
Figure 7: SGEMM efficiency case study: total GPU wall-clock time over 5-fold cross-validation. Comparison of Std, MinMax, PLE, fixed-knot spline variants (BS-U and IS-U), and learnable-knot spline variants (BS-Grad-U, MS-Grad-U, and IS-Grad-U) across basis budgets m∈{7,15,30} for MLP, ResNet, and FT-Transformer. Values denote total end-to-end training time across all five folds. For learnable-knot variants, timings include the initial warm-up phase followed by joint optimization of knot parameters and backbone weights.
Factor
Setting
Start with
Guideline
Backbone
MLP or ResNet-style models
Explicit encodings
These models benefit most from numerical encodings because their input representation is relatively simple. Use PLE for classification and B-splines for regression, starting with small output sizes such as m≈7 – 10 .
Backbone
Feature-tokenizing or high-capacity models
Std or MinMax
For models such as FT-Transformer, TabM, TabTransformer, or SAINT, simple preprocessing is a strong first choice. Add PLE or fixed-knot splines only if the simple baseline is insufficient.
Task
Classification
PLE
PLE is the strongest default for classification, with robust rankings across output sizes and backbones. It should usually be tried before more expensive spline variants.
Task
Regression
B-splines
Start with B-splines using uniform or quantile knot placement. With larger budgets, include target-aware knots and I-splines in the sweep.
Budget
Learnable-knot variants
BS-Grad-U
Among learnable-knot variants, BS-Grad-U provides the most favorable tradeoff between efficiency and performance. MS-Grad-U and IS-Grad-U should be treated as high-cost options.
Caution
M-splines
Not first choice
M-splines are not recommended as the default. In our experiments, both fixed and learnable M-spline variants were less attractive due to stability and efficiency concerns.
Table 2: Practical recommendations for selecting numerical preprocessing methods based on task, backbone, and computational budget.
Figure 8: Sensitivity to basis resolution on a synthetic regression task. Test NRMSE (mean ± std over 5 seeds) for PLE and spline-based encodings as the number of bins or basis functions varies over {5,10,15,20,25,30,35,40,45,50} . Results are grouped by knot-selection strategy. Dotted horizontal lines show the Std, MinMax, and PLEadp50 baselines. Preprocessing abbreviations are given in Table 3 . All results use an MLP backbone.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Category
Method
Description
Target-aware
Learnable-knot
Baseline
Std
Standardization (z-score)
–
–
MinMax
min-max scaling to [0,1]
–
–
PLE
Piecewise Linear Encoding
✓
–
PLEadp50
Adaptive PLE with nbins∈[5,50] selected by tree splits (Table 8 )
✓
–
B-Spline
BS-U
Uniform knot placement
–
–
BS-Q
Quantile-based knot placement
–
–
Appendix
Table 3: Preprocessing abbreviations used throughout the paper. The table summarizes the naming convention for baseline, spline-based, target-aware, and learnable-knot variants.
Dataset
Abbr.
#cat
#num
Train
Val
Test
Ratio
Reference / OpenML ID
Regression
Abalone
AB
1
7
3008
334
835
–
Nash et al. (1994)
California Housing
CA
1
8
14861
1651
4128
–
OpenML: 45028
CPU Small
CPU
0
12
5899
655
1638
–
OpenML: –
Diamonds
DI
3
6
38837
4315
10788
–
OpenML: 44979
House Sales
HS
0
18
15562
1729
4322
–
OpenML: 42092
Appendix
Table 4: Benchmark datasets used in the experiments. For each dataset, we report the abbreviation, the numbers of categorical ( #cat ) and numerical ( #num ) features, and the average train, validation, and test split sizes over 5-fold cross-validation. Ratio denotes the dominant-class percentage for classification and multiclass datasets. The last column gives the OpenML dataset ID or the corresponding UCI citation.
Metric
Regression
Classification
Total
Number of datasets
13
12
25
Total samples
255,489
255,928
511,417
Avg. samples per dataset
19,653
21,327
20,456
Avg. features per dataset
10.5
13.0
11.7
Min. features
5
6
5
Max. features
19
23
23
Appendix
Table 5: Benchmark dataset summary. Aggregate statistics of the benchmark suite, including the number of datasets, total samples, average samples per dataset, and feature counts, reported separately for regression and classification datasets and for the full collection.
AdamW with backbone learning rate ηθ=10−4 and weight decay 10−5 , batch size 512 , and a maximum of 200 epochs. Early stopping patience is set to 15 , and ReduceLROnPlateau uses patience 10 with factor 0.1 . For FT-Transformer, weight decay is excluded from feature token embeddings, layer normalization parameters, the [CLS] token, and bias terms.
Appendix
Table 7: Backbone architectures and training configuration. We report the hyperparameters for the MLP, ResNet, and FT-Transformer backbones, along with the shared optimization strategy. Additional settings specific to gradient-based knot optimization are listed separately.
Method
Variant
Component
Non-adaptive (fixed)
Adaptive (range)
PLE
CART-based
Output size
m={7,15,30}
min_bins=5max_bins=50
Tree regularization
min_samples_leaf=1min_samples_split=2
min_samples_leaf=25min_samples_split=2
Splines
CART-based
Output size
m={7,15,30}
–
Tree / knot constraints
max_depth=6min_knot_spacing=0.01
–
Splines
LightGBM-based
Output size
m={7,15,30}
–
GBDT hyperparameters
n_estimators=100max_depth=3learning_rate=0.1
–
Appendix
Table 8: Target-aware configuration details and output-size settings. We report the configurations for target-aware PLE binning and target-aware spline knot placement using CART and LightGBM. Adaptive output size is used only for PLE in the ablation study; spline encodings use fixed output sizes m∈{7,15,30} .
Algorithm 2 Learnable-knot optimization for spline feature expansion
Preprocessing Method
Avg. rank, m=7
Avg. rank, m=15
Avg. rank, m=30
Std
9.29
8.96
8.46
MinMax
11.36
10.67
10.05
PLE
8.50
7.36
5.91
BS-U
7.29
7.82
7.97
BS-Q
5.65
7.08
8.42
BS-CART
5.91
7.46
9.73
Appendix
Table 9: Average rank (lower is better) of each preprocessing method across all backbones on the regression benchmark, for basis resolutions of 7, 15 and 30 bins/basis functions. The best (lowest) rank in each column is in bold.
Preprocessing Method
Avg. rank, m=7
Avg. rank, m=15
Avg. rank, m=30
Std
11.33
11.21
10.21
MinMax
12.53
12.10
11.25
PLE
5.01
3.96
3.33
BS-U
8.15
7.64
8.56
BS-Q
6.12
7.78
8.64
BS-CART
5.25
5.78
8.00
Appendix
Table 10: Average rank (lower is better) of each preprocessing method across all backbones on the classification benchmark, for basis resolutions of 7, 15 and 30 bins/basis functions. The best (lowest) rank in each column is in bold.
Figure 9: Synthetic regression dataset used in the ablation study. Scatter plot of the informative feature x0 against the target variable y , illustrating the heterogeneous structure induced by the synthetic target function.
Figure 10: Effect of knot learning rate on knot relocation during training. Learned knot trajectories for the informative feature under the learnable-knot B-spline variant BS-Grad-U, shown for increasing knot learning rates ηa∈{0.00001,0.00005,0.0001,0.0002} . All panels use the same synthetic regression setup and training configuration, differing only in the knot learning rate. Smaller values of ηa lead to limited knot movement, whereas larger values produce more pronounced relocation during training. Details of BS-Grad-U and the appendix setup are provided in Appendix K.1 .
Tabular representation learning builds useful embeddings of structured rows, columns, and tables for prediction, retrieval, clustering, and generation.