Manuscript Offprint
arXiv:2609.03106Scaling Laws, Tabular Data and Actuarial Ratemaking Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Scaling laws in modern deep learning describe how held-out loss improves as model capacity, training data, and compute increase, often following power-law trends. We investigate whether analogous scaling regularities arise in actuarial ratemaking, where data are tabular, heterogeneous, and noisy, and where classical models such as GLMs remain strong baselines. Using a real-world motor insurance portfolio, we train models from different families across increasing fractions of the training data and multiple random seeds, evaluating out-of-sample Poisson deviance, a likelihood-based loss for Poisson count predictions in which lower values indicate better held-out fit. We find that all model families improve with additional data, but scaling exponents differ substantially: TabM exhibits markedly stronger data scaling than purely supervised tabular Transformers and standard MLP baselines. Transformer variants show weak parameter scaling unless augmented with additional inductive biases (TabM-style adaptation or self-supervision). These results provide quantitative guidance on model selection by data regime and suggest that effective scaling on actuarial tabular tasks depends on architecture and loss function objective design, with simple increases in Transformer size providing limited gains.
Keywords. scaling laws; tabular data; actuarial ratemaking; Poisson deviance; Transformers; mixture of experts; representation learning.
1 Introduction
A natural actuarial intuition is that model performance improves as the amount of credible data available for model fitting increases. More data allows for better estimation of model parameters, leading to more accurate predictions. This relationship is particularly evident in actuarial ratemaking, where large and diverse datasets enable the construction of more reliable pricing models. Of course, fundamental limitations exist - highly volatile claims in certain lines of business or rapidly changing market trends may constrain the benefits of additional data. Nevertheless, this intuition aligns with practical experience across both reserving and pricing applications. A related intuition concerns the marginal returns to additional data. For traditional actuarial models used in ratemaking, there appears to be a “saturation” point beyond which additional data yields negligible improvements in model performance. Machine learning and deep learning approaches, by contrast, may continue to benefit from additional data well beyond this saturation threshold. Put differently, the point at which diminishing returns set in may depend fundamentally on the model class being employed. A final intuition is that models
*insureai and Bayes Business School, Johannesburg, South Africa; ron@insureai.co often benefit from additional complexity that captures the structure and nuance of a problem, however, beyond a point, additional complexity may yield models that fail to perform well, besides for other disadvantages, such as the difficulty of maintaining highly complex models.
The objective of this paper is to quantify these intuitions and connect them to the field of scaling laws in the machine learning literature. This framework provides a principled approach to understanding and predicting how model performance evolves with key resources. In this paper, we apply this framework to actuarial ratemaking models, leveraging recent advances in tabular data and machine learning to develop a principled approach to understanding and predicting how model performance evolves with key modelling choices and with data availability. The concept of scaling laws has gained prominence through work on large language models (LLMs). Kaplan et al. (2020) and Hoffmann et al. (2022) show that, over wide ranges, held-out loss (model performance) can often be described by power-law improvements in key resources. A common form of scaling laws is an irreducible loss plus additive power-law terms,
where is the number of model parameters, measures training data size, and measures training compute; , , and are fitted amplitude constants for the parameter, data, and compute terms; denotes the empirical performance floor; and quantify marginal returns to scaling each resource. Remarkably, these scaling laws have been shown to hold for a wide range of tasks and model classes, in particular, the large-scale decoder Transformer models used in Large Language Models (LLMs) (Kaplan et al., 2020; Hoffmann et al., 2022).
The question naturally arises: do analogous scaling regularities govern actuarial ratemaking models, despite the smaller data regime and the noisy, heterogeneous structure of actuarial ratemaking covariates? We will review the scaling-law literature and the potential challenges for tabular actuarial tasks in Section 3.
Despite these challenges, there are compelling reasons to expect that some form of scaling behavior might exist in actuarial modelling. The fundamental insight underlying scaling laws - that model performance is constrained by the interplay between model capacity, data volume, and computational resources - is not specific to language modelling. Indeed, the actuarial intuitions outlined above suggest precisely this. Moreover, classical statistical theory provides foundations for understanding how parameter estimation improves with sample size, and credibility theory in actuarial science has long formalized the relationship between data volume and the reliability of estimates. The question is whether these relationships can be unified and extended to encompass the full spectrum of models available to modern actuaries, from traditional GLMs to sophisticated deep learning architectures.
In this paper, we investigate scaling laws for actuarial ratemaking models empirically, using a large-scale experiment on a real-world motor insurance dataset. We focus specifically on claim frequency because claim counts are observed for every policy-period record, whereas severity is observed only for the smaller subset of records with claims; the frequency task is therefore better suited to scaling-law experiments across data, parameter, and compute regimes. In our experiments, “data size” is operationalized by the number of policy-period records (rows) used for training (with corresponding total exposure-years as the actuarial analogue of “example count”). We focus on two broad categories of models as representing the two ends of the model complexity spectrum: (i) statistical models, including generalized linear models (GLMs) and their regularized variants and (ii) deep learning models, including feed-forward neural networks (FFNs) and more advanced architectures such as Transformers . For each model class, we examine how out-of-sample predictive performance, measured by the Poisson deviance loss, varies as we systematically increase the amount of training data.
Poisson deviance is the natural metric for this frequency study because the response is a claim count and each prediction is an exposure-adjusted Poisson mean. In the exponential-family likelihood framework, deviance is twice the difference between a saturated log-likelihood and the fitted model log-likelihood, so reductions in mean Poisson deviance have a direct interpretation as average held-out log-likelihood gains per policy (Wüthrich & Merz, 2023). We therefore use Poisson deviance as the statistical loss for scaling-law estimation, while recognizing that translating such gains into premium adequacy, loss ratio, or profit requires additional pricing assumptions beyond the frequency model itself (Israni et al., 2026; Hedges, 2025).
Our investigation is guided by several research questions. First, can we identify distinct data regimes - small, medium, and large - in which different model classes are optimal? We hypothesize that GLMs may be optimal in small data regimes (e.g., fewer than 100,000 exposure years) and that deep learning models may be optimal in large data regimes where their ability to scale model capacity with data becomes advantageous. Second, at what data sizes do the returns from adding more data begin to diminish for each model class? Understanding these saturation points has important practical implications for determining how to select data for building actuarial models, as well as the selection of model classes depending on the amount of data available. Third, can we derive explicit power-law relationships analogous to those found for LLMs, and if so, what are the relevant exponents? Finally, how are these relationships affected by the characteristics of the modelling problem, such as the number of rating factors, the signal-to-noise ratio, and the presence of time trends? As we shall see, addressing these questions also leads us to examine why certain architectures, particularly Transformers, may fail to scale in the actuarial context, and to develop some novel solutions.
Answering these questions requires careful experimental design. A key challenge is that, unlike LLMs where scaling experiments can be conducted by simply sampling more data from vast text corpora, actuarial datasets are finite and their characteristics are fixed. We address this by sampling progressively larger subsets from our available data, ensuring that the samples are representative of the full dataset. We also control for confounding factors such as the number of covariates and the complexity of the rating structure.
The contributions of this paper are fourfold. First, we provide the first systematic empirical investigation of scaling laws for actuarial ratemaking models, establishing whether and how performance scales with data size across different model classes. Second, we develop practical guidance for actuaries on model selection, identifying the data regimes in which each model class is likely to be optimal. Third, we derive explicit functional forms for the scaling relationships we observe, enabling actuaries to make predictions about model performance as a function of available data. Fourth, in the course of our experiments, we diagnose some problems that prevent scaling in Transformer models applied to ratemaking and, in response, develop several new models for ratemaking.
Beyond methodological contributions, our findings carry significant implications for actuarial
We note that intermediate approaches such as gradient boosting machines occupy a middle ground that we leave for future investigation.
practice and regulatory governance. As insurers increasingly adopt sophisticated predictive models, regulators have intensified scrutiny of these techniques, raising questions about appropriate model complexity, data requirements, and validation standards. Quantifiable scaling relationships between data volume and model performance could provide principled justification for methodology choices, informing both internal model governance frameworks and regulatory discussions. For instance, if we can establish that a given model class requires a minimum training size , measured in policy-period rows or exposure-years, to achieve reliable out-of-sample performance, this threshold becomes a defensible criterion for model selection and validation. Similarly, understanding the rate at which performance improves with additional data, characterized by a scaling exponent, enables insurers to make informed decisions about investments in data collection versus model development, optimizing resource allocation in predictive modeling efforts.
where k is the within- versus between-risk variance ratio (the “credibility constant”). Rather than Z itself, consider the distance to full credibility,
In the large-exposure regime (), this becomes : credibility implies a power-law decay of residual uncertainty once exposure substantially exceeds . The useful distinction between classical credibility and modern neural scaling laws is that modern scaling-law work estimates the rate of improvement empirically. In a relationship such as , the fitted exponent is an effective, experiment-specific summary of how quickly reducible loss falls as data increase; it can vary by model class, task, metric, and data regime. Our empirical scaling analysis uses an analogous “distance to asymptote” framing. Let denote test Poisson deviance for a model trained on rows (with total exposure-years as the actuarial analogue of example count), and let denote an empirically fitted performance floor. Define the reducible loss
Equivalently, the empirical fits use , with recording the fitted distance-to-floor scale under the chosen row-count convention. Under this lens, acts as a portfolio-level “credibility speed” parameter: larger means performance approaches the fitted floor faster as data grow.
This suggests a credibility-style curve derived directly from scaling fits. Fix a baseline (e.g., the smallest training fraction) and define
Under the power law, , which increases from 0 at and approaches 1 as . Likewise, a “minimum credible data” requirement can be expressed by selecting a tolerance and solving , yielding , directly analogous to solving in classical credibility. Finally, a simple interpolation between Bühlmann–Straub and power-law scaling is the generalized curve , which recovers the classical formula at and satisfies for .
More broadly, actuaries already encounter many scaling relationships - for example, standard errors for Poisson rates and GLM coefficients shrink as exposure or sample size to the , and Monte Carlo error decays with the number of simulation draws at the same rate. Our contribution is to make such scaling explicit for modern tabular model families, estimate the corresponding exponents empirically, and connect them to practical questions about when models become “credible” at portfolio scale.
1.2 Organization of the Manuscript
With these intuitions and their connection to classical credibility in mind, we now outline how the paper is structured.
One theme that shapes the structure of the paper is the behavior of Transformer models. In contrast to the monotonic parameter scaling often reported for LLM-scale Transformers, we find that straightforward supervised tabular Transformers exhibit weak and sometimes non-monotone returns to additional parameters on our ratemaking task. For this reason we study a sequence of Transformer variants rather than a single baseline: we progressively modernize the architecture (pooling, stabilization and value-side capacity mechanisms, and mixture-of-experts routing) and then add a swap-style self-supervised learning (SSL) objective that provides additional training signal. This progression motivates the detailed Transformer exposition in Sections 6 and 7, and the Results are organized to mirror this “from baselines to scaling fixes” narrative.
The remainder of this paper is organized as follows. Section 2 provides a non-technical rationale, metric explanation, and reading guide for pricing actuaries. Section 3 reviews scaling laws in modern deep learning and the relevant literature on tabular insurance modeling. Section 4 describes the dataset and descriptive statistics. Section 5 describes our experimental methodology. Section 6 summarizes the model families studied. Section 7 presents empirical scaling results, and Section 8 concludes.
Appendix A provides a compact notation reference for the symbols used in Section 2 and later technical sections. Appendix B provides technical detail and the component-level formulae used across model families. Appendix C gives a concise technical explainer for the Chinchilla-style allocation result used in the scaling discussion. A separate supplementary material provides an open-source, simpler implementation of the main workflow on public French MTPL (FMTPL) frequency data, intended to make the empirical pipeline easier to inspect and reproduce on non-confidential data. The data are from CASdatasets by Dutang and Charpentier, and we use the corrected version documented by Wüthrich and Merz (Dutang & Charpentier, 2026; Wüthrich & Merz, 2023).
The accompanying repository is available at https://github.com/RonRichman/frmtpl-scaling-laws.
2 Rationale, Metric, and Reading Guide
This section is intended as a reader's guide for pricing actuaries who want the main motivation, notation, and interpretation before the technical details. Readers who are already comfortable with Poisson frequency modelling, neural-network notation, and scaling-law terminology can skip to the literature review. Appendix A keeps the notation tables in one place for reference.
2.1 Why scaling laws matter for actuarial pricing
Large language models made scaling laws prominent because their held-out loss often improves smoothly as model size, training data, and compute increase. Kaplan et al. (2020) illustrate this idea by plotting test loss against compute, dataset size, and parameter count on log-log axes: over the fitted regime, the points form smooth downward trends that can be summarized by power laws. The important visual message is that loss improvement is not erratic; it follows a predictable diminishing-returns curve. Figure 1 below gives a small actuarial analogue of this idea for the best-achieved TabM/TabM-mini data-scaling fit in our experiment.
The actuarial question is whether a similar empirical regularity appears in ratemaking. Actuaries already reason about credibility, data volume, model stability, and diminishing returns. A scaling-law analysis puts numbers on these ideas. Instead of asking only whether a model is better on one dataset size, we ask how fast its held-out loss improves as the portfolio grows and whether extra model capacity still converts into better predictions.
2.2 The frequency task in actuarial terms
Each observation in the experiment is a policy-period row. We write for the observed claim count and for earned exposure. The model predicts a claim frequency rate, and exposure converts that rate into an expected claim count. In symbols, the neural network or GLM produces a log-rate
where contains the rating factors and denotes the trainable model parameters. The predicted claim rate is and the predicted mean claim count is
Equivalently, , which is the familiar Poisson offset form. This matters because our models are predicting the claim-frequency component, rather than modelling severity conditional on a claim or modelling pure premium directly. Frequency is observed for every policy-period record, while severity is observed only for the smaller subset with claims; this is why frequency is the more natural target for the scaling-law experiment in this paper.
2.3 Why Poisson deviance is the loss
Poisson deviance is a likelihood-based loss for count-frequency models. For a policy-period row with observed count and predicted mean count , the per-row deviance is
(2.3) with the usual convention that the first term is zero when . Lower deviance means the model assigns higher Poisson likelihood to the observed claim counts on the held-out data.
For interpretation, aggregate Poisson deviance is twice the saturated log-likelihood minus twice the fitted model log-likelihood. Therefore, if one model improves mean deviance by , this is an average held-out log-likelihood lift of nats per policy-period row, where a nat is one unit of log-likelihood on the natural-logarithm scale. This is a statistical fit statement about emerging claim counts. Translating it into premium adequacy, loss ratio, or profit requires a pricing layer with severity or pure-premium modelling, calibration and bias controls, margins and expenses, and competitive or retention effects.
2.4 The three resources: data, parameters, and compute
The paper studies the three “resources” available to a pricing actuary when building a model. First, is the amount of labelled training data, i.e., the policy records with observed exposure and claims, measured as policy-period rows, with exposure-years as the actuarial analogue of example volume. Second, is the number of trainable model parameters. For a GLM, these are coefficients; for a neural network, they include embedding tables, dense weights, attention weights, and prediction heads. Third, is a training compute proxy. In this paper, is measured per epoch and, for ensemble results, scaled to match the five trained seeds used to produce the seed-averaged prediction.
We refer to the coefficients of these laws as indexed amplitude constants:
The fitted exponents in these laws have a direct reading. The data exponent says how quickly loss improves as more rows are added. The parameter exponent says how effectively a model family converts extra capacity into lower test deviance. The compute exponent says how fast the best observed frontier improves as compute increases. A small exponent still means improvement, but with strong diminishing returns.
Here is an empirical fitted floor over the range of experiments, rather than a universal Bayes-risk claim. After subtracting the floor, the exponent is the slope on a log-log plot. For example, doubling multiplies the remaining reducible loss by .
2.5 A short example and how to read the scaling claims
A typical data-scaling law in this paper has the form
where is held-out Poisson deviance at training size , is the fitted floor, and is the remaining reducible loss. As a concrete preview, Figure 1 shows the best-achieved TabM/TabM-mini data-scaling envelope that is analyzed later in Section 7.5. Using measured in policy-period rows, the fitted constants for this preview are
Thus, doubling the training rows multiplies the reducible loss by . In words, each doubling of data removes about 25% of the remaining gap to the fitted floor, within the experimental range and model family being studied.
The same logic applies to parameter and compute scaling. If a family has a larger , its held-out deviance approaches the fitted floor faster as labelled data are added. If a family has a near-zero , adding parameters mostly adds complexity without producing much held-out deviance gain under the training recipe used here. These exponents summarize empirical curves, not a single train/test comparison. The claims are conditional on the dataset, frequency target, feature set, tuning protocol, and IID train/test split used here. The fitted floor is an empirical anchor for the observed range of models and training sizes, rather than a literal irreducible error for all possible ratemaking models or future data.
A related question is how to allocate a fixed training budget between labelled data and model capacity. Later in the paper we use a standard compute-efficient scaling argument for this purpose. The result should be read as a heuristic: we measure training cost approximately as the cost of one pass through the training data, rather than exact total training cost, and labelled insurance rows are not created on demand. Additional rows require written policies, exposure, and claims emergence. In practice, once labelled data are fixed or slow to grow, the more immediate levers are model capacity, training recipe, and representation learning, including self-supervised use of policy or quote records without emerged claims.
The main text gives enough model notation to read the empirical comparison. Appendix A collects notation, and Appendix B.2 records the component-level formulae for readers who want implementation-level detail.

Figure 1: Standalone preview of the best-achieved data-scaling law. Points are the best TabM/TabM-mini seed-averaged ensemble deviance at each nested training fraction, including the full-data-only TabM-mini extension at 100%. The fitted curve uses the same floor and exponent convention as Section 7.5.
2.6 How to read the model families
Figure 2 gives a compact map of how the model families used in this paper relate to one another. A useful way to read the model families is to ask how much of the rating structure is specified by the modeller and how much is learned from data. Consider a policy-period row with driver age, vehicle value, territory, and prior-claims band. A GLM is closest to a traditional tariff: it estimates rating-factor effects and combines them on the log-frequency scale, with interactions added when the modeller specifies them. The neural models use the same rating-factor inputs but give the model more freedom to learn nonlinear effects and interactions.

Figure 2: Conceptual map of the model families studied in the paper. The GLM provides the additive actuarial baseline. The neural families share the same tabular input representation, then differ in how they combine rating-factor information: dense layers for FFNs, shared ensemble-style adapters for TabM/TabM-mini, learned field-comparison blocks for Transformers, and a hybrid Transformer-plus-TabM head for Transformer+TabM-mini.
-
GLM: an additive benchmark. It estimates relativities for rating factors under a log-link Poisson frequency model. It is stable and interpretable, but interactions usually need to be specified manually.
-
FFN: a feed-forward neural network. It first converts rating factors into numerical representations and then passes them through dense layers. This lets the model learn nonlinear combinations, such as territory mattering more for certain vehicle or prior-claims profiles.
-
Transformer: a neural network that repeatedly compares fields within the same policy record before making a prediction. In the technical sections, the internal field representations are called tokens and the learned comparison mechanism is called attention. For the reader's guide, the main point is simpler: the model can learn which rating factors should be read together, rather than relying only on a pre-specified interaction list.
-
TabM and TabM-mini: compact ensemble-style neural models. They share most weights but allow several lightweight member-specific views of the same row, aiming to capture some of the robustness of an ensemble without training many fully separate networks.
-
Transformer+TabM-mini: a hybrid model. It uses Transformer-style field comparisons first and then a TabM-mini-style prediction head, so it combines learned interactions with compact ensemble-style stabilization.
This paper treats model complexity as an empirical question. Added flexibility is useful in some regimes and wasteful in others. In small data regimes, strong regularization and simple structure can dominate. In larger data regimes, additional capacity can become valuable because the model has enough observations to learn genuine structure rather than mainly fitting noise.
3 Literature Review
This section reviews two research threads that motivate our study. The first concerns neural scaling laws, which characterize how generalization performance improves as a function of computational budget, model capacity, and data volume. The second concerns deep learning for actuarial work, where predictive modeling is predominantly tabular, the signal-to-noise ratio is often low, and interpretability and governance constraints shape feasible model classes and evaluation criteria.
3.1 Scaling Laws in Modern Deep Learning
3.1.1 Empirical Regularities and Power-Law Improvement
Transformer-based large language models (LLMs) have substantially advanced natural language processing and catalyzed renewed interest in empirical scaling behavior (Vaswani et al., 2017). A key finding in this domain has been the discovery of scaling laws that govern the performance of these models. These laws demonstrate that model performance can be predicted as a function of three principal factors: model size (number of parameters ), dataset size (measured in training tokens, or tabular examples in our setting), and computational resources (typically measured in FLOPs) (Kaplan et al., 2020).
Early systematic evidence across diverse tasks showed approximate power-law relationships between error and resources, implying that progress can often be forecast from smaller experiments (Hestness et al., 2017). These findings helped shift model development from architecture-centric trial-and-error to a more engineering-oriented perspective in which scale is treated as a first-class design variable. Specifically, the influential scaling law analysis of Kaplan et al. (2020) reports that cross-entropy test loss follows remarkably stable power laws across orders of magnitude in model parameters, training data tokens, and training compute. A typical univariate form is
with analogous expressions for and , where denotes an irreducible loss floor under the chosen data distribution and evaluation metric. Empirically, Kaplan et al. (2020) report remarkably stable power-law trends for cross-entropy test loss across orders of magnitude in parameters, tokens, and compute: , , and in their setting. These relationships support the use of scaling laws as predictive tools for estimating marginal returns to additional model capacity, data, or compute.
3.1.2 Compute-Optimal Training and Data-Parameter Balance
Subsequent work refined the interpretation of scaling laws by emphasizing compute-optimal training. Hoffmann et al. (2022) demonstrate that many pre-2022 flagship language models were undertrained (too few tokens per parameter) relative to their compute budgets, and that substantially better performance can be obtained by allocating compute to both parameters and data more evenly. Their analysis can be summarized by a bivariate scaling law of the form
where the constants are fit empirically and the exponents quantify the marginal returns to parameters and data (Hoffmann et al., 2022). This displayed equation follows the notation of Hoffmann et al. (2022); in our empirical sections we use indexed amplitudes such as , , and so that fitted constants are not confused with data size or parameter count. A central practical implication is that, for a fixed compute budget, there exists an efficient frontier for allocating resources between model size and training data volume, which can change recommended training recipes and deployment economics.
3.1.3 Estimating and Interpreting Scaling Laws
Because scaling studies require many training runs, a parallel line of work studies how to estimate scaling laws efficiently and robustly. Choshen et al. (2024) provide methodological guidance for fitting and validating scaling laws, including the use of intermediate checkpoints to improve estimation accuracy and the importance of accounting for variability across random seeds. They find that fitting to intermediate checkpoints during training runs substantially improves accuracy compared to using only fully trained models, and that estimates are generally most accurate when derived from models of similar sizes, though training multiple small models can sometimes provide better estimates than a single large one due to variance across seeds. These practices are directly relevant when scaling-law fits are used as decision tools for choosing architectures, data pipelines, or training budgets. In this work, we train all models five times and use the average predictions to evaluate losses and scaling laws.
3.1.4 Beyond Simple Power Laws: Regime Changes and Emergent Capabilities
While power laws offer strong first-order regularities, they do not preclude regime-dependent behavior. In supervised learning, “double descent” and related phenomena highlight that test error may be non-monotone in model capacity in finite-sample regimes (Belkin et al., 2019). More broadly, Caballero et al. (2022) formalize broken or piecewise scaling behavior in which different scaling regimes arise across ranges of compute or model size, motivating caution when extrapolating beyond observed scales.
A distinct debate concerns the apparent emergence of qualitative capabilities in LLMs. Wei et al. (2022) document “emergent abilities” on certain benchmarks as model scale increases, identifying capabilities that appear only after certain parameter thresholds are crossed. However, Schaeffer et al. (2023) argue that many apparent discontinuities are artifacts of metric choice and thresholded evaluation, and that alternative continuous metrics often reveal smoother trends. Together, these studies suggest that scaling relationships can be reliable in aggregate while still being sensitive to evaluation design, a point that becomes especially salient when translating scaling perspectives to tabular actuarial tasks where the signal-to-noise ratio is lower, the data are heterogeneous and many relatively powerful model forms are available.
The discovery of these scaling laws has fundamentally changed how researchers approach model development, enabling principled decisions about resource allocation and performance expectations. Rather than focusing solely on architectural innovations, researchers can now make data-driven decisions about whether to increase model size, gather more training data, or allocate additional computational resources based on quantifiable performance expectations. The strategic significance of scaling has been summarized in broader reflections that emphasize the long-run dominance of general methods that scale with compute, relative to methods that encode domain knowledge explicitly (Sutton, 2019). In actuarial contexts, this raises a tension between scale-driven performance gains and institutional requirements for interpretability, stability, and governance.
However, the empirical regularities above were established in high-signal, massive-data regimes with homogeneous tokenized inputs; the extent to which similar scaling behavior holds for noisy, heterogeneous, regulated actuarial tasks remains unclear, which we discuss next.
3.2 Deep Learning for Actuarial Work and Tabular Insurance Data
3.2.1 Tabular Learning and the Persistence of Tree-Based Methods
Most actuarial prediction problems, including pricing, lapse, fraud detection, and transaction-level reserving, can easily be structured as supervised learning on heterogeneous tabular features - see Richman (2021a) for some formulations of actuarial problems in this way. While traditional actuarial practice has relied primarily on Generalized Linear Models (GLMs) for pricing and chain-ladder or Bornhuetter-Ferguson methods for reserving, a growing body of research has explored more sophisticated approaches (Harris et al., 2024).
In the tabular machine learning setting, gradient-boosted decision trees (GBDTs), notably XG-Boost, LightGBM, and CatBoost, are strong and widely adopted baselines (Chen & Guestrin, 2016; Ke et al., 2017; Prokhorenkova et al., 2018). The continued competitiveness of tree ensembles has been documented in systematic benchmark studies. For “typical” medium-sized tabular datasets, Grinsztajn et al. (2022) find that tree-based methods often outperform standard neural networks, attributing the gap to differences in inductive biases (e.g., handling of uninformative features and irregular decision boundaries). Complementing this, McElfresh et al. (2023) provide a large-scale benchmark and conclude that performance differences are frequently modest and dataset-dependent, and that careful tuning and preprocessing can matter as much as algorithm choice.
These results are particularly relevant for insurance data, which often exhibits skewness, heavy tails, sparse categorical structure, and low signal-to-noise ratios (Richman, 2022; Wüthrich & Ziegel, 2023). Such properties can reduce the marginal gains from increasing model capacity, potentially pushing actuarial problems into regimes where classical or tree-based methods remain competitive.
A central practical challenge in actuarial modeling is the prevalence of many categorical covariates (e.g., occupation, industry codes, postcode, vehicle model). A foundational approach in tabular deep learning is the use of entity embeddings to learn dense representations of categories jointly with the predictive model (Guo & Berkhahn, 2016). Embeddings can improve statistical efficiency relative to one-hot encoding and enable neural models to share information across related categories. The first papers to implement entity embedding in actuarial modelling are Richman (2021a, 2021b) and Kuo (2019).
3.2.2 Tabular Transformers: Adapting Attention to Structured Features
Several architectures adapt Transformers to tabular data by treating features as tokens and learning feature interactions through self-attention. TabTransformer applies contextual attention to categorical variables to produce context-aware embeddings (Huang et al., 2020). FT-Transformer generalizes this approach by tokenizing both numerical and categorical features and applying Transformer blocks to the resulting sequence (Gorishniy et al., 2021). SAINT introduces additional mechanisms such as inter-sample attention and contrastive pretraining to improve generalization (Somepalli et al., 2021). Across benchmarks, these models can be competitive with GBDTs, but the literature does not identify a universally dominant deep architecture for tabular data (Grinsztajn et al., 2022; McElfresh et al., 2023). In insurance settings, attention can also be challenged by sparse categorical structure, weak spatial or sequential priors, and low signal-to-noise ratios, suggesting that additional inductive bias or auxiliary training signal may be needed for effective scaling (see Section 7.8).
3.2.3 Tabular Foundation Models and In-Context Learning
A recent direction aims to transfer the “foundation model” paradigm to tabular learning. Prior-data fitted networks (PFNs) pretrain Transformers on distributions over synthetic datasets to approximate Bayesian inference at test time (Müller et al., 2021). Building on this idea, TabPFN treats supervised classification on small tabular datasets as an in-context learning problem, processing the training set as context and producing predictions in a single forward pass (Hollmann et al., 2022). A subsequent study reports that tabular foundation models can yield highly accurate predictions in small-data regimes, effectively amortizing learning across many synthetic tasks (Hollmann et al., 2025). This line of work is notable for actuarial applications because many portfolios and niche coverages fall into the small-to-medium data regime; although much of the tabular foundation-model literature emphasizes classification and synthetic-task pretraining, the broader idea of amortizing learning across task distributions may be relevant when training data is scarce or fragmented.
3.2.4 When Tabular ML Meets Millions of Rows
A recurring challenge in tabular machine learning research is that many widely used academic benchmarks live in a small-to-medium data regime, often on the order of rows. This matters because, in small-data settings, performance comparisons can become dominated by variance across random seeds, hyperparameter sensitivity, and inductive biases that favor sample-efficient methods. Consequently, conclusions drawn from benchmark leaderboards do not always transfer to industrial settings where tabular datasets commonly contain millions of rows and where training compute becomes an explicit constraint.
This reflects benchmark design: many suites are built to make cross-validation and hyperparameter search feasible on modest hardware. For example, the OpenML-CC18 curated classification suite restricts datasets to between 500 and 100,000 observations (Bischl et al., 2021). Recent efforts continue this emphasis. TabArena, a newly introduced “living” benchmark for tabular
Table 1: Common tabular benchmarking regimes compared with the present scaling study.
| Benchmark | Typical training size | Prediction task and metric | Primary purpose |
|---|---|---|---|
| OpenML-CC18 (Bischl et al., 2021) | rows | Supervised classification; evaluation metric varies by task and study | Practical comparison across many public datasets |
| TabArena v0.1 (Erickson et al., 2025) | rows | IID classification and regression; leaderboard aggregation over dataset-specific metrics | Living leaderboard with reproducible model comparisons |
| This paper (motor ratemaking) | policy-period rows | Poisson claim frequency; held-out Poisson deviance | Scaling-law estimation and compute trade-offs in a motor pricing task |
ML, explicitly initializes its v0.1 leaderboard in a small-to-medium regime and leaves large-data settings to future versions (Erickson et al., 2025). These resources are valuable for standardization and reproducibility, but they also highlight a gap: the literature contains comparatively fewer systematic studies of tabular scaling behavior in the million-row regime, which is common in insurance applications and which is where we will illustrate our results. We summarize these figures in Table 1.
Here, we train on a single realistic ratemaking task with a full training set of approximately rows, using nested training fractions and the corresponding training sizes . Thus, our smallest training subset is larger than many of the benchmark datasets used to date in the tabular machine learning literature. This enables us to answer questions that are harder to investigate on small benchmarks: (i) whether losses improve smoothly with training size (rows) in the high- regime, (ii) how model-family rankings change as grows into the multi-million range, and (iii) whether compute-optimal model capacity increases with (as in compute-optimal scaling analyses for large Transformers). To summarize data scaling, we will fit power laws of the form
where is held-out deviance at training size , is an extrapolated empirical floor, captures the slope of improvement with additional data, and is an amplitude term measuring distance to the asymptote at finite .
3.2.5 Actuarial Applications: Pricing, Reserving, and Model Governance
Within actuarial science, the adoption of deep learning has been surveyed extensively by Richman (2021a, 2021b), who outlines practical heuristics for when deep models are likely to outperform generalized linear models and other classical baselines. A key theme is that deep learning becomes more attractive as data volume increases and as feature interactions and nonlinearities become more material, but this must be weighed against interpretability, calibration, and model risk management constraints (Richman, 2022). Such governance constraints are not abstract: in
The numerical value of depends on how is measured (e.g., raw rows vs. exposure), so we interpret primarily for relative comparisons within a fixed experimental protocol.
practice, actuaries and regulators often require stability under small data refreshes, monotonicity constraints for individual predictions, well-formed uncertainty quantification, and compliance with fairness and protected-class regulations.
Interpretability-oriented neural designs are therefore prominent in the actuarial literature. Local-GLMnet learns feature-dependent coefficients while preserving a GLM-like decomposition, aiming to bridge predictive performance and explanatory structure (Richman & Wüthrich, 2023). Post-hoc recalibration and reliability control have also been studied as mechanisms to stabilize predictions in low-signal settings; for example, Wüthrich and Ziegel (2023) discuss isotonic recalibration as a tool for improving probabilistic predictions.
Deep learning for claims reserving has developed in parallel, including neural methods that model loss development patterns and incorporate richer representations than classical triangles. Practical examples include neural reserving architectures proposed by Gabrielli et al. (2020) and sequence-based methods such as DeepTriangle (Kuo, 2019). These studies highlight that reserving performance can be sensitive to data granularity, temporal nonstationarity, and the availability of claim-level features, all of which complicate direct transfer of scaling insights from language modeling.
To our knowledge, there is limited actuarial work that directly frames model development through scaling-law lenses; one example is research from Richman (2021c), in the context of mortality modeling and forecasting. In that work, a single large and deep neural network was fit to national and sub-national mortality data for a large number of countries. The relationship between model performance and network width was investigated as the size and depth of the networks were varied. The results present intriguing evidence that increasing the number of parameters (through increasing the width of the network layers) leads to increased out-of-sample performance, but only up to a limit. Comparing this situation to Kaplan et al. (2020), who increase the amount of data concurrently with the number of parameters, the mortality study held data constant, possibly explaining why the widest network decreased in performance. This preliminary evidence suggests that scaling laws for large-scale actuarial models can be discovered, while also highlighting important domain-specific constraints.
Importantly, we must also mention that not all model classes can be used in every jurisdiction for practical pricing and ratemaking; in particular, in the United States, many state insurance regulators require models used for rating to be filed and large-scale deep learning (and other machine learning) models may not be acceptable to these regulators. Nonetheless, studying scaling laws remains valuable for several reasons: it informs model selection and capacity planning in jurisdictions where advanced models are permitted; it provides quantitative evidence that can shape evolving regulatory attitudes toward algorithmic pricing; and, even in constrained regulatory environments, understanding how performance scales with data volume can guide decisions about data collection, feature engineering, and the choice among permissible model classes. Finally, even if an insurer's rates are determined using simpler models, it can be useful to maintain internally models which can provide insight into the insurer's portfolio, even if these are not actually used for pricing.
3.2.6 Implications for Actuarial Scaling-Law Studies
The literature collectively suggests a fundamental mismatch between the regimes in which LLM scaling laws were established and typical actuarial settings. Several important distinctions war-rant careful investigation:
First, actuarial problems typically feature lower signal-to-noise ratios than language modeling tasks, as predicting infrequent insurance events like accidents involves substantial stochastic elements not present in next-token prediction for language. Second, actuarial data exhibits significant time trends and seasonality, while LLMs are usually trained on static corpora. Third, insurance datasets are dramatically smaller than those used for LLM training, both because each insurer has limited policyholders and because older data becomes less relevant for training actuarial models than for LLMs. Fourth, actuarial models must process heterogeneous input types requiring explicit variable selection, unlike the homogeneous token sequences processed by LLMs. Finally, traditional actuarial models employ relatively constrained parameter counts compared to the billions or trillions of parameters in modern LLMs.
These observations motivate an actuarial-specific study of scaling behavior: whether performance improves smoothly with model capacity and data volume , whether it exhibits regime changes or early saturation, and which architectural inductive biases (trees, feed-forward nets, tabular Transformers, or hybrid GLM-NN models) best translate additional scale into actuarily meaningful gains.
4 Data
Our scaling experiments use an anonymized motor insurance dataset contributed by a multinational insurer. The extract contains approximately 4.5 million policy-period records across multiple underwriting years and on the order of 60–70 raw rating-factor columns (plus split/sampling fields used for the scaling protocol). To respect commercial sensitivity, we report only aggregated summaries and anonymized marginal patterns. The data are entirely from the pre-COVID period, so the experiment does not mix pandemic-era frequency or severity effects into the scaling analysis; we cannot disclose more granular policy-year or evaluation-date information for confidentiality reasons.
For the frequency modeling we will perform here for each record , the response is the claim count (column no_clm) and the exposure offset is the earned exposure for each policy record, . We model using a Poisson likelihood with mean , where is the predicted claim rate per exposure-year.
The rating factors cover standard actuarial rating dimensions: policyholder and driver demographics (ages, gender, marital status), vehicle characteristics (age, body type, fuel type, power, insured amount), usage and geographic indicators, prior-insurance and claims history. We exclude a small number of extremely high-cardinality categorical fields (more than 100 distinct levels) so that embedding parameterization is controlled and does not dominate architecture comparisons; after this filter, most predictors are categorical with low to moderate cardinality (binary indicators up to roughly 75 levels), complemented by continuous variables such as ages, durations, and score-like fields. In line with common actuarial practice and to keep tokenization consistent across all model families, we discretize continuous covariates using quantile binning and treat the resulting bins as categorical indices. This avoids the additional modeling choices required for numerical embeddings and keeps our architecture comparisons focused on interaction modeling and scaling behavior. Of course, this choice is debatable and recent literature has focused on the importance of embedding continuous covariates appropriately, nonetheless, binning was selected as appropriate for the reasons given above.
We briefly summarize the key portfolio figures. Total exposure is approximately 1 million exposure-years, with about 240,000 claims, yielding an overall claim frequency of 0.240 claims per exposure-year. On a record basis, approximately 5% of policy-periods have a claim and 95% have none, highlighting the zero-inflated nature of frequency data in motor insurance. Exposure per record is monthly reflecting policy start and end dates within the observation window. The data include a 90/10 train-test split indicator and a pre-generated uniform variate used for nested subsampling in the scaling experiments.
The portfolio mix is dominated by comprehensive cover with smaller shares in other cover types. The extract spans multiple underwriting years, reducing the risk that a single-period idiosyncrasy drives the results. Mean driver age is in the middle ages and mean vehicle age is around 5 years, with both distributions right-skewed toward older ages. Vehicle power and sum-insured measures show long right tails, consistent with heterogeneous fleet composition.
Figure 3 provides anonymized one-way summaries of claim frequency (claims per exposure-year) across selected rating factors. Frequency declines monotonically with driver age band after age groups 25-34, with the highest rates among drivers under 35. A similar pattern appears for vehicle age, with newer vehicles showing higher frequency than older ones. Territorial effects are present but more moderate; the figure reports the ten largest territories. These marginal patterns are consistent with actuarial expectations and illustrate the level of risk heterogeneity that models must capture while remaining sufficiently aggregated to avoid revealing proprietary details.
4.1 Data Preparation
We apply minimal preprocessing to align the dataset with the Poisson frequency objective and to avoid leakage:
-
Removal of records with non-positive exposure (exp_odp1 ≤ 0), as these are likely prior period correction records.
-
Use of the set indicator to define a 90/10 IID train-test split.
-
Use of the computed uniform variate sample_unif to define nested training subsets at fractions , while keeping the full test set fixed.
-
Exclusion of categorical predictors with more than 100 distinct levels (extremely high-cardinality covariates), which would otherwise induce very large and sparse embedding tables and confound controlled capacity comparisons.
• Exclusion of split/sampling columns (set, sample_unif) from the covariate list.
- Treatment of unknown codes (e.g., negative “unknown” values in score-like fields) as distinct categories rather than imputing continuous values.
For model inputs, we discretize each continuous predictor into quantile bins computed on the training data and represent all predictors (categorical and binned continuous) using learned entity embeddings (Section 6.2). This aligns with traditional actuarial banding practice and standardizes the feature-tokenization layer across model families.
Claim frequency by driver age band

Claim frequency by vehicle age band

Claim frequency by territory

Figure 3: One-way claim frequency by selected rating factors (claims per exposure-year). Driver and vehicle age are grouped into actuarial bands; territorial categories are anonymized and ordered by exposure size.
The extract does not contain a sufficiently granular record-level timestamp for temporal validation. We therefore use the provided IID split. Temporal evaluation is treated as a limitation discussed in Section 8.2.
5 Experimental Methodology
To systematically investigate scaling laws in actuarial ratemaking models, we conducted a series of experiments designed to assess model performance across varying data volumes and model complexities. This section details our experimental design, sampling protocol, training procedure, and evaluation framework.
5.1 Data Processing and Sampling Strategy
We structured our experiments to evaluate model performance across different data regimes using nested training subsets. Let denote the pre-generated uniform variate (column sample_unif) for observation . For each training fraction , we train on the subset
and evaluate on the fixed held-out set . This design ensures that smaller training sets are strict subsets of larger ones, so changes in performance with primarily reflect the effect of additional data rather than resampling noise. Throughout the paper, denotes the nested training fraction used to construct the subset, while denotes the corresponding training size in policy-period rows. Scaling-law equations use (or ) as the row-count variable; tables and captions may display as the compact subset label.
We operationalize “data size” as the number of policy-period rows in . Because the nested subsets are defined by thresholding a pre-generated uniform variate, they are representative subsamples of the training set; in expectation, total exposure-years in scales linearly with , so scaling by exposure-years would primarily rescale the horizontal axis rather than change the qualitative regime comparisons.
For each training fraction, we first conduct a preliminary analysis to ensure the samples preserve the essential statistical properties of the full dataset:
where is the claim count and the earned exposure for observation . In practice we use as a sanity check that the nested subsets preserve the portfolio's aggregate frequency level, since the Poisson offset initialization and deviance comparisons are sensitive to large shifts in the base rate.
Model architecture details (including the shared feature-tokenization layer and the baseline GLM/FFN definitions) are presented in Section 6. In what follows we therefore focus on the training recipe, evaluation metric, and how we control for variance and tuning compute when fitting scaling relationships.
5.2 Training Methodology
We employed a comprehensive training strategy designed to maximize predictive performance while ensuring robustness. Models were trained using the Poisson deviance loss function, which is the canonical loss for count data:
where represents the observed claim count and the predicted count for observation . For , we use the standard convention that the log term is zero, i.e. (equivalently ), so the contribution reduces to .
The optimization procedure utilized AdamW (Adam with decoupled weight decay) (Loshchilov & Hutter, 2019; Kingma & Ba, 2015) with the following hyperparameters:
To prevent overfitting, we implemented several regularization techniques:
-
Dropout with rates specified in Table 3
-
Early stopping with a patience parameter of 10 epochs
-
Learning rate reduction on plateau with factor 0.9 and patience 5
-
Additional stabilizers where appropriate (e.g., normalization layers in FFN/Transformer variants)
For each configuration of model size and training fraction, we performed five independent training runs with different random initializations. This replication strategy provides robust estimates of model performance and quantifies the variance attributable to initialization conditions. Models were primarily trained on the Colab Research platform from Google, using A100 Graphical Processing Units (GPUs); the largest models are trained on Lambda Labs cloud platform using both GH200 and B200 GPUs. We were able to train all models on a single GPU; there was no need to split training across GPUs.
To avoid confounding scaling claims with “tuning budget,” we distinguish training compute from hyperparameter-search compute. In this paper, denotes a per-epoch training compute proxy (FLOPs/epoch) for a single trained model (one seed), estimated by profiling the training graph. Total training compute for a run is approximately (epochs trained), and the seed-averaged ensemble multiplies training compute by . For clarity, we write for the one-seed FLOPs/epoch proxy and for the effective per-epoch compute of the five-seed ensemble whose deviance is reported in the main results. Because we use a shared training schedule with early stopping, we treat FLOPs/epoch as the primary compute scale for controlled cross-family comparisons; estimating total training FLOPs would require recording per-run epoch counts. Compute spent on exploratory hyperparameter search, notebook iteration, and model development is not included in . Operationally, we reduce tuning confounds by fixing the hyperparameter configuration dictionaries upfront (these are shown in Appendix B) and reusing them across training fractions and random seeds rather than returning each setting. We describe this setup as fixed expert-selected recipe scaling: architecture-specific hyperparameters (including those introduced by our Transformer enhancements, such as the column-weight sparsity penalty and MoE routing settings) were set heuristically rather than optimized via a systematic hyperparameter search. The hyperparameter choices should therefore not be read as software defaults or as the outcome of a full tuning campaign; a broader search could improve absolute losses and shift some relative rankings. Thus, differences in scaling slopes primarily reflect differences in model family and capacity, not differences in per-run tuning effort.
5.3 Evaluation Framework
Our evaluation uses a single primary metric aligned with standard actuarial frequency modeling: Poisson deviance on the held-out test set (lower is better). For observed claim counts and predicted means , the deviance is
with the standard convention that when . The tables and figures report the mean deviance . For a fixed held-out test set and model with fitted log-likelihood ,
where is the saturated-model log-likelihood. Hence, for two models evaluated on the same test policies,
A decrease of in mean Poisson deviance is therefore an average held-out log-likelihood lift of nats per policy, i.e., units on the natural-logarithm scale. This likelihood identity is standard for exponential-family deviance losses and motivates using Poisson deviance both for model fitting and forecast evaluation in count-frequency problems (Wüthrich & Merz, 2023). We focus on frequency in this paper; extending the scaling study to severity and pure premium objectives is left to future work .
To assess scaling properties, we computed this metric across each combination of:
• Data amount (nested subset indexed by training fraction f, with scaling variable )
• Model configuration (architecture family and size)
• Train/test split
• Random seed (replication)
This comprehensive evaluation enables us to quantify the relationship between model performance, data volume, and model complexity.
By “heuristically” we mean that architecture-specific hyperparameters were selected from prior modelling experience and exploratory runs on small slices of the training data. Once selected, these recipes were fixed across training fractions and random seeds.
Since claim frequency is low, materially fewer observations are available for severity modeling, making it harder to demonstrate scaling laws across comparable ranges of parameters and compute.
5.4 Ensemble Methodology
To reduce variance and obtain stable scaling comparisons, we train each configuration (architecture family and size) with five independent random seeds at each training fraction f. At inference time, we average predictions across seeds. This is the actuarial seed-averaging procedure introduced by Richman and Wüthrich (2020) under the name nagging. Throughout the manuscript we use the descriptive term seed-averaged ensemble for the same procedure.
The ensemble prediction for observation i is computed as:
where is the predicted mean claim count from the r-th seed for the configuration trained at fraction f.
Ensemble predictions typically outperform individual models due to their ability to average out random initialization effects and reduce overfitting. This approach provides a more robust basis for evaluating scaling relationships.
Two distinct notions of “ensemble” appear in this paper. The seed-averaged ensemble above is a classical deep-ensemble-style technique: it trains independent replicas (different initializations and optimization noise) and averages their predictions. Separately, TabM and TabM-mini are within-model ensembles of K implicit submodels trained jointly with extensive weight sharing and lightweight adapters (Gorishniy et al., 2024). Because TabM is not equivalent to “train K independent MLPs and average”, its gains need not be dominated by variance reduction alone; the shared-weights parameterization can also change the bias/representation regime and the optimization dynamics. In the Results, we therefore complement scaling exponents with stability diagnostics and report both ensemble and mean single-seed scores (Table 11) to help distinguish improvements due to averaging from improvements due to architecture.
5.5 Scaling Law Analysis
To summarize scaling behavior in a way that is comparable across architectures, we fit power laws in the standard “irreducible loss + power-law” form. Let L denote test Poisson deviance. We first fit a compute-efficient frontier over all runs,
where is a training compute proxy and is the compute-scaling amplitude. In practice we estimate as training FLOPs per epoch by profiling the TensorFlow training graph (forward-pass float-ops at batch size 1, scaled by batch size and by a multiplier to approximate forward + backward + parameter update, then multiplied by steps per epoch). The one-seed proxy is ; because the plotted loss is the five-seed ensemble deviance, the compute frontier uses . We fit and by restricting to the Pareto set of runs that are not dominated in . Because we use early stopping, total training FLOPs differ from FLOPs/epoch by a factor equal to the number of epochs trained; throughout we therefore interpret as a per-epoch compute proxy. Using instead of would multiply every compute value by the same constant factor, so it would shift the fitted intercept but leave the compute-scaling exponent unchanged.
Given a shared fitted floor , we then fit data scaling by model family using best-of-size envelopes over training fractions (i.e., for each training fraction we take the minimum test deviance achieved by any configuration in that family, forming a piecewise “lower envelope” curve),
where is the number of training rows used in the nested subsample (Section 5.1). Finally, to quantify parameter scaling at full data we fit
on the full-data Pareto set, where is the number of trainable parameters and is the parameter-scaling amplitude. Using the same parameter profiler, we also report a decomposition into trainable embedding parameters (embedding tables, positional/CLS embeddings) and trainable non-embedding parameters (all remaining weights). All exponents are estimated by linear regression in log space after subtracting . The resulting fitted values are reported in Section 7.5.
6 Model Descriptions
This section describes the neural network model families evaluated. Besides describing standard baselines, we also discuss several adaptations of the Transformer architecture for tabular ratemaking. We follow a consistent notation and highlight only the architectural structure; full configuration tables appear in Appendix B. To reduce notation load, the body gives only the symbols needed for the modelling narrative; Appendix A.1 collects the notation, and Appendix B.2 records the component-level formulae. While we try to provide a stand-alone account of these models here, we also refer the reader to Richman et al. (2024) for a more detailed exposition of applying the Transformer architecture to tabular actuarial data.
A reading guide: the remainder of the Methodology is split into (i) the experimental protocol (this section) and (ii) the architectural definitions (Section 6 and Appendix B). Readers who are mainly interested in the empirical scaling curves can skip the mathematical model definitions and proceed directly to the Results (Section 7); Table 2 summarizes the distinguishing components of each family.
Shared setup: all neural models operate on the same tokenized tabular representation - each covariate is treated as a feature token via label encoding (categoricals) or quantile binning (continuous covariates), then mapped to a learned entity embedding - and are trained under an exposure-scaled Poisson objective so that the network predicts a log-rate which is multiplied by exposure at inference time.
We compare the following families and variants:
-
GLM: an exposure-scaled log-link baseline with an additive (linear) predictor over embedded feature levels; it provides an interpretable reference point and captures no learned interactions beyond the feature representation.
-
FFN: a feed-forward MLP on concatenated feature embeddings; it learns nonlinearities and cross-feature interactions through dense feature mixing, scaling primarily via embedding dimension and MLP depth/width.
-
TabM-mini: a parameter-efficient within-model ensemble (BatchEnsemble-style) that broadcasts each example to implicit members via lightweight rank-1 adapters, then applies a shared MLP backbone; predictions are averaged across members for variance reduction.
-
TabM: a richer TabM-style ensemble that extends TabM-mini with per-layer adapters, allowing the implicit members to diverge across depth while still sharing the expensive dense kernels.
-
Transformer (vanilla): a supervised tabular Transformer that treats covariates as tokens and uses self-attention to learn interactions explicitly across columns, with a single learned [CLS] token providing a pooled summary for prediction.
-
Transformer (MultiCLS): a vanilla Transformer augmented with learned [CLS] tokens; each CLS token acts as a pooling query over the covariate tokens, increasing pooled capacity and exposing as an explicit scaling knob.
-
Transformer (enhanced / head-fix): MultiCLS variants augmented with stabilizers (e.g., LayerScale, drop-path, attention temperature/bias and value gating) and value-side capacity mechanisms (head-fix-style value mixing and layer-wise embeddings) that improve trainability and let larger models use additional parameters effectively.
-
Transformer (TokenMoE): token-wise mixture-of-experts variants that route tokens through expert-specific capacity (in the value pathway), increasing conditional capacity with experts as a scaling knob and load-balancing regularization to prevent collapse.
-
Transformer (TokenMoE+SSL): TokenMoE augmented with a swap-style self-supervised auxiliary objective during training; the auxiliary head is disabled at inference but can improve stability and parameter scaling by providing an additional representation-learning signal.
-
Transformer+TabM-mini: a hybrid that uses a MultiCLS Transformer front-end to learn interactions and produce a pooled representation, then applies a TabM-mini ensemble head over that pooled vector to combine attention-based interaction learning with within-model ensembling.
Because vanilla supervised tabular Transformers show weak parameter scaling in our setting, we treat the Transformer family as a progression from a basic model to “scaling fixes” (MultiCLS pooling; stabilization and value-side capacity mechanisms such as head-fix and layer-wise embeddings; TokenMoE routing; and finally swap-style self-supervised learning). Section 7.2 summarizes how the Results mirror this progression.
6.1 Shared Notation and Exposure Scaling
Let denote the feature vector for policy , with categorical covariates and continuous covariates, . All models are trained for Poisson frequency with exposure scaling:
so that predicts a log-rate and is the earned exposure.
Table 2: Model families and distinguishing components.
| Family | Experiment identifiers | Core computation | Distinguishing mechanism / scaling knob |
|---|---|---|---|
| GLM | glm | Linear log-link model | Interpretable additive baseline; no learned interactions |
| FFN | ffn_* | MLP on flattened embeddings | Dense nonlinear feature mixing; scale via embedding dimension and MLP width/depth |
| TabM-mini | tabm_mini* | Single adapter broadcasts each row to K implicit members, followed by a shared MLP | Parameter-efficient within-model ensemble; scale via K and embedding dimension |
| TabM | tabm_* | BatchEnsemble-style adapters throughout dense blocks | Per-layer member-specific adapters with shared dense kernels; scale via K and width |
| Transformer (vanilla) | transformer_* | Self-attention over covariate tokens with CLS pooling | Learned cross-feature interactions; scale via d, heads, layers, and FFN dimension |
| Transformer (MultiCLS) | transformer_multicls* | Multiple CLS pooling queries over covariate tokens | Larger pooled representation; scale via plus depth/width |
| Transformer (enhanced/head-fix) | transformer_enhanced* | MultiCLS with stabilizers and value-capacity options | Column weighting, value mixing, sink tokens, LayerScale, drop-path, and attention bias/temperature |
| Transformer (TokenMoE) | transformer_tokenmoe* | Token-wise expert routing in the value pathway | Conditional capacity; scale via experts E with load balancing |
| Transformer (TokenMoE+SSL) | transformer_tokenmoe_ssl* | TokenMoE plus swap-style auxiliary task | Adds row-swap perturbations and swap prediction; scale via experts and auxiliary tokens |
| Transformer+TabM-mini | transformer_multicls_tabm_mini* | Transformer front-end followed by a TabM-mini ensemble head | Combines attention-based interactions with within-model averaging; scale via Transformer size and K |
6.2 Feature Engineering and Input Representation
All neural models in this paper operate on a unified categorical representation of the covariates. For each column , we map the raw value to a non-negative integer index
where index 0 is reserved for missing, “unknown”, or sentinel-coded values (when present). For categorical variables, is a label encoding of levels. For continuous variables, we discretize by quantile binning: letting denote empirical training quantile cutpoints, we map
so that the binned continuous variable is treated as categorical with non-missing levels plus the missing/sentinel level 0. This design aligns with common actuarial banding practice and avoids additional design choices required for numerical embeddings or separate continuous subnetworks.
Each column has a learned embedding matrix , where is the embedding dimension. The embedded token is
The embedding dimension is a model hyperparameter: for the GLM baseline we use , while for the FFN baseline sizes we scale as in Table 3 (and analogously for the Transformer and TabM families; Appendix B).
Collecting embeddings across columns yields a token matrix for row i,
Feed-forward models flatten into a vector, while Transformer-family models treat as a short sequence of feature tokens and learn interactions via attention.
6.3 GLM and FFN Baselines
The GLM baseline uses the exposure-scaled log-link with a linear predictor in the embedded covariates. Let denote the flattened embedding vector (Section 6.2). The GLM predicts
which reduces to a standard GLM when b = 1 and embeddings act as one-dimensional per-level coefficients.
The FFN generalizes this linear predictor by applying a stack of dense layers to :
with batch normalization (BN) (Ioffe & Szegedy, 2015) and dropout (Srivastava et al., 2014) between layers. We use the ReLU activation, , in our FFN baselines.
Batch normalization standardizes layer inputs using minibatch statistics, accelerating training and providing implicit regularization. Dropout randomly zeroes a fraction of activations during training, reducing co-adaptation of neurons and improving generalization. We initialize the output bias to the log of the portfolio base rate,
so that early in training the model behaves like an intercept-only frequency model and learns deviations from this baseline.
Table 3: FFN baseline configuration parameters.
| Config | Embedding dim | Units in hidden layers | Dropout | Params (order) |
|---|---|---|---|---|
| ffn_very_small | 5 | [16] | 0.01 | |
| ffn_small | 10 | [32, 16] | 0.02 | |
| ffn_medium | 15 | [64, 32] | 0.03 | |
| ffn_large | 20 | [128, 64, 32] | 0.04 | |
| ffn_very_large | 40 | [256, 128, 64] | 0.05 |
6.4 Transformer Architecture for Tabular Data
We now describe the Transformer model used in our scaling experiments. The reader should have the classical Transformer architecture in mind (Vaswani et al., 2017), but note that we adapt the encoder Transformer presented there to tabular inputs via a feature tokenizer, learned positional embeddings, and CLS tokens that summarize the entire covariate set; for a full exposition see Richman et al. (2024). The central motivation for using a Transformer in ratemaking is that attention layers allow covariate components to communicate with each other. One may think of each covariate token producing a query and a key; the attention mechanism then finds matches between queries and keys and uses these matches to pass signals forward. In motor pricing, for example, a driver age token may provide a key indicating higher risk for young drivers, while a vehicle power token may provide a query that “searches” for this age group, producing an interaction effect that increases expected frequency. Such interactions are fundamental in practice, but are costly to model explicitly in a GLM and can require substantial feature engineering.
Transformer models have been applied successfully to tabular data by embedding tabular columns into low-dimensional Euclidean vectors and treating the resulting set of embeddings as a short “sequence” (Huang et al., 2020; Gorishniy et al., 2021). In our setting is modest (dozens of covariates), so the quadratic attention cost in is negligible; the primary question becomes whether the architecture and training strategy can reliably extract signal in a low signal-to-noise actuarial regime.
6.4.1 Feature Tokenizer
Transformer-family models use the same feature engineering and tokenization described in Section 6.2: each covariate column is encoded to an integer index and mapped to a learned entity embedding (Guo & Berkhahn, 2016). The key difference from feed-forward baselines is that we keep the per-column embeddings as a short token sequence rather than flattening them immediately, enabling interaction learning via attention.
The exact embedding-table notation and parameter count are given once in Section 6.2 and summarized again in Appendix A.1. In the Transformer descriptions below, denotes the resulting raw token matrix for policy . We emphasize that this “tokenizer” step is the key bridge between tabular learning and sequence models: after tokenization, the model sees a short set of vectors in , one per covariate, and can therefore apply attention to learn interactions.
6.4.2 Positional Encoding
Attention layers do not have a natural notion of “position”, so we complement the raw tensor by a learned positional encoding (Vaswani et al., 2017). For tabular inputs, the covariate ordering is not temporal; nevertheless, we assign each covariate a stable index and learn a -dimensional embedding for that index. We use two equivalent fusion strategies across our model variants:
- Concatenated positional embeddings (baseline/multi-CLS). We concatenate positional and feature embeddings,
which provides each token with an explicit “identity” subvector for its column.
- Additive positional embeddings (head-fix/TokenMoE). We project positional embeddings to and add them to feature embeddings,
where is a learned projection (often the identity when ).
We denote by the resulting token dimension ( in the concatenation case and in the additive case). The positional embedding contributes trainable parameters. Both designs break permutation symmetry in the token set and allow the model to learn column-specific roles even if two covariates have similar marginal distributions.
6.4.3 CLS Tokens
We extend the input tensor by additional special tokens (CLS tokens; CLS stands for “classification”), inspired by the CLS mechanism introduced in BERT (Devlin et al., 2018). The main idea of a CLS token is that it learns to summarize all the information contained in in a lower-dimensional space that is calibrated to produce good regression estimates. In language models, CLS tokens are used to summarize information in a sequence for downstream tasks. In our tabular regression setting, CLS tokens play an analogous role: they provide dedicated slots into which the attention mechanism can write a compact summary of the entire covariate set. We append learned CLS tokens to the input sequence,
These tokens do not correspond to any observed covariate. Rather, they act as trainable global parameters that are updated by attention to reflect the current policy's covariate information. Their parameter contribution is and is listed with the component formulae in Appendix B.2. In all Transformer variants, only the final CLS token(s) are forwarded to the prediction head; the feature tokens are intermediate latent variables whose role is to communicate information to the CLS summaries through attention. When we obtain a multi-CLS Transformer; the pooling and readout of multiple CLS tokens is described in detail below.
6.4.4 Transformer Layer
We now describe a Transformer layer. For simplicity we start with one attention head. The query, key, and value projections are computed (after layer normalization) as
where is a smooth activation (GELU in our implementation). Attention weights are obtained by the softmax normalization
where is a learnable additive attention bias (a “soft mask”) and is a learnable temperature (a per-head generalization of the classical scaling). The output has the same shape as and can be viewed as an attention-weighted re-encoding of the original tokens. Importantly, the rows corresponding to CLS tokens now contain summaries of the full covariate set, because the CLS queries attend to all covariate keys.
For multi-head attention (MHA), we compute M independent heads and concatenate them, followed by an output projection:
This allows the model to represent different interaction patterns in different subspaces.
We then apply residual connections and a feed-forward block (with layer normalization), using the standard two-sublayer structure (attention residual, then FFN residual). Concretely,
The FFN uses a gated activation (SwiGLU) and dropout. Multi-head attention concatenates M heads and projects back to the token dimension. Appendix B.2 records the component-level formulae used across our variants.
6.4.5 Prediction Head
We extract the final CLS representation(s) and map them to a positive rate. For the single-CLS case ( ) we use a small head network g and set
For we use multi-CLS pooling and readout; see the next subsection. To improve optimization stability, the output bias is initialized to the logarithm of the portfolio base rate (the empirical mean frequency), so that early in training the model behaves like a mean model and learns deviations from this baseline.
6.4.6 Multi-CLS Pooling and Readout
Multi-CLS models generalize the single-CLS architecture, which is standard in BERT-style Transformer readout (Devlin et al., 2018) and in many tabular Transformer models (Gorishniy et al., 2021), by appending learned CLS tokens. These tokens act as multiple pooling queries: after the Transformer stack, each CLS token has attended to the feature tokens and thus contains a distinct summary of the policy's covariates and their learned interactions. This use of multiple learnable pooling tokens is conceptually related to pooling-by-attention in set models (Lee et al., 2019) and to latent-array summaries in Perceiver-style architectures (Jaegle et al., 2021), but is less common in tabular deep learning applications. We first considered using Multi-CLS models when it was observed that single CLS Transformers were not scaling; we hypothesized that this might be due to a single CLS token acting as a “bottleneck”.
We denote by
the matrix of final CLS states for observation i. In our experiments we use two closely related readout schemes.
First, we use a concatenated CLS readout. This is used in the baseline multi-CLS models (transformer_multicls_*) and in the Transformer+TabM-mini hybrids. We optionally layer-normalize and vectorize it to obtain a pooled vector
which is then mapped to a log-rate by a small head network g,
This design increases representation capacity linearly in without changing the number of feature tokens T.
Second, in the enhanced/head-fix and TokenMoE variants, we use an ensemble CLS readout: each CLS token is mapped to a rate by its own small head , and the resulting rates are averaged,
This can be interpreted as an internal ensemble with a shared interaction backbone and multiple specialized pooled summaries. Conceptually, multi-CLS differs from multi-head attention: multi-head attention creates multiple interaction channels within a layer, whereas multi-CLS creates multiple pooled summaries at the output of the interaction stack.
6.4.7 Rationale and Interpretation
The key inductive bias of the Transformer in this setting is that interactions between covariates are modeled directly by attention rather than being imposed by manual feature construction.
The CLS tokens provide a bottleneck representation: they compress the full set of covariate tokens into a fixed-dimensional vector (or a small set of vectors), which is then mapped to the scalar log-rate. This architecture supports both predictive accuracy and interpretability: the attention weights from CLS tokens to covariate tokens can be inspected to understand which covariates the model relied on for different policies, and multi-head attention provides multiple “views” on these interactions.
6.4.8 Relation to Prior Work and Novel Components
Transformers for tabular data have been studied extensively in recent years, typically by embedding each column into a shared vector space and treating columns as tokens. TabTransformer contextualizes categorical embeddings through self-attention (Huang et al., 2020), and FT-Transformer generalizes this idea by tokenizing both numerical and categorical features and applying standard Transformer blocks to the resulting token sequence (Gorishniy et al., 2021). Our baseline Transformer follows the FT-Transformer philosophy, but uses a simple quantile-binning tokenizer for continuous covariates (so that all columns are embedded uniformly) and is trained under an exposure-scaled Poisson objective, which is the natural likelihood for claim frequency in ratemaking.
The most novel architectural ingredient here, relative to common tabular Transformer baselines, is our systematic use of multi-CLS pooling. Standard Transformer readouts rely on a single CLS token (Devlin et al., 2018), and most tabular Transformer implementations similarly produce one pooled vector. Our multi-CLS design introduces multiple pooling queries and exposes as an explicit scaling knob, with two readout options (concatenation vs ensemble averaging). This is structurally related to the use of multiple learnable pooling seeds for set inputs (Lee et al., 2019) and to latent arrays in Perceiver models (Jaegle et al., 2021), but here it is applied as a simple and computationally cheap way to increase capacity and reduce variance in actuarial tabular prediction.
6.5 Transformer Enhancements
Building on the base Transformer, we introduce several stability and capacity enhancements. We motivate these modifications by a practical observation: tabular actuarial datasets often have limited effective sample size relative to model capacity (particularly after accounting for heterogeneity across rating factors), and optimization can be brittle. In this regime, architectural choices that are minor in NLP can materially affect convergence and generalization.
Our enhanced Transformer variants combine several stabilization and capacity mechanisms that have precedents in the broader Transformer literature but are not standard in tabular Transformers. Column weighting provides a differentiable feature-selection gate reminiscent of attentive masks in TabNet (Arik & Pfister, 2019); we also cite Holzmüller et al. (2024) with a similar mechanism. The stabilizers that we adapt are deep-Transformer training techniques including RMS normalization (Zhang & Sennrich, 2019), stochastic depth (drop-path) (Huang et al., 2016), and LayerScale (Touvron et al., 2021), as well as learned per-head temperature/bias and value gating. While the individual ingredients are known, our contribution is to integrate them into a coherent family of tabular ratemaking models and evaluate them across a wide range of model sizes and data regimes.
To reach substantially larger parameter counts, we also study TokenMoE models that introduce conditional computation via mixture-of-experts routing. MoE layers are a standard scaling mechanism in large language models (Shazeer et al., 2017; Fedus et al., 2021); our novelty is to adapt token-wise expert routing to tabular covariate tokens and to use the number of experts as a scaling dimension under fixed training budgets.
We include TabM/TabM-mini ensembles and a Transformer+TabM-mini hybrid (Gorishniy et al., 2024). These models implement parameter-efficient ensembling through shared weights with lightweight rank-1 adapters, akin to BatchEnsemble (Wen et al., 2020). Swap-style self-supervision is related in spirit to tabular SSL approaches such as SAINT (Somepalli et al., 2021), but uses a simple row-swap corruption-and-detection objective to provide an auxiliary training signal and improve stability when scaling up model capacity.
In what follows, we describe these enhancements.
6.5.1 Depth and Multi-head Attention
We scale the base Transformer by increasing depth , token dimension , number of heads , and FFN width. Multi-head self-attention allows the model to represent multiple interaction patterns in parallel, and deeper stacks iteratively refine these interaction summaries. Empirically, shallow single-head designs tend to either underfit (insufficient interaction capacity) or train unstably once regularization is relaxed; the modifications below improve the capacity-stability trade-off.
6.5.2 Column Weighting
We introduce a differentiable soft feature selection mechanism by learning a nonnegative weight per covariate token and scaling the corresponding token vector. Concretely, with trainable scalars we define
and optionally add a sparsity penalty proportional to . This reduces the tendency of attention to spread mass over many weakly informative covariates and is particularly useful in the presence of correlated or low-signal predictors.
6.5.3 Layer-wise Value Mixing
Enhanced variants optionally allocate extra capacity to the value pathway without widening the full attention width.
Recall that attention can be viewed as a two-stage operation: (i) queries and keys determine where information should be gathered from (an interaction pattern across covariates), while (ii) values determine what content is aggregated once that interaction pattern is chosen.
In tabular settings, where T is small but the signal-to-noise ratio can be low, we found it beneficial to increase the amount of value-side content available to each layer while keeping the query/key dimension fixed.
The original public source for this engineering idea is the Twitter/X discussion cited in @Grad62304977 and Jordan (2024); the corresponding public implementation is the modded-nanogpt GitHub repository (Jordan et al., 2024).
Concretely, enhanced/head-fix variants learn an extended embedding for each covariate token, split into a base stream and layer-wise value streams. At layer , the value tensor used by attention is a learned softmax mixture of current-layer values, cached previous-layer values, and projected layer- value embeddings. Intuitively, the embeddings provide each layer with fresh, layer-specific content tied to the original covariate identities, while the cached term provides a short residual memory in the value stream across depth. In our implementations, embeddings are set to zero for CLS tokens, so that any additional value-side capacity is anchored in the observed covariates rather than being injected directly into the pooled summary.
This value-pathway augmentation is conceptually related to recent work on value residual connections in Transformers (Zhou et al., 2024), which argues that carrying value information across depth can improve information flow in deep networks. Our setting and design differ in three important ways. First, we operate in tabular ratemaking with short token sequences, so key-value cache efficiency (a major motivation in language modelling) is not a bottleneck. Second, rather than sharing the first-layer value embedding across layers, we explicitly learn layer-indexed embeddings at the tokenizer level and inject them only through the value pathway via learned mixing weights. Third, in TokenMoE variants we make the stream itself conditionally parameterized by expert routing, turning value-side capacity into an explicit scaling knob aligned with our scaling-law experiments.
6.5.4 Stability Enhancements
Our enhanced Transformer variants combine several stabilizers that make deeper and wider models feasible: RMS normalization of (Zhang & Sennrich, 2019), learned per-head temperatures and additive attention biases, per-head gating of attended values, optional sink tokens that absorb global context, LayerScale on residual branches (Touvron et al., 2021), an FFN residual gate, and stochastic depth (drop-path) (Huang et al., 2016). The component-level formulae are recorded in Appendix B.2.
6.6 Token-wise Mixture-of-Experts (TokenMoE)
TokenMoE is a token-level conditional computation mechanism that increases capacity without uniformly increasing compute, inspired by sparsely-gated mixture-of-experts layers and Switch Transformers (Shazeer et al., 2017; Fedus et al., 2021). Let denote the number of experts. A lightweight router assigns each covariate token to expert-specific embedding increments, and these increments are mixed into the dense base stream and the layer-wise value stream. This allows scaling to much larger parameter counts while keeping per-token computation close to dense baselines; Appendix B.2 gives the routing equations and load-balancing loss.
To avoid expert collapse, we add a load-balancing penalty that encourages more uniform expert utilization. We also expose explicit scaling coefficients (e.g., moe_alpha_base and moe_alpha_v) that control the strength of the MoE residual contribution in different embedding streams, which improves stability.
The key point for our setting is that TokenMoE acts before the attention stack and operates directly on the token embedding streams. Each feature token carries two conceptually distinct pieces of information: a base embedding that governs attention interactions (via and the baseline values), and the layer-wise embeddings used in the value-mixing mechanism. TokenMoE routes and augments both components. The Transformer stack then runs on the augmented base stream, while each layer receives the matching augmented v slice as its value-embedding input. This “v-MoE” design increases conditional capacity in the value pathway while leaving the attention pattern itself relatively constrained, which is helpful when scaling to large parameter counts in noisy actuarial regimes.
6.6.1 Swap-style Self-supervision
Purely supervised training on insurance frequency can provide a relatively weak optimization signal for high-capacity Transformers: claims are sparse, and the supervised loss depends only on a scalar log-rate for each observation. As model size increases, this can lead to brittle optimization and to weak returns from parameter scaling unless the architecture receives additional inductive bias or auxiliary signal (Section 7.2).
To provide a stronger label-free training signal that is tailored to our tokenized tabular setting, we introduce a simple corruption-and-detection objective, related in spirit to tabular self-supervised learning methods such as SAINT (Somepalli et al., 2021) and to corruption-based objectives in representation learning more broadly (Devlin et al., 2018). Operationally, during training we independently swap selected covariate-token embeddings with embeddings from donor rows in the same minibatch. This preserves each column's marginal embedding distribution while breaking within-row coherence across columns. We append one learned swap CLS token per feature position and train a small auxiliary head to predict which positions were swapped, adding a weighted binary cross-entropy term to the supervised Poisson loss. Appendix B.2 records the exact perturbation, head definition, and loss.
Thus, we try to predict if, during training, one of the token rows was swapped for another. Unlike contrastive tabular SSL approaches that rely on paired augmentations and representation matching (Somepalli et al., 2021), our objective is a direct corruption detection task trained jointly with the supervised Poisson objective. Because swaps draw donors from the same minibatch and preserve feature position, the marginal distribution of each column is (approximately) unchanged, and the swap head must therefore leverage cross-feature consistency rather than trivial per-column cues. In our implementation the swap probability and loss weight correspond to the configuration keys swap_alpha and swap_loss_weight. At inference time the corruption is disabled and the swap head is ignored; predictions depend only on the supervised Poisson head, but benefit from representations shaped by the auxiliary task.
6.7 TabM and TabM-Mini Ensembles
TabM (Gorishniy et al., 2024) is a parameter-efficient ensembling strategy for tabular MLPs, closely related to BatchEnsemble (Wen et al., 2020). The key idea is to pack an ensemble of K implicit MLP submodels into a single network by sharing the main dense kernels while equipping each submodel with lightweight rank-1 adapters. For a dense layer with shared kernel , member uses per-member adapters and computes an “ensemble dense” transform
which is equivalent to using an implicitly modulated weight matrix . Adding ensemble members therefore incurs only parameters per layer (one row in each adapter matrix) rather than duplicating full kernels, while still enabling variance reduction by averaging predictions across submodels.
TabM-mini (Gorishniy et al., 2024) is the minimal version of this idea: it retains only the first multiplicative adapter and removes the remaining adapters (where is the number of linear blocks). Intuitively, this first adapter maps a shared input representation into slightly different representation spaces before the features are mixed by the first dense kernel, after which a shared MLP backbone is applied memberwise. TabM restores per-layer adapters throughout the backbone but uses a “better initialization”: all multiplicative adapters beyond the first are initialized to 1, so the model starts by behaving like TabM-mini and can gradually grow additional expressivity during training (Gorishniy et al., 2024).
In our implementation, we broadcast each example across submodels (shared training batches) and apply ReLU non-linearities in the MLP backbone. We train with a memberwise Poisson negative log-likelihood on , and at inference average the submodel rates before multiplying by exposure. Finally, Transformer-plus-TabM-mini hybrids use a multi-CLS Transformer front-end to compute a pooled representation and then replicate it across members via the TabM-mini adapter, combining attention-based interaction learning with within-model ensemble averaging.
7 Results
7.1 Experimental protocol and metric
We evaluate models on a large-scale insurance frequency prediction task with a Poisson objective. All models predict a non-negative claim count rate which is multiplied by exposure at inference time. We report Poisson deviance on a held-out test set (lower is better). To study data scaling, we train on fractions of the available training rows, corresponding to approximately examples. Unless stated otherwise, each configuration is trained with 5 random seeds and we report the seed-averaged ensemble score, defined as averaging predictions across seeds at inference time (Section 7.9).
7.2 Results roadmap: from baselines to scaling fixes
The results are organized to mirror the modeling development narrative. We begin with classical and MLP baselines (GLM and FFN), then evaluate supervised tabular Transformers and diagnose their weak scaling in this regime, and then progressively add Transformer modifications (MultiCLS pooling; stabilization and value-side capacity mechanisms such as head-fix, layer-wise v embeddings, and v-MoE; and TokenMoE routing). We then introduce the swap-style self-supervised objective (SSL), which provides a qualitatively different training signal and improves Transformer scaling. Finally, we evaluate TabM and TabM-mini, and a Transformer+TabM hybrid that transfers TabM-style variance reduction and adaptation mechanisms into the Transformer pipeline.
To make the role of model size explicit (beyond best-of-family envelopes), Figure 4 plots seed-averaged ensemble test deviance across training fractions for the full size ladders within each major family, and Tables 24–26 provide the corresponding numeric values. This view highlights five qualitative facts that frame the remainder of the Results.
First, GLMs remain strong and stable throughout, but larger FFNs only become favorable as increases: at small fractions the smallest FFNs are best, while at larger fractions the optimum shifts to the largest FFN (Figure 4, top-left), consistent with a small-data trap. Second, purely supervised Transformers exhibit weak parameter scaling: increasing size yields only marginal improvements, and the best size is not consistently the largest (Figure 4, top-middle). Third, MultiCLS pooling and stabilization/value-side capacity mechanisms (e.g., head-fix with layer-wise v embeddings) provide modest improvements over the vanilla Transformer but do not fundamentally change the scaling picture (Figure 4, top-right). Fourth, TokenMoE improves monotonicity with size but still yields small absolute gains under a purely supervised objective; adding swap-style self-supervision (TokenMoE+SSL) produces a clearer improvement at larger and yields the best Transformer-family full-data result (Figure 4, bottom-middle). The TokenMoE+SSL configurations differ from the TokenMoE ladder in width and depth schedule (Appendix B), so we interpret the comparison as recipe-family evidence; a fixed-architecture auxiliary-loss ablation remains outside the present experiment. Fifth, TabM-style models scale most strongly with data and capacity: the compute-optimal configuration shifts to larger TabM/TabM-mini variants as grows, and the largest TabM-mini extensions achieve the best full-data performance overall (Figure 4, bottom-right; Table 4). Concretely, within the standard TabM size ladder the best configuration shifts from tabm_small at 5%-25% to tabm_large at 50% and tabm_xlarge at 75%-100% (Table 26).
For full results by model family, see B.5.
7.3 Overall performance and scaling with data
Table 4 summarizes test Poisson deviance as a function of training fraction. For model families, we report the best-of-size envelope within the main sweep of configurations trained at all fractions (i.e., excluding full-data-only variants). Here, the size ladder for a family is the fixed set of discrete capacity settings we sweep (e.g., tiny/small/medium/large), and the envelope is the pointwise minimum test deviance across this ladder at each training fraction. We additionally report a small set of full-data-only runs that extend the largest configurations (notably, TokenMoE+SSL xlarge and TabM-mini xlarge variants). This envelope view is the basis for the scaling-law fits in Section 7.5 and for the crossover and robustness diagnostics below. While these absolute improvements are numerically modest (e.g., 0.29200 → 0.28885 is a 0.00315 deviance reduction, about 1.1% relative), the full-data GLM-versus-TabM/TabM-mini improvements are consistent across the repeated seeds; smaller family crossover gaps require the seed-level uncertainty check reported below.
7.3.1 Crossover behavior (small-N vs large-N)
A notable crossover occurs around the mid-data regime:
• At 5% to 25%, the lowest seed-averaged ensemble deviances in the main-sweep envelope come from Transformer+TabM, indicating that TabM-style adaptation inside the transformer improves sample-efficiency in these runs.
• At 50%, a TabM variant is numerically best on the seed-averaged ensemble envelope, but
Size-by-fraction scaling (seed-averaged ensemble test Poisson deviance)

Figure 4: Size-by-fraction scaling for the main model families (seed-averaged ensemble test Poisson deviance; lower is better). This figure makes explicit when larger models help (or hurt) as training data increases, complementing the best-of-family envelope summary in Table 4.
| Family (best-of-size) | 5% | 10% | 25% | 50% | 75% | 100% |
|---|---|---|---|---|---|---|
| GLM | 0.29343 | 0.29284 | 0.29236 | 0.29212 | 0.29204 | 0.29200 |
| FFN (envelope) | 0.29424 | 0.29267 | 0.29166 | 0.29118 | 0.29086 | 0.29058 |
| Vanilla transformer (envelope) | 0.29340 | 0.29274 | 0.29166 | 0.29122 | 0.29100 | 0.29085 |
| MultiCLS transformer (envelope) | 0.29321 | 0.29232 | 0.29168 | 0.29120 | 0.29089 | 0.29078 |
| Transformer+TabM (envelope) | 0.29282 | 0.29217 | 0.29147 | 0.29108 | 0.29069 | 0.29056 |
| TokenMoE transformer (envelope) | 0.29350 | 0.29263 | 0.29186 | 0.29126 | 0.29097 | 0.29074 |
| TokenMoE+SSL (envelope) | 0.29332 | 0.29263 | 0.29186 | 0.29129 | 0.29087 | 0.29036 |
| TabM / TabM-mini (envelope) | 0.29380 | 0.29252 | 0.29163 | 0.29104 | 0.29021 | 0.28984 |
| TokenMoE+SSL (xlarge, full-data only) | - | - | - | - | - | 0.29027 |
| TabM-mini (xlarge-2, full-data only) | - | - | - | - | - | 0.28903 |
| TabM-mini (gigantic, full-data only) | - | - | - | - | - | 0.28885 |
Table 4: Test Poisson deviance (lower is better) as a function of training fraction. For families we report the best configuration within the main sweep (trained at all fractions) at each fraction. Bold indicates the best value at each training fraction (including full-data-only extensions where present). The final rows highlight selected full-data-only runs, including the best transformer-family TokenMoE+SSL xlarge variant and the largest TabM-mini variants.
the gap is too small to treat as a stable crossover. At 75% and 100%, TabM variants have stronger seed-level support and the gap widens with scale.
This is consistent with the qualitative observation that a purely supervised transformer objective underutilizes extra capacity, while architectures or objectives that enforce robustness to feature transformations unlock better scaling.
7.3.2 Crossover magnitudes relative to seed variability
Because deviance differences between strong models can be small, it is useful to compare crossover gaps to training variance. Table 6 reports the difference between the best and second-best main-sweep family envelopes at each fraction (Table 4), along with a seed-level bootstrap interval for the paired repetition-level gap. For each fraction, we take the two configurations defining the ensemble envelope gap, compute the five paired single-seed differences (runner-up minus winner, matched by repetition index), and bootstrap the mean of those five differences using 50,000 nonparametric bootstrap resamples. This interval quantifies training-run variability in the existing repeated experiments; it is not an observation-level bootstrap over individual policies. The crossover at 50% should not be over-interpreted: the ensemble gap is only 0.00004, and the paired single-seed differences actually favor Transformer+TabM rather than TabM. At larger fractions (75% and 100%), the seed-level intervals are positive, supporting the qualitative conclusion that TabM is the better-supported large-data leader in this experiment. More broadly, the ensemble gains in Table 11 and Figure 11 are often of similar magnitude to small-N crossover gaps, suggesting that under data scarcity variance reduction (small ensembles) can be a more effective use of compute than increasing model size.
| Data regime | Fractions (N range) | Numerical leader | Interpretation |
|---|---|---|---|
| Small-N | 5%-25% (~0.2M–1.0M) | Transformer+TabM | Better sample efficiency (vertical shift / constant-factor gain). |
| Mid-N | 50% (~2.0M) | TabM (marginal) | Crossover point; gaps are within seed variability. |
| Large-N | 75%-100% (~3.0M–4.0M) | TabM | Stronger scaling regime (slope) and increasing gap. |
Table 5: Numerical regime summary from the main-sweep envelopes (Table 4). Small-N leaders primarily reflect sample-efficiency improvements, while large-N leaders reflect stronger scaling with data and capacity.
| f | Best | Runner-up | Ens. gap | Mean seed gap | 95% seed-bootstrap CI | Seeds |
|---|---|---|---|---|---|---|
| 5% | Transformer+TabM | MultiCLS transformer | 0.00039 | +0.00258 | [+0.00204, +0.00340] | 5/5 |
| 10% | Transformer+TabM | MultiCLS transformer | 0.00016 | +0.00111 | [+0.00094, +0.00130] | 5/5 |
| 25% | Transformer+TabM | TabM | 0.00016 | +0.00034 | [+0.00018, +0.00047] | 5/5 |
| 50% | TabM | Transformer+TabM | 0.00004 | -0.00027 | [-0.00057, -0.00005] | 0/5 |
| 75% | TabM | Transformer+TabM | 0.00048 | +0.00029 | [+0.00012, +0.00046] | 5/5 |
| 100% | TabM | TokenMoE+SSL | 0.00053 | +0.00112 | [+0.00098, +0.00126] | 5/5 |
Table 6: Crossover magnitudes with seed-level bootstrap uncertainty, computed from main-sweep envelopes (Table 4). Ens. gap is the runner-up ensemble deviance minus the best ensemble deviance (positive favors the reported ensemble leader). Mean seed gap and the 95% bootstrap interval are computed from five paired single-seed differences between the same two underlying configurations, using 50,000 nonparametric bootstrap resamples. The final column counts how many of the five paired seed differences favor the reported ensemble leader.
7.4 Compute and parameter efficiency at full data
To contextualize scaling in terms of resources, Table 7 reports parameter count and approximate training FLOPs per epoch for representative full-data runs. FLOPs/epoch is reported per trained model (one seed); since reported performance throughout uses the five-seed seed-averaged ensemble, the total training compute behind each ensemble point is approximately 5× the per-run FLOPs/epoch. TabM achieves the best deviance but requires higher compute. TokenMoE+SSL improves transformer scaling and reaches the best transformer-family score, but remains behind large TabM-mini runs.
To make the “optimal frontier” view explicit in parameter space, Figure 6 plots the global full-data Pareto frontier of test deviance versus trainable parameters. At small parameter counts the GLM is compute-efficient; in the mid-range the frontier includes FFNs, TokenMoE, and the Transformer+TabM hybrid; and at large parameter counts the observed frontier is occupied by TabM/TabM-mini configurations.

Figure 5: Compute-performance trade-off across all runs. The x-axis is , the effective per-epoch compute proxy for the five independently trained seeds whose averaged predictions produce the reported ensemble deviance; the y-axis is seed-averaged ensemble test deviance. Each point represents one model configuration. Grey points show all runs and the black curve traces the non-dominated (Pareto) compute frontier. The dashed line shows the fitted Kaplan-style power law .

Figure 6: Parameter-performance trade-off at full data (seed-averaged ensemble test deviance). Grey points show all runs and the black curve traces the non-dominated (global Pareto) frontier in . Frontier points are colored by family.
| Model (full data) | Params (M) | FLOPs/epoch (; one seed) | PoisDev |
|---|---|---|---|
| GLM | 0.0006 | 0.29200 | |
| FFN (very large) | 0.648 | 0.29058 | |
| Vanilla transformer (large) | 0.507 | 0.29094 | |
| TokenMoE transformer (large) | 1.081 | 0.29074 | |
| TokenMoE+SSL transformer (xlarge) | 4.082 | 0.29027 | |
| Transformer+TabM (multicl+sTabM-mini, medium) | 0.293 | 0.29056 | |
| TabM (xlarge) | 2.962 | 0.28984 | |
| TabM-mini (xlarge-2) | 8.246 | 0.28903 | |
| TabM-mini (xlarge-3, gigantic) | 31.784 | 0.28885 |
Table 7: Full-data resource summary for representative models. Params and FLOPs/epoch are approximate and computed from the training graph per trained model (one seed). PoisDev is the five-seed seed-averaged ensemble test deviance. For comparisons that account for the training cost of ensembling, use for the ensemble points; this constant factor does not affect fitted exponents. FLOPs are shown in scientific notation to keep the small GLM and large neural configurations readable on the same scale. The largest TabM-mini run is the strongest model overall, but also the most compute-intensive.
7.5 Kaplan-style and Chinchilla-style scaling fits
Figure 7 summarizes our scaling-law fits in the style of Kaplan et al. and our compute-optimal discussion in the style of Chinchilla. We fit standard “power law plus floor” relationships:
where is a fitted performance floor and is the scaling exponent (a straight-line slope in log-log space after subtracting ). Throughout, we distinguish three scaling questions and their corresponding exponents:
-
Data scaling (): , where is the number of training rows. Larger means faster improvement with more data (doubling multiplies by ).
-
Parameter scaling (): at fixed data, where is the number of trainable parameters. Larger means added capacity converts more reliably into generalization gains.
-
Compute scaling (): along a compute-efficient frontier, where is an effective per-epoch compute proxy.
We fit a compute frontier over all runs and adopt the same fitted floor across subsequent fits. Why these exponents matter: they separate “more data helps” () from “more parameters help” (), and they determine compute-optimal allocation rules when both can be increased under a compute budget (Section 7.6).
Compute scaling (global frontier)

Data scaling by family (best-achieved envelopes)
Parameter scaling at full data (within-family Pareto points)

Figure 7: Kaplan-style scaling fits. Top: compute-efficient frontier fit , where is the effective per-epoch compute proxy matching the five-seed ensemble deviance. Middle: best-of-family data scaling fits (including full-data-only extensions when available). Bottom: parameter scaling at full data using within-family parameter-loss Pareto points, fit as . The strongest exponents are consistently observed for TabM.
7.6 Compute-optimality and the “big model” intuition
In compute-efficient scaling analyses of large Transformers, Kaplan et al. (2020) emphasize the compute-optimal frontier: under a fixed compute budget, it can be efficient to train larger models on relatively less data and/or stop early, a point they summarize succinctly as “big models may be more important than big data.” Our experiment does not implement a full fixed-compute training optimization (we primarily measure a per-epoch compute proxy and use early stopping rather than sweeping total training FLOPs), but our results nonetheless allow us to evaluate a closely related question: when we spend more per-epoch compute at a fixed data fraction, does the compute-efficient frontier shift toward larger models?
Empirically, the answer depends on the model family and data regime. Along the global compute frontier (Figure 7, top), the compute-efficient set transitions from GLMs at extremely low compute to neural models (FFNs) and then to TabM/TabM-mini variants at the highest compute levels, indicating that (in the multi-million-row regime) the best attainable deviance at higher compute is obtained by moving to higher-capacity non-linear architectures rather than by further refining small models.
In the smallest-data regime, we observe a family-dependent version of the “big model” effect. For the Transformer+TabM hybrid, increasing model size improves test deviance even at 5%-10% of the training rows (Table 25), and the hybrid occupies the compute frontier at these fractions. In contrast, for FFNs and TabM/TabM-mini, increasing size at 5% can hurt (Table 24; Table 26), consistent with the negative/near-zero effective low-N parameter sensitivity in Figure 10 (right). In the data-scarce regime, bigger models are compute-efficient mainly when the architecture also improves sample efficiency and/or reduces optimization variance (here, the Transformer+TabM hybrid, and at larger N TokenMoE+SSL).
Finally, in the large-N regime, TabM exhibits much stronger parameter scaling than supervised Transformers (Table 9), and the compute-optimal size within the TabM ladder shifts upward with N (Table 26; Figure 4), aligning more closely with the Kaplan-style intuition that the compute-efficient frontier increasingly favors larger-capacity models once sufficient data are available.
7.6.1 Compute scaling (Kaplan-style)
Along the compute-efficient frontier, test deviance follows a power law:
with and (Figure 7, top; on ). Because is small, compute returns are slow: large multiplicative increases in training compute are required to produce visible absolute deviance gains. In our experiment, the compute-efficient frontier is occupied by GLMs at low compute, transitions to FFNs, and then transitions to TabM/TabM-mini variants at the highest compute levels (Figure 7, top).
7.6.2 Data scaling by family
For each family, we fit
Using the main-sweep envelopes in Table 4, Table 8 reports the fitted exponents and simple robustness diagnostics (piecewise fits and leave-one-fraction-out ranges). This quantifies the
| Family | LOO range | |||
|---|---|---|---|---|
| GLM | 0.091 | 0.122 | 0.041 | [0.075, 0.098] |
| FFN | 0.246 | 0.295 | 0.253 | [0.217, 0.256] |
| Vanilla transformer | 0.194 | 0.218 | 0.153 | [0.189, 0.199] |
| MultiCLS transformer | 0.182 | 0.192 | 0.178 | [0.171, 0.187] |
| Transformer+TabM | 0.183 | 0.182 | 0.229 | [0.180, 0.186] |
| TokenMoE | 0.202 | 0.198 | 0.215 | [0.200, 0.205] |
| TokenMoE+SSL | 0.220 | 0.179 | 0.398 | [0.197, 0.238] |
| TabM / TabM-mini | 0.309 | 0.259 | 0.601 | [0.283, 0.323] |
Table 8: Robustness diagnostics for fitted data-scaling exponents using the main-sweep family envelopes in Table 4 and a shared . fits only the first three fractions (5%, 10%, 25%), while fits only the last three fractions (50%, 75%, 100%). LOO is the leave-one-fraction-out range over six fits.
core empirical finding: TabM improves faster with data than supervised transformers. On the main sweep, supervised Transformers exhibit non-trivial data scaling (–0.19), indicating clear improvement with more data, but TabM-style models improve faster and achieve lower asymptotic deviance at full data. Moreover, the full-data-only TabM-mini extensions (Table 4) further lower deviance; if we include the best full-data TabM-mini point in the best-achieved envelope (as visualized in Figure 7, middle), the fitted exponent increases to and the log-log fit quality decreases (about ), consistent with capacity crossovers and piecewise scaling rather than a single universal regime.
7.6.3 Parameter scaling at fixed (full) data
On the full-data Pareto set, we fit
and report the fitted exponents in Table 9. The very small for vanilla Transformers and Token-MoE matches the observed “weak scaling” when increasing Transformer size without additional inductive bias or auxiliary training signal, while TokenMoE+SSL and TabM show markedly stronger parameter scaling.
This embedding/backbone decomposition is descriptive rather than causal. We include it because scaling-law studies commonly make parameter-accounting choices explicit, especially when some parameters belong to input embeddings and others belong to the model body (Kaplan et al., 2020; Hoffmann et al., 2022). In our experiment, and are not independently randomized; both are induced by the preset size ladders for each architecture family. The separate exponents should therefore be read as diagnostics of where parameters reside along those ladders, not as evidence that moving a parameter from embeddings to the backbone would by itself change generalization.
The embedding/non-embedding split is especially relevant for tabular models because the definition of “model size” depends on feature tokenization and categorical cardinalities. On the full-data Pareto points used for Table 9, TabM is strongly backbone-dominated: only about 0.8%–8.3% of trainable parameters are embeddings (median 2.6%). In contrast, TokenMoE
| Family | |||
|---|---|---|---|
| FFN | 0.028 | 0.063 | 0.026 |
| Vanilla transformer | 0.025 | 0.060 | 0.020 |
| MultiCLS transformer | 0.037 | 0.089 | 0.029 |
| Transformer+TabM | 0.044 | 0.102 | 0.040 |
| TokenMoE | 0.008 | 0.008 | 0.007 |
| TokenMoE+SSL | 0.055 | 0.053 | 0.058 |
| TabM / TabM-mini | 0.148 | 0.249 | 0.146 |
Table 9: Full-data parameter scaling exponents on the full-data Pareto set, using a shared . We report scaling with total trainable parameters as well as the decomposition into trainable embedding parameters and trainable non-embedding parameters . The decomposition should be interpreted descriptively, since and co-vary across the preset model sizes.
and TokenMoE+SSL are embedding-dominated: roughly 66%–91% of trainable parameters are embeddings (medians ~74% and ~86%, respectively), reflecting that in our Transformer implementations most parameters arise from the per-feature embedding tables rather than the attention blocks. FFNs and the baseline Transformer families lie between these extremes (roughly 3%–52% embedding share across their Pareto points).
This decomposition helps interpret why “Transformer scaling” is weak in our purely supervised setting. TokenMoE without SSL exhibits essentially flat parameter scaling () even though its parameter count is largely embedding-based: simply increasing embedding capacity does not translate into lower deviance unless the architecture and training objective can reliably convert those representations into interaction signal. By contrast, TokenMoE+SSL shows materially larger exponents for both embedding and non-embedding subsets (, ), consistent with the view that the auxiliary swap task improves optimization and representation learning throughout the model. TabM shows the strongest parameter scaling overall (), and because embeddings are a small share of its parameters, is close to , suggesting that its gains are primarily driven by scaling the non-embedding backbone and its lightweight ensemble adapters rather than by enlarging embedding tables.
7.6.4 TabM exhibits a different scaling law than independent MLP ensembles
A natural hypothesis is that TabM’s advantage is primarily an ensembling effect: if TabM behaved like “ good FFNs averaged”, improvements over a single FFN should be dominated by variance reduction, and the data-scaling slope should broadly match that of independent MLP ensembles. Our results do not support this simple explanation. TabM has the steepest data scaling exponent ( on the main sweep and when including the largest full-data TabM-mini extension; Table 8), and it converts additional parameters into generalization gains far more effectively than FFNs and supervised Transformers ( versus and ; Table 9). Moreover, the gains from seed-averaging are comparatively small for TabM-style models (average gain 0.000360) relative to supervised attention-based models (0.001003 for vanilla Transformers; Figure 11), and at full data the mean single-seed TabM scores remain substantially better than the mean single-seed FFN scores (Table 11). Taken together, these facts indicate that TabM occupies a different scaling regime in this actuarial tabular setting: its improvements with and are not well explained by classic deep-ensemble variance averaging alone.
Mechanistically, this is consistent with TabM's design as a jointly trained, weight-sharing ensemble with lightweight adapters (Gorishniy et al., 2024). In particular, several structural features plausibly contribute to its stronger scaling:
-
Joint training of implicit submodels: all members update a shared backbone in a single optimization run, so the learned representation is shaped by multiple slightly different “views” of the data rather than by one model trajectory.
-
Weight sharing with lightweight adapters: shared kernels act as regularization while per-member adapters induce structured diversity that the mean prediction can exploit.
-
First-adapter tilting (TabM-mini): the initial non-shared adapter maps inputs into different representation spaces before feature mixing, improving sample efficiency in large- regimes.
-
Improved width utilization and smoother optimization: gradients to shared weights aggregate across members, which can behave like a larger effective batch for the backbone and reduce wasted capacity.
A useful direction for future work is to isolate these effects via matched- comparisons to independent deep ensembles and TabM ablations (e.g., TabM vs TabM-mini and adapter-initialization variants), and by tracking per-member versus mean-prediction losses across .
7.6.5 Chinchilla-style compute-optimal implication
Assuming compute scales approximately as , and the loss decomposes into independent power laws in and , the compute-optimal trade-off obeys and equivalently and . Appendix C gives the short derivation and notation translation from the original paper to our notation for this allocation rule. This is a per-epoch approximation: with early stopping, realized total training compute is better written as , so an exact stochastic-stopping optimum would require modelling the stopping epoch as part of the scaling law. Intuitively, and quantify diminishing returns: falls as when increasing data at fixed capacity, and as when increasing capacity at fixed data. The ratio therefore summarizes the compute-optimal data-to-parameter growth rule: when , the compute-optimal trajectory grows parameters faster than data (since increases sublinearly in ), while larger implies that data must grow more aggressively with parameters to remain compute-optimal. Using together with the best-achieved TabM data exponent (including the full-data TabM-mini extension, ) gives for TabM (so and ), while transformers and FFNs yield ratios near , suggesting that (within this experimental regime) TabM benefits from joint increases in both data and parameters more than transformers do. Because TabM is backbone-dominated, this conclusion is essentially unchanged if we replace by (Table 9); for embedding-dominated Transformer variants, remains small without SSL, so larger attention backbones alone do not materially change the compute-optimal trade-off in our setting.
| Study | Domain/task | Metric | α (data) | β (params) | γ (compute) | β/α | Notes |
|---|---|---|---|---|---|---|---|
| Kaplan et al. (2020) | Language modelling (LLM scaling) | Cross-entropy | 0.095 | 0.076 | 0.050 | 0.80 | Token ratio decreases with under compute-optimal allocation. |
| Hoffmann et al. (2022) | Compute-optimal LLMs (Chinchilla) | Cross-entropy | - | - | - | ≈ 1 | Compute-optimal training uses much more data; empirically with tokens/parameter. |
| This paper (vanilla transformer) | Motor frequency (tabular) | Poisson deviance | 0.194 | 0.025 | 0.0575 | 0.13 | Best-of-size envelope in Table 4. |
| This paper (TokenMoE+SSL) | Motor frequency (tabular) | Poisson deviance | 0.220 | 0.055 | 0.0575 | 0.25 | Best Transformer-family envelope (Table 4). |
| This paper (TabM/TabM-mini) | Motor frequency (tabular) | Poisson deviance | 0.409 | 0.148 | 0.0575 | 0.36 | α uses the best-achieved TabM point including full-data TabM-mini extensions. |
Table 10: Scaling-law comparison across domains. Kaplan et al. (2020) and Hoffmann et al. (2022) report LLM cross-entropy scaling in token space; this paper reports Poisson deviance for tabular frequency prediction. Exponents are not directly comparable across metrics; the table contextualizes relative scaling strength and the implied compute-optimal data-parameter balance. The ratio summarizes the compute-optimal trade-off under an additive law with compute .
As a single bivariate check in the style of Hoffmann et al. (2022), we also fit the additive model directly on the TabM/TabM-mini per-threshold parameter-loss Pareto points. This yields and ( on ), implying and a compute-optimal split and under (Figure 8). We therefore interpret this allocation as a first-order per-epoch compute heuristic rather than an exact total-training-FLOPs optimum. This supports the “big model” intuition of compute-efficient scaling analyses in the large- regime: as compute increases, the compute-optimal allocation grows model size faster than data volume, while still increasing both.
7.6.6 A pooled multi-family scaling fit (global exponents, family terms)
As a complementary “one-model” summary across all architectures, we fit a single pooled scaling law with global exponents but family-specific coefficients,
where is the number of training rows, is the number of trainable parameters, indexes the model family, and are family-specific coefficients (vertical shifts) that summarize relative sample efficiency and parameter efficiency under shared global exponents
Chinchilla-style joint fit (TabM Pareto points)

Fit quality on

Figure 8: Chinchilla-style bivariate fit for TabM/TabM-mini. We fit using the per-threshold TabM/TabM-mini parameter-loss Pareto points (so each point reflects a configuration where increased parameters improves deviance at that data fraction). The fitted exponents imply a compute-optimal allocation that grows parameters faster than data under . Because training uses early stopping, this allocation is a first-order per-epoch compute heuristic rather than an exact total-training-FLOPs optimum.
(). using the per-threshold parameter-loss Pareto points within each family (to avoid mixing in configurations where increasing parameters worsens loss at that fraction). This pooled fit yields and with on (Figure 9). Interpreting this additive form under gives a compute-optimal split and , reflecting a strongly parameter-heavy optimum in this pooled summary. As above, this allocation uses the per-epoch proxy and is approximate under early stopping. We emphasize that this is a descriptive fit across heterogeneous architectures: it does not replace the family-wise exponents reported above, and it will not capture regime changes such as small-data traps or objective-induced shifts (e.g., SSL).
7.7 Regime diagnostics: when do compute and capacity matter?
The fitted exponents in Section 7.5 summarize scaling behavior over the entire range of . However, actuarial applications often operate in mixed regimes (e.g., - versus multi-million rows), and in such regimes it is informative to examine how compute sensitivity and capacity sensitivity change with data size. Figure 10 reports two simple diagnostics derived directly from our experiment logs.
First, we fit the compute frontier separately at each training fraction and estimate a fraction-specific compute exponent . Compute scaling is nearly flat in the smallest-data regime (), but steepens substantially at full data (), consistent with a data-limited regime at small and a compute-limited regime only emerging once sufficient data are available. Second, we estimate a fraction-specific effective parameter exponent within each family by regressing against across the standard size ladder. For TabM and FFNs, is negative at small fractions (larger models can hurt when data are scarce) and becomes positive at larger fractions, consistent with the “small-data trap” intuition. In contrast, supervised Transformer variants exhibit near zero across fractions, reflecting weaker parameter scaling unless augmented with additional inductive bias.
7.8 Why transformers improve when we add TabM ideas or SSL
A purely supervised objective on tabular Transformers appears to produce limited returns from added capacity. Two observations sharpen this finding.
First, Transformers show meaningful data scaling but weak parameter scaling under purely supervised training. Vanilla and MultiCLS Transformers exhibit non-trivial data scaling exponents (-; Table 8), indicating that additional training rows do improve generalization. However, their parameter scaling exponents are tiny (-; Table 9), meaning that increasing model size—more layers, wider embeddings, additional heads—yields negligible gains. The limiting factor is the model's ability to convert capacity into useful representations.
Second, the largest Transformer improvement comes from additional learning signal. TokenMoE without SSL has —essentially flat parameter scaling despite its sophisticated routing mechanism. Adding the swap-style SSL objective jumps parameter scaling to , a nearly improvement (Table 9). This is our cleanest evidence that loss function objective changes are central to unlocking Transformer scaling in the tabular regime.
Two modifications change this baseline behavior:
Pooled fit quality on

Family coefficients (relative to vanilla)

Figure 9: Global pooled scaling fit with family terms. We fit on the ensemble deviance (5-seed prediction averaging), using per-threshold parameter-loss Pareto points within each family. Left: observed versus predicted (). Right: fitted family coefficients relative to the vanilla transformer baseline.
Regime diagnostics (fixed ; main model families)
Compute scaling steepens with more data

Training rows N (log scale)
When does increasing capacity help?

Figure 10: Regime diagnostics using . Top: fraction-specific compute exponent fitted on the compute-efficient frontier at each training fraction. Bottom: fraction-specific effective parameter exponent within each family, estimated across the standard size ladder; indicates that increasing capacity hurts in that regime, while indicates beneficial parameter scaling.
7.8.1 TabM-style adaptation inside the transformer
Adding TabM mechanisms (adaptive transformations over token embeddings under input perturbations) yields the best models in the small-N regime (Table 4). Empirically, this behaves like injecting a structured form of feature adaptability that improves sample efficiency.
7.8.2 Self-supervised learning (SSL) via feature corruption prediction
Adding an auxiliary objective that predicts whether a given feature column has been corrupted by a row-swap transformation adds a column-level signal about “what changed” alongside the supervised target. In practice, TokenMoE+SSL delivers the best Transformer-family performance at full data (0.29027), and shows a more consistent improvement with increasing model size than supervised Transformers.
Taken together, these results support the view that scaling tabular Transformers requires additional inductive bias or training signal beyond the supervised likelihood, especially to make effective use of increased parameter counts.
7.9 Variance and the benefit of seed-averaged ensembles
Training variance is non-trivial even at full data. For example, for a large TabM-mini configuration at full data, 5 independent seeds yield a mean test deviance of 0.28939 with standard deviation 0.00021, while the seed-averaged ensemble improves to 0.28903 (an absolute gain of 0.00035). We therefore report seed-averaged ensemble scores throughout as a low-cost, high-impact variance reduction technique. For readers interested in non-ensemble performance, Table 11 also reports the mean single-seed test deviance; this is approximately the ensemble test deviance plus the reported ensemble gain. Because the Poisson negative log-likelihood (and hence Poisson deviance) is convex in the predicted mean, averaging predictions across seeds can systematically reduce loss when predictions vary, and can therefore affect which configuration appears best within a family when models are high-variance.
Table 11 highlights two complementary stability facts. First, supervised transformer variants exhibit relatively larger variance across random seeds and substantially larger ensemble gains than GLMs and TabM-style models, suggesting that their performance is more sensitive to optimization noise and that prediction averaging is especially valuable for attention-based architectures. Second, TabM and TabM-mini achieve the strongest test scores but also exhibit much larger train-test gaps at high capacity, indicating aggressive fit on the training distribution; nevertheless, the multi-million-row regime provides enough signal for these larger models to generalize, and the additional gains from ensembling are comparatively smaller.
Figure 11 extends these stability diagnostics across all training fractions using the main-sweep family envelopes. Ensemble gains are largest for supervised attention-based models (average gain 0.001003 for vanilla Transformers versus 0.000018 for the GLM), while TabM exhibits substantially larger train-test gaps (0.00984 at full data) yet achieves the best test deviance. Notably, at full data the vanilla Transformer has a much smaller gap than TabM (0.00293 vs 0.00984) despite worse test deviance, consistent with representation/optimization limits as the main explanation.
Stability diagnostics across data regimes (main-sweep envelopes)
Seed-averaging helps attention models most

Figure 11: Stability diagnostics across data regimes (main-sweep envelopes). Top: ensemble gain, defined as mean(single-seed test deviance) – seed-averaged ensemble test deviance (positive indicates improvement from averaging predictions across seeds). Bottom: train-test gap for the seed-averaged ensemble.
| Model (full data) | Train | Test | Mean seed test | Gap | Ens. gain | |
|---|---|---|---|---|---|---|
| GLM | 0.29018 | 0.29200 | 0.29201 | 0.00182 | 0.00002 | 0.00002 |
| FFN (very large) | 0.28661 | 0.29058 | 0.29118 | 0.00398 | 0.00009 | 0.00060 |
| Vanilla transformer (medium) | 0.28792 | 0.29085 | 0.29138 | 0.00293 | 0.00004 | 0.00054 |
| MultiCLS transformer (medium) | 0.28781 | 0.29078 | 0.29136 | 0.00297 | 0.00004 | 0.00058 |
| Transformer+TabM (medium) | 0.28726 | 0.29056 | 0.29065 | 0.00330 | 0.00006 | 0.00009 |
| TokenMoE transformer (large) | 0.28702 | 0.29074 | 0.29144 | 0.00372 | 0.00014 | 0.00071 |
| TokenMoE+SSL (large) | 0.28548 | 0.29036 | 0.29114 | 0.00488 | 0.00012 | 0.00078 |
| TokenMoE+SSL (xlarge) | 0.28479 | 0.29027 | 0.29111 | 0.00548 | 0.00008 | 0.00084 |
| TabM (xlarge) | 0.28000 | 0.28984 | 0.29003 | 0.00984 | 0.00013 | 0.00019 |
| TabM-mini (xlarge-2) | 0.26840 | 0.28903 | 0.28939 | 0.02063 | 0.00020 | 0.00035 |
| TabM-mini (gigantic) | 0.26182 | 0.28885 | 0.28936 | 0.02703 | 0.00009 | 0.00051 |
Table 11: Full-data stability diagnostics. Train/test/gap report seed-averaged ensemble Poisson deviance. Mean seed test and summarize the distribution of single-seed test deviances across 5 independent training runs. Ens. gain is mean(seed test) – ensemble test (positive indicates that averaging predictions improves performance).
8 Conclusion
8.1 Discussion
The central finding of this paper is that neural scaling laws exist in actuarial tabular data. Across all model families, test Poisson deviance decreases smoothly and predictably as training data increases, following power-law relationships that parallel those observed in large-language-model research - but here applied to a multi-million-row motor insurance dataset. This is, to our knowledge, the first systematic demonstration of Kaplan-style and Chinchilla-style scaling behavior in a production-scale actuarial setting.
Three main conclusions emerge from our experiments. First, scaling behavior differs materially by architecture family. TabM-style models, especially TabM-mini, exhibit the steepest improvement with data (–0.41) and achieve the lowest full-data deviance, while purely supervised Transformers show weaker returns unless augmented with additional inductive bias. Second, the “best” model family depends on the data regime: a Transformer+TabM hybrid has the lowest main-sweep envelope at 5%–25% of the data, while TabM is only marginally ahead on the 50% ensemble envelope and becomes the better-supported leader at 75%–100% once seed-level uncertainty is considered (Table 4). Strikingly, larger-capacity models can improve performance even at small training fractions when paired with the right inductive bias, a counterintuitive result given the conventional wisdom that small data favors small models.
Third, to achieve these results we introduced several novel Transformer modifications for tabular data - including MultiCLS pooling, layer-wise value embeddings (the “v stream”), TokenMoE routing, and swap-style self-supervision - and studied a Transformer+TabM hybrid that combines attention-based representation learning with the ensemble-style structure of TabM (Section 6). While these enhancements improve Transformer scaling relative to vanilla baselines, none match the strongest TabM-mini runs at full data, indicating that inductive bias choice remains the dominant factor in this regime.
Finally, variability across random seeds remains non-trivial even at full data, and inference-time seed averaging provides consistent improvements - especially for attention-based models. The average ensemble gain is roughly larger for supervised Transformers (0.001003) than for the GLM (0.000018), while TabM achieves the best test deviance with comparatively smaller ensemble gains (0.000360) but larger train-test gaps (Figure 11; Table 11). This pattern - smaller generalization gaps yet worse test performance for Transformers - points to representation or optimization capacity as the limiting factor. Understanding and correcting this limitation is an avenue for future work.
For practitioners, the central implication of our findings is a regime shift: as training data grows from rows into the multi-million range, the compute-optimal choice changes. In smaller data regimes, GLMs and other strongly regularized baselines remain difficult to beat - they are statistically efficient, stable under resampling, and cheap to train. In the multi-million regime studied here (up to training rows), non-linear tabular architectures continue to improve meaningfully with additional data, compute-optimal capacity increases, and the case for higher-capacity tabular deep models strengthens. Our fitted scaling exponents quantify this: TabM-style models convert additional data and parameters into generalization gains far more effectively than purely supervised Transformers, and the compute-optimal allocation for TabM grows model size faster than data volume under (Section 7.6).
The allocation result is more immediately actionable for model capacity than for labelled data volume. An insurer generally cannot create additional labelled policy-period rows on demand: frequency outcomes require written policies, exposure, and claims emergence. Increasing capacity or training compute is operationally more available, although governance, monitoring, inference cost, and validation burden still constrain deployment. A practical way to loosen the data bottleneck is to use policy or quote records without emerged claim outcomes for self-supervised representation learning, as in the swap-style auxiliary objective studied here. Such data can be available at larger scale than fully labelled claim outcomes and can add structure before supervised frequency fitting.
Poisson deviance differences correspond directly to log-likelihood lift. For the mean deviance reported in this paper, an improvement of deviance is an average per-policy held-out log-likelihood lift of nats, meaning units on the natural-logarithm scale (Section 2). At full data, TabM (xlarge) improves over the GLM by 0.00216 deviance (0.00108 per-policy log-likelihood), and the best TabM-mini full-data extension improves by 0.00315 deviance (0.00158 per-policy log-likelihood). Using the five repeated single-seed runs as a seed-level uncertainty check, the mean single-seed full-data TabM improvement over the GLM is 0.00198 deviance with bootstrap 95% CI [0.00184, 0.00208], and the mean single-seed full-data TabM-mini gigantic improvement over the GLM is 0.00265 with CI [0.00258, 0.00273]. These correspond to per-policy log-likelihood lift intervals of approximately [0.00092, 0.00104] and [0.00129, 0.00137], respectively. These seed-level intervals are computed on paired single-seed differences and therefore differ slightly from the seed-averaged ensemble gaps reported in Table 4, because prediction averaging changes the loss. They should be interpreted as training-run stability diagnostics, with observation-level policy uncertainty left for future work. For scale, the 0.00315 mean-deviance improvement corresponds to a total deviance reduction of about 63 on a 20,000-policy held-out portfolio, or an aggregate held-out log-likelihood lift of 31.5 nats on the natural-logarithm scale. Equivalently, this is a 31.5-unit improvement in the held-out log-likelihood assigned to the ob-served claim-count vector on that scale. We avoid interpreting this likelihood ratio as a direct business value multiplier: the business interpretation depends on the pricing layer, severity or pure-premium modelling, calibration, margins, expenses, retention, competitive effects, and governance constraints. Recent pricing work accordingly evaluates deviance alongside calibration, risk differentiation, competitiveness, loss ratios, and fairness, while separate business-impact frameworks link model validation metrics to loss-ratio assumptions (Israni et al., 2026; Hedges, 2025). Figure 12 visualizes the implied per-policy log-likelihood lift across training fractions.
The supplementary public French MTPL (FMTPL) workflow provides a reproducible illustration of this interpretation on non-confidential data. This dataset, technically the freMTPL2 frequency file within CASdatasets, has been extensively studied in recent actuarial pricing and actuarial machine-learning literature. In that smaller reproduction, the GLM and TabM-mini differ only modestly at the aggregate portfolio level, but the improved deviance corresponds to visible changes in cell-level indicated frequencies, including driver-age bands and age-by-bonus-malus interactions. We view the supplement as showing how likelihood gains can translate into actuarial model-output diagnostics, rather than as a second production-scale validation of the proprietary-data results.
Practical significance of deviance improvements

Figure 12: Per-policy log-likelihood lift versus GLM implied by deviance improvements (). The line uses the best main-sweep model at each fraction; the full-data marker includes full-data-only extensions.
8.2 Limitations
Our empirical scaling claims are necessarily conditional on the experimental regime. Results are based on a single large motor insurance dataset with a fixed feature set, so fitted exponents and ranking crossovers may differ for other lines of business, jurisdictions, feature engineering choices, or targets (frequency versus severity versus pure premium). Our primary train/test split is an IID/random split; time-based splits or deployment-style temporal evaluation could change both absolute performance and scaling trends in the presence of non-stationarity. While we include strong GLM, FFN, and multiple Transformer/TabM families, we do not present a full gradient-boosted decision tree (GBDT) baseline sweep with comparable hyperparameter budgets, so our conclusions should be read as comparisons among the model families studied rather than a definitive leaderboard across all tabular methods. We do not conduct systematic hyperparameter optimization within each family; a more exhaustive tuning effort could improve absolute performance and shift specific crossovers, but our main goal is to compare scaling trends under a consistent recipe rather than to claim the best possible leaderboard scores for each method. The seed-level bootstrap intervals added in Table 6 quantify variability across repeated training runs, not sampling uncertainty over individual held-out policies. A paired per-policy bootstrap, computed from policy-level loss differences between competing models on the same test rows, would be a useful next validation step for the most important crossover and practical-significance claims. Likewise, the embedding/backbone parameter decomposition in Table 9 is not a matched ablation: a fixed-total-parameter experiment that varies the allocation between embedding tables and backbone weights would be a useful next step for testing whether the parameter-scaling exponent changes. Finally, our scaling fits extrapolate within the observed range (up to rows and the capacities trained here); extending claims to substantially larger datasets (e.g., rows) or to materially different compute budgets requires additional experiments.
8.3 What did we learn?
For a pricing actuary, the practical message is that scaling laws are a way to put a measured slope on familiar questions about credibility, model complexity, and diminishing returns. The paper asks how predictably each model family improves when we add more policy-period rows, more parameters, or more training compute.
The first lesson is that actuarial frequency models can sit in a genuine scaling regime. In this motor portfolio, held-out Poisson deviance falls smoothly as the labelled training set grows. This is potentially surprising. Ratemaking data are tabular, claims are sparse, signal-to-noise ratios are low, and the response is shaped by underwriting, portfolio mix, and operational data processes. Smooth power-law behavior was therefore not guaranteed simply because similar laws appear in language modelling. Observing such behavior on one large real insurance portfolio is best read as an existence result and a calibration point: scaling laws can be a useful empirical lens for ratemaking, while the exact exponents should still be expected to vary across lines of business, jurisdictions, feature sets, temporal splits, and targets. This means that smaller experiments can give useful evidence about how much additional data or capacity may be worth, although the estimates remain local to the dataset, target, features, and validation design.
The second lesson is that the model family matters as much as the resource being scaled. The GLM remains a strong, stable benchmark and is especially hard to beat when data are limited. TabM and TabM-mini make better use of additional rows and parameters in the multi-million-row regime. Additional data helps supervised Transformers; additional parameters alone do not automatically translate into better test deviance. The stronger Transformer results come when we add tabular inductive bias or auxiliary self-supervised signal.
The third lesson is that small deviance changes should be interpreted on the likelihood scale. A difference such as 0.002–0.003 in mean Poisson deviance can look small on the page, but over a portfolio it represents a systematic improvement in the likelihood assigned to emerging claim counts. The supplementary material makes this tangible on the French MTPL (FMTPL) data: the lower-deviance TabM model produces a materially different two-way interaction surface between two covariates, illustrating that a small average deviance gain can correspond to a substantially different model that is more closely calibrated to the observed experience. This is a statistical model-fit statement. Turning it into loss ratio, profit, or premium adequacy still requires severity modelling, calibration, expenses, margins, retention effects, and governance constraints.
The final lesson is operational. When labelled claim outcomes are scarce, the most defensible path is usually a stable benchmark, careful validation, and modest model complexity. When labelled data reach the multi-million-row scale, capacity and variance reduction become more attractive. Since insurers cannot instantly create emerged claim outcomes, quote and policy records without outcomes may be valuable for self-supervised representation learning before the supervised frequency model is fitted.
8.4 Conclusions
We have demonstrated that neural scaling laws - the smooth power-law relationships between data, parameters, compute, and generalization loss that underpin modern large-language-model research - also hold in actuarial tabular data. Using a multi-million-row motor insurance dataset and a consistent protocol across nested training fractions and five random seeds per configuration, we compared GLMs, FFNs, tabular Transformers, and TabM/TabM-mini architectures, including several novel Transformer enhancements developed for this study (MultiCLS pooling, TokenMoE routing, layer-wise value embeddings, TabM-style adaptation, and swap-style self-supervision).
Three implications follow for actuarial practice. First, as datasets grow beyond rows, it becomes rational to invest in higher-capacity tabular deep models and variance-reduction techniques such as small ensembles - precisely because these models continue to improve with additional data while GLMs saturate. Second, Transformer scaling in this regime depends on depth, width, auxiliary inductive bias, and training signal, so “Transformer scaling” should be treated as an architectural and loss function objective design problem. Third, the fitted compute frontier and empirical floor indicate diminishing marginal returns to simply increasing compute without concurrent increases in data or improvements in inductive bias - a cautionary note for compute-heavy deployments.
Extending these experiments to additional lines of business, time-based splits, and broader baseline families (including GBDTs) is a natural next step. Studying severity and pure premium scaling in a comparable setup would clarify whether the exponents and rankings we observe for claim frequency generalize across actuarial prediction tasks.
Acknowledgements
We thank the Casualty Actuarial Society (CAS) for funding this research. We also thank the contributing insurer for providing the anonymized motor portfolio extract used in this study. We thank Morgan Bugbee and the CAS project group for their guidance and insights, and we thank the anonymous reviewers for comments that substantially improved the manuscript.
References
Arik, S. O., & Pfister, T. (2019). TabNet: Attentive interpretable tabular learning. Retrieved from https://arxiv.org/abs/1908.07442
Belkin, M., Hsu, D., Ma, S., & Mandal, S. (2019). Reconciling modern machine-learning practice and the classical bias-variance trade-off. Proceedings of the National Academy of Sciences, 116(32), 15849–15854. doi: 10.1073/pnas.1903070116
Bischl, B., Casalicchio, G., Feurer, M., Gijsbers, P., Hutter, F., Lang, M., ... Vanschoren, J. (2021). OpenML benchmarking suites. In Thirty-fifth conference on neural information processing systems (neurips 2021), track on datasets and benchmarks.
Bühlmann, H., & Straub, E. (1970). Glaubwürdigkeit für Schadensätze. Mitteilungen der Vereinigung Schweizerischer Versicherungsmathematiker, 70(1), 111–133.
Caballero, E., Bansal, N., Kramár, J., Bae, J., Welleck, S., Qian, X., & Morcos, A. (2022). Broken neural scaling laws. Retrieved from https://arxiv.org/abs/2210.14891
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining (kdd) (pp. 785–794). doi: 10.1145/2939672.2939785
Choshen, L., Zhang, Y., & Andreas, J. (2024). A hitchhiker's guide to scaling law estimation. arXiv preprint, arXiv:2410.11840.
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
Dutang, C., & Charpentier, A. (2026). French motor third-party liability datasets: fremtpl. CAS-datasets documentation. Retrieved from https://dutangc.github.io/CASdatasets/reference/freMTPL.html (Accessed 2026-04-30)
Erickson, N., Purucker, L., Tschalzev, A., Holzmüller, D., Mutilik Desai, P., Salinas, D., & Hutter, F. (2025). TabArena: A living benchmark for machine learning on tabular data. Retrieved from https://arxiv.org/abs/2506.16791
Fedus, W., Zoph, B., & Shazeer, N. (2021). Switch Transformers: Scaling to trillion parameter models with simple and efficient sparsity. Retrieved from https://arxiv.org/abs/2101.03961
Gabrielli, A., Richman, R., & Wüthrich, M. V. (2020). Neural network models for claims reserving. Variance.
Gorishniy, Y., Kotelnikov, A., & Babenko, A. (2024). TabM: Advancing tabular deep learning with parameter-efficient ensembling. Retrieved from https://arxiv.org/abs/2410.24210
Gorishniy, Y., Rubachev, I., Khrulkov, V., & Babenko, A. (2021). Revisiting deep learning models for tabular data. Retrieved from https://arxiv.org/abs/2106.11959
@Grad62304977, & Jordan, K. (2024). modded-nanogpt: Value residual connections. Twitter/X. Retrieved from https://x.com/Grad62304977/status/1854295837741809933 (See also https://x.com/kellerjordan0/status/1854296102998311123. Accessed 2026-01-11)
Grinsztajn, L., Oyallon, E., & Varoquaux, G. (2022). Why do tree-based models still outperform deep learning on typical tabular data? Advances in Neural Information Processing Systems (NeurIPS), 35, 507–520.
Guo, C., & Berkhahn, F. (2016). Entity embeddings of categorical variables. arXiv preprint, arXiv:1604.06737.
Harris, R., Richman, R., & Wüthrich, M. V. (2024). Reflections on deep learning and the actuarial profession(al). SSRN Electronic Journal. doi: 10.2139/SSRN.4672447
Hedges, C. E. (2025). A theoretical framework bridging model validation and loss ratio in insurance. arXiv preprint arXiv:2512.03242. Retrieved from https://arxiv.org/abs/2512.03242
Hestness, J., Narang, S., Ardalani, N., Diamos, G., Jun, H., Kianinejad, H., ... Zhou, Y. (2017). Deep learning scaling is predictable, empirically. Retrieved from https://arxiv.org/abs/1712.00409
Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., ... others (2022). Training compute-optimal large language models. arXiv preprint arXiv:2203.15556.
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S. B., ... Hutter, F. (2025). Accurate predictions on small data with a tabular foundation model. Nature, 637, 319–326. doi: 10.1038/s41586-024-08328-6
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., et al. (2022). TabPFN: A transformer that solves small tabular classification problems in a second. Retrieved from https://arxiv.org/abs/2207.01848 (Presented at ICLR 2023)
Holzmüller, D., Grinsztajn, L., Pydi, M. S., Varoquaux, G., & Oyallon, E. (2024). Better by default: Strong pre-tuned MLPs and boosted trees on tabular data. Retrieved from https://arxiv.org/abs/2407.04491 (Presented at NeurIPS 2024)
Huang, G., Sun, Y., Liu, Z., Sedra, D., & Weinberger, K. Q. (2016). Deep networks with stochastic depth. In European conference on computer vision (eccv).
Huang, X., Khetan, A., Cvitkovic, M., & Karnin, Z. (2020). TabTransformer: Tabular data modeling using contextual embeddings. Retrieved from https://arxiv.org/abs/2012.06678
Ioffe, S., & Szegedy, C. (2015). Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd international conference on machine learning (icml) (pp. 448–456).
Israni, T., Daly, L., Condon, J., & Wolsztynski, E. (2026). Dual evaluation of performance and fairness from machine learning models for non-life insurance pricing. British Actuarial Journal, 31, e5. Retrieved from https://www.cambridge.org/core/journals/british-actuarial-journal/article/dual-evaluation-of-performance-and-fairness-from-machine-learning-models-for-nonlife-insurance-pricing/0F19EB9EAB28A6581368EEFA3D1F69BD doi: 10.1017/S1357321725100317
Jaegle, A., Gimeno, F., Brock, A., Zisserman, A., & Vinyals, O. (2021). Perceiver: General perception with iterative attention. Retrieved from https://arxiv.org/abs/2103.03206
Jordan, K., Bernstein, J., Rappazzo, B., & modded-nanogpt contributors. (2024). modded-nanogpt: Speedrunning the NanoGPT baseline. GitHub repository. Retrieved from https://github.com/KellerJordan/modded-nanogpt (Accessed 2026-04-30)
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., ... Amodei, D. (2020). Scaling laws for neural language models. arXiv preprint arXiv:2001.08361.
Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., ... Liu, T.-Y. (2017). LightGBM: A highly efficient gradient boosting decision tree. In Advances in neural information processing systems (neurips).
Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. arXiv preprint, arXiv:1412.6980.
Kuo, K. (2019). DeepTriangle: A deep learning approach to loss reserving. (Working paper / technical report)
Lee, J., Lee, Y., Kim, J., Kosiorek, A., Choi, S., & Teh, Y. W. (2019). Set Transformer: A framework for attention-based permutation-invariant neural networks. Retrieved from https://arxiv.org/abs/1810.00825
Loshchilov, I., & Hutter, F. (2019). Decoupled weight decay regularization. In International conference on learning representations. (arXiv:1711.05101)
McElfresh, D. C., Khandagale, S., Valverde, J., Ramakrishnan, G., Goldblum, M., Fowl, L., ... Papyan, V. (2023). When do neural nets outperform boosted trees on tabular data? Retrieved from https://arxiv.org/abs/2305.02997
Müller, S., Kirsch, L., Peisert, M., Krause, A., & Hutter, F. (2021). Transformers can do Bayesian inference. Retrieved from https://arxiv.org/abs/2112.10510
Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: Unbiased boosting with categorical features. Retrieved from https://arxiv.org/abs/1706.09516
Richman, R. (2021a). AI in actuarial science – a review of recent advances – part 1. Annals of Actuarial Science, 15(2), 207–229. doi: 10.1017/S1748499520000238
Richman, R. (2021b). AI in actuarial science – a review of recent advances – part 2. Annals of Actuarial Science, 15(2), 230–258. doi: 10.1017/S174849952000024X
Richman, R. (2021c). Mind the gap - safely incorporating deep learning models into the actuarial toolkit. SSRN Electronic Journal. doi: 10.2139/ssrn.3857693
Richman, R. (2022). Mind the gap – safely incorporating deep learning models into the actuarial toolkit. British Actuarial Journal.
Richman, R., Scognamiglio, S., & Wüthrich, M. V. (2024). The credibility transformer. Scandinavian Actuarial Journal. doi: 10.1080/03461238.2024.2434411
Richman, R., & Wüthrich, M. V. (2020). Nagging predictors. Risks, 8(3), 83. doi: 10.3390/risks8030083
Richman, R., & Wüthrich, M. V. (2023). LocalGLMnet: Interpretable deep learning for tabular data. Scandinavian Actuarial Journal(1), 71–95. Retrieved from https://arxiv.org/abs/2107.11059 doi: 10.1080/03461238.2022.2081816
Schaeffer, R., Miranda, B., & Koyejo, S. (2023). Are emergent abilities of large language models a mirage? Retrieved from https://arxiv.org/abs/2304.15004
Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q., Hinton, G., & Dean, J. (2017). Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. Retrieved from https://arxiv.org/abs/1701.06538
Somepalli, G., Goldblum, M., Schwarzschild, A., Bruss, C., & Goldstein, T. (2021). SAINT: Improved neural networks for tabular data via row attention and contrastive pre-training. Retrieved from https://arxiv.org/abs/2106.01342
Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(56), 1929–1958.
Sutton, R. S. (2019). The bitter lesson. http://www.incompleteideas.net/IncIdeas/BitterLesson.html. (Online essay; accessed 2026-01-07)
Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., & Jégou, H. (2021). Going deeper with image transformers. Retrieved from https://arxiv.org/abs/2103.17239
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A., ... Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30, 5998–6008.
Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., ... Fedus, W. (2022). Emergent abilities of large language models. Transactions on Machine Learning Research.
Wen, Y., Tran, D., & Ba, J. (2020). BatchEnsemble: An alternative approach to efficient ensemble and Bayesian neural networks. Retrieved from https://arxiv.org/abs/2002.06715 (Presented at ICLR 2020)
Wüthrich, M. V., & Merz, M. (2023). Statistical foundations of actuarial learning and its applications. Springer. doi: 10.1007/978-3-031-12409-9
Wüthrich, M. V., & Merz, M. (2023). Statistical foundations of actuarial learning and its applications. Springer Cham. Retrieved from https://link.springer.com/book/10.1007/978-3-031-12409-9 (Open access; see Appendix B for the freMTPL2 correction and cleaning) doi: 10.1007/978-3-031-12409-9
Wüthrich, M. V., & Ziegel, J. (2023). Isotonic recalibration for classification and regression. Retrieved from https://arxiv.org/abs/2301.02692 (Also appears in Scandinavian Actuarial Journal (2024))
Zhang, B., & Sennrich, R. (2019). Root mean square layer normalization. Retrieved from https://arxiv.org/abs/1910.07467
Zhou, Z., Wu, T., Jiang, Z., Obeid, F., & Lan, Z. (2024). Value residual learning. Retrieved from https://arxiv.org/abs/2410.17897
A Notation Reference
This appendix collects the notation used throughout the paper. The prose explanation of the frequency task, Poisson deviance, and scaling-law quantities now appears earlier in Section 2; dense component-level model formulae are kept in Appendix B.2.
A.1 Quick reference: symbols and dimensions
Table 12: Core notation for the data, loss, and scaling-law quantities.
| Symbol | Meaning (units / typical shape) |
|---|---|
| Observation (policy-period row) index. | |
| Feature (rating-factor column / token) index; . | |
| Training set size in rows (examples). | |
| Number of training rows at training fraction ; indexes the nested subset and is the row count used in scaling fits. | |
| Exposure for row (exposure-years); used as an offset. | |
| Claim count for row (non-negative integer; in our extract ). | |
| Claim rate for row (claims per exposure-year). | |
| Mean claim count for row ; . | |
| Log-rate (linear predictor); . | |
| Model mapping covariates to ; parameters include all trainable weights. | |
| Number of trainable parameters; we also use and for embedding vs non-embedding subsets. | |
| is the training FLOPs/epoch proxy for one seed run (per model). is the effective per-epoch compute proxy used when plotting the five-seed ensemble deviance. Total training compute is approximately (epochs trained) per seed, or (epochs trained) for the five-seed ensemble if all seeds train for the same number of epochs. | |
| Test loss (Poisson deviance) reported in the paper. | |
| Empirical performance floor used in scaling fits (not a literal Bayes risk). | |
| Data-, parameter-, and compute-scaling exponents respectively. | |
| Fitted amplitude constants in the data-, parameter-, and compute-scaling laws. We use indexed amplitudes in the revised paper to avoid unindexed or being confused with batch size, data size, or parameter count. |
| Symbol | Architecture-specific meaning |
|---|---|
| Number of feature tokens/covariates after preprocessing. | |
| Embedding dimension and post-positional-fusion token dimension. | |
| Number of attention heads when discussing multi-head attention. The introduction no longer uses for Monte Carlo simulation count. | |
| Number of implicit TabM/TabM-mini ensemble members. | |
| Number of TokenMoE experts; context distinguishes this from exposure . | |
| Number of main CLS tokens and swap-auxiliary CLS tokens. | |
| Raw feature-token matrix for row and the corresponding token matrix after positional fusion and appending CLS tokens. | |
| Matrix of final CLS states used for multi-CLS readout. | |
| Query, key, and value projections inside attention. | |
| Layer- mixed value tensor in head-fix variants; defined only in the component formulae in Appendix B.2. | |
| Minibatch size in Appendix B.2; we avoid using bare as a scaling-law amplitude in the revised empirical notation. |
Table 13: Additional notation for the neural architecture descriptions.
B Technical Appendix: Model Configurations
This appendix records (i) the component-level mathematical definitions used in our implementations and (ii) the main architectural hyperparameters for all model variants. Unless noted, positional embedding dimension equals embedding dimension; baseline/multi-CLS variants concatenate positional embeddings, while head-fix/TokenMoE variants add them (with an optional projection). All models use the exposure-scaled Poisson objective.
B.1 Experiment Model Identifiers
Table 14 lists the models we utilized in this work grouped by family.
Table 14: Experiment model identifiers grouped by family.
| Family | Identifiers |
|---|---|
| GLM | glm |
| FFN | ffn VERY_small, ffn_small, ffn_medium, ffn_large, ffn VERY_large |
| TabM | tabm_small, tabm_medium, tabm_large, tabm_xlarge |
| TabM-mini | tabm_mini_small, tabm_mini_medium, tabm_mini_large, tabm_mini_xlarge, tabm_mini_xlarge_2, tabm_mini_xlarge3 (reported as gigantic) |
| Transformer (vanilla) | transformer_tiny, transformer_small, transformer_medium, transformer_large |
| Transformer (multi-CLS) | transformer_multicls_tiny, transformer_multicls_small, transformer_multicls_medium, transformer_multicls_large, transformer_multicls_large_4, transformer_multicls_large_16, transformer_multicls_large_largeffn_noreg |
| Transformer (enhanced) | transformer_enhanced_tiny, transformer_enhanced_small, transformer_enhanced_medium, transformer_enhanced_large |
| Transformer (TokenMoE) | transformer_tokenmoe_tiny, transformer_tokenmoe_small, transformer_tokenmoe_medium, transformer_tokenmoe_large |
| Transformer(TokenMoE+SSL) | transformer_tokenmoe_ssl_tiny, transformer_tokenmoe_ssl_small, transformer_tokenmoe_ssl_medium, transformer_tokenmoe_ssl_large, transformer_tokenmoe_ssl_xlarge |
| Transformer+TabM-mini | transformer_multicls_tabm_mini_tiny, transformer_multicls_tabm_mini_small, transformer_multicls_tabm_mini_medium, transformer_multicls_tabm_mini_large |
B.2 Component Formulae
We summarize the reusable building blocks used across our model families. We use for the number of feature tokens (covariates), for the number of CLS tokens, for the number of attention heads, and for the token dimension (after positional fusion). Unless otherwise noted, operations are applied row-wise over tokens and batch-wise over observations.
B.2.1 Exposure-scaled Poisson mean and loss
All models predict a positive mean claim count via
where is earned exposure, is the predicted claim rate (per exposure-year), and is the predicted log-rate. With claim count , the (per-observation) Poisson negative log-likelihood is
with small for numerical safety.
B.2.2 GLM baseline
After preprocessing/encoding features into a vector , the GLM uses a linear predictor
with the exposure-scaled Poisson mean .
B.2.3 Feed-forward network (FFN)
Let denote the concatenation of all learned embeddings for policy (equivalently, flattening across tokens). An -layer FFN computes
where is a pointwise nonlinearity (ReLU in our FFN baselines) and dropout may be applied between layers.
B.2.4 Quantile binning and entity embeddings
For each covariate we apply a preprocessing map that yields an integer code in . For continuous variables, is a quantile-binning map; for categorical variables, is an integer encoding of levels. Each covariate is embedded via an embedding matrix :
and the raw token matrix is
The tokenization parameters sum to .
B.2.5 Extended embeddings for v streams and MoE banks
Several Transformer variants allocate a larger per-token embedding vector than the base dimension b in order to provide (i) layer-wise value embeddings (the v stream) and (ii) an expert bank for TokenMoE. Let L denote the number of Transformer layers.
Layer-wise v embeddings. In enhanced/head-fix variants, each covariate embedding table outputs an extended vector in ,
which we split as
with and . Collecting across tokens yields a base matrix and a concatenated v matrix . Layer receives obtained by slicing
Xᵛ along the feature dimension. When CLS tokens are appended, we append matching v embeddings set to zero (so the v stream is anchored in observed covariates).
TokenMoE bank. In TokenMoE variants with E experts, each embedding additionally stores an expert bank of E slices, each of dimension . Equivalently, the embedding output dimension becomes and can be written as
where each expert slice can itself be split into a base and v component. The TokenMoE router selects (top-1) and mixes expert slices to produce the final base and v streams; see the routing definition below.
B.2.6 Positional embeddings (concatenation vs addition)
We learn a positional embedding for each token index . In the concatenation mode,
In the additive mode we optionally project to and add,
The positional embedding contributes parameters.
B.2.7 CLS tokens and multi-CLS pooling
We append learned CLS tokens :
After the Transformer stack, we extract the final CLS states and form the matrix
We use two readout patterns. In the concatenated readout, we vectorize the CLS matrix (optionally after layer normalization) and map it to a log-rate:
In the ensemble readout, we apply one head per CLS token and average the resulting rates:
For the two readouts coincide.
B.2.8 Column weighting
We learn a per-token weight by storing an unconstrained parameter and clipping (hard sigmoid):
Optionally, we add a sparsity penalty .
B.2.9 Self-attention with learned bias and temperature
Let denote a token matrix ( ). For head we compute (using layer normalization and a smooth activation , GELU in our implementation)
and attention weights
where is a learned additive attention bias and is a learned per-head temperature. The multi-head output is
Our Transformer blocks apply dropout and layer normalization on the branch output before the residual addition:
B.2.10 Gated FFN (SwiGLU)
The FFN uses a gated activation. For input ,
followed by a linear projection to return to dimension d.
B.2.11 Head-fix value mixing, sink tokens, and stabilizers
Head-fix variants enrich the value pathway and stabilize deep training.
Let be the current-layer values, let denote a cached value tensor from the previous layer, and let be a layer-specific value embedding (when enabled). We mix these via learned logits :
Head-fix layers additionally apply RMS normalization to per-head queries/keys, optionally append sink tokens (which appear only as keys/values), apply per-head scalar gating of attended values, and use residual-branch stabilizers (LayerScale, an FFN gate, and drop-path).
RMS normalization. For a vector define
For each head we apply and before computing attention scores.
Sink tokens. Let be learned sink embeddings and let be a fixed scale factor. For each head we extend keys/values as
Let be the main sequence length and let denote CLS indices. We add a sink mask to the attention logits, with entries
so that only CLS queries can attend to sinks.
Per-head value gating. After computing head output we apply a learned scalar gate and set , where applies dropout to during training. LayerScale, FFN gate, and drop-path. Let be trainable LayerScale scalars and let be a trainable FFN gate. With drop probability , define
broadcast across non-batch dimensions. The stabilized residual updates can be written as
In our implementation the output projections in attention and FFN blocks are initialized at (near) zero, so that residual branches start close to the identity map, improving early optimization stability in deep stacks.
B.2.12 TokenMoE routing and load balancing
TokenMoE implements token-wise top-1 routing over an expert bank of embedding slices. Let denote the base embedding stream for token of observation , and let collect the layer-wise value streams. TokenMoE appends an expert bank (reshaped from a larger embedding tensor) and uses a router to compute logits
optionally preceded by a small router MLP. The routing probabilities are . We select a top-1 expert and form a straight-through gate
so that forward routing uses the one-hot assignment while gradients flow through . The selected expert slice is
(B.34) which we split into base and value components . With trainable mixing coefficients (implemented as sigmoids of unconstrained logits),
or, in the hard-select mode, we replace by the selected slice.
To encourage utilization of all experts, we add a Switch-style load-balancing term based on routing importance and empirical load on a minibatch:
and add to the supervised loss.
B.2.13 Swap-style self-supervision
Swap-style self-supervision perturbs minibatches by swapping token embeddings across rows. For a minibatch of size , let indicate whether token of row is swapped, and let denote a random donor row. The perturbed token embedding is
We append additional “swap CLS” tokens (one per feature position). After the Transformer stack, let denote the final state of the swap token for position . A small sigmoid head predicts swap probabilities
and we add a binary cross-entropy term
The SSL models optimize (and, when TokenMoE is enabled, also include the load-balancing term ).
B.2.14 TabM-mini and TabM adapters
TabM-mini applies a single multiplicative adapter that broadcasts a base feature vector to ensemble members:
TabM uses BatchEnsemble-style rank-1 adapters throughout dense blocks. In one layer with shared kernel and member-specific adapters ,
Member log-rates are mapped to exposure-scaled rates and averaged:
B.3 Model Variant Feature Matrix
Table 15 provides a compact view of how the major Transformer-derived experiment families differ. The mathematical definitions of each component are given in Appendix B.2.
Table 15: Transformer-family variant matrix (checkmark indicates that the component is central to the variant).
| Variant family | Multi-CLS | Head-fix | MoE | Swap SSL | TabM-mini head |
|---|---|---|---|---|---|
| transformer_* | |||||
| transformer_multicls_* | ✓ | ||||
| transformer_enhanced_* | ✓ | ✓ | |||
| transformer_tokenmoe_* | ✓ | ✓ | |||
| transformer_tokenmoe_ssl_* | ✓ | ✓ | ✓ | ||
| transformer_multicls_tabm_mini_* | ✓ | ✓ |
B.4 Models Configurations
Table 16: GLM and FFN configurations.
| Model | Embedding dim | Hidden layers | Dropout | Learning rate |
|---|---|---|---|---|
| glm | - | - | - | 0.001 |
| ffn_very_small | 5 | [16] | 0.01 | 0.001 |
| ffn_small | 10 | [32, 16] | 0.02 | 0.001 |
| ffn_medium | 15 | [64, 32] | 0.03 | 0.001 |
| ffn_large | 20 | [128, 64, 32] | 0.04 | 0.001 |
| ffn_very_large | 40 | [256, 128, 64] | 0.05 | 0.001 |
Table 17: TabM and TabM-Mini configurations.
| Model | Type | K | Embedding dim | Dense layers | Dropout | Weight decay |
|---|---|---|---|---|---|---|
| tabm_small | tabm | 32 | 16 | [64, 32] | 0.1 | 0.001 |
| tabm_medium | tabm | 32 | 32 | [128, 64, 32] | 0.15 | 0.0015 |
| tabm_large | tabm | 64 | 64 | [256, 128, 64] | 0.2 | 0.002 |
| tabm_xlarge | tabm | 96 | 96 | [384, 192, 96] | 0.25 | 0.0025 |
| tabm_mini_small | tabm_mini | 32 | 16 | [64, 32] | 0.1 | 0.001 |
| tabm_mini_medium | tabm_mini | 32 | 32 | [128, 64, 32] | 0.15 | 0.0015 |
| tabm_mini_large | tabm_mini | 64 | 64 | [256, 128, 64] | 0.2 | 0.002 |
The identifier tabm_mini_xlarge_2 corresponds to the same architecture as tabm_mini_xlarge but evaluated via a separate workflow.
The enhanced variants (transformer_enhanced_) share the same hyperparameters as the corresponding transformer_multicls_ sizes but use the head-fix attention block described in Section 6. The variant transformer_multicls_large_largeffn_noreg widens the Transformer FFN and disables dropout and weight decay.
Table 18: TabM-Mini xlarge variants with expanded embeddings.
| Model | Type | K | Embedding dim | Dense layers | Dropout | Weight decay |
|---|---|---|---|---|---|---|
| tabm_mini_xlarge | tabm_mini | 32 | 256 | [512,256,128,64,32] | 0.1 | 0.002 |
| tabm_mini_xlarge_2 | tabm_mini | 32 | 256 | [512,256,128,64,32] | 0.1 | 0.002 |
| tabm_mini_xlarge3 | tabm_mini | 32 | 512 | [1024,512,256,128,64,32] | 0.1 | 0.002 |
Table 19: Vanilla Transformer configurations.
| Model | d | Heads | Layers | FFN dim | Dropout (attn/ffn) | |
|---|---|---|---|---|---|---|
| transformer_tiny | 16 | 1 | 1 | 32 | 1 | 0.025/0.01 |
| transformer_small | 24 | 2 | 2 | 48 | 1 | 0.025/0.015 |
| transformer_medium | 40 | 2 | 3 | 80 | 1 | 0.035/0.025 |
| transformer_large | 64 | 4 | 4 | 128 | 1 | 0.04/0.05 |
Table 20: Multi-CLS Transformer configurations.
| Model | d | Heads | Layers | FFN dim | Dropout (attn/ffn) | |
|---|---|---|---|---|---|---|
| transformer_multicls_tiny | 16 | 1 | 1 | 32 | 2 | 0.025/0.01 |
| transformer_multicls_small | 24 | 2 | 2 | 48 | 4 | 0.025/0.015 |
| transformer_multicls_medium | 40 | 2 | 3 | 80 | 6 | 0.035/0.025 |
| transformer_multicls_large | 64 | 4 | 4 | 128 | 8 | 0.04/0.05 |
| transformer_multicls_large_4 | 64 | 4 | 4 | 128 | 4 | 0.04/0.05 |
| transformer_multicls_large_16 | 64 | 4 | 4 | 128 | 16 | 0.04/0.05 |
Table 21: Transformer plus TabM-Mini configurations.
| Model | d | Heads | Layers | FFN dim | K | Dropout (attn/ffn) | |
|---|---|---|---|---|---|---|---|
| transformer_multicls_tabm_mini_tiny | 16 | 1 | 1 | 32 | 2 | 8 | 0.025/0.01 |
| transformer_multicls_tabm_mini_small | 24 | 2 | 2 | 48 | 4 | 16 | 0.025/0.015 |
| transformer_multicls_tabm_mini_medium | 40 | 2 | 3 | 80 | 6 | 24 | 0.035/0.025 |
| transformer_multicls_tabm_mini_large | 64 | 4 | 4 | 128 | 8 | 32 | 0.04/0.05 |
All TokenMoE runs use moe_hard_select = False and moe_router_hidden = 0.
Table 22: TokenMoE baseline configurations.
| Model | d | Heads | Layers | FFN dim | Experts | Router noise | Load balance | Alpha (base/v) | Dropout (attn/fn) | |
|---|---|---|---|---|---|---|---|---|---|---|
| transformer_tokenmoe_tiny | 10 | 1 | 1 | 20 | 2 | 4 | 0.1 | 0.01 | 0.1/0.05 | 0.025/0.01 |
| transformer_tokenmoe_small | 14 | 2 | 2 | 28 | 4 | 4 | 0.1 | 0.01 | 0.1/0.05 | 0.025/0.015 |
| transformer_tokenmoe_medium | 24 | 2 | 3 | 48 | 6 | 6 | 0.1 | 0.01 | 0.1/0.05 | 0.035/0.025 |
| transformer_tokenmoe_large | 40 | 4 | 4 | 80 | 8 | 8 | 0.1 | 0.01 | 0.1/0.05 | 0.04/0.05 |
Table 23: TokenMoE+SSL configurations (swap-style self-supervision). In the experiment logs these configurations were named transformer_tokenmoe_*_selfsup; in the manuscript we refer to them as TokenMoE+SSL.
| Model | d | Heads | Layers | FFN dim | Experts | Router noise | Load balance | Alpha (base/v) | Swap alpha | Swap loss | Swap FFN | Dropout (attn/fn) | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| transformer_tokenmoe_ssl_tiny | 16 | 2 | 2 | 32 | 4 | 4 | 0.1 | 0.01 | 0.1/0.05 | 0.1 | 0.1 | 32 | 0.03/0.03 |
| transformer_tokenmoe_ssl_small | 24 | 2 | 3 | 64 | 6 | 6 | 0.1 | 0.01 | 0.1/0.05 | 0.1 | 0.1 | 32 | 0.035/0.04 |
| transformer_tokenmoe_ssl_medium | 32 | 4 | 4 | 96 | 8 | 8 | 0.1 | 0.01 | 0.1/0.05 | 0.1 | 0.1 | 32 | 0.04/0.045 |
| transformer_tokenmoe_ssl_large | 40 | 4 | 4 | 80 | 8 | 8 | 0.1 | 0.01 | 0.1/0.05 | 0.1 | 0.1 | 32 | 0.04/0.05 |
| transformer_tokenmoe_ssl_xlarge | 64 | 8 | 6 | 128 | 12 | 12 | 0.1 | 0.01 | 0.1/0.05 | 0.1 | 0.1 | 32 | 0.05/0.05 |
The identifier transformer_tokenmoessl_xlarge is an internal alias for transformer_tokenmoe_ssl_xlarge; the paper uses the latter naming convention throughout.
B.5 Scaling by model size: full data split results
This subsection reports the seed-averaged ensemble test Poisson deviance for the main size ladders within each model family, across the same nested training fractions used throughout the paper. These tables complement the envelope summary in Table 4 by making explicit how the best-performing size shifts with data, and by documenting the extent to which increasing Transformer size yields diminishing returns under purely supervised training.
| Model | 5% | 10% | 25% | 50% | 75% | 100% |
|---|---|---|---|---|---|---|
| GLM | 0.29343 | 0.29284 | 0.29236 | 0.29212 | 0.29204 | 0.29200 |
| FFN (very small) | 0.29424 | 0.29267 | 0.29185 | 0.29139 | 0.29109 | 0.29098 |
| FFN (small) | 0.29790 | 0.29304 | 0.29187 | 0.29132 | 0.29101 | 0.29087 |
| FFN (medium) | 0.30055 | 0.29403 | 0.29166 | 0.29126 | 0.29096 | 0.29070 |
| FFN (large) | 0.29865 | 0.29438 | 0.29185 | 0.29134 | 0.29089 | 0.29063 |
| FFN (very large) | 0.30179 | 0.29450 | 0.29199 | 0.29118 | 0.29086 | 0.29058 |
| Transformer (tiny) | 0.29712 | 0.29463 | 0.29203 | 0.29175 | 0.29259 | 0.29104 |
| Transformer (small) | 0.29431 | 0.29274 | 0.29196 | 0.29148 | 0.29110 | 0.29090 |
| Transformer (medium) | 0.29358 | 0.29303 | 0.29166 | 0.29122 | 0.29100 | 0.29085 |
| Transformer (large) | 0.29340 | 0.29315 | 0.29185 | 0.29130 | 0.29100 | 0.29094 |
Table 24: Baseline size-by-fraction results: seed-averaged ensemble test Poisson deviance for GLM, FFN, and vanilla Transformer size ladders.
| Model | 5% | 10% | 25% | 50% | 75% | 100% |
|---|---|---|---|---|---|---|
| MultiCLS (tiny) | 0.29379 | 0.29263 | 0.29188 | 0.29148 | 0.29118 | 0.29106 |
| MultiCLS (small) | 0.29339 | 0.29234 | 0.29174 | 0.29136 | 0.29100 | 0.29100 |
| MultiCLS (medium) | 0.29321 | 0.29259 | 0.29168 | 0.29120 | 0.29106 | 0.29078 |
| MultiCLS (large) | 0.29322 | 0.29232 | 0.29179 | 0.29131 | 0.29089 | 0.29110 |
| Enhanced/head-fix (large) | 0.29421 | 0.29309 | 0.29225 | 0.29160 | 0.29140 | 0.29110 |
| TokenMoE (tiny) | 0.29362 | 0.29279 | 0.29213 | 0.29172 | 0.29146 | 0.29082 |
| TokenMoE (small) | 0.29381 | 0.29269 | 0.29205 | 0.29147 | 0.29105 | 0.29078 |
| TokenMoE (medium) | 0.29371 | 0.29280 | 0.29187 | 0.29145 | 0.29114 | 0.29080 |
| TokenMoE (large) | 0.29350 | 0.29263 | 0.29186 | 0.29126 | 0.29097 | 0.29074 |
| TokenMoE+SSL (tiny) | 0.29350 | 0.29269 | 0.29189 | 0.29146 | 0.29110 | 0.29075 |
| TokenMoE+SSL (small) | 0.29359 | 0.29291 | 0.29190 | 0.29142 | 0.29101 | 0.29068 |
| TokenMoE+SSL (medium) | 0.29337 | 0.29263 | 0.29186 | 0.29129 | 0.29087 | 0.29062 |
| TokenMoE+SSL (large) | 0.29332 | 0.29275 | 0.29192 | 0.29140 | 0.29087 | 0.29036 |
| TokenMoE+SSL (xlarge, full-data only) | - | - | - | - | - | 0.29027 |
| Transformer+TabM (tiny) | 0.29321 | 0.29250 | 0.29186 | 0.29129 | 0.29099 | 0.29087 |
| Transformer+TabM (small) | 0.29288 | 0.29223 | 0.29166 | 0.29112 | 0.29085 | 0.29069 |
| Transformer+TabM (medium) | 0.29282 | 0.29217 | 0.29147 | 0.29124 | 0.29069 | 0.29056 |
| Transformer+TabM (large) | 0.29288 | 0.29219 | 0.29160 | 0.29108 | 0.29080 | 0.29059 |
Table 25: Size-by-fraction results for progressive Transformer fixes. The TokenMoE+SSL xlarge point is a full-data-only run.
| Model | 5% | 10% | 25% | 50% | 75% | 100% |
|---|---|---|---|---|---|---|
| TabM (small) | 0.29389 | 0.29252 | 0.29163 | 0.29121 | 0.29080 | 0.29066 |
| TabM (medium) | 0.29443 | 0.29325 | 0.29186 | 0.29108 | 0.29063 | 0.29048 |
| TabM (large) | 0.29681 | 0.29545 | 0.29263 | 0.29104 | 0.29028 | 0.28984 |
| TabM (xlarge) | 0.29599 | 0.29566 | 0.29249 | 0.29107 | 0.29021 | 0.28984 |
| TabM-mini (small) | 0.29380 | 0.29267 | 0.29167 | 0.29118 | 0.29097 | 0.29066 |
| TabM-mini (medium) | 0.29430 | 0.29323 | 0.29184 | 0.29110 | 0.29066 | 0.29034 |
| TabM-mini (large) | 0.29629 | 0.29515 | 0.29252 | 0.29104 | 0.29024 | 0.28989 |
| TabM-mini (xlarge) | 0.29610 | 0.29520 | 0.29263 | 0.29116 | 0.29046 | 0.28986 |
| TabM-mini (xlarge-2, full-data only) | - | - | - | - | - | 0.28903 |
| TabM-mini (gigantic, full-data only) | - | - | - | - | - | 0.28885 |
Table 26: Size-by-fraction results for TabM and TabM-mini. The final two rows are full-data-only extensions.
C Chinchilla-Style Scaling: Technical Explainer
This appendix records the derivation behind the Chinchilla-style allocation statement used in Section 7.6.
C.1 Setup and notation
We use for labelled training rows and for trainable parameters. Our data exponent is and our parameter exponent is . The additive bivariate scaling law is
The first term is the finite-data contribution to reducible loss; the second is the finite-parameter contribution. Thus, at fixed , doubling multiplies the data term by . At fixed , doubling multiplies the parameter term by .
Those isolated comparisons are not yet a compute-optimal statement. Chinchilla-style arguments ask a different question: under a compute constraint, how should and co-grow? We use the first-order approximation
At fixed , increasing forces down, and increasing forces down. The problem is therefore a constrained allocation problem, not a direct comparison of and .
C.2 Derivation
Ignoring constants in the compute proxy, minimize
subject to . The Lagrangian is
The first-order conditions imply
Multiplying the first equation by and the second by gives the marginal balance condition
Solving Equation (C.3) together with yields
This is the allocation rule reported in the main text.
C.3 Resolving the apparent paradox
The apparent paradox is that the resource with the larger isolated exponent receives the smaller growth share under the compute-optimal allocation. The reason is that a larger exponent means that resource's own error term is easier to reduce. The optimizer spends enough on that resource to balance marginal returns, then the slower-shrinking term becomes the bottleneck.
Equation (C.3) makes this precise:
If , the finite-parameter term is larger at the optimum and the compute-efficient path grows parameters faster than data. If the notation is reversed, as in some language-model scaling papers, the same algebra can imply faster token growth. This is why Chinchilla-style conclusions must always be read with the resource attached to each exponent stated explicitly.
Because all observed ratios are below one, the formal Chinchilla-style implication in our notation is parameter-heavy co-scaling: along the fitted local frontier, grows faster than . The size of the ratio is important. Ratios close to zero, such as TokenMoE without SSL, mainly indicate weak parameter scaling: added capacity is not reliably converted into lower deviance under the supervised recipe. Ratios closer to one, especially for TabM/TabM-mini, describe a more balanced joint-scaling regime in which both additional labelled rows and additional parameters contribute measurably to lower held-out deviance.
| Family | growth if doubles | |
|---|---|---|
| FFN | ||
| Vanilla transformer | ||
| MultiCLS transformer | ||
| Transformer+TabM | ||
| TokenMoE | ||
| TokenMoE+SSL | ||
| TabM/TabM-mini |
The table uses the TabM/TabM-mini summary exponent . If instead we use the main-sweep TabM data exponent , then , or growth of about per doubling of . This alternative is less parameter-heavy than the 0.36 ratio in the table, but the ratio remains below one, so the allocation rule still has growing faster than while requiring meaningful data growth alongside capacity growth.
Thus, interpreted under the fitted additive law and , labelled data remain relevant while the parameter-side term is the slower-shrinking bottleneck in this experimental range. For the weakest Transformer ratios, the practical conclusion is to improve the architecture or training signal before mechanically increasing size. For TabM/TabM-mini, the ratio is still below one but much larger, so parameter growth remains the faster axis while data growth remains a meaningful co-scaling requirement.
For our TabM/TabM-mini summary, and , so . The heuristic allocation is therefore
Both data and parameters increase with compute, but parameters increase faster along this fitted local frontier. This result is also only a per-epoch compute heuristic: with early stopping, realized training compute is closer to , so an exact total-compute optimum would require modelling stopping time as part of the scaling law.