Manuscript Offprint
arXiv:2610.41046Localizing predictive concepts encoded in neural representations via hierarchical testing
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.

Figure 1: Overview of CUTTIE. The proposed procedure (top) and its reading in the application (bottom). (1) The network is fitted on a training sample and then fixed. (2) Each unit of layer receives as scores its activation () or its CRP relevance for each class (), collected in . (3) On a clustering sample, complete linkage builds a tree over the units, in which units with strongly correlated scores form one cluster , and a tree whose nodes are clusters of classes. (4) On an inference sample, is tested top-down for each internal node of (orange: rejected), with FWER control at level (Figure 2). The hypothesis , shown for activations, states that the units in carry no information about differences between the classes in beyond the rest of the layer (Subsection 2.6). For CRP scores, with responses and scores centered within , it reads for all , where the index selects the response and the scores for class . For a rejected pair , conditional attribution maps show which input patterns, here motifs, the units in detect.
The procedure is illustrated in Figure 1.
2.1 Unit scores
For a fixed layer of width , each unit receives scalar scores , per input, where each is a fixed function of the fitted network . The number depends only on the type of score: for class-independent scores such as activations, and for class-specific scores such as CRP scores, where indexes the class that is scored. We consider two scores:
For activations, let denote the activation of unit at sequence position , and let be its strongest response to any window of the input. This score is defined independently of the pooling used in the network. Activations do not depend on the class, so each unit has a single score, and . For CRP scores, we initialize the relevance at the output , redistribute it to the units of layer , and sum the resulting relevance map of unit over the sequence to obtain . Each input is attributed separately for every class , so each unit has one score per class. Activations characterize what a unit detects in the input, whereas CRP scores additionally reflect how the downstream network uses the unit for each class.
For , we center the scores of each unit across classes, , which removes the component shared by all classes, as it carries no information about differences between them. For , we do not center, omit the row index, and write ; when the scores are constant across classes, we also write for all classes . We collect the centered scores of layer in the matrix and omit the argument when it is clear from the context. For a cluster of units with complement , we write and for the columns of belonging to the units in and , and and for their entries for class .
2.2 Hypotheses
To detect units whose scores carry information about differences between the class responses, we center the responses across classes, , which removes the component shared by all classes. We write
. If differences between the responses are not of interest, e.g. for , we do not center, i.e. then and .
For scores that do not depend on the class (), such as activations, we test
For scores that depend on the class (), such as CRP scores, we test
which relates the scores for each class only to the response of the same class.
2.3 Hierarchy and localization
To localize clusters and units whose scores carry information about the response differences, we apply the hierarchical testing procedure of Meinshausen [2008], Mandozzi and Bühlmann [2016] separately to each layer. For layer , we first remove units whose scores are constant on the clustering sample (see below), e.g. filters that never activate or units with zero relevance for all classes. Such units cannot be clustered (Subsection 2.4), and the hypotheses then refer to the remaining units, whose number we denote by from here on. We then construct one binary tree whose nodes are clusters of units: the root is the whole layer, the leaves are single units, and any two nodes are either disjoint or one contains the other (cf. Figures 1 and 2). At each node , we test equation 1 for activations and equation 2 for CRP scores, and denote its p-value by . We traverse top-down and reject iff the parent of was rejected (or is the root) and
Hence, the root is tested at level and a single unit at level , with clusters in between. We call null if holds and non-null otherwise. A false rejection is the rejection of a null . The FWER over the tree is the probability of at least one false rejection. The procedure controls the FWER at level if the FWER is at most whichever clusters are null.
Meinshausen [2008] and Mandozzi and Bühlmann [2016] formulate the procedure for the coefficients of a linear model, but their proof of FWER control only uses that the tree is fixed in advance (Subsection 2.4) and that each p-value is valid, i.e. for all if holds [see also Appendix A.3 and Goeman and Solari, 2010]. The FWER is therefore controlled for any hypotheses with valid p-values, and asymptotically for asymptotically valid ones, so we can replace the linear model by conditional independence tests (CITs), which do not assume a linear relation between scores and responses.
In addition to the training sample of , we use two further samples. On a clustering sample, we construct (Subsection 2.4). On an inference sample of i.i.d. copies of , we compute the p-values (Subsection 2.5). For the -th pair, we write , and for the scores, centered scores and centered responses, and , for the columns of belonging to and . Only the inference sample has to be drawn from ; the training and clustering samples may come from any distribution, as long as they are independent of the inference sample. Given these two samples, the model and are fixed, and FWER control holds conditionally on them.
2.4 Tree construction
Any tree constructed independently of the inference sample yields FWER control (Subsection 2.3), so the clustering only affects power and interpretation, and may, in general, be based on different unit scores than the tests.
We construct on a clustering sample by complete-linkage clustering with distance between units and , where is a correlation of their scores on the clustering sample. Complete linkage ensures that clusters low in the tree contain only mutually strongly correlated units, which are largely redundant with respect to their scores. Such units are hard to detect individually by conditional tests, whereas the cluster as a whole can still be detected [Mandozzi and Bühlmann, 2016].
For activation scores (), is the correlation of the two units' activations across the clustering sample inputs. For CRP scores (), is the pooled within-class correlation of the scores (Appendix A.1). Since the tests regress separately for each class (Subsection 2.5), units are redundant only if their scores co-vary across inputs within a class.
2.5 Tests at each node
If has an absolutely continuous distribution, no test that controls the type I error uniformly over the null has power greater than the level of the test against any alternative [Shah and Peters, 2020]. CITs with power therefore rely on assumptions that restrict the null hypothesis. We use the generalized covariance measure (GCM) of Shah and Peters [2020], which is applicable to multivariate responses and scores. It regresses the responses and the scores of the units in on the scores of the remaining units, and tests whether the residuals are correlated. Its validity requires that these regressions estimate the conditional means sufficiently well, and it has power only if for some class and unit , i.e. if the residuals are correlated in expectation.
Residual products. For each class , the responses and the scores of the units in are regressed on the class- scores of the remaining units. For activations, these are the activations of the remaining units, which are the same for every class, i.e. for all . For CRP scores, equation 2 relates the response of each class only to the relevance for the same class, given the relevance of the remaining units for that class. We therefore regress only on the relevance for class . Any regression method can be used, e.g. post-lasso (Appendix B.5). At the root, , and the regressions reduce to sample means. Let and be estimates of and . For each class and unit , we compute the residual product
and collect these in . For activations, does not depend on .
Test statistic. Let with entries , let be the empirical variance of , and let be the empirical correlation matrix of . Entries with are removed. Under , the standardized entries are asymptotically jointly normal with mean zero and covariance , the correlation matrix of [Shah and Peters, 2020]. We aggregate the standardized entries over classes and units by
and obtain its p-value by comparing with the maximum absolute entry of independent draws from [Shah and Peters, 2020, Section 3.2], cf. Appendix A.2. has most power if the signal is concentrated in few entries, i.e. few units and classes; an alternative quadratic statistic with more power against signals spread over many entries is given in Appendix C.
2.6 Localizing classes
Our procedure identifies clusters whose scores carry information about any difference between the class responses. To identify which classes this information corresponds to, we additionally construct a binary tree whose nodes are clusters of classes, by complete-linkage clustering on the clustering sample with distance so that classes whose responses vary together are grouped. The leaves of are single classes, for which the centered responses below vanish, so we test only at the internal nodes, the root and others, and denotes an internal node in the following. For each and , we center the responses and, for CRP scores, the scores within , and , and test, analogously to equation 1 and equation 2,
(activation),
(CRP),
where . At the root of , these are hypotheses equation 1 and equation 2; for , . As in Subsection 2.3, we call the pair null if holds and non-null otherwise. A rejection of means that the units in carry information about differences between the classes in beyond the rest of the layer.
We fix weights with in advance and, for each , apply the procedure of Subsection 2.3 on to , , at level , except that we test the global root, i.e. the root of paired with the root of , at level . We use and for the other internal nodes, so that the weights sum to one, but any other choice fixed in advance is valid; for , the root is the only internal node and . To reduce the

Figure 2: Top-down testing over the unit tree and the class tree for classes and units, with one run over per internal node of . In the run for , the pair is rejected if the parent of was rejected in this run and . The pair is skipped if was not rejected, so the runs for and only test clusters rejected in the run for the root (middle). The weights are at the root of and at the other two internal nodes, and the global root is tested at level (Appendix A.3). The FWER over all is at most . In this example, unit 1 is rejected for the differences among all four classes and also for the difference between classes 1 and 2, whereas no cluster is rejected for the difference between classes 3 and 4.
number of tests, we process the nodes top-down and, for a non-root , skip if was not rejected, where denotes the parent of in . Figure 2 illustrates the procedure. The procedure controls the FWER over all pairs with and an internal node of at level (Appendix A.3). Skipping preserves this control, but for CRP scores it can cost power (Appendix A.4).
To test several layers , we apply the procedure to layer at level , with weights , fixed in advance, e.g. . This controls the FWER over all layers at level , whereas testing each layer at level controls it only at level (Appendix A.3).
2.7 Interpretation
A rejection is a population-level statement about the fixed network, the layer and ; a non-rejection is not evidence that is null, since the tests may lack power (Subsection 2.5). We state the interpretation for ; for , the response differences are those between the classes in . For activations, a rejection of means that the units in carry information about the response differences beyond the rest of the layer, whether or not the network uses them. For CRP scores, it means that the network uses the units in differently across classes, and that this difference carries information about the response differences beyond the relevance of the rest of the layer. Ranking units by relevance, in contrast, also selects units that the network uses but whose scores carry no information (Section 3). If is rejected but for none of the children of , the children may lack power or be null although is non-null, e.g. if the units in are strongly correlated because they detect the same or co-occurring patterns, so that the information of each child is contained in the units outside it. Similarly, if is rejected but for none of the children of , the information may concern differences between the two groups rather than within them.
A rejection does not by itself imply that the patterns detected by the units in drive the response differences. Since is a function of , it implies that the input carries information about these differences beyond the patterns detected by the other units. If the scores of the layer capture all information in the input about the differences, i.e. , the converse also holds, so that is equivalent to ; for CRP scores, this condition excludes additional information in units that the network does not use. That the patterns drive the differences further requires that no factor outside the input that affects the responses, such as a property of the genomic region, co-occurs with them.
2.8 Conditional attribution maps
For a rejected pair , we visualize which input patterns the units in detect by conditional attribution maps [Achtibat et al., 2023]. For an input and a class , we initialize the relevance at the output , propagate it

Figure 3: Simulation design. (a) Motif is inserted into if ; lines connect each motif to the class responses it affects for . In D2 and D3, arcs connect pairs of motifs with . (b) The filter of unit is the one-hot encoding of ; in D1, it ignores one position (dashed). Lines connect each unit to the outputs that use it.
to layer , set the relevance of all units outside to zero, and propagate the remaining relevance further to the input. The map assigns to each position and nucleotide the part of the prediction for class that passes through the units in . To summarize the maps of a unit over inputs, we use relevance-weighted nucleotide frequencies in the simulation (Appendix B.6) and TF-MoDISco tool ([Shrikumar et al., 2018]) in the application (Appendix E).
The maps are descriptive. They are computed only for the selected clusters and summarize only the inputs with the largest relevance, so no error control is claimed for them. Whether the detected patterns drive the response differences requires the conditions in Subsection 2.7.
3 Simulation
We check FWER control and power where the ground truth is known. Details are given in Appendix B and the simulation design is illustrated in Figure 3.
3.1 Design
Data and network. In our baseline scenario D0, we draw random DNA sequences of length 512 and random 8-mers , and insert motif into if , with independently. The responses of the classes are
where independently of , and . The tested layer has one convolutional unit per motif, whose filter is the one-hot encoding of , so that unit detects motif . A linear head maps the units to the outputs
where and is the activation of unit at position (Subsection 2.1). Hence the motifs of units 1–16 affect (real units) and the network uses units 1–8 and 17–24 (used units), which gives four groups of eight units: real & used, real & unused, shortcut, and null. Shortcut units mimic units a trained network relies on although their scores carry no information about beyond the real units [Geirhos et al., 2020], e.g. because the training sample was not drawn from .
Scenario variations. Three variations of D0 mimic properties of trained networks (Appendix B.3): filters that match their motif only approximately (D1), so that with probability unit misses an occurrence of or is activated by a variant that does not affect ; shortcuts whose motifs co-occur with real ones (D2); and redundant units that detect co-occurring motifs (D3). In D2 and D3, pairs of motifs have (Figure 3a). D2 () pairs the shortcuts 17–20 with the real & used units 1–4 and the shortcuts 21–24 with the real & unused units 9–12, and the null units 25–28 with 29–32. D3 () pairs units 1–4 with 5–8.
Ground truth. Let be the set of units whose scores carry information about given the scores of all other units. In all scenarios, is non-null iff (Appendices B.2 and B.3). For , . For , contains the real units for activations and the real & used units for CRP scores, and, for CRP scores in D2, also the shortcuts 21–24, as proxies of units 9–12, which are removed before testing.
Procedure and baselines. For and 200 replications, we build the tree on one half of the data (Subsection 2.4) and traverse it top-down on the other half with the max GCM at (Subsection 2.5), only for the root of , i.e. hypotheses equation 1 and equation 2, separately for activation and CRP scores, estimating the conditional means by post-lasso regressions with the R package comets [Kook and Lundborg, 2024]. We compare with three baselines that consider only single units. The flat conditional and the marginal test apply the max GCM to each single unit , given all other units and given no units, respectively, and reject if (Bonferroni). Top-, without error control, selects on the inference sample the units with the largest mean absolute score, summed over classes for CRP scores, with for activation and for CRP scores. Except for CRP scores in D2, where , this gives for , which favours top-.
Metrics. The FWER is the proportion of replications with at least one false rejection. For , it equals the rejection rate of the root; for , it also counts false rejections below the root. Following Meinshausen [2008], the power for a class of cluster sizes is the proportion of non-null clusters with that are rejected, pooled over replications (Appendix B.4). For top-, we treat selecting unit as rejecting , so its FWER is the proportion of replications in which it selects a unit outside , and its power is that for single units.
3.2 Results
Figures 5–8 in Appendix B show all results. In all scenarios, for both scores and both values of , the hierarchical max GCM keeps the FWER close to (Monte Carlo standard error ). In D0, its power increases with and with the cluster size, and approaches 1 for . It is lowest for single units, which are tested at level and only after all their ancestors are rejected. With activations, the procedure detects the real & used and the real & unused units, and with CRP scores only the real & used units. Top- selects a unit outside in almost every replication, so its FWER is close to 1. Its power stays near for all , since the mean absolute scores do not depend on and are exchangeable across the units in the tree. The conditional attribution maps of the units rejected for CRP scores in D0 recover the motifs of the real & used units, whereas top- also selects shortcuts with equally clean motifs (Figure 7). Since all motifs are random 8-mers, the maps alone cannot separate shortcuts from real & used units; the test does.
In D1, power decreases with , since the imperfect filters reduce the information that the scores carry about the motifs; for , it approaches 1 only for . In D2, the marginal test rejects the shortcuts correlated with real units, and its FWER approaches 1, whereas the hierarchical max GCM keeps it close to . For CRP scores and , the hierarchical max GCM also rejects the shortcuts 21–24, which are in as proxies of the real & unused units 9–12. As discussed in Subsection 2.7, such a rejection does not imply that their motifs drive . In D3, each unit of a pair carries little information beyond the other, so single units are reliably detected only for (activations) or (CRP). Since the hierarchical and the flat conditional procedure both test single units at level , the hierarchy cannot increase their power. It localizes the information to the pair instead: it rejects a cluster within almost every pair for all , whereas the flat conditional test needs .
4 Application
We apply the procedure to a convolutional sequence-to-activity (S2A) network trained to predict DNA activity across cell types. CRP scores every unit and input window but does not say which units matter; instead of ranking hundreds of correlated units by relevance, we test, with error control, whether the relevance of a unit or cluster of units carries information about the cell-type responses beyond the other units of the layer. A rejected unit is thus cell-type-specific and non-redundant, and the class tree ties it to the cell types it is relevant for.
4.1 Data, model, and interpretability target
The CNN maps a 512-bp one-hot-encoded zebrafish DNA sequence to pseudobulk ATAC-seq accessibility in 12 cell types, as a multivariate regression with one output per cell type (Appendix D). We apply the procedure to CRP relevance scores of the units in each convolutional layer, computed as described in Appendix D.4. The natural concept for such a model is a transcription factor (TF) motif, a short DNA sequence that a TF binds to regulate nearby genes. Curated resources provide position weight matrices for numerous TFs and annotate which TFs are active in which cell types [Ovek Baydar et al., 2025], so we expect the patterns of selected units to match the motifs of TFs active in the corresponding cell types (Appendix E). For evaluation, we use a reference set of 18,000 held-out windows, the 1,500 most cell-type-specific windows for each of the 12 cell types (Appendix D).
4.2 Results
Applied to the trained S2A model, our method selects 112 of 352 units across the five convolutional layers (Fig. 4a), narrowing the network to a small set of units that can be inspected individually. First-layer units are mostly specific to a single cell type, whereas units in layers 2–4 are often shared among cell types that are adjacent on the cell type tree (e.g., the neural group), reflecting the lineage structure of the data.
We matched a learned pattern for each selected unit, derived from its conditional attribution maps, to the core JASPAR motif database [Ovek Baydar et al., 2025]. First-layer units match TFs with known roles in the corresponding cell types, for example GATA2 for Endoderm, TFAP2E for Neural crest and TP73 for Epidermal, and the attribution maps place the pattern at the matched position (Fig. 4b). Across cell types, the enriched motif families follow the cell type tree (Fig. 4c): SOX in neural cell types, HOX/CDX and T-box in posterior mesoderm, and GATA, ETS and FOX in Endoderm and LM. As no motif information was given to the model during training, this agreement with known biology provides an independent check that the selected units capture meaningful concepts.
5 Conclusion
We proposed a hierarchical testing procedure to localize predictive information in the representations of a neural network with error control. Within a layer of a fixed trained network, it identifies the units and clusters of units whose scores carry information about the response differences between classes beyond the rest of the layer. The procedure controls the FWER over the whole hierarchy. Applying the procedure to activations and to CRP scores separates two questions: which units encode information about the responses, and which of these the network relies on. In the simulation, our procedure controlled the FWER in all scenarios and, with CRP scores, detected the units that are both informative and used by the network. Unlike testing single units conditionally with Bonferroni correction, it localized the information to clusters when correlated units could not be separated individually, whereas testing them marginally or ranking them by relevance also selected shortcuts that carry no information beyond the real units.
In the application to a sequence-to-activity model of zebrafish DNA accessibility, the procedure selected a set of units small enough to inspect one by one, whose patterns are consistent with known transcription factor motifs. The error control applies to the selection of units; the attribution maps and the motif matching are descriptive.
A rejection in our procedure is a statement about the fixed network, the layer and the distribution of the inference sample. It does not by itself imply that the detected input patterns drive the responses (Subsection 2.7). Power depends on how well the GCM regressions estimate the conditional means and on the tree, and strongly correlated units may only be detected jointly as a cluster. We evaluated the procedure only on DNA sequence models and for differences between class responses, although it applies to any input space and to responses that are not compared across classes (Section 2). The most natural extension is to test all layers jointly with error control that exploits their dependence, rather than a union bound over layers. Further directions are controlling the FDR instead of the FWER, and replacing units by other components of a representation, such as directions in activation space.
Acknowledgments
M. Simnacher, J. Berend, W. Samek, C. Lippert, S. Greven and U. Ohler were supported by DFG research unit DeSBI (KI-FOR 5363). V. Huryn was supported by a graduate fellowship in the Helmholtz International Berlin Research School for Data Science (HEIBRiDS).

Figure 4: Hierarchical testing localizes cell-type-specific concepts across layers. (a) Units selected per layer, with selected/total units in parentheses. Each layer is tested at level 0.005 (Subsection 2.6), so the FWER over all five layers is at most 0.025. Rows are cell types ordered by lineage tree; dot size shows mean absolute relevance and color the contribution sign. (b) Example first-layer units with best-matching motif and CRP attribution map. (c) Motif families matched by each cell type's top patterns; dot size is the number of unit-motif pairs (n per cell type) and color is log2 enrichment relative to the family's overall rate.
AI use statement
In this work, we used generative AI tools for help develop theoretical models or conceptual frameworks; refine hypotheses; design or provide feedback on research methodology or experiments; implement methods; interpret results. We have not used generative AI tools to generate synthetic data sets; clean and reformat datasets; support qualitative and thematic data analysis; discover research topics or identify gaps. Additionally, we used generative AI tools for create or modify scientific figures or images; suggest experimental parameters; create or edit software code; draft parts of a research paper; summarize or analyze existing literature; identify relevant literature.; We have reviewed all AI-assisted work by proofreading and editing generated code, text, and images. We have personally read and verified every paper cited in this work. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
Been Kim, Martin Wattenberg, Justin Gilmer, Carrie Cai, James Wexler, Fernanda Viegas, and Rory Sayres. Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (tcav). 2017. doi:10.48550/ARXIV.1711.11279. URL https://arxiv.org/abs/1711.11279.
Amirata Ghorbani, James Wexler, James Zou, and Been Kim. Towards automatic concept-based explanations, 2019. URL https://arxiv.org/abs/1902.03129.
Thomas Fel, Agustin Picard, Louis Bethune, Thibaut Boissin, David Vigouroux, Julien Colin, Rémi Cadène, and Thomas Serre. Craft: Concept recursive activation factorization for explainability. 2022. doi:10.48550/ARXIV.2211.10154. URL https://arxiv.org/abs/2211.10154.
Kirill Bykov, Laura Kopf, Shinichi Nakajima, Marius Kloft, and Marina Höhne. Labeling neural representations with inverse recognition. Advances in Neural Information Processing Systems, 36:24804–24828, 2023.
Jacopo Teneggi and Jeremias Sulam. Testing semantic importance via betting. Advances in Neural Information Processing Systems, 37:76450–76499, 2024.
Nicolai Meinshausen. Hierarchical testing of variable importance. Biometrika, 95(2):265–278, 2008.
Jacopo Mandozzi and Peter Bühlmann. Hierarchical testing in the high-dimensional setting with correlated variables. Journal of the American Statistical Association, 111(513):331–343, 2016.
Jelle J Goeman and Aldo Solari. The sequential rejection principle of familywise error control. The Annals of Statistics, pages 3782–3810, 2010.
Joseph Paillard, Antoine Collas, Denis A Engemann, and Bertrand Thirion. Hierarchical variable importance with statistical control for medical data-based prediction. In International Conference on Information Processing in Medical Imaging, pages 79–93. Springer, 2025.
R. Shah and J. Peters. The hardness of conditional independence testing and the generalised covariance measure. The Annals of Statistics, 48(3):1514–1538, 2020.
Marco Simnacher, Xiangnan Xu, Hani Park, Christoph Lippert, and Sonja Greven. Deep nonparametric conditional independence tests for images. Journal of Machine Learning Research, 27(96):1–73, 2026a.
Marco Simnacher, Georg Keilbar, Benjamin König, Christoph Lippert, and Sonja Greven. Embedded conditional independence tests for large language model generated text with an application to german parliament speeches. arXiv preprint arXiv:2609.00946, 2026b.
Chandan Singh, W. James Murdoch, and Bin Yu. Hierarchical interpretations for neural network predictions. In International Conference on Learning Representations (ICLR), 2019. URL https://openreview.net/forum?id=SkEqro0ctQ.
Reduan Achtibat, Maximilian Dreyer, Ilona Eisenbraun, Sebastian Bosse, Thomas Wiegand, Wojciech Samek, and Sebastian Lapuschkin. From attribution maps to human-understandable explanations through concept relevance propagation. Nature Machine Intelligence, 5(9):1006–1019, 2023. ISSN 2522-5839. doi:10.1038/s42256-023-00711-8. URL http://dx.doi.org/10.1038/s42256-023-00711-8.
Avanti Shrikumar, Katherine Tian, Žiga Avsec, Anna Shcherbina, Abhimanyu Banerjee, Mahfuza Sharmin, Surag Nair, and Anshul Kundaje. Technical note on transcription factor motif discovery from importance scores (tf-modisco) version 0.5.6.5, 2018. URL https://arxiv.org/abs/1811.00416.
Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A. Wichmann. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665–673, 2020.
Lucas Kook and Anton Rask Lundborg. Algorithm-Agnostic Significance Testing in Supervised Learning With Multimodal Data. Briefings in Bioinformatics, 25(6), 2024. doi:10.1093/bib/bbae475.
Damla Ovek Baydar, Ieva Rauluseviciute, Dina R Aronsen, Romain Blanc-Mathieu, Ine Bonthuis, Herman de Beukelaer, Katalin Ferenc, Alice Jegou, Vipin Kumar, Roza Berhanu Lemma, Jérémy Lucas, Mathis Pochon, Chang M Yun, Vivekanandan Ramalingam, Salil Sanjay Deshpande, Aman Patel, Georgi K Marinov, Austin T Wang, Alejandro Aguirre, Jaime A Castro-Mondragon, Damir Baranasic, Jeanne Chèneby, Sveinung Gundersen, Morten Johansen, Aziz Khan, Marieke L Kuijjer, Eivind Hovig, Boris Lenhard, Albin Sandelin, Klaas Vandepoele, Wyeth W Wasserman, François Parcy, Anshul Kundaje, and Anthony Mathelier. Jaspar 2026: expansion of transcription factor binding profiles and integration of deep learning models. Nucleic Acids Research, 54(D1):D184–D193, December 2025. ISSN 1362-4962. doi:10.1093/nar/gkaf1209. URL http://dx.doi.org/10.1093/nar/gkaf1209.
Jerome Friedman, Trevor Hastie, and Robert Tibshirani. Regularization paths for generalized linear models via coordinate descent. Journal of Statistical Software, 33(1):1–22, 2010. doi:10.18637/jss.v033.i01.
Christopher J Anders, David Neumann, Wojciech Samek, Klaus-Robert Müller, and Sebastian Lapuschkin. Software for dataset-wide xai: from local explanations to global insights with zennit, corelay, and virelay. PloS one, 21(1): e0336683, 2026.
Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015.
Grégoire Montavon, Alexander Binder, Sebastian Lapuschkin, Wojciech Samek, and Klaus-Robert Müller. Layer-wise relevance propagation: an overview. Explainable AI: interpreting, explaining and visualizing deep learning, pages 193–209, 2019.
Yang Joon Kim, Shruthi Vijay Kumar, Benjamin Iovino, Alejandro A. Granados, Sarah Ancheta, Max Frank, Xiang Zhao, Kyle Awayan, Amanda Seng, Michael Borja, Sheryl Paul, Honey Mekonen, Ritwicq Arjyal, Angela Detweiler, Yasin Şenbabaoglu, Rafael Gómez-Sjöberg, Norma Neff, Merlin Lange, and Löuc A. Royer. Zebrahub-multiome: Uncovering gene regulatory network dynamics during zebrafish embryogenesis. October 2024. doi:10.1101/2024.10.18.618987. URL http://dx.doi.org/10.1101/2024.10.18.618987.
Itai Yanai, Hila Benjamin, Michael Shmoish, Vered Chalifa-Caspi, Maxim Shklar, Ron Ophir, Arren Bar-Even, Shirley Horn-Saban, Marilyn Safran, Eytan Domany, Doron Lancet, and Orit Shmueli. Genome-wide midrange transcription profiles reveal expression level relationships in human tissue specification. Bioinformatics, 21(5): 650–659, 2004. ISSN 1367-4803. doi:10.1093/bioinformatics/bti042. URL http://dx.doi.org/10.1093/bioinformatics/bti042.
Appendix
A Method details
A.1 Correlation of CRP scores
For CRP scores (), we correlate the scores over all inputs and classes after subtracting from its mean over inputs for each class ,
with (co)variances over the inputs of the clustering sample. Without subtracting the means over inputs, units with similar mean relevance per class would be correlated even if their scores vary independently across inputs, although such units are not redundant for the tests. For , reduces to the correlation of the class contrasts and .
A.2 Monte Carlo p-value of the max GCM
Let be independent draws from , with entries indexed like those of . The p-value of node is
[Shah and Peters, 2020, Section 3.2]. Since , the entries of can be linearly dependent, e.g. for activations, where all classes are regressed on the same scores, so can be singular. This affects neither the draws nor , since neither requires inverting .
A.3 FWER control over the unit and class trees
All probabilities are conditional on the training and clustering samples, so both trees are fixed. For fixed , the run over is the procedure of Subsection 2.3 at level , which controls the FWER over , , at level if the p-values are valid [Meinshausen, 2008, Goeman and Solari, 2010]. Skipping only adds a condition for rejection and can therefore only remove rejections. Let and be the roots of and . If is non-null, rejecting it is not an error, and the bound for the run for is unchanged by testing it at level , since the bound depends only on the levels at which null pairs are tested. By the union bound over , the FWER is then at most . If is null, every other pair is tested only after is rejected: within a run, is tested only after , and for , only after . The FWER is then at most the probability of rejecting , i.e. at most . Neither case uses relations between the hypotheses, so the result holds for activation and CRP scores alike, and asymptotically for asymptotically valid p-values. For several layers tested at levels , the union bound over layers gives FWER control at level , and at level if each layer is tested at level .
A.4 Nesting of the hypotheses and power
Nesting affects only power. By the weak union property of conditional independence, implies for , so the ancestors in of a non-null pair are non-null. For activations, the hypotheses are also nested in , since is a function of for , so skipping never discards a non-null pair. For CRP scores, which are also centered within , can be non-null although is null, and skipping it then costs power.
B Simulation details
B.1 Data-generating mechanism
We draw sequences of length with nucleotides drawn uniformly from , one-hot encoded as , and random 8-mers . If , motif is inserted into at a randomly drawn position that does not overlap other inserted motifs. If a sequence contains a motif elsewhere by chance, it is redrawn. The responses are generated as in Section 3.
B.2 Network and ground truth
We describe the network and the ground truth for D0; Appendix B.3 gives the changes for D1–D3. We specify a CNN with a single convolutional layer of units, ReLU activation, global average pooling, and a linear head. The filter of unit has width 8, no padding, bias , and weights given by the one-hot encoding of motif . Writing for the letter at position of , unit computes, for ,
The sum counts the positions in the window starting at that agree with , so if the window equals and 0 otherwise. Since sequences containing a motif by chance are redrawn, motif occurs in exactly once if and not at all otherwise. Hence the activation score of Subsection 2.1 is , i.e. unit indicates exactly whether motif occurs in , and global average pooling outputs for unit . The linear head has weight from each unit to output , zero weights otherwise, and bias 1, so that
Since the head is linear, the relevance of unit for class , summed over positions, equals its contribution to , , up to a factor in our implementation (Appendix B.5).
For and activations, depends on only through , the scores of units 1–16, each with a nonzero coefficient, and the are independent. Hence, given , depends on iff contains one of units 1–16, so . For CRP scores, units 9–16 and 25–32 have and are removed before testing (Subsection 2.3), so the CRP-based trees contain the 16 used units, with centered scores . The part of not determined by these scores depends only on and , which are independent of the scores of all used units. Hence, given , depends on iff contains one of units 1–8, so . In both cases, is false iff . For , is independent of , so every holds.
B.3 Scenario variations
Scenarios D1–D3 modify the data-generating mechanism of Appendix B.1 and, in D1, the filters of Appendix B.2. The responses , the linear head and the procedure are as in D0, and indicators not mentioned below are independent as in D0.
D1: imperfect filters. For each unit , we draw a position uniformly from once for each value of , the same for all , and replications, and set the filter weights at position to zero and the bias to , so that
equals one iff the window starting at agrees with at all positions except . For , a variant of in position is with its letter at position replaced by one of the three other letters, drawn uniformly. Let be independent of each other and of all other variables. If and , we insert, instead of , a variant of in a position drawn uniformly from . If , we additionally insert a variant of in position . The responses depend on as in D0, so the first variant affects as does, whereas the second does not affect . Sequences in which a filter fires at a window not covered by an inserted motif or variant are redrawn. Hence
with and .
D2 and D3: correlated units. For a pair of units, is drawn as in D0 and
with and independent of each other and of all other variables. Then as in D0 and , so . D2 () pairs units 1–4 with 17–20, 9–12 with 21–24, and 25–28 with 29–32, each in order (e.g., 1 with 17), and D3 () pairs units 1–4 with 5–8.
Ground truth. In D1, the CRP scores of unit sum the relevance over positions and are therefore proportional to the number of windows at which unit fires, . Both and are functions of , which are independent across , and both carry information about , since and . Hence, given the scores of all other units in the tree, the scores of unit carry information about iff enters , i.e. for activations and for CRP scores.
In D2 and D3, as in D0, but the indicators of a pair are dependent. Since and are independent of all other variables, a unit whose indicator does not enter , i.e. a shortcut or null unit in D2, carries no information about beyond its partner if is in the tree. A real unit carries information beyond its partner, since its indicator enters and . For activations, all 32 units are in the tree, so . For CRP scores, units 9–16 and 25–32 have and are removed before testing. In D2, the partners 9–12 of the shortcuts 21–24 are therefore not in the tree. Since enters and is correlated with , the scores of unit carry information about given the scores of all other used units. Hence in D2 and in D3. In all scenarios, given , the scores of the units outside depend only on variables that are independent of : their own , which do not enter , and, in D2, and the indicator of the partner, which either does not enter or is determined by . Hence , where denotes the units in the tree outside (for CRP scores, for the scores of each class ), and by weak union holds iff .
B.4 Performance measures
Let be the set of rejected clusters and the unit tree in replication . For top-k, . With , the non-null clusters of size in ,
Since top-k selects only single units, we report its power only for .
B.5 Implementation
At node , we use draws in the p-value of Appendix A.2, so that about 20 draws fall into the rejection region at the level at which is tested (Subsection 2.3). This gives at the root and 12,800 (activations, ) or 6,400 (CRP, ) at the leaves. The lasso penalty is chosen by cross-validation ( of cv.glmnet [Friedman et al., 2010]), and the residuals are those of least-squares refits on the selected scores.
CRP scores are computed with the code of the application, which uses zennit [Anders et al., 2026] and its CRP extension [Achtibat et al., 2023]. We apply LRP-0 [Bach et al., 2015, Montavon et al., 2019], i.e. zennit's -rule with , and sum the relevance of each unit over positions. The stabilizer of zennit's rule for average pooling scales all relevance by , so . Since the tree and the tests are invariant to rescaling the scores, does not affect the results.

Figure 5: FWER of the hierarchical max GCM and the three baselines for activation scores (top) and CRP scores (bottom) in scenarios D0–D3 (columns), each estimated from 200 replications. Line style and colour indicate the method (legend); within each method, the lighter shade is and the darker shade . For , all units are null, so top- has FWER 1 by construction. The horizontal line marks .

Figure 6: Power for for activation scores (top) and CRP scores (bottom) in scenarios D0–D3 (columns), each estimated from 200 replications. For the hierarchical max GCM, each curve is the proportion of non-null clusters with that are rejected, for . For the three baselines, it is the proportion for single units. Since unused units are removed before testing CRP scores, the CRP trees contain 16 units, and is shown only for activations.
B.6 Detailed results
Figures 5, 6 and 8 show the FWER and the power for all and cluster sizes, each estimated from 200 replications. To summarize the conditional attribution maps (Subsection 2.8) of a unit over inputs, we align the input windows with the largest relevance in the map of and compute the relevance-weighted nucleotide frequencies per position. For the first-layer units of the simulation, these approximate the motif each filter matches. Figure 7 shows the motifs recovered by the conditional attribution maps (Subsection 2.8) in one replication of D0 with , and CRP scores (Section 3.2).
C Additional tests at each node
In addition to the max GCM from Subsection 2.5, we provide alternative CITs for our setting below. All results in Sections 3 and 4 use the max GCM; we include these tests as alternatives within the same procedure but do not evaluate

Figure 7: Motifs recovered in one replication (, , in D0). Each panel shows the relevance-weighted nucleotide frequencies of one unit (Subsection 2.8), titled by the unit and its group. Top: the true motifs of the real & used units. Middle: the units rejected by the hierarchical max GCM on CRP scores, here units 1–8, each recovering its motif. Bottom: the eight units selected by top-, five of which are shortcuts.
them here. At a node of Subsection 2.6, each test is applied to the responses , and, for CRP scores, to the scores , with replaced by .
C.1 Quadratic GCM
Alternatively, the residual products of Subsection 2.5 can be aggregated by , where is the empirical covariance matrix of , with p-value from the distribution [Kook and Lundborg, 2024]. Since must be invertible, we drop the entries of class , so that . For activations, then does not depend on which class is dropped if the regressions are linear in the response. For CRP scores, the test has no power against violations of equation 2 only in class ; with a linear network after layer , the entries of class are linear combinations of the others, and nothing is lost. Inverting is unstable if is large relative to , which can inflate the type I error.
C.2 Wald-type test
Linear model. We restrict to a linear model for the conditional mean of the responses. Writing for the -th row of , we assume for
with , and . Under , the conditional mean of does not depend on , so all coefficients of the units in vanish, which is the hypothesis we test. The intercepts are not attributed to any unit.

Figure 8: Leaf rejection in D2 (left) and pair detection in D3 (right) for , for activation scores (top) and CRP scores (bottom), each estimated from 200 replications. Left: proportion of replications and units of a group (marker) for which the single unit is rejected, or selected by top-. Units 1–4 are paired with the shortcuts 17–20, units 9–12 with the shortcuts 21–24, and units 25–28 with 29–32. Rejections of units 17–20 and 25–32 are false, and so are rejections of units 21–24 for activation scores. For CRP scores, units 9–16 and 25–32 are removed before testing. Right: proportion of replications and of the four redundant pairs , for which a rejected cluster lies within the pair, i.e. the pair or one of its units is rejected, or, for top-, a unit of the pair is selected.
Activation scores (). With , the model has class-specific coefficients,
and the null hypothesis considered instead of the null hypothesis in equation 1 is
CRP scores (). The response of class is regressed on the relevance for class only, with coefficients common to all classes, i.e. and in equation 3, so that the sum over reduces to the term ,
with considered null hypothesis . For , both models reduce to a regression of the response contrast on the activations or on the relevance contrasts , respectively.
Estimation and test. We write both models as , with
where omits row , and write for the coefficients of the units in ( for activations, for CRP). We estimate by feasible generalized least squares,
where is the empirical covariance of pooled least-squares residuals. For activations, this coincides with equation-wise least squares. With the cluster-robust covariance , the Wald statistic is asymptotically -distributed under and yields the -value used in Subsection 2.3.
D Zebrafish DNA Accessibility Model
D.1 Data
We used a published dataset on DNA accessibility [Kim et al., 2024] that profiled by single-cell ATAC-seq across a zebrafish developmental time course spanning six stages (0–30 somites), yielding 94,562 cells. Cells were pseudobulked into 12 embryonic cell types used for model training: Differentiating Neurons, Endoderm, Epidermal, Lateral Mesoderm, Muscle, Neuromesodermal progenitors (NMPs), Neural Anterior, Neural Crest, Neural Posterior, Notochord, Presomitic Mesoderm (PSM), and Somites. An additional Adaxial Cells pseudobulk (390 cells) was excluded for insufficient depth, and an unassigned population was excluded throughout.
We used such cell type abbreviations in figures: Mus, muscle; Som, somites; Noto, notochord; NMPs, neuromesodermal progenitors; PSM, presomitic mesoderm; Endo, endoderm; LM, lateral mesoderm; DN, differentiating neurons; NA/NP, neural anterior/posterior; Epi, epidermal; NC, neural crest.
Consensus accessible regions were called from the pooled Tn5 insertion data, giving 640,834 peaks (median width 576 bp) against the danRer11 zebrafish genome assembly. Fixed-width 512 bp windows were tiled around each peak summit without overlaps, each window was assigned to its nearest summit. This yielded 887,999 labelled windows. For each window and cell type, the regression target is the raw Tn5 insertion count summed over the window, normalized by that cell type's genome-wide sequencing depth (counts per million) and -transformed.
Cell-type specificity of each sequence was quantified with the index [Yanai et al., 2004],
where is the CPM-normalized signal (linear scale) for sequence in cell type , is divided by the maximum signal across cell types for that sequence, indexes the cell types over which the maximum is taken, and is the number of cell types. ranges from 0 for sequences with equal signal in all cell types to 1 for sequences with signal in a single cell type. Sequences with zero signal in all cell types were excluded.
Sequences were one-hot encoded ; ambiguous bases mapped to the zero vector) and extracted from the reference FASTA at training time. During training, each window was reverse-complemented with probability 0.5 (accessibility is strand-agnostic, so the target is unchanged); validation windows were always read on the forward strand. Chromosomes 1–21 and 24–25 were used for training and chromosomes 22–23 for validation, split at the chromosome level to prevent sequence leakage between windows derived from the same genomic region.
For method evaluation, we assembled a reference set of windows restricted to the held-out validation chromosomes (22–23). These chromosomes were not used for gradient updates, but they were used to select the best checkpoint based on validation metrics. Each window was assigned to the cell type with the highest measured target signal. Within each cell type , windows with were ranked by the cell-type specificity index (higher = more specific), and the top 1,500 were kept. The union over the cell types yields the final set of 18,000 windows. Therefore, the set is class-balanced and enriched for cell-type-specific sequences.
D.2 Model Architecture
Sequence-to-activity prediction uses a compact, fully convolutional CNN chosen to stay directly compatible with layer-wise relevance propagation under zennit/CRP: no max-pooling and no flatten+dense readout, since both break clean relevance conservation. The network has five 1-D convolutional blocks over the one-hot input (), each consisting of a convolution, ReLU, and (except the final block) average pooling:
| Layer | Channels | Kernel | Pool | λ |
|---|---|---|---|---|
| 1 | 128 | 21 | ×2 | 0.0 |
| 2 | 64 | 5 | ×2 | 0.01 |
| 3 | 64 | 3 | ×2 | 0.01 |
| 4 | 64 | 5 | ×2 | 0.01 |
| 5 | 32 | 5 | - | 0.01 |
No batch normalization is used (found empirically to distort CRP relevance attribution); an penalty () is instead applied to the post-activation feature maps of layers 2–5 to encourage a sparse code at the depth where combinatorial, cell-type-specific concepts are expected to emerge. The resulting receptive field is 148 bp (29% of the 512 bp input). Global average pooling over the positional axis of the final feature map (32 channels) yields a 32-dimensional vector. A single linear layer maps this vector to 12 outputs, one per cell type. The full model has 95,468 trainable parameters.
D.3 Training Procedure
The loss combines three terms on the log1p-transformed targets and predictions , each window-and-cell-type vector of length 12:
where are each window's prediction/target after subtracting its own cross-cell-type mean. The MSE term rewards correct absolute accessibility magnitude, the cosine term rewards correct relative shape of the 12-cell-type profile, and the centered-MSE term isolates the cell-type-specificity residual directly, since the first two terms are dominated by the of signal shared across cell types (mean-predictor Pearson , specificity ). Entries with (log1p scale; accessibility near the detection floor) receive the squared-error weight in the MSE term, since such entries are rare but otherwise contribute negligible gradient.
Training used a two-stage curriculum, both stages with the same low-target upweighting ( squared-error weight) and reverse-complement augmentation described above. (1) Pretraining on all 887,999 windows regardless of specificity with the MSE term weighted most heavily () so the model first learns overall accessibility, using AdamW with and effectively no weight decay (). (2) Fine-tuning of the full network initialized from the stage-1 checkpoint (no layers frozen) on the 419,572 windows with the high specificity (), with the loss re-weighted toward shape and specificity () using AdamW with and weight decay . Both stages used cosine-annealing learning-rate decay and batch size 256.
On the held-out validation chromosomes (22–23, 26,174 windows), the fine-tuned model reaches a mean per-cell-type Pearson correlation of 0.62 and a mean cell-type-specificity Pearson correlation (computed on cell-type-centered predictions/targets) of 0.55 — exceeding a k-mer-count ridge-regression baseline ( raw, specificity) on both axes.
D.4 Concept relevance propagation and conditional attribution maps
Relevance propagation. We explained the trained CNN with Concept Relevance Propagation (CRP) [Achtibat et al., 2023], using zennit v0.4.6 and zennit-crp v0.6.0. CRP extends layer-wise relevance propagation (LRP) by restricting the backward pass to a chosen subset of channels (“concepts”) of an intermediate layer, which yields relevance maps conditional on those concepts. Each convolutional filter (unit) is treated as one concept: the channel axis of each Conv1d output is the concept axis, and relevance is summed over positions when a scalar per unit is needed.
The first convolutional layer, which acts on the one-hot input, used the Flat rule. All subsequent convolutional layers and the linear head used LRP-0 (), which is fully conservative and has no free hyperparameter. All attributions were computed with the model in evaluation mode.
Class-unit relevance. For a cell type , relevance was initialised at the corresponding output and propagated back to the output of convolutional layer . For a window , this gives the relevance of unit ,

Figure 9: Motif to unit matching pipeline.
where indexes positions. Relevance is signed: positive values mean that unit pushes the prediction for cell type up, negative values that it pushes it down.
Conditional attribution maps. To obtain base-resolution maps for an individual unit, we used CRP conditioning: for window , layer and unit , all other channels of layer were masked during the backward pass, so that relevance reaches the input only through unit . With relevance seeded at the output for cell type , the resulting class-conditional map shows which bases feed unit on its way to cell type . Computing such maps for every on a shared set of windows allows the same unit to be compared across cell types. Where a map should describe what a unit detects irrespective of cell type, we instead seeded relevance at the raw activation of unit (an activation-seeded map), so that nothing downstream of the unit enters the map. The motif analysis uses class-conditional maps. Because the input is one-hot, we take the relevance on the observed nucleotide at each position as the per-base contribution and set it to zero on the other three nucleotides.
E Assigning TF motifs to units
The class-tree test selects units that are specific to a cell type, but it does not say what a unit encodes. We assign motifs to each selected (unit, cell type) pair , called a pair below, in four steps (Fig. 9). A cell type is assigned to a unit only if it lies within one of the unit's narrowest rejected nodes of the cell-type tree; a rejection of the root node alone is not used. A unit assigned to several cell types is analysed once per cell type, and each analysis is independent.
-
Window pool. For a pair , we start from the reference windows with dominant cell type (Appendix D). We rank them by the signed CRP relevance of unit for cell type and keep the top 500.
-
Conditional attribution. For each kept window, we compute the class-conditional map of unit for cell type (Appendix D.4). This gives one attribution map of shape (nucleotide position) per window. It applies to all layers, so units in deeper layers are also described through their effect on the input sequence.
-
Pattern discovery. We run TF-MoDISco-lite v2.4.0 [Shrikumar et al., 2018] on the one-hot sequences and the per-base contributions of each pair. It extracts seqlets (window 15 bp, flank 5 bp) from the attributions, clusters them, and reports consolidated patterns (FDR 0.05). Each pattern is a contribution weight matrix (CWM) with a seqlet count, reported separately for positive and negative attribution. We cap the number of seqlets per metacluster at 20,000. For display, a CWM is trimmed to the positions whose summed absolute contribution is at least 30% of the maximum, plus 4 bp of padding on each side. This is the "learned pattern" in Fig. 4b.
-
Motif matching. We match each pattern to the JASPAR CORE vertebrate 2025 collection; 1,019 motifs) with the TOMTOM-lite matcher implemented in TF-MoDISco-lite, which ranks database motifs by Euclidean distance between position-weight matrices. A match with lowest p-value is reported.