Tabular Deep Learning for Algorithmic Trading: Cross-Regime Bayesian Optimisation for Equity Signal Generation
Organizations: Department of Computer Science University of Exeter
Abstract
Algorithmic trading now represents a market exceeding $20 billion, where even marginal gains in signal robustness can translate into economically significant returns. Existing evaluations of equity prediction models do not explicitly target regime robustness during hyperparameter selection. Five model classes are trained on daily observations from approximately 300 large-cap US equities over eleven years, with Bayesian optimisation configured to target trading performance across three statistically different market regimes. Regime-robust hyperparameter selection is associated with out-of-sample generalisation, as signal precision remains above the random baseline across all four quarters of the test period, and portfolio performance slowly degrades under simulated input noise before collapsing beyond a defined threshold. No individual tabular deep learning architecture outperforms gradient-boosted trees, but combining XGBoost and TabNet using rank aggregation produces a Hybrid ensemble with an annualised return of 51.26%, a Sharpe ratio of 2.44, and a statistically significant CAPM alpha of 0.423 (p = 0.011). A near-zero beta indicates this outperformance is driven by stock selection, not market exposure. Alternative data plays a secondary role once technical and fundamental features are accounted for, as well as contributing more strongly on the short side than the long, and varies by model class. An interactive application makes these results explorable in real time, with live data integration the remaining step toward practical deployment.
Figures & tables
| Model | Key Architecture | Early Stopping | Hyperparameter Search Space |
|---|---|---|---|
| Logistic Regression | Linear model | – | Regularisation strength |
| XGBoost | Gradient boosted trees | 30 rounds | Estimators , learning rate , max depth , min child weight , , , , subsample , column sample |
| MLP | Halving layers, LayerNorm, ReLU | 10 epochs | Hidden dimension , layers , dropout , learning rate , batch size , gradient clipping , weight decay |
| TabNet | Sequential attention, sparsemax, ghost batch normalisation | 10 epochs | , decision steps , , learning rate , batch size , gradient clipping , weight decay |
| FT-Transformer | Feature tokenisation, multi-head self-attention, linear head | 10 epochs | Attention blocks , attention heads , embedding dimension , head size , attention dropout , feed-forward dropout , learning rate , batch size , gradient clipping , weight decay |
| ML Classification Metrics | Backtesting Performance | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Year | Model | Acc | Pre | Rec | F1 | Ret% | SR | Sor | Cal | DD% |
| 2022 | S&P 500 | – | – | – | – | -18.99 | -0.90 | -1.21 | -0.78 | -24.47 |
| LogReg | 0.792 | 0.434 | 0.368 | 0.369 | -6.15 | -0.56 | -0.52 | -0.50 | -12.20 | |
| XGBoost | 0.799 | 0.440 | 0.357 | 0.350 | 9.02 | 0.36 | 0.76 | 0.56 | -16.01 | |
| MLP | 0.794 | 0.404 | 0.349 | 0.337 | 2.56 | 0.05 | 0.38 | 0.19 | -13.76 | |
| TabNet | 0.786 | 0.397 | 0.353 | 0.346 | 7.62 | 0.33 | 0.88 | 0.95 | -8.04 | |
| Statistical Metric | LogReg | XGBoost | MLP | TabNet | FT-Trans. | Hybrid |
|---|---|---|---|---|---|---|
| Risk-Adjusted Outperformance | ||||||
| CAPM | -0.071 | 0.276 | 0.208 | 0.107 | 0.037 | 0.423 |
| CAPM | 0.112 | 0.200 | -0.154 | -0.031 | 0.047 | 0.048 |
| CAPM -value ( vs S&P 500) | 0.603 | 0.171 | 0.264 | 0.479 | 0.833 | 0.011 ∗ |
| Prob. Sharpe Ratio (PSR) | 0.083 | 0.740 | 0.499 | 0.369 | 0.238 | 0.960 ∗ |
| Distribution & Significance Tests | ||||||
| Gaussian Noise ( ) | Reference | |||||
|---|---|---|---|---|---|---|
| Metric | 0.05 | 0.10 | 0.20 | 0.50 | Clean | Random Null |
| JS Divergence (Long) | 0.0126 | 0.0179 | 0.0243 | 0.0350 | – | – |
| JS Divergence (Short) | 0.0102 | 0.0129 | 0.0171 | 0.0261 | – | – |
| Total Return (%) | 25.17 | 34.36 | 2.72 | 6.66 | 51.26 | 8.21 |
| Sharpe Ratio | 1.13 | 1.53 | 0.04 | 0.26 | 2.44 | 1.44 |
| Max Drawdown (%) | 7.50 | 9.00 | 14.23 | 9.76 | 7.76 | 8.47 |
| Signal Precision (%) | Observations | |||||
|---|---|---|---|---|---|---|
| Quarter | Long | Short | Long vs Baseline | Short vs Baseline | N Long | N Short |
| Q1 (Jan–Mar) | 23.06 | 26.67 | 13.06 | 16.67 | 360 | 360 |
| Q2 (Apr–Jun) | 23.12 | 25.81 | 13.12 | 15.81 | 372 | 372 |
| Q3 (Jul–Sep) | 25.78 | 25.00 | 15.78 | 15.00 | 384 | 384 |
| Q4 (Oct–Dec) | 24.07 | 24.34 | 14.07 | 14.34 | 378 | 378 |
| Model | Signal | Technical | Fundamental | Macroeconomic | Alternative |
|---|---|---|---|---|---|
| XGBoost | Long | 50.87% | 43.73% | 3.76% | 1.63% |
| Short | 59.45% | 33.30% | 4.36% | 2.89% | |
| LR | Long | 55.93% | 14.44% | 15.56% | 14.08% |
| Short | 63.09% | 11.89% | 12.82% | 12.20% | |
| MLP | Long | 40.94% | 32.98% | 13.52% | 12.56% |
| Short | 47.51% | 27.17% | 15.16% | 10.16% |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Return | Volatility (5-day) | ||||
|---|---|---|---|---|---|
| Regime A | Regime B | KS Statistic | -value | KS Statistic | -value |
| 2022 | 2023 | 0.087 | 0.238 | ||
| 2022 | 2024 | 0.101 | 0.277 | ||
| 2022 | 2025 | 0.077 | 0.178 | ||
| 2023 | 2024 | 0.015 | 0.048 | ||
| 2023 | 2025 | 0.020 | 0.061 | ||
| Model | W Statistic | p-value | Normal? |
|---|---|---|---|
| SPY | 0.7831 | 0.001 | No |
| Logistic Regression | 0.9918 | 0.177 | Yes |
| XGBoost | 0.8739 | 0.001 | No |
| MLP | 0.9893 | 0.062 | Yes |
| TabNet | 0.9586 | 0.001 | No |
| FT-Transformer | 0.9404 | 0.001 | No |
| Pair | Ann. | |||
|---|---|---|---|---|
| LogReg vs XGBoost | 0.148 | 0.226 | 0.314 | 0.218 |
| LogReg vs Hybrid | 0.230 | 0.059 | 0.416 | 0.247 |
| LogReg vs MLP | 0.082 | 0.542 | 0.177 | 0.059 |
| LogReg vs TabNet | 0.067 | 0.621 | 0.169 | 0.034 |
| LogReg vs FT-Transformer | 0.061 | 0.645 | 0.236 | 0.088 |
| XGBoost vs Hybrid | 0.022 | 0.894 | 0.776 | 0.388 |
| Model / Direction | Technical | Fundamental | Macroeconomic | Alternative | |
|---|---|---|---|---|---|
| XGBoost | Long | 50.87% | 43.73% | 3.76% | 1.63% |
| Short | 59.45% | 33.30% | 4.36% | 2.89% | |
| Logistic Regression | Long | 55.93% | 14.44% | 15.56% | 14.08% |
| Short | 63.09% | 11.89% | 12.82% | 12.20% | |
| MLP | Long | 40.94% | 32.98% | 13.52% | 12.56% |
| Short | 47.51% | 27.17% | 15.16% | 10.16% | |
| Long Signal | |
|---|---|
| Feature | Mean SHAP |
| Distance from 52-Week High | 0.0208 |
| Distance from 50-Day MA | 0.0091 |
| Analyst Rating Consensus | 0.0065 |
| Relative Volume | 0.0064 |
| 5-Day Volatility | 0.0064 |
| Long Signal | |
|---|---|
| Feature | Mean SHAP |
| Market Capitalisation | 0.0216 |
| Trading Volume | 0.0116 |
| Daily Dollar Volume | 0.0086 |
| 5-Day Volatility | 0.0083 |
| Distance from 52-Week High | 0.0068 |
| Long Signal | |
|---|---|
| Feature | Mean SHAP |
| Trading Volume | 0.0230 |
| Market Capitalisation | 0.0215 |
| Shares Outstanding | 0.0132 |
| Distance from 52-Week High | 0.0087 |
| Daily Dollar Volume | 0.0083 |
| Long Signal | |
|---|---|
| Feature | Mean SHAP |
| Distance from 52-Week High | 0.0131 |
| 5-Day Volatility | 0.0089 |
| Relative Volume | 0.0073 |
| VIX Regime (High) | 0.0057 |
| Bollinger Band Width | 0.0038 |
| Long Signal | |
|---|---|
| Feature | Mean SHAP |
| Market Capitalisation | 0.0197 |
| Daily Dollar Volume | 0.0161 |
| Distance from 52-Week High | 0.0090 |
| Trading Volume | 0.0079 |
| Relative Volume | 0.0046 |
| Model | Tuning (30 trials) | Final Training | OOS Inference |
|---|---|---|---|
| LR | 32.0 min | 22.9 s | 0.04 s |
| XGBoost | 10.8 min | 8.4 s | 0.09 s |
| MLP | 45.0 min | 42.3 s | 2.18 s |
| TabNet | 19.6 hrs | 15.5 min | 14.0 s |
| FT-Transformer | 2.9 hrs | 3.2 min | 8.8 s |
Algorithmic Trading
Algorithmic trading uses computational models to generate signals, allocate portfolios, and execute orders across financial markets.
See all 149 papers