Manuscript Offprint

arXiv:2608.21199

Tydra: An Efficient Hybrid Model for Tabular Data

Mieszko Komisarczyk, Saurabh Mathur, Maurice Kraus, Sriraam Natarajan, Kristian Kersting

Abstract

Transformer-based tabular foundation models such as TabPFN achieve strong predictive performance but incur quadratic computational cost with context length. On the other hand, subquadratic SSM-based alternatives such as Hydra trade away accuracy for efficiency. To balance both, we introduce Tydra, a hybrid Transformer–State Space Model (SSM) architecture for tabular in-context learning that interleaves attention and SSM layers. Across 30 OpenML datasets, Tydra reduces inference time by 30% relative to TabPFN while retaining much of its predictive performance. Tydra also outperforms an approximately ten-times-larger Hydra model while providing faster inference. The results indicate that hybrid architectures are a promising direction for tabular foundation models.

Introduction

Tabular foundation models such as TabPFN have achieved strong predictive performance on several tabular prediction tasks without task-specific training (Hollmann et al. 2025). However, TabPFN's Transformer backbone scales quadratically with context length, making inference prohibitively expensive on large-scale or long-context tabular tasks. This cost is especially restrictive for institutions that cannot use server-hosted inference at all. Hospitals and other regulated institutions are often barred from sending patient records to an external server for data protection reasons and must instead run inference locally on hardware with limited compute resources. While the Hydra architecture reduces this cost with a subquadratic State Space Model (SSM) architecture, its predictive performance falls short of TabPFN (Hwang et al. 2024; Koch et al. 2025). This gap persists even as Hydra is scaled up; shrinking TabPFN to match Hydra's efficiency degrades its accuracy. Neither pure architecture achieves both high accuracy and low inference cost.

Hybrid architectures that interleave attention and SSM layers have recently improved this accuracy–efficiency trade-off for language models (Merrill et al. 2026), though such architectures remain unexplored for tabular foundation models. Tabular data are permutation-invariant over rows and columns, unlike the fixed-order sequences of language for these hybrid architectures were designed. To this end, we introduce Tydra, which interleaves TabPFN's attention layers with Hydra's SSM layers. We show that this hybridization matches TabPFN's accuracy at substantially lower infer-

Figure

Figure 1: Tydra is fast on tabular data without sacrificing predictive performance. Inference speed and predictive performance of Tydra compared to TabPFN and Hydra on OpenML datasets. Color encodes a combined accuracy–speed score (F2, weighted toward speed). Shaded ellipses span one standard deviation around each model's mean. The star marks the ideal corner: fastest and most accurate. Hydra 16M is fast but trails substantially in predictive performance, while TabPFN and Hydra 160M are accurate but slow; Tydra achieves predictive performance close to TabPFN and Hydra 160M at over 2×2\times their inference speed.

ence cost on small-to-medium-scale data, making strong tabular in-context learning practical in settings where server-hosted inference is not an option.

To summarize, we make the following contributions:

(1) We introduce Tydra, the first hybrid Transformer–SSM architecture for tabular in-context learning.

(2) We show that Tydra matches TabPFN’s accuracy at up to 30% lower inference time on 30 OpenML datasets, while substantially outperforming Hydra.

(3) We provide an extensive study on the architecture family of Tydras showing the advantages of different combinations and ratios of Hydra and TabPFN layers.

We proceed as follows. We start off by discussing related work. We then present the Tydra architecture. Before concluding, we present empirical results.

∗^{*}These authors contributed equally.

References (19)