arXiv:2611.05986cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05986

A Comparative Study of Importance Attribution to Columns in Deep Learning over Relational Databases

Hila Levi-Yosefi, Shunit Agmon, Ester Livshits, Agapi Rissaki, Benny Kimelfeld

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hila Levi-Yosefi

Technion

Haifa, Israel

hilalevi@campus.technion.ac.il

Shunit Agmon

Technion

Haifa, Israel

shunita@campus.technion.ac.il

Ester Livshits

Technion

Haifa, Israel

esterliv@technion.ac.il

Agapi Rissaki

Northeastern University

Boston, USA

rissaki.a@northeastern.edu

Benny Kimelfeld

Technion

Haifa, Israel

bennyk@cs.technion.ac.il

ABSTRACT

Deep learning over relational databases has led to increasingly effective prediction models, motivating a growing need to explain their behavior. We study explanation methods that assign importance scores to individual database attributes, focusing on a fundamental question: to what extent does the choice of importance-attribution method matter? We develop a methodology to systematically compare importance-attribution methods and analyze their similarities and differences. In particular, we study two aspects of the explanations: which attributes they deem important, captured by differences in attribute rankings, and how importance scores vary across attributes, captured by differences in score distributions. We further investigate whether these differences are reflected in the conventional measure of explanation quality, fidelity.

We apply our methodology in an extensive empirical study of four methods: Monte Carlo Shapley, Kernel SHAP, single-attribute impact, and mask learning. We experiment with multiple datasets and tasks using two RDL architectures: heterogeneous GraphSAGE and Relational Graph Transformers. Our experiments show that explanation methods behave differently depending on the prediction type: regression or classification. In regression, most methods exhibit high agreement in attribute rankings, whereas classification yields considerably less consensus. Notably, while mask learning frequently diverges in its importance distributions, Shapley-based methods and single-attribute impact often converge to similar explanations. This suggests that, in many settings, single-attribute impact can replace Shapley at substantially lower computational cost. Overall, our study provides methodological tools for comparing importance-attribution methods, and empirical evidence that their choice has important consequences for interpreting relational deep learning models.

1 INTRODUCTION

Modern machine learning (ML) is applied to relational databases through various common approaches. One approach represents a relational database as a graph, where nodes correspond to entities (tuples) and edges capture relationships between them (typically induced by foreign-key constraints); then, graph-based deep learning models (e.g., graph neural networks) are trained directly on this representation [11, 16, 22, 68, 70, 71]. A second approach designs neural architectures that operate directly over the database,

explicitly modeling tuples, attributes, and their relationships; examples include Relational Transformers [56], KumoRFM-2 [40], and neuro-relational programs [48, 66]. A third approach transforms the database into a single flat table, using techniques such as deep feature synthesis [42] and the ACORA architecture [55], and then applies a model designed for tabular data [32, 51], such as TabPFN [38].

Importantly, the above approaches rely on modeling complex interactions among database components (e.g., records and cells), often using deep learning architectures that incorporate mechanisms like attention and transformers. While these interactions allow the models to exploit information distributed across the relational structure, they also make it difficult to understand how individual components of the database contribute to a prediction. To this end, the field of Explainable Artificial Intelligence (XAI) studies methods for clarifying the behavior of complex models [4, 35, 50, 53, 63]. Explanations can be local, seeking to explain a prediction for a particular input, or global, seeking to describe the behavior of the model more broadly. They may also differ in the type of information they provide. Contrastive (or counterfactual) explanations identify changes to the input that would lead to a different outcome [7], while abductive explanations identify a restricted part of the input that is sufficient to support the observed outcome [50].

In this paper, we present an experimental study of a particular class of global explanations—those that assign an importance score to each data attribute (i.e., column) in a relational database, quantifying its contribution to the model's predictions [58]. Such explanations can help data owners understand what the model relies on when making predictions, which parts of the data are most influential in decisions concerning individuals, and whether unexpectedly high importance assigned to certain attributes may reveal data leakage or other artifacts in the dataset's construction. This setting differs fundamentally from standard feature-importance analysis for single-table models [10, 24, 49]. In the latter, each column typically corresponds directly to a feature of the target instance being predicted. In a relational database, by contrast, an attribute may belong to a relation that is several foreign-key hops away from the target relation. Its values may therefore influence a target prediction only indirectly, through the relational structure and the model's aggregation mechanisms. Moreover, the same attribute value may contribute to the predictions for one, several, or many target instances. Consequently, attributing importance to database columns sheds light not only on the predictive effect of a feature, but also on how information propagates and is reused across the relational structure.

But how should the importance of an attribute be measured? There are multiple approaches to this task, drawing on techniques developed in both ML and databases, each embodying a different notion of what it means for an attribute to be important [15]. Since all of these methods aim to quantify an attribute's contribution to the model's predictions, one might expect them to agree, at least broadly, on which attributes matter and how much. If, however, well-founded methods produce substantially different insights, then the choice of explanation method is not merely a technical detail: the same model may admit conflicting accounts of what drives its predictions, depending on the explanation method of choice, potentially leading to different operational or scientific conclusions [43]. Our study examines this question. We compare explanation methods along three dimensions: whether they induce similar rankings of the attributes, whether they produce similar distributions of importance scores, and how these differences relate to the conventional notion of fidelity [3, 47, 75], which evaluates the effect of retaining or removing (or masking) database attributes.

We study four explanation methods that embody different notions of importance. The first, single-column ablation, is a direct instantiation of removal-based explanations [10, 15], and quantifies the impact of an attribute by masking its column and quantifying the resulting change in the model's predictions. Two more methods are based on the Shapley value [65]—a traditional contribution measure from cooperative game theory that has been applied in a plethora of domains, including ML [62] and databases [8]. We show that the exact Shapley value is computationally intractable even for extremely limited architectures (Theorem 4.1), and employ two distinct approximation strategies: Monte Carlo, which is the direct sampling approach to estimating the Shapley value's expectation [62], and Kernel SHAP [49], which estimates the Shapley values through a weighted linear surrogate model fitted over sampled coalitions. The last method is Mask Learning, a recently proposed approach for relational deep learning that optimizes a sparse mask over the database attributes so as to preserve the model's predictions while retaining only the most important attributes [58].

Our study considers two graph-based relational deep-learning architectures: Heterogeneous GraphSAGE (HGS) [23, 36] and the Relational Graph Transformer (RelGT) [19]. Using these architectures as experimental testbeds, we develop quantitative analyses and visualizations to characterize agreement among explanation methods along two dimensions: the rankings they induce over attributes and the distributions of the importance scores they assign (Section 5).

Our study leads to several conclusions. First, addressing the concern that different explanation methods might yield conflicting insights, we find that the extent and pattern of agreement are dominated by the nature of the predictive task rather than the underlying relational deep-learning architecture. In regression tasks, most methods exhibit high agreement, isolating a tight core of critical attributes. In contrast, explanations for classification tasks exhibit much more disagreement between the methods.

Within this task-driven context, we observe consistent behavioral patterns among the explanation methods themselves. Single-column ablation and the two Shapley-based approximations (Monte Carlo and Kernel SHAP) often converge to highly similar explanations, exhibiting strong alignment in both their attribute rankings and score distributions. Given this high level of agreement, our findings suggest that in many cases, practitioners can avoid the high computational cost of Shapley approximations in favor of the faster single-column ablation method, without sacrificing the quality of the explanation. Mask Learning, on the other hand, frequently diverges from this consensus in how it distributes importance scores. This is likely because it aims to identify a set of attributes that are jointly sufficient for the prediction by treating each attribute as either included or excluded. This contrasts with approaches that assign each attribute an individual contribution score to produce a fine-grained ranking. This indicates that the choice of an explanation method should be carefully aligned with the specific notion of importance the practitioner seeks to capture.

These findings suggest that importance-attribution methods should not be regarded as interchangeable ways of recovering a single explanation. Rather, the choice of method and the notion of importance it captures should be made explicit when interpreting the resulting scores. When conclusions depend on attribute importance, examining more than one explanation method may provide useful evidence about the extent to which these conclusions are robust to this choice. Our findings also reveal that, when associating an explanation with a model, it is important to examine the properties of the explainers with respect to different scenarios.

Contributions. In summary, our contributions are as follows:

(1) We present a framework for comparing attribute-importance explanations in relational deep learning, and study four representative methods within this framework: single-column ablation, Monte Carlo Shapley, Kernel SHAP, and mask learning.

(2) We develop methodologies and visualizations for systematically comparing importance attribution methods along two complementary dimensions: the rankings they induce over database attributes, and the distributions of the scores they assign. We further examine how agreement along these dimensions relates to the conventional fidelity-based evaluation of explanations.

(3) We conduct an extensive empirical study of the four methods across multiple relational datasets and prediction tasks, using two different architectures for relational deep learning over databases: Heterogeneous GraphSAGE and Relational Graph Transformer.

(4) We observe that an explainer's behavior depends heavily on the predictive task type (e.g., regression versus classification) and its underlying mathematical notion of importance (e.g., individual attribute ranking versus collective subset sufficiency). These results motivate practitioners to carefully consider the explanation's objective and the nature of the predictive task when choosing a method.

Organization. The remainder of the paper is organized as follows. We review related work in Section 2. Section 3 introduces our relational database setting, prediction models, and attribute-importance explanations. Section 4 presents the four explanation methods considered in our study and establishes the computational intractability of the exact Shapley value. Section 5 describes our experimental setup and presents our analysis of attribute rankings, importance-score distributions, and fidelity. We conclude in Section 6.