Manuscript Offprint

arXiv:2610.41046

Localizing predictive concepts encoded in neural representations via hierarchical testing

Viktoriia Huryn, Marco Simnacher, Jim Berend, Wojciech Samek, Christoph Lippert, Sonja Greven, Uwe Ohler

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

ABSTRACT

Understanding which regulatory sequence motifs a genomic deep learning model has learned, with statistical error guarantees, is essential for trusting its use in downstream tasks such as variant effect prediction. Existing approaches to identifying which units in a trained network encode human-understandable concepts fall into two groups. Exploratory methods rank and visualize units but offer no statistical guarantee that the selected units are associated with the prediction target across the population of inputs. Testing-based methods test only single units or one pre-defined set of them, and do not control the error across the many sets of units. We introduce CUTTIE (Cluster-tree Unit Top-down Testing of Independence with Error control), which clusters the units of each layer into a tree and tests the clusters top-down with conditional independence tests, localizing information about the target while controlling the family-wise error rate. Thereby, we identify clusters that carry information about the target beyond the rest of the layer. For the units in the identified clusters, conditional attribution maps then reveal what motifs they encode. In a controlled simulation, the procedure identifies the clusters whose concepts affect the target. We apply the procedure to a convolutional model predicting cell-type-specific chromatin accessibility from DNA sequence, where the concepts encoded in the identified clusters map onto known regulatory motifs.

1 Introduction

Concept-based explanations go beyond input attribution by relating a model's internal representations to human-understandable concepts, either user-defined or discovered automatically, and by quantifying how much these concepts influence the model's predictions. Deep neural networks that predict molecular readouts such as chromatin accessibility from DNA sequence are widely used to estimate variant effects, i.e., how a mutation changes the predicted activity. Trusting these estimates requires checking that the change is driven by the correct regulatory concepts, such as transcription factor binding motifs (short DNA patterns recognized by regulatory proteins), which in turn requires knowing how and where in the network such concepts are encoded. In computer vision, attribution maps of individual units can often be interpreted directly by visual inspection. In genomic models that predict DNA activity from sequence, however, attribution maps cannot be interpreted with biological concepts by visual inspection alone and require downstream analyses such as motif discovery. This makes it essential to narrow down which units are worth analyzing.

Most existing approaches to identifying these units are exploratory. Methods such as TCAV [Kim et al., 2017], ACE [Ghorbani et al., 2019], and CRAFT [Fel et al., 2022] surface attribution maps or concept-activation scores that a human judges plausible, with no statement of statistical confidence. However, a unit can appear highly relevant to a prediction by chance alone. Establishing that it is genuinely connected to the prediction target therefore requires population-level evidence with explicit error control. A smaller line of work adds formal hypothesis testing, but each instance addresses only part of the problem. Bykov et al. [2023] test whether a unit's activations differ between concept-positive and concept-negative samples, but treat units independently and apply no multiple-testing correction (p-values are evaluated at a nominal 0.05). Teneggi and Sulam [2024] test conditional independence between model predictions and a concept and do correct for multiple testing, but only across a small set of pre-specified concepts. Neither addresses which units or clusters of units in a layer carry predictive information, while controlling the error across the many candidates. Such error control across nested clusters of correlated variables is provided by hierarchical testing procedures [Meinshausen, 2008, Mandozzi and Bühlmann, 2016], but they were formulated for tests in linear models and have not been applied to network units, which are strongly correlated, come without a given hierarchy, and lack established hypotheses and test statistics. Since their error control only requires a hierarchy fixed in advance and a valid p-value for each cluster [Goeman and Solari, 2010], these tests can be replaced, as Paillard et al. [2025] do with conditional permutation importance for the inputs of a prediction model. We instead test units inside a network and allow any conditional independence test (CIT), a general class that includes such importance-based tests. We use the generalized covariance measure [GCM; Shah and Peters, 2020], which only requires flexible regressions rather than conditional sampling. Such tests have been successfully applied to fixed network representations [Simnacher et al., 2026a,b], whose features are strongly correlated and depend nonlinearly on each other, but only to test a representation as a whole. Other hierarchical approaches for network inputs cluster them by their contribution to the network's prediction, but without error control [e.g., Singh et al., 2019].

We propose CUTTIE (Cluster-tree Unit Top-down Testing of Independence with Error control) – a hierarchical testing procedure for localizing information about the prediction target within the layers of a trained network while controlling the family-wise error rate (FWER). Per layer, we cluster units into a tree based on their scores, such as activations or relevance scores. Traversing the tree top-down, we apply conditional independence tests (CITs) to the target and the scores of the units in each cluster given the scores of the remaining units, and thereby identify which clusters carry information about the target beyond the rest of the layer. The procedure applies to activations, which identify units that encode predictive information, and to relevance scores from Concept Relevance Propagation (CRP) [Achtibat et al., 2023], which identify units the model relies on for its predictions. Conditional attribution maps of the selected units then show which concepts they encode. To our knowledge, this is the first framework to combine formal, hierarchical error-rate control with concept-level attribution in neural networks.

We demonstrate CUTTIE in a challenging genomics setting, where concepts cannot be interpreted directly from visualizations, some motifs are universally active across cell types and can be spuriously associated with cell-type-specific outcomes, experimental noise is high, and only a limited number of units and their encoded motifs can be validated against a motif database. We apply CUTTIE to a sequence-to-activity (S2A) model trained to predict DNA activity from sequence across cell types of the zebrafish embryo. CUTTIE identifies non-redundant units that are predictive of DNA activity in individual cell types. Downstream analysis shows that these units correspond to known regulatory motifs, and that the model relies on them to distinguish between cell types: the motifs recovered from their attribution maps agree with the cell types in which they are reported to be active in the literature.

Our contributions are: (1) a hierarchical testing procedure that localizes predictive information in neural network layers with FWER control, for activation and CRP scores, together with a characterization of the hypotheses tested at each node for a fixed, trained network; (2) conditional independence tests suited to vector-valued responses and the strong correlations among units; and (3) a simulation with known ground truth and an application to a DNA sequence-to-activity model.

References (23)