Hostname: page-component-74656f9884-7drmj Total loading time: 0 Render date: 2026-11-04T12:34:18.983Z Has data issue: false hasContentIssue false

Tree-like pairwise interaction networks

Published online by Cambridge University Press:  18 September 2026

Ronald Richman
Affiliation:
InsureAI, South Africa
Salvatore Scognamiglio*
Affiliation:
Management and Quantitative Sciences, University of Naples – Parthenope, Italy
Mario Wüthrich
Affiliation:
Department of Mathematics, ETH Zurich, Switzerland
*
Corresponding author: Salvatore Scognamiglio; Email: salvatore.scognamiglio@uniparthenope.it
Rights & Permissions [Opens in a new window]

Abstract

Modeling feature interactions in tabular data remains a key challenge in predictive modeling, for example, as used for insurance pricing. This paper proposes the tree-like pairwise interaction network (PIN), a novel neural network architecture that explicitly captures pairwise feature interactions through a shared feed-forward neural network architecture that mimics the structure of decision trees. PIN enables intrinsic interpretability by design, allowing for direct inspection of interaction effects. Moreover, it allows for efficient SHapley’s Additive exPlanation computations because it only involves pairwise interactions. We highlight connections between PIN and established models such as GA$^{2}$Ms, gradient boosting machines, and graph neural networks. Empirical results on the popular French motor insurance dataset show that PIN outperforms both traditional and modern neural network benchmarks in predictive accuracy, while also providing insight into how features interact with each another and how they contribute to the predictions.

Information

Type
Original Research Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of The Institute and Faculty of Actuaries
Figure 0

Figure 1 Activation functions: (centered) hard sigmoid, sigmoid, and step function.

Figure 1

Figure 2 Interaction layers: (lhs) σhard(xj+xk)$\sigma _{\mathrm {hard}}(x_j+x_k)$ and (rhs) σhard(xj/3+xk)$\sigma _{\mathrm {hard}}(x_j/3+x_k)$ for j$j\lt k$.

Figure 2

Figure 3 Heatmap of predicted frequencies of the linear off-diagonal PIN only considering the features “DrivAge” and “log-density”.

Figure 3

Figure 4 Heatmaps of predicted frequencies of (lhs) the off-diagonal PIN with 1D embedding (d=1$d=1$), and (rhs) GLM only considering the two features “DrivAge” and “log-density”.

Figure 4

Figure 5 Heatmaps of predicted frequencies of (lhs) the off-diagonal PIN with 4D embedding (d=4$d=4$), and (rhs) GLM only considering the two features “DrivAge” and “log-density”.

Figure 5

Table 1. Selected PIN architecture used on the French MTPL datasetTable 1 long description.

Figure 6

Table 2. Number of parameters, in-sample and out-of-sample Poisson deviance losses (units are in 10−2$10^{-2}$); benchmark models are taken from Wüthrich and Merz (2023, Table 7.9), Brauer (2024, Tables 2 and 4) and Richman et al. (2025, Table 2); for the ensemble models we state the number of parameters of a single model because each one is trained individually. The best out-of-sample performance is highlighted in boldTable 2 long description.

Figure 7

Figure 6 Heatmaps of predicted frequencies of (lhs) tree-like PIN and (rhs) GLM on all available features.

Figure 8

Figure 7 (lhs) Friedman and Popescu (2008)’s H2$H^2$-statistics, and (rhs) PIN interaction importance.

Figure 9

Figure 8 (lhs) PIN interaction importance – 1st round (this plot is identical to Figure 7, rhs), and (rhs) PIN interaction importance – 2nd round.

Figure 10

Figure 9 (lhs) SHAP waterfall graph (ψj)j=1q$(\psi _j)_{j=1}^q$ of a single instance x$\boldsymbol{x}$ and (rhs) SHAP variable importance.

Figure 11

Figure 10 Figure 10 long description.(lhs) Dependence between driver’s age and the bonus-malus variable, this graph is taken from Wüthrich and Merz (2023, Figure 13.12), and (rhs) Shapley values ψj(i)$\psi _j^{(i)}$ of the selected 100 instances i∈I$i\in \mathcal{I}$ for the covariate j=DrivAge$j=\texttt {DrivAge}$; the coloring is the bonus-malus level of these instances.

Figure 12

Table 3. Policy-level covariates and their descriptionsTable 3 long description.

Figure 13

Table 4. Number of parameters, in-sample and out-of-sample Poisson deviance losses (units are in 10−2$10^{-2}$) on the Belgian MTPL dataset; for the ensemble models, we state the number of parameters of a single model because each one is trained individually. The best out-of-sample performance is highlighted in boldTable 4 long description.

Figure 14

Figure 11 SHAP variable importance on Belgian MTPL dataset.

Figure 15

Figure 12 (lhs) PIN interaction importance on Belgian MTPL dataset – 1st round, and (rhs) PIN interaction importance – 2nd round.