TabPFN Extensions for Interpretable Geotechnical Modelling
Authors: Taiga Saito, Yu Otake, Daijiro Mizutani, Stephen Wu
Organizations: Department of Civil and Environmental Engineering, Tohoku University, 6-6-06 Aramaki Aoba, Aoba-ku, Sendai, Miyagi 980-8579, Japan · Research Organization of Information and Systems, The Institute of Statistical Mathematics 10-3 Midori-cho, Tachikawa, Tokyo 190-8562, Japan · Department of Statistical Science, The Graduate University for Advanced Studies 10-3 Midori-cho, Tachikawa, Tokyo 190-8562, Japan
Geotechnical site characterisation relies on sparse, heterogeneous borehole data, where uncertainty quantification and interpretability matter as much as predictive accuracy. We evaluate TabPFN~\citep{Hollmann2025}, a tabular foundation model, and its tabpfn-extensions library on two geotechnical tasks: (1) soil-type classification from N-value and shear-wave velocity data as a controlled illustrative case, and (2) iterative imputation of five mechanical parameters (su, Eu, σ′p, Cc, Cv) in BM/AirportSoilProperties/2/2025. Without retraining, we apply cosine-similarity analysis to TabPFN embeddings, visualise predictive distributions, and compute SHAP attributions. On the regression benchmark we compare TabPFN with mean imputation, linear regression, random forests, XGBoost, and HBM; introduce a proxy decomposition of predictive uncertainty across context-perturbation classes; and propagate marginal Cc and σ′p distributions through a one-dimensional consolidation model to obtain the reliability index β and serviceability exceedance probability Pf. Embeddings exhibit label-consistent Clay/Sand grouping; iterative imputation reduces RMSE for all five targets, with TabPFN lowest on four; SHAP attributions are consistent with the Skempton compression-index correlation and the inverse preconsolidation-pressure-water-content dependence; the within-posterior component is largest in the proxy decomposition. We position the contribution as a worked evaluation workflow that may complement established methods for data-scarce geotechnics, not as algorithmic innovation.
Figures & tables
Training set ( n=16 )
Test set ( n=16 )
No.
N
Vs (m/s)
Soil
No.
N
Vs (m/s)
Soil
1
1
100.000
Clay
1
4
158.740
Clay
2
2
125.992
Clay
2
5
170.998
Clay
3
7
191.293
Clay
3
9
208.008
Clay
4
12
228.943
Clay
4
10
215.443
Clay
5
15
246.621
Clay
5
11
222.398
Clay
Table 1: All samples in the synthetic geotechnical dataset. No. corresponds to the axis labels in Figure 3 : training samples are ordered along the row axis and test samples along the column axis (Clay first, sorted by ascending N -value; Sand second, sorted by ascending N -value).
Figure 1: Scatter plots of training (circles) and test (stars) data in the N – Vs space, coloured by soil class (Clay: blue, Sand: orange). Training and test sets each contain 16 samples. Reference curves Vs=100N1/3 and Vs=80N1/3 from the Japanese railway seismic design standard ( Railway Technical Research Institute 2012 ) are overlaid; Clay samples follow the upper curve and Sand samples the lower curve.
Figure 2: Predicted probability of Sand class P(Sand) over the N – Vs domain, with the training samples overlaid (circles). The bold contour marks the decision boundary at P(Sand)=0.5 ; grey contours indicate the 0.1, 0.25, 0.75, and 0.9 levels.
Figure 3: Cosine similarity heatmap of TabPFN embeddings between test and training samples (axis labels correspond to Table 1 No.). The block-diagonal structure indicates that, in this controlled case, test embeddings are more similar to training embeddings from the same constructed class. Test sample No. 8 (first Sand test sample; N=14 , Vs=193 m/s) shows visibly lower similarity with the training Sand block, illustrating how the heatmap can flag a boundary sample.
Figure 4: Normalised RMSE (RMSE / RMSE at iteration 1) per iteration for each mechanical parameter. Values below 1.0 indicate improvement over the initial estimate.
Parameter
RMSE (iter. 1)
RMSE (iter. 10)
su (kN/m 2 )
13.08
9.30
Eu (kN/m 2 )
3277
2692
σ′p (kN/m 2 )
30.47
25.89
Cc (—)
0.118
0.106
Cv (m 2 /s)
35.72
34.58
Table 2: RMSE at iteration 1 and iteration 10 for each mechanical parameter.
Figure 5: Posterior distributions at iteration 10 for all five mechanical parameters across test samples. Violin width represents the probability density; black bar = median; yellow circle = true value; black filled circle = observed value (parameter was not missing for that sample and therefore not predicted).
Figure 6: Mean absolute SHAP values for each input feature across all test samples, shown separately for each mechanical parameter. Blue bars: index properties; orange bars: non-target mechanical parameters used as features in the iterative imputation scheme.
Figure 7: SHAP value versus feature value for the dominant predictors of each mechanical target. Columns (a)–(e) correspond to su , Eu , σ′p , Cc , and Cv , respectively. The upper row shows the best non-target mechanical predictor per target by mean ∣SHAP∣ ( su←Eu , Eu←su , σ′p←su , Cc←Cv , Cv←Cc ); the lower row shows the best index-property predictor per target ( su,Eu←PL ; σ′p←w ; Cc,Cv←LL ). Positive SHAP values indicate that the feature increases the predicted value; negative values indicate a decrease.
Figure 8: Embedding-based borehole-structure diagnostic for the five BM/AirportSoilProperties mechanical targets. (a) k=3,5,10,20 nearest-neighbour borehole purity per target at the default ntop=8 ; the dashed line is the random-neighbour baseline. (b) PCA-reduced cosine Δcos at ntop=8 as a function of dimensionality d . (c) k=3 borehole-purity ratio (mean purity divided by the random-neighbour baseline) against ntop∈{4,8,12,16} ; the dotted line marks ratio =1 (chance level). (d) PCA-reduced cosine Δcos at d=20 against ntop .
Mean imp.
Linear
HBM
RF
XGBoost
TabPFN
Cc
0.332
0.127
0.128
0.108
0.123
0.106
Eu (kN/m 2 )
3834
2952
2588
3212
2376
2692
su (kN/m 2 )
24.50
16.19
9.74
14.64
16.69
9.30
σ′p (kN/m 2 )
49.93
35.44
28.24
32.92
38.79
25.89
Cv (m 2 /s)
168.71
119.16
59.32
46.91
60.90
34.58
Table 3: Final-iteration RMSE on the BM/AirportSoilProperties 20-sample missing pattern. Units follow each target. Lowest value per target is in bold.
Figure 9: Matched- κ proxy decomposition of TabPFN’s predictive variance on the BM/AirportSoilProperties 20-sample missing pattern. Coloured curves are the across-scenario components for three context perturbations against κ : bootstrap with replacement (WR; dashed), without replacement (WOR; solid), and borehole-level holdout (holdout; solid), with 95% percentile-bootstrap CI bands from 20 scenarios per cell. The dashed blue baseline is the multi-seed run-to-run component estimated at κ=1.0 with the context fixed. The violet line is the within-posterior component averaged across the three context classes; no CI band is shown for this cross-class average.
Figure 10: Per-sample settlement comparison between TabPFN (blue circles), HBM (orange squares), and the deterministic ground truth (gold circles) for the 15 jointly imputed samples. Markers show S evaluated at the saved posterior mean of (Cc,σ′p) ; error bars show 5%/95% Monte Carlo intervals propagated through Eq. ( 3 ). HBM marginals are reconstructed by log-normal quantile matching.
Capability
HBM
Conv. ML †
TabPFN + Ext.
Posterior predictive distribution
Yes (parametric)
No ∗
Yes (native)
Embedding similarity
Not native
No
Yes
SHAP feature importance
Indirect ‡
Yes
Yes
No retraining required
No
No
Yes
Correlation structure
Parametric
—
Implicit / prior-learned
User-specified priors
Yes
No
No
Table 4: TabPFN-centric capability summary; complementary strengths of HBM and conventional ML are discussed in the surrounding paragraph.
Department of Mechanical and Aerospace Engineering, University of California, Irvine · Department of Civil and Environmental Engineering, University of California, Irvine
School of Civil and Environmental Engineering, University of Technology Sydney, Ultimo, NSW 2007, Australia. · School of Infrastructure Engineering, Nanchang University, Xuefu Road, 999, Nanchang 330031, China. · School of Civil Engineering, Central South University, Changsha, 410075, China.