Manuscript Offprint

arXiv:2611.05940

BAM: Bivariate Additive Models for Interpretable Tabular Prediction

Atsushi Koike

Atsushi Koike[0000-0002-6262-4308]

Tohoku University, Sendai, Japan koike@tohoku.ac.jp

Abstract. Generalized Additive Models with pairwise interactions (GA²Ms) are regarded as glass-box models, since each pairwise shape function can be visualized as a contour plot. In practice, the shape functions learned by methods such as EBM or NODE-GAM are so complex—irregular contours and sharp local fluctuations—that a practitioner cannot meaningfully interpret them or check them against domain knowledge. Auditability in this stronger sense requires substantially simpler shape functions. We argue that such simplification can match the accuracy of standard GAMs if the right feature pairs are captured. We propose Bivariate Additive Models (BAMs), a class of GA²Ms in which every pairwise shape function is constrained to a simple parametric form, instantiated as an asymmetric bivariate Gaussian. Each component is visualizable as a unimodal contour map, and its feature pair is selected automatically during training. Experiments on six tabular benchmarks show that BAM attains predictive accuracy comparable to standard GAMs and approaches that of GA²Ms. We also show the trade-off between accuracy and the number of components to inspect.

Keywords: Glass-box models · Generalized additive models · GA²M · Interpretability · Tabular prediction · Bivariate Gaussian.

1 Introduction

Machine learning is widely used for important decisions in society, such as medical diagnosis [4], financial lending, and judicial judgment [19]. A closely related need arises in industrial settings (e.g., a production line monitored by many sensors), where practitioners must identify which small subset of variables—or pairs of variables—drives an outcome from among hundreds of recorded signals, in a form they can quickly share with domain experts. In such settings, high predictive performance alone is insufficient: the criteria behind specific predictions must be transparent and intelligible enough to be examined, questioned, and accepted as reasonable.

Unfortunately, understanding why a particular prediction was made is typically challenging. Techniques such as LIME [18] and SHAP [13] have been proposed to provide post-hoc explanations for predictions. However, these explanations can differ substantially from actual model behavior [21]. Models whose prediction processes are inherently visible are known as glass-box models. Against this backdrop, the importance of glass-box models is increasingly recognized.

Generalized Additive Models (GAMs) are a representative class of glass-box models that achieve high predictive accuracy. GAMs compute a score for each feature and sum

A. Koike

them up along with a bias term to obtain the final prediction. For example, when predicting disease risk from health checkup data, the model uses a per-feature shape function to compute an individual risk score for each measurement (e.g., blood pressure, BMI), and these individual scores are summed to obtain the total risk score. Visualizing these shape functions provides interpretability of the prediction process. GA²M extends this concept by incorporating pairwise interactions. In GA²Ms, shape functions can depend on two features (e.g., a function of both “age” and “blood pressure”), which allows the model to capture complex relationships between features.

Existing research on GAMs and GA²Ms has primarily focused on approximating the true underlying function as accurately as possible. Consequently, the resulting shape functions tend to become excessively complex (as shown in Fig. 3), exhibiting irregular contours and sharp local fluctuations. Such complexity makes it difficult for a practitioner to interpret each shape function on its own. Checking whether the criterion the model has learned makes sense given established knowledge in the application domain is even more difficult. For applications where the model itself must be auditable—not merely accurate—these complex shape functions are unsuitable, regardless of how well they approximate the underlying function.

To address this, we argue that the shape functions of a GA²M should be substantially simpler than those produced by unconstrained fitting. A natural concern is that such radical simplification will sacrifice predictive accuracy. The central claim of this paper is that this is not necessarily true: if the right pairs of features are captured, strongly constrained pairwise functions can match the accuracy of standard GAMs and approach that of GA²Ms.

We propose Bivariate Additive Models (BAMs), a class of GA²Ms in which every pairwise shape function is constrained to a simple parametric form. BAM learns the feature pair for each component via a differentiable selection mechanism. Each component is visualizable as a single contour map. In this work, we instantiate the shape function as an asymmetric bivariate Gaussian (Bigaussian).

BAM computes the prediction as a sum of bivariate functions. This simplicity allows users to intuitively understand how input values affect the output. Figure 1 shows an example of BAM applied to the Titanic passenger survival prediction task. In this example, the model calculates a logit by summing the outputs of three components (bivariate functions) and a bias term (-0.010). The survival probability is obtained by passing this logit through a sigmoid function, where a positive logit indicates a prediction of survival. Crucially, important features for prediction are aggregated into these three components. For instance, the first component indicates that the survival probability increases for females (sex_male=0) in the upper class (pclass=1). In this way, features important for prediction are successfully extracted into a few components.

Each component in BAM represents the deviation of the output from a baseline value (bias term). The concept of attributing deviations from a baseline to features is similar to SHAP [13]. However, while SHAP estimates feature contributions in a post-hoc manner, BAM directly adds the calculated values to the final output. Consequently, BAM is inherently free from the reliability issues associated with post-hoc contribution estimation in SHAP. Furthermore, BAM can assign values to feature pairs, which is particularly effective for datasets where interactions are critical.

Figure

Figure

Figure

logit=bias+comp.1+comp.2+comp.3=(−0.010)+(0.005)+(−2.012)+(0.097)=−1.919<0⇒prediction=0(true label=0)\begin{aligned}logit&=bias+comp.1+comp.2+comp.3=(-0.010)+(0.005)+(-2.012)+(0.097)=-1.919\\&<0\Rightarrow prediction=0\quad(true~label=0)\end{aligned}

Fig. 1. Visualization of passenger survival prediction on the Titanic dataset using the proposed model (BAM). The model calculates a single prediction by summing the scores from three bivariate graphs and a bias term (-0.010). The visualized values represent logits, where a positive total score indicates a prediction of survival. The blue points indicate the scores for a single sample, and the red crosses represent the centers of the Gaussian components.

We empirically demonstrate that BAMs achieve predictive accuracy comparable to standard GAMs and approach that of GA 2^{2}Ms. We also compare BAM visualizations with those of GA 2^{2}Ms and SHAP, and show that BAM makes the overall model behavior easier to grasp. Furthermore, we show how accuracy improves as the number of components increases.

References (21)