Manuscript Offprint
arXiv:2611.00786The Tangled Web They Weave: Exploring Neural Representations with Directed Simplicial Complexes
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Understanding how artificial neural networks (ANNs) represent and combine features internally is a central challenge in mechanistic interpretability. Existing neural circuit-discovery methods represent neuron interactions as pairwise edges in a graph. But distributed neural representations consist of large groups of neurons that are inherently linked by higher-order causal dependencies: suppressing a subgroup of neurons in concert may shift the activation of other neurons in the feature representation. We propose a method to construct filtered directed simplicial complexes (DSCs) that give a topological representation of such dependencies, built from the activation profiles of an ANN on a given set of inputs. Our approach treats ANNs as structural causal models and uses counterfactual ablations to test for causal links between groups of internal neurons within specific input contexts. As a proof of concept, we apply the approach to a pair of small multilayer perceptron (MLP) architectures in a synthetic two-dimensional quadrant classification task. In these examples, DSCs recover the designed feature pathways and coordinated class transitions, and the complexes of trained networks are higher-dimensional than those of their handcrafted references. As validation, we compare our method with graph-based circuit-discovery baselines and find that their 1-skeletons agree within the relations that a weight graph can represent. These results support DSCs as context-dependent descriptions of multi-neuron computation and may thus provide a novel, orthogonal framework to study the phenomenon of distributed feature representations and polysemanticity.
Keywords: distributed neural representations, feature superposition, directed algebraic topology, simplicial complexes, causal inference
1. Introduction
Understanding how information propagates and organises within artificial neural networks (ANNs) is the main goal in interpretability research. While ANNs demonstrably encode semantic information through intricate patterns of neuron activations (Alain and Bengio, 2017; Kim et al., 2018), how they arise and interact remains an area of active investigation. Methods that can identify and characterise such patterns can offer deep insights into how ANNs represent abstract concepts and perform complex computations.
A central challenge in understanding this neural code arises from the efficient encoding of features on a finite number of neurons. More often than not, features in the data have distributed representations in the neural network, relying on coordinated activity across an ensemble of neurons (Hinton, 1986; Olshausen and Field, 1997; Pouget et al., 2000). Conversely, an individual neuron may participate in representing multiple distinct features; such a neuron is called polysemantic¹ (Olah et al., 2017, 2020). To highlight the duality
- From the Greek poly (many) and semantic (meaning).
© 2026 M. Bleher.

Figure 1: Construction of a filtered directed simplicial complex from the activations of an input sample . Panel 1. We start with the input sample and map it to the internal activation profiles . Panel 2. The internal neurons are the vertex set , from which candidate simplices are constructed inductively. Panel 3. For an admitted simplex with predictor set we test whether it's causal link extends to a target neuron by analysing its activation values along a coherent counterfactual ablation (CCA) trajectory that progressively suppresses . Panel 4. If the activation changes significantly, the candidate simplices are admitted and labelled by the last persistent crossing to significance ; lower values indicate more immediate functional interactions in the context of .
of these concepts, we will call a feature when its representation is distributed across multiple neurons: a polysemantic neuron participates in many features, whereas a polytopic feature is represented across many neurons. When the representations of two or more polytopic features overlap on shared polysemantic neurons, the features are said to be in superposition (Elhage et al., 2022).
Polytopic features are realised by coordinated activity across groups of neurons. As a consequence, reducing the activation of one or more neurons in the group can affect the feature representation as a whole in a way that is not captured by perturbing the members of the group separately. Such higher-order interactions are naturally represented by directed hypergraphs or directed simplicial complexes (Abiad et al., 2026). A general hypergraph construction would have to test for a causal link between every pair of disjoint subsets of the internal neurons, yielding candidate relations. We therefore rely on the subclass of directed simplicial complexes (DSCs), which can be constructed inductively from the vertex set and require the slightly more amenable number of candidates when probing interactions of order at most .
In this work, we introduce a method to construct filtered directed simplicial complexes (DSCs) from the activation profiles and parameters of a pre-trained feedforward multilayer perceptron (MLP) for a given set of input data .³ Its vertices are the internal neurons , while its directed edges and higher-order simplices represent higher-order causal relations between neuron activations in the context of . For causal inference we rely on the framework of structural causal models by Pearl (2010). More concretely, we introduce coherent counterfactual ablations (CCAs) on the internal neurons of the network,
-
From the Greek poly (many) and topos (place).
-
Code is available at https://github.com/subthaumatic/neural-dsc (Bleher, 2026).
trajectories of neuron activations that satisfy the networks constraints (see Appendix B.1). On the one hand, if an input activates multiple features, ablating a group of neurons that are part of a single feature representation should primarily affect other neurons within that same feature's processing pathway. So, as long as off-feature pathways remain largely undisturbed, a directed edge is evidence that is part of the same polytopic feature as the neurons in . On the other hand, ablating a polysemantic neuron is expected to influence multiple pathways simultaneously, which suggests that a large number of outgoing edges could be a signature of polysemanticity. We assign a filtration value to each simplex that quantifies the required coordinated reduction of activations over to induce a significant change in the activation of the target neuron . Figure 1 summarises the resulting construction.
Our main contributions are:
-
We construct filtered DSCs from the activation data of MLPs with respect to input data using causal inference.
-
We apply the method to a synthetic two-dimensional classification task with known reference computations, and show that the resulting DSCs recover the expected higher-order interactions between neurons.
-
We compare the 1-skeleton of with the circuits found by established methods, namely ACDC (Conmy et al., 2023), EAP (Syed et al., 2023), and EAP-IG (Hanna et al., 2024), and find that they agree on those edges that can appear in both.
Causal methods in interpretability. Probing a network's internal state through causal reasoning is a well-established method. Causal mediation identifies internal variables that mediate an input-output effect (Vig et al., 2020), while causal abstraction tests whether network states implement a hypothesised causal model, including variables represented in learned subspaces (Geiger et al., 2024, 2025). Manifold-aligned counterfactual explanations likewise constrain perturbations to produce only attainable data states (Tsiourvas et al., 2024). Our approach relates to these approaches but differs in its use of counterfactual paths to suppress internal neurons and then constructs joint relations bottom-up rather than testing a supplied concept or causal abstraction.
Higher-order neural structures and topology. The phenomenon of distributed representations and polysemanticity, and thus higher-order interactions, also arises in biological neural networks (BNNs), where individual neurons may respond to various different tasks, a phenomenon called mixed selectivity (Fusi et al., 2016). Directed simplicial complexes in the connectome have revealed high-dimensional organisation in cortical microcircuits (Reimann et al., 2017; Egas Santander et al., 2024). Chung et al. (2026) use counterfactually reasoning about network topology, modelling disruption and intervention in brain networks as perturbations of network flow and using Hodge theory to separate dissipative from persistent communication. For artificial networks, Chowdhury et al. (2019) characterise the path homology of feedforward architectures, separating the topology implied by a network's wiring from the structure its parameters realise. More broadly, topological analyses of neural systems are surveyed by Curto and Sanderson (2025) for BNNs and Ballester et al. (2026) for ANNs. Most such constructions derive topology from connectivity, activations, or correlations; our simplices are admitted by counterfactual relevance tests and therefore encode context-conditioned functional relations.
2. Background
2.1. Neural nets and neuron activations
Consider a feedforward multilayer perceptron (MLP) with layers, indexed . Layer comprises neurons. The input layer is , with activation vector . The activation vectors are then computed recursively via
where are the weights, are the biases, and are non-linear, element-wise activation functions. Typically the activation functions are the same across layers (e.g., ReLU), except for the output layer (e.g., softmax for classification). The output layer's activation vector represents the final decision or prediction of the network.
Our analysis focuses on the internal state of the network when evaluated on a given input , represented by the concatenated activation vector of all hidden neurons:
a(x)^T=(a^{(1)}^T(x),a^{(2)}^T(x),\ldots,a^{(L-1)}^T(x))\in\mathbb{R}^N, \tag{2}where is the total number of hidden neurons. For a fixed network, the set of attainable internal activation vectors forms a subset , which we call the neural manifold following Stopfer et al. (2003).
The vector is the network's internal representation of the input and must encode the features and their interactions that are relevant to the network's task. The activation vector of a complex input may therefore reflect a superposition of multiple, interacting feature representations (Elhage et al., 2022).
2.2. Structural causal models and counterfactual reasoning
To reason about the influence of one neuron on another within the network's operational constraints, we rely on Pearl's framework for causal inference (Pearl, 2010). This framework formalizes structural causal models (SCMs), which consist of a directed acyclic graph
- In our setting, the neural manifold is a piecewise-linear manifold, not a smooth one.
(DAG) whose nodes correspond to exo- or endogenous (random) variables and whose edges denote direct causal relationships, together with structural equations of the form specifying how the value of a variable depends on the values of its parent nodes and noise. MLPs map naturally onto (deterministic) SCMs: the architecture is a DAG, the input nodes are exogenous variables, the internal neuron activations are endogenous variables, and the functions are determined by , , and as in (1).
To investigate the causal effects between variables, Pearl's framework introduces two key tools: interventions and counterfactuals. An intervention is a controlled manipulation in the real world to test an unknown SCM; if an intervention on results in a change in some downstream variable , one can infer a structural causal effect of on . In an ANN, interventions on individual neurons reveal a causal link to all downstream neurons in the network, thus reproducing the network's underlying architecture.
In this article we instead rely on counterfactuals, which explore hypothetical outcomes of individual observations under altered conditions (antecedents): given the observed values of the endogenous variables, what would have happened to the value of if had been instead of ? Counterfactual reasoning proceeds in three steps: abduction identifies the most likely values of the exogenous variables that produced the observed outcome, the action step modifies the value of a set of chosen endogenous variables, and prediction propagates these altered values through the SCM. The resulting counterfactual state then serves as the basis for subsequent reasoning, e.g., to decide whether the proposed change in would have significantly altered . The coherent counterfactual ablations of Appendix B.1 implement exactly these three steps, by moving the input and propagating it through the unchanged network.
2.3. Filtered directed simplicial complexes
A directed -simplex on a vertex set is an ordered -tuple of distinct elements of . A face of is a directed -simplex , where and . A directed simplicial complex on is a collection of directed simplices closed under taking faces. Vertices are 0-simplices, and a directed edge corresponds to the 1-simplex .
A filtration on assigns a real number to each simplex , satisfying whenever is a face of . This induces a family of nested subcomplexes indexed by the filtration value .
3. Methods
For a given set of inputs , let and write for the set of internal neurons. We construct a filtered DSC on that models the distributed representation of 's features in a trained MLP. Conceptually, it probes the activation patterns for polytopic and polysemantic behaviour by ablating a set of neurons and observing the rest of the network: a neuron dragged along by the ablation is evidence that it and the ablated set jointly encode a common feature of .
Setting activations to zero directly produces an activation vector off the neural manifold . Such an intervention will distort the delicate coordination of neuron activations in a feature representation: altering a single neuron may deform the coordinated pattern representing a polytopic feature beyond the network's recognition, and ablating a polysemantic neuron may disturb several features at once. We therefore introduce coherent counterfactual ablations (CCA) – on-manifold paths of hypothetical activation states in along which the activation on the set is progressively suppressed.
The construction of involves three main operations, detailed in Appendix B:
(i) Coherent counterfactual ablation (CCA) (Appendix B.1): For each and predictor set , generate an on-manifold trajectory that progressively suppresses . The normalised coordinate records the fraction of predictor activation removed, with denoting full ablation.
(ii) Relevance testing (Appendix B.2): Test whether the paired change in a target neuron exceeds a target-scaled relevance margin across . A link is admitted when its full-ablation test survives dimension-wise Bonferroni correction (Dunn, 1961); its birth value is the last persistent crossing of that cutoff along the trajectory.
(iii) Construction of filtered DSC (Appendix B.3): Initialise with vertex set at filtration value zero and proceed inductively in increasing dimension. At dimension , extend each admitted -simplex by a candidate target , put , and apply the two operations above to . Admit only when that link is admitted and all codimension-one faces of are already present, then set to the maximum of and the filtration values of those faces. Repeat until no candidate is admitted or the chosen dimension limit is reached. The test depends on only as a set, so the admitted orderings of a given predictor set differ only in which faces they require; simplex counts therefore count ordered tuples rather than distinct joint interventions.
We compare DSCs built from different contexts or networks on the same architecture by a filtration-integrated Jaccard distance (Appendix B.4).
4. Results
We test our method on a synthetic two-dimensional classification task of points in the plane, with four classes corresponding to the four quadrants of the plane. We study two handcrafted multilayer perceptrons whose internal computations are known exactly: the monosemantic [2, 4, 4, 4] network, whose four first-layer neurons detect the four elementary features , , and separately, and the polysemantic [2, 3, 4, 4] network, whose narrower first layer forces its three units to encode mixtures of both coordinates instead (Appendix C.1). We compare them with trained and randomly initialised networks of the same two architectures (Appendices G.2 and G.3).
- This assignment presupposes that the objectively relevant features for the task at hand are the signs of and . Relative to this choice, a neuron computing relu() is monosemantic, whereas relu() is polysemantic as it is active for both and ; in a rotated input basis the same weights would support the opposite reading. Any assignment of semantics is necessarily ours.
Sensitivity to hyperparameters. The DSC construction requires us to specify a number of hyperparameters that control the input distribution, the spacing of the ablation values, the relevance test, and the multiple-testing correction. We swept these parameters for the handcrafted neural nets and found that the resulting DSCs are reasonably robust to the spacing of the ablation values and to the relevance margin, while the multiple-testing correction occasionally reduces the number of admitted edges, with considerable knock-on effects on the number of higher-dimensional simplices. The construction is somewhat sensitive to the choice of input distribution, which is to be expected given that the input distribution directly determines the 'features' the network must represent and react to. See Appendix D and Appendix E for full details.
DSCs recover designed computations in handcrafted networks. For the monosemantic network, the DSC of each one-hot input set (Appendix C.2) contains ten edges and four 2-simplices, and the four DSCs coincide up to a relabelling of the neurons (Appendix G.1). The four edges with the lowest filtration values connect the class neuron of the quadrant in both directions with the two first-layer neurons that detect the signs of and there (Figure 2). The 2-simplices enter later and describe how the ablation moves the inputs towards the adjacent quadrants. For the polysemantic network, the edges that enter first connect each active first-layer neuron with its copy in the second layer, and every 2-simplex of a one-hot DSC has as its target the second-layer neuron of . Its one-hot DSCs contain between four and twelve edges and between two and four 2-simplices, because the inputs of and activate different neurons on the two sides of .
Jaccard distance between DSCs identifies class mixtures. In both handcrafted networks, the DSC of the two-hot inputs of two adjacent classes is closer to the one-hot DSCs of these two classes than to those of the other two, with a separation of at least 0.16 in the monosemantic and 0.22 in the polysemantic network (Appendix H.2). The Jaccard distance therefore identifies the two classes that are mixed in a two-hot input set. For the trained networks, it does so for only three of the four two-hot input sets.
The Jaccard distance between DSCs does not simply reflect the distance between the mean activations of the input sets. In the monosemantic network, for example, the cosine distance between the mean activations is smaller for adjacent than for opposite quadrants, while the Jaccard distance is the same for all pairs, because the four one-hot DSCs share no simplex (Appendix H.1).
Trained and untrained networks have higher-order structure. The DSCs of both trained networks reach dimension four for two of their four one-hot input sets, whereas those of the handcrafted networks have no simplices above dimension two. The trained DSCs are also larger, with up to 365 simplices against at most 23 for the handcrafted networks (Appendix G.2). Unlike those of the handcrafted monosemantic network, the DSCs of the trained [2, 4, 4, 4] network differ between the quadrants, with 24, 220, 132 and 38 simplices. However, randomly initialised networks give DSCs of comparable size, and three of their 24 DSCs reach dimension four (Appendix G.3). For the [2, 4, 4, 4] architecture, five of the twelve untrained DSCs are even larger than the trained DSC of the same quadrant. The size and dimension of a DSC therefore do not show that its structure was learned.

Figure 2: Illustrative results for the handcrafted quadrant classifiers. Each panel shows the input set, the mean activations of the neurons on these inputs, and the resulting filtered DSC. In the monosematic classifier, the edges with the lowest filtration values connect the class neuron of in both directions with the two first-layer neurons that detect and . In the polysemantic classifier, they connect the active first-layer neuron with its copy in the second layer. See Appendix G.1 for a thorough discussion of these edges.
The 1-skeleton is compatible with established methods. We compared the handcrafted DSC 1-skeletons with ACDC (Conmy et al., 2023), EAP (Syed et al., 2023), and two EAP-IG variants (Hanna et al., 2024), keeping for each method the same number of connections. A circuit can contain an edge only if its predictor feeds its target directly, and such edges make up 40% of the edges of the monosematic DSCs and between 33% and 50% of those of the polysemantic DSCs (Appendix I.1). In 26 of the 32 comparisons, the method keeps all of these edges. The scores of the methods also rank these edges above the other connections, with a mean AUC of 0.86 and a minimum of 0.65. The remaining DSC edges, and all simplices of dimension two or higher, have no direct analogues in established methods. Further details are in Appendix I.
5. Discussion
In this article we have introduced a method to construct filtered DSCs from the internal activations of a feedforward multilayer perceptron (MLP) in response to a set of inputs. We expected a simplex to correspond to a group of neurons jointly encoding one feature of the input, and its dimension to reflect across how many neurons that feature is distributed. In the handcrafted networks, we found that the simplices with low filtration values follow the designed computation, while those that enter later describe how the ablation moves the inputs towards neighbouring classes. A DSC therefore describes a network's functional response to a distribution of inputs. Moreover, the DSCs of a fixed network differ markedly between one-hot (single-class), two-hot (mixed-class) and random inputs. In the handcrafted networks, a two-hot DSC is not the union of the DSCs of its two classes, but it is closer to both of them than to those of the other two classes (Appendix G.1 and Appendix H). Finally, the circuits found by established circuit-discovery methods agree with the DSC on those edges that can appear in both methods (Appendix I).
However, two of the questions that motivated this construction remain open. The first is whether the DSCs identify polysemantic neurons. In the polysemantic network, the neuron that belongs to the most maximal simplices is the one that represents , whereas the six neurons that mix both coordinates belong to fewer (Appendix G.1). Since this neuron is inhibited by all three first-layer neurons, its participation in many simplices could be read as polysemanticity with respect to the features they detect, which departs from our original choice of elementary features. The second is whether higher-dimensional simplices show higher-order interactions between neurons. Such simplices record the effect of a joint ablation of several predictors, which no circuit can represent (Appendix I.1). But the relevance test we implemented checks only that the joint ablation has an effect, without comparing it with the effects of the individual predictors. Moreover, a simplex is only tested if its faces are admitted, so a joint effect is missed when there is no edge between the predictors, as for the AND gate of in the monosemantic network (Appendix G.1). Answering it requires a relevance test that compares the joint effect with the effects of the individual predictors, and both questions require further architectures and tasks for which the semantics of the neurons is known.
The study is confined to small ReLU MLPs on a synthetic task with known reference computations. The number of candidate simplices grows as , which severely limits the size of networks and the dimension of simplices, although restricting the candidates might lift this limitation (Appendix F). For related reasons, the multiple-testing procedures are applied separately for each dimension of a DSC, so the error rate over all dimensions, input sets and networks together is not controlled. The CCA trajectories are computed from the local Jacobian, so at the boundaries between ReLU regions they can fail to continue even when a fully ablated state exists elsewhere on the neural manifold (Appendix B.1).
The next steps are to apply the construction to larger networks and to natural data.
Acknowledgments
This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany's Excellence Strategy EXC 2181/1 - 390900948 (the Heidelberg STRUCTURES Excellence Cluster) and finalized with the support of the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (project PEPS, no. 101071786). The author acknowledges the use of compute resources from de.NBI Cloud at the Zentrum für Datenverarbeitung of the University of Tübingen and the German Federal Ministry of Education and Research (BMBF) through grant no 031 A535A. Part of this research was performed while the author was visiting the Institute for Mathematical and Statistical Innovation (IMSI), which is supported by the National Science Foundation (Grant No. DMS-1929348). I thank Freya Jensen for helpful discussions.
References
Aida Abiad, Alex Arenas, Ágnes Backhausz, József Balogh, Christopher R. S. Banerji, Sergio Barbarossa, Ginestra Bianconi, Christian Bick, Magnus Botnan, Timoteo Carletti, et al. Hypergraphs and simplicial complexes in focus: A roadmap for future research in higher-order interactions. Journal of Physics: Complexity, 7(2):022501, 2026. doi: 10.1088/2632-072X/ae3c4e.
Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. In 5th International Conference on Learning Representations (ICLR), Workshop Track, 2017.
Rubén Ballester, Carles Casacuberta, and Sergio Escalera. Topological Data Analysis for Neural Networks. SpringerBriefs in Computer Science. Springer Nature Switzerland, 2026. ISBN 9783032082824. doi: 10.1007/978-3-032-08283-1.
Yoav Benjamini and Yosef Hochberg. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society: Series B (Methodological), 57:289–300, 1995. doi: 10.1111/j.2517-6161.1995.tb02031.x.
Yoav Benjamini and Daniel Yekutieli. The control of the false discovery rate in multiple testing under dependency. The Annals of Statistics, 29(4):1165–1188, 2001. doi: 10.1214/aos/1013699998.
Michael Bleher. subthaumatic/neural-dsc: v1.0.0. Zenodo, version v1.0.0, doi: 10.5281/zenodo.23777984, 2026.
Steven Cao, Victor Sanh, and Alexander Rush. Low-Complexity Probing via Finding Sub-networks. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 960–966, 2021. doi: 10.18653/v1/2021.naacl-main.74.
Samir Chowdhury, Thomas Gebhart, Steve Huntsman, and Matvey Yutin. Path homologies of deep feedforward networks. In 2019 18th IEEE International Conference On Machine Learning And Applications (ICMLA), pages 1077–1082, 2019.
Moo K. Chung, Luigi Maccotta, and Aaron Struck. Counterfactual Analysis of Brain Network Dynamics. In 2026 IEEE International Symposium on Biomedical Imaging (ISBI), 2026.
Arthur Conmy, Augustine Mavor-Parker, Aengus Lynch, Stefan Heimersheim, and Adrià Garriga-Alonso. Towards Automated Circuit Discovery for Mechanistic Interpretability. Advances in Neural Information Processing Systems, 36:16318–16352, 2023.
Carina Curto and Nicole Sanderson. Topological Neuroscience: Linking Circuits to Function. Annual Review of Neuroscience, 48(1):491–518, 2025. doi: 10.1146/annurev-neuro-112723-034315.
Olive Jean Dunn. Multiple comparisons among means. Journal of the American Statistical Association, 56(293):52–64, 1961. doi: 10.1080/01621459.1961.10482090.
Daniela Egas Santander, Christoph Pokorny, András Ecker, Jänis Lazovskis, Matteo Santoro, Jason P. Smith, Kathryn Hess, Ran Levi, and Michael W. Reimann. Heterogeneous and higher-order cortical connectivity undergirds efficient, robust and reliable neural codes. bioRxiv, 2024. doi: 10.1101/2024.03.15.585196.
Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. Toy Models of Superposition. Transformer Circuits Thread, 2022.
Stefano Fusi, Earl K Miller, and Mattia Rigotti. Why neurons mix: High dimensionality for higher cognition. Current Opinion in Neurobiology, 37, 2016.
Atticus Geiger, Zhengxuan Wu, Christopher Potts, Thomas Icard, and Noah D. Goodman. Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representations. Conference on Causal Learning and Reasoning, 2024. doi: 10.48550/ARXIV.2303.02536.
Atticus Geiger, Duligur Ibeling, Amir Zur, Maheep Chaudhary, Sonakshi Chauhan, Jing Huang, Aryaman Arora, Zhengxuan Wu, Noah Goodman, Christopher Potts, and Thomas Icard. Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretability. Journal of Machine Learning Research, 26(83):1–64, 2025.
Michael Hanna, Sandro Pezzelle, and Yonatan Belinkov. Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanisms. In First Conference on Language Modeling (COLM), 2024. doi: 10.48550/arXiv.2403.17806.
Geoffrey E. Hinton. Learning Distributed Representations of Concepts. Proceedings of the Annual Meeting of the Cognitive Science Society, 8, 1986.
J. L. Hodges and E. L. Lehmann. Estimates of location based on rank tests. The Annals of Mathematical Statistics, 34(2):598–611, 1963. doi: 10.1214/aoms/1177704172.
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). In Proceedings of the 35th International Conference on Machine Learning, pages 2668–2677. PMLR, 2018. URL https://proceedings.mlr.press/v80/kim18d.html.
Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv preprint arXiv:1412.6980, 2014.
Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature Visualization. Distill, 2, 2017.
Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, and Shan Carter. Zoom In: An Introduction to Circuits. Distill, 5, 2020.
Bruno A. Olshausen and David J. Field. Sparse coding with an overcomplete basis set: A strategy employed by V1? Vision Research, 37, 1997.
Judea Pearl. An Introduction to Causal Inference. The International Journal of Biostatistics, 6, 2010.
Roger Penrose. A generalized inverse for matrices. Mathematical Proceedings of the Cambridge Philosophical Society, 51(3):406–413, 1955. doi: 10.1017/S0305004100030401.
A. Pouget, P. Dayan, and R. Zemel. Information processing with population codes. Nat Rev Neurosci, 1, 2000.
Michael W. Reimann, Max Nolte, Martina Scolamiero, Katharine Turner, Rodrigo Perin, Giuseppe Chindemi, Pawel Dlotko, Ran Levi, Kathryn Hess, and Henry Markram. Cliques of Neurons Bound into Cavities Provide a Missing Link between Structure and Function. Front. Comput. Neurosci., 11, 2017.
Stefan Scholtes. Introduction to Piecewise Differentiable Equations. SpringerBriefs in Optimization. Springer, 2012. doi: 10.1007/978-1-4614-4340-7.
Mark Stopfer, Vivek Jayaraman, and Gilles Laurent. Intensity versus Identity Coding in an Olfactory System. Neuron, 39, 2003.
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic Attribution for Deep Networks. In Proceedings of the 34th International Conference on Machine Learning, pages 3319–3328. PMLR, 2017.
Aaquib Syed, Can Rager, and Arthur Conmy. Attribution Patching Outperforms Automated Circuit Discovery. In NeurIPS 2023 Workshop on Attributing Model Behavior at Scale (ATTRIB), 2023. doi: 10.48550/arXiv.2310.10348.
Asterios Tsiourvas, Wei Sun, and Georgia Perakis. Manifold-Aligned Counterfactual Explanations for Neural Networks. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics (AISTATS). PMLR, 2024.
Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Yaron Singer, and Stuart Shieber. Investigating Gender Bias in Language Models Using Causal Mediation Analysis. In Advances in Neural Information Processing Systems, volume 33, pages 12388–12401. Curran Associates, Inc., 2020.
Frank Wilcoxon. Individual comparisons by ranking methods. Biometrics Bulletin, 1(6): 80–83, 1945. doi: 10.2307/3001968.
Appendix
Appendix A provides a summary of the notation and conventions used throughout the paper. The methodological and computational details are given in Appendices B–F: the construction of the complexes (Appendix B), the quadrant classifiers and the input sets used in the experiments (Appendix C), sensitivity to the relevance test (Appendix D), sensitivity to numerical integration and input selection tolerance (Appendix E), and computational complexity (Appendix F). The experiments and their results are presented in Appendices G–I: the complexes of the quadrant classifiers (Appendix G), comparisons of complexes across input sets and with activation distances (Appendix H), and comparisons with other interpretability methods (Appendix I). The code that generates all results, tables and figures of this article is available at https://github.com/subthaumic/neural-dsc (Bleher, 2026).
Appendix A. Notation and conventions
Table 1: Symbols used in the main text and appendices.
| symbol | meaning |
|---|---|
| number of input neurons | |
| number of internal (hidden-layer) neurons; input and output layers are excluded throughout | |
| internal-neuron index set, | |
| -th internal neuron, | |
| set of internal neurons, | |
| input vector, | |
| activation of neuron at input | |
| vector of all internal neuron activations, | |
| neural manifold: attainable internal activation states | |
| set of inputs used to construct the complex | |
| number of inputs, | |
| selection tolerance of the input set | |
| predictor-neuron set , suppressed jointly | |
| target neuron, and | |
| coherent counterfactual ablation (CCA) trajectory starting at that suppresses | |
| ablation coordinate, is the fully ablated counterfactual | |
| derivative of the activation map at , represented by its Jacobian | |
| Jacobian of the internal activations with respect to the input | |
| step size of the numerical integration of |
Continued on next page
Table 1: Symbols (continued).
| symbol | meaning |
|---|---|
| ablation values , , at which the relevance test is evaluated | |
| change in the activation of at ablation for input | |
| changes in the activation of over the input set | |
| medHL | Hodges–Lehmann pseudomedian |
| relevance margin, in units of the standard deviation of the target activation over | |
| relevance margin for target | |
| test level, applied separately at each dimension | |
| cutoff for the p-values of the candidates at dimension | |
| smallest ablation value from which the link stays relevant up to full ablation | |
| simplices and their faces | |
| filtration value of | |
| (filtered) directed simplicial complex | |
| its subcomplex of simplices with | |
| the filtered directed simplicial complex constructed from the input set | |
| Jaccard distance and its filtration-integrated form (15) |
Appendix B. Construction of the directed simplicial complex
Fix a feedforward multilayer perceptron with ReLU activations, input dimension and internal neurons , where . Let be its internal activation map and its neural manifold. Given a finite, nonempty set of inputs , with , we construct a filtered directed simplicial complex (DSC) on that encodes causal relationships between neuron activations in the context of .
Let be a nonempty set of predictor neurons and let be a target neuron. For each , we seek a coherent counterfactual ablation (CCA) trajectory that starts at and decreases the predictor activations at equal rates while remaining on the neural manifold (Appendix B.1). For each , the differences between the initial target neuron activation and its value along the trajectory are tested across against a relevance margin (Appendix B.2). A candidate directed simplex , with the predictors in followed by the target neuron , is included in only when there is a statistically relevant causal link after full ablation and all its faces are present. Its filtration value is the maximum of the ablation value from which the link stays relevant up to full ablation and the filtration values of its faces (Appendix B.3). Filtered DSCs and on are compared using a version of the Jaccard distance (Appendix B.4).
B.1. Generating coherent counterfactual ablation (CCA) trajectories
Fix an input and a nonempty set of predictor neurons . Let denote the projection onto the activations indexed by . We write for the activation vector restricted to the predictor set. We seek a trajectory , starting at , along which the predictor activations are reduced to zero. These conditions do not determine a unique trajectory, and the construction below introduces additional choices that make it deterministic.
Let the total activation of the predictor neurons be denoted by
As a sum of ReLU network activations, is continuous and piecewise affine in the input. Since ReLU activations are non-negative, exactly when every predictor in is off. At each point of the trajectory, let contain the predictors that remain active and write . To reduce to zero, we use its normalised negative gradient with respect to these activations,
which decreases the active predictors at equal rates and prevents the easiest-to-change predictor from dominating the descent.
Prescribing does not yet determine a unique trajectory on , since different trajectories can have the same velocity when projected onto the active predictor coordinates. Since our intention is to 'ablate a feature in the input', we construct an input trajectory
, starting at , which determines the internal activations through the network equations.
We first assume that lies in an open neighbourhood on which is differentiable as a function of the input. Set , the Jacobian of the predictor activations with respect to the input. By the chain rule, the velocity of the active predictor activations along is . Ordinary input-space gradient descent on would use . To realise the prescribed velocity , the input trajectory must instead satisfy
Whenever this velocity is attainable, it gives . To minimise incidental input displacement, we choose the input velocity of smallest Euclidean norm among those that realise the prescribed activation velocity.
Since is generally rectangular and may be rank deficient, the solution is expressed through the Moore–Penrose pseudoinverse (Penrose, 1955):
In summary, the descent uses the unique minimum-norm exact solution when and the minimum-norm least-squares solution otherwise. The pseudoinverse removes arbitrary motion in , but it does not assert that activations outside remain fixed.
We now consider points where is not differentiable, which occur on the boundaries of the polyhedral regions in input space on which a fixed set of neurons is active. To continue the descent, we choose a Jacobian of an adjacent region from the B-subdifferential. Let be the differentiability set of . The B-subdifferential consists of the limiting Jacobians (Scholtes, 2012):
For each region we form with , retain it only when the directional changes of its boundary pre-activations make enter that same region, and choose the minimum-input-norm direction among the self-consistent continuations.
Finally, to compare trajectories across inputs, the integration parameter is replaced by a normalised ablation parameter . When the predictor activations decrease monotonically along a completed CCA, the decrease in is the -arclength traversed by . The normalised trajectory parameter is therefore
Reparameterising by gives the CCA trajectory , with the factual state and the fully ablated counterfactual. A predictor set with has the constant trajectory .
B.2. Relevance testing
For a predictor set , target neuron , input , and ablation , let the change in target activation be
Here is the activation of the target neuron along the trajectory. We write for the changes in target activation across the input set.
Let denote the standard deviation of the unperturbed activations . To account for differences in activation scale, a common dimensionless relevance parameter is used to define the target-specific margin
The second term ensures a nonzero relevance margin also for targets whose activation is constant over , provided that other neurons vary over .
Let denote the Hodges–Lehmann pseudomedian (Hodges and Lehmann, 1963) of the changes in target activation. To test whether the effect exceeds in either direction, we use a two-sided Wilcoxon signed-rank relevance test (Wilcoxon, 1945) with hypotheses
The two directions are tested using one-sided signed-rank tests of against positive changes and against negative changes. We denote the smaller of the two p-values by . The link is declared relevant at when , where the cutoff is determined from the test level by the multiple-testing correction in Appendix B.3.
B.3. Construction of the filtered directed simplicial complex
We build by induction on dimension.
(i) Initialise the complex with the vertex set and assign every vertex filtration value zero.
(ii) At dimension , take every admitted -simplex , set , and extend it by each neuron to form the candidate . Only candidates whose codimension-one faces have all been admitted are tested and counted for the multiple-testing correction.
(iii) For each candidate, jointly ablate and test as in Appendix B.2.
(iv) Let denote the number of candidates tested at dimension . For a test level , let be the cutoff obtained by applying the chosen multiple-testing correction to the family of p-values at full ablation. Admit exactly when . For the reported experiments, we use Bonferroni correction, giving , with . The choice of correction is investigated in Appendix D.2.
(v) For each admitted candidate, evaluate the relevance test at ablation values , . Define as the smallest for which the link is found to be relevant at every subsequent ablation value, including full ablation:
This corresponds to testing in decreasing order of , stopping at the first non-rejection.
(vi) Let denote the codimension-one faces of an admitted candidate and assign
This choice prevents a simplex from appearing before any of its proper faces.
(vii) Stop if dimension admits no simplex, since no higher-dimensional simplex can then have all its faces admitted. Otherwise continue at dimension , unless the chosen maximum dimension has been reached.
By construction, defines a filtered directed simplicial complex. A small value of records an immediate functional dependence, while a larger value records one that becomes detectable only after more of has been removed.
The influence of the relevance margin, sample size, multiple-testing correction, test level, and spacing of the ablation values on is analysed in Appendix D.
B.4. Comparing filtered complexes
For filtered DSCs and on the same vertex set , we compare their sublevel sets without vertices by integrating the ordinary Jaccard distance over the filtration,
where , with . Vertices are excluded because both complexes contain all of for all filtration values, so including them would add the same elements to every intersection and union and pull all distances towards zero. Integrating over the filtration distinguishes complexes with the same simplices but different filtration values.
Appendix C. Neural network specifications and input sets
This section describes the artificial neural networks used in the experiments of this article and the input sets from which we construct associated filtered directed simplicial complexes (DSCs) as described in Appendix B.
C.1. Network specifications
All networks are multilayer perceptrons (MLPs), with rectified linear unit (ReLU) activations in the hidden layers, that classify points of the input domain into four classes. The four classes are the quadrants (), (), () and (). We use two architectures, [2, 4, 4, 4] and [2, 3, 4, 4], and for each study three kinds of network, differing in how their weights and biases are obtained. On the one hand, we consider handcrafted networks, for which the internal computations are known exactly and can be compared to the constructed DSCs. On the other hand, we consider trained networks that have been optimised to perform the classification task and randomly initialised networks to investigate the structures of DSCs obtained in more realistic settings. We report the performance of the networks for a fixed evaluation set of 1,000 points drawn uniformly from the input domain.
In the handcrafted [2, 4, 4, 4] network, each of the four first-layer neurons detects exactly one of the elementary features , , and , while each of the three first-layer neurons of the handcrafted [2, 3, 4, 4] network responds to a combination of both coordinates. We therefore call the first the monosemantic network and the second the polysemantic network. Note, however, that whether a single neuron counts as monosemantic depends on the choice of elementary features, and in an input basis rotated by the readings of the two networks would be exchanged.
Trained networks. We trained networks on both architectures with Adam (Kingma and Ba, 2014) at learning rate 0.005, batch size 256, for 200 epochs of 10,000 draws each ( draws in total). For the loss we used the cross-entropy between the softmax of the outputs and the quadrant label. Each minibatch is an independent uniform draw from . Their accuracy on the evaluation set is 0.997 for the [2, 4, 4, 4] network and 0.999 for the [2, 3, 4, 4] network. The bottom two rows of Figure 3 show the learned parameters and decision regions. In the trained [2, 4, 4, 4] network, two first-layer neurons depend mainly on one input coordinate and two mix both coordinates. The trained [2, 3, 4, 4] network has two first-layer neurons of the first kind and one of the second. We therefore refer to the trained networks by their architecture only.
Monosemantic network. The monosemantic classifier is a [2, 4, 4, 4] MLP with two four-unit hidden layers and four outputs. All biases are zero. The first-layer weights are
Handcrafted classifiers

Figure 3: Architectures and decision regions of the quadrant classifiers. Each row shows the parameterised network (left) and its predicted classes on the evaluation set (right). In the network diagrams, circles are neurons, squares are biases and arrows are weights. The colour of a square or arrow shows its value on the colour bar of the panel, and the width of an arrow grows with the magnitude of the weight. From top to bottom: handcrafted monosemantic [2,4,4,4], handcrafted polysemantic [2,3,4,4], trained [2,4,4,4] and trained [2,3,4,4] networks.
After the ReLU nonlinearity, neurons encode , , , and , respectively. The second-layer weights are
This layer implements piecewise-linear conjunctions of the first-layer features. For example, neuron is active in when neurons and are active, while negative weights suppress contributions from incompatible sign features. The output weights are . The first row of Figure 3 shows this network and its decision regions. Its accuracy on the evaluation set is 1.0.
Polysemantic network. The polysemantic classifier is a [2, 3, 4, 4] MLP. Its three-unit first layer forms a bottleneck that induces feature sharing. Its weights are
The first-layer biases are zero. Under ReLU, these directions map the corners of a square centred at the origin into three positive codes and one all-zero code. Consequently, several input regions share units, while the fourth is represented by their coordinated inactivity.
The second-layer parameters are
Here neurons , , and copy the three first-layer codes, while the biased neuron represents by activating when their total activity is small. The output layer has weights and zero bias. The second row of Figure 3 shows this network and its decision regions. Its accuracy on the evaluation set is 0.866, and all errors involve . Within , the network assigns only the points with to and the others to or . Conversely, some points of the other quadrants close to the origin are assigned to .
Untrained networks. As a control, we use randomly initialised networks of both architectures, with the default PyTorch initialisation and seeds 0, 1 and 2. Their accuracy on the evaluation set lies between 0.243 and 0.258, close to the level of pure chance of 0.25. In fact, five of the six networks assign all points to the same quadrant, and the sixth assigns a region in the upper right corner of the input domain to and all other points to . Each network thus classifies the points of exactly one quadrant correctly, and its accuracy is the share of this quadrant in the evaluation set.
C.2. Input sets
A DSC describes the network in the context of a fixed set of inputs , because the relevance test relies on these inputs. We can only conclude that the network has detected a particular shared feature in the input set if it produces similar outputs for all of these inputs. For a target vector , we thus construct a set of inputs by selecting points at which the output of the network is close to the desired output . We quantify closeness by the cosine similarity .
The outputs of the handcrafted networks are non-negative by construction, and we can use them unchanged, . The outputs of the trained networks are signed logits, and adding a constant to all of them would change their cosine with but not the classification, so for these networks we additionally apply a softmax in line with their training loss. For a given selection tolerance , an input is accepted if . Thus accepts only inputs at which points in the direction of , while a larger accepts inputs from a larger region of input space. We draw inputs uniformly from the input domain and keep the accepted ones until we have collected of them.
For a quadrant , the one-hot inputs are selected with the one-hot target vector that has entry 1 in position and 0 elsewhere, so that the network assigns them unambiguously to . For two adjacent quadrants and , the two-hot inputs are selected with the target vector that has entries 1 in positions and and 0 elsewhere. This gives the four sets , , and . These inputs lie close to the decision boundary between and , where the network is undecided between the two quadrants. In the monosemantic network, for example, the two-hot inputs have , the feature shared by both quadrants, while is close to zero and might be either positive or negative. We do not consider two-hot inputs for the diagonally opposite pairs and , because these quadrants meet only at the origin, so that the networks typically have no inputs at which their output is close to the corresponding two-hot target vector. The random inputs are 128 points sampled uniformly from the evaluation set without any selection. Such a set mixes inputs from all four quadrants and therefore does not single out any of them. For the untrained networks, we use the one-hot inputs of the trained network with the same architecture (Appendix G.3).
Appendix D. Sensitivity to the relevance test
We analyse how the choices of relevance margin , sample size , multiple-testing correction, test level , and the spacing of the ablation values in the construction (Appendix B.2 and Appendix B.3) influence the resulting complexes, and use this analysis to choose the configuration adopted in the rest of the article.
D.1. Minimum sample size and test power
The sample size determines the smallest p-value the relevance test can return and the power of the test.
First, with inputs, the one-sided signed-rank test cannot return a p-value below , the probability under the null hypothesis that all changes in target activation have the same sign. A candidate at dimension is admitted only if (Appendix B.3), so dimension stays empty unless . Without multiple-testing correction, we have , which at requires a sample size of . Benjamini–Hochberg can raise its cutoff up to , so its bound is the same. The cutoff of Benjamini–Yekutieli is at most , where , which requires . Bonferroni has the fixed cutoff . This is the smallest of the four cutoffs, and it requires
Under the Bonferroni correction used in the main experiments (Appendix D.2), every ordered pair of distinct neurons is a candidate at dimension one, so and a complex has edges only if . At higher dimensions, the number of candidates is at most , the number of orderings of all neurons, so a sample size of covers every dimension. For the quadrant classifiers at , edges require , and the bound holds at every dimension for () or (). If is below the bound at some dimension, that dimension is empty because of the sample size.
Second, recall that the power of a statistical test is the probability of rejecting the null hypothesis when the alternative is true. For the signed-rank test, the power depends on the distribution of the changes in target activation. Changes in target activation can be zero-inflated, that is, a large fraction of them are exactly zero. Suppose a fraction of the changes in target activation is much larger than and the other changes are zero. The normal approximation of the signed-rank statistic then gives
The test detects the effect only if , which is where the pseudomedian of the changes exceeds . Near this value, the sample size needed to reach a given cutoff grows like . For example, at , the dimension-one Bonferroni cutoff of the quadrant classifiers requires about 70 inputs, as opposed to the minimum of 13, to detect the effect with 50% power.
D.2. Parameter sweep
We performed a parameter sweep to assess the sensitivity of the complexes to the parameters of the relevance test. We varied the sample size , the relevance margin , the test level , and the spacing of the ablation values at which the relevance test is evaluated (Appendix B.3) over
and either left the p-values uncorrected or applied the multiple-testing correction of Bonferroni (Dunn, 1961), Benjamini–Hochberg (Benjamini and Hochberg, 1995) or Benjamini–Yekutieli (Benjamini and Yekutieli, 2001).
The experiments used the handcrafted monosemantic and polysemantic quadrant classifiers (Appendix C.1). For each classifier and each quadrant , we used the one-hot inputs (Appendix C.2). For each classifier, each quadrant, and each parameter combination, we built complete filtered directed simplicial complexes (DSCs) up to the maximum possible simplex dimension with fixed integration step of the trajectories (Appendix E) and fixed selection tolerance for the inputs (Appendix C.2). The p-values depend only on the classifier, the quadrant, , and , because the ablation values for and are a subset of those for . We therefore computed them once at the ablation values for , for each of the combinations of classifier, quadrant, , and . From these p-values, we built the DSCs for all combinations of , multiple-testing correction, and , which gives DSCs.
In each of the following paragraphs, we report the effect of varying a single parameter. Unless stated otherwise, the other parameters are held at , , Bonferroni correction, and .
Relevance margin. At , every relevance margin from 0.001 through 0.2 produced exactly the same simplex set for every set of inputs, for every and every multiple-testing correction. In contrast, at a vanishing relevance margin , where the relevance test asks whether the target activation changes at all, the complexes were larger for every input set. They contained between 28 and 90 simplices besides the vertices, compared with 6 to 16 for . In particular, three of the polysemantic complexes at contained 3-simplices, while no complex at contained simplices above dimension two. For and of the polysemantic network, the complexes were still growing between and (Figure 4).
This difference is related to the power argument in Appendix D.1. With , target activations that do not change along the trajectory () count as evidence against relevance. At , these cases are dropped from the signed-rank test, so the test reports as relevant as soon as enough of the changes in target activation are nonzero and share a sign. The complexes therefore tend to keep growing as the sample size increases, since there are more opportunities for nonzero changes in target activation. A nonzero relevance margin sets a minimum effect size and thus removes links with too few nonzero changes in target activation, which a large enough sample would otherwise always detect.

Figure 4: Number of simplices, excluding vertices, as a function of the sample size for both classifiers and the one-hot inputs of all four quadrants, at with Bonferroni correction and . Colours give the relevance margin , while the dotted curve is . At , the simplex sets at and are identical in all eight complexes, whereas gives the simplex set in only two of them.
While the simplex sets of the complexes were invariant to in the range , the filtration values of the simplices did change. Compared with , relevance margins from 0.001 to 0.025 changed filtration values by at most 0.051, and no two simplices changed their order in the filtration. At , filtration values changed by up to 0.64, and simplices changed their order in five complexes. A larger relevance margin delays the filtration values, because a link needs a larger effect to be declared relevant. We therefore use , which lies well inside the range of relevance margins that give the same simplex set.
Sample size. As increased, the number of simplices in the complexes increased (Figure 4). At , the complexes contained only vertices, as expected from the minimum sample size of 13 for edges (Appendix D.1). Every simplex admitted at a smaller was also admitted at , in line with the increasing power of the relevance test. From on, all eight complexes had the simplex set of .
The Jaccard distance (Appendix B.4) to the complex shrank as increased. It ranged from 0.047 to 0.66 at , from 0.009 to 0.19 at , and from 0.001 to 0.14 at . From on, this distance came from the filtration values alone, because the simplex sets agreed. A larger increases the power of the relevance test and therefore tends to move earlier (Appendix D.1). In addition, the input sets for different were drawn independently, so the filtration values also varied with the sampled inputs.
Since the simplex sets were fixed from on and the remaining variation in the filtration values is expected, we use in all other experiments of this article (Appendices E and G).
Multiple-testing correction. At each dimension, all candidate simplices are tested at once, and the multiple-testing correction turns the test level into the cutoff for their p-values (Appendix B.3). Bonferroni correction controls the family-wise error rate (Dunn, 1961), so that with probability at least none of the admitted candidates of a dimension has a link that is not relevant. Benjamini–Hochberg and Benjamini–Yekutieli control the false discovery rate (Benjamini and Hochberg, 1995), so that on average at most a fraction of the admitted candidates have a link that is not relevant. Two candidates and with the same predictor set are tested on the same coherent counterfactual ablation trajectories . In particular, the associated changes in target activation and are computed from the same points (Appendix B.2), so their p-values are dependent, and the form of this dependence is unknown. Bonferroni correction and Benjamini–Yekutieli remain valid under any dependence, whereas Benjamini–Hochberg requires positive dependence (Benjamini and Yekutieli, 2001).
All four options, including uncorrected p-values, returned the same simplex set in all eight complexes. Changing the multiple-testing correction shifted filtration values by at most 0.14 and did not change the order of any two simplices in the filtration. The largest Jaccard distance between two multiple-testing corrections ranged from 0.002 to 0.073 across the eight complexes. The multiple-testing corrections agree because the p-values of admitted and rejected candidates are separated by several orders of magnitude, so all four cutoffs fall into the same gap (Figure 5).
Since the choice of multiple-testing correction did not change the simplex sets, we choose the strictest one and use Bonferroni correction in all other experiments of this article (Appendices E and G).
Test level. At , all three test levels returned the same simplex set in all eight complexes. Changing shifted filtration values by at most 0.14. At , the three levels still agreed in seven complexes, but for of the monosemantic network, admitted four fewer simplices than the other two levels. A smaller lowers the cutoff , so admitting a link with a weak effect requires a larger (Appendix D.1).
We therefore choose , the strictest test level in the sweep that is consistent with choosing , in the remaining experiments in this article (Appendices E and G).
Spacing of the ablation values. A candidate is admitted based on its p-value at full ablation , so the spacing cannot change the simplex sets (Appendix B.3). It can, however, change the filtration values. If the p-value trajectory is monotone, a finer spacing can only decrease the filtration value by less than the coarser spacing. If the p-value trajectory crosses back over the cutoff between two ablation values, a finer spacing may detect this and increase the filtration value.
Since it is not known in advance whether the p-value trajectories are monotone, we compared three spacings. For the parameters chosen above ( and Bonferroni correction), no admitted p-value trajectory crossed back over the cutoff (Figure 5). Accordingly, refining the spacing from to only decreased filtration values, by at most . In 11 of the 6,720 complexes, a finer spacing revealed a trajectory that crossed back over the cutoff and increased a filtration value by up to 0.026. All of them used one of the other two test levels, or . Their

Figure 5: P-values along the ablation axis for the one-hot inputs of the monosemantic network (top) and of the polysemantic network (bottom), at the chosen parameters , , and . The left and right panels show the candidates of dimensions one and two. Each curve is the p-value of one candidate as a function of the ablation s. Blue curves belong to admitted candidates and grey curves to rejected ones. The horizontal lines are the cutoffs under the four multiple-testing corrections. At full ablation s = 1, the p-values of admitted and rejected candidates are separated by several orders of magnitude, and all four cutoffs lie in the gap. Red dots mark , the last crossing of the Bonferroni cutoff, before the maximum over faces in (14) is taken.
largest increase of 0.026 is small compared with the changes of up to 0.14 caused by the choice of test level or multiple-testing correction.
We therefore use the finest tested spacing in all other experiments of this article (Appendices E and G).
Appendix E. Sensitivity to numerical integration and input selection tolerance
We analyse how the integration step of the coherent counterfactual ablation trajectories (Appendix B.1) and the selection tolerance for the inputs (Appendix C.2) influence the resulting complexes, and use this analysis to choose the values adopted in the rest of the article. We integrate the input trajectory by explicit Euler steps of size , and shorten a step whenever an active predictor would otherwise pass zero. The integration step only discretises this trajectory, so the complexes should not depend on it once it is small enough. The selection tolerance, in contrast, determines the region of input space from which the inputs are drawn, so it is part of the definition of the set of inputs and may have a subtle effect on the resulting complexes.
The experiments used the handcrafted monosemantic and polysemantic quadrant classifiers with the one-hot inputs of all four quadrants, as in Appendix D.2. The parameters of the relevance test were held at the values chosen in Appendix D (, Bonferroni correction, and ), and we built complexes up to the maximum possible simplex dimension. We varied the integration step over
with one fixed input set per quadrant, drawn at . Separately, we varied the selection tolerance over
at . For each value of , the input set was drawn from the same sequence of uniformly sampled points, so the input sets for different values of partly overlap. For each value of and of , we thus obtained eight complexes, one for each handcrafted network and quadrant.
Integration step. All seven integration steps from to returned the same simplex set in all eight complexes. Compared with the finest step , the step shifted filtration values by at most 0.002 and did not change the order of any two simplices in the filtration. Coarser steps shifted filtration values further, by up to 0.19 at (Figure 6). From on, they also reversed the order of up to eight pairs of simplices in the monosemantic complexes.
Since halving the step to changed neither the simplex sets nor the order of the simplices, we use in all other experiments of this article (Appendices D and G).
Selection tolerance. For each network and quadrant, we compared the complex at each with the complex at the smallest at which inputs could be collected within 128,000 draws (Appendix C.2). This is except for the input sets and of the polysemantic network, where it is .
Between and , the simplex set did not change in any of the eight complexes. Differences occurred only at the ends of the range, for of the monosemantic network. There, the complex at lacked two edges and two 2-simplices, and at four simplices were replaced by three others. In contrast, the filtration values changed with

Figure 6: Effect of the integration step on the filtration values, relative to the finest step . The simplex sets are the same at every . The left panel shows the largest shift of a filtration value in each of the eight complexes. The right panel shows the percentage of pairs of simplices whose order in the filtration is reversed, among the pairs with distinct filtration values at . The dashed line and the outlined column mark the chosen step .
. At , they differed from the reference by up to 0.51, and the order of up to 36% of the pairs of simplices was reversed (Figure 7). These changes are expected, because a larger accepts inputs from a larger region of input space and therefore gives a different input set.
Since the simplex sets did not depend on between 0.001 and 0.05 and the changes in the filtration values are expected, we use in all other experiments of this article (Appendices D and G).

Figure 7: Effect of the selection tolerance on the complexes, relative to the complex at the smallest at which inputs were accepted for each input set. The top left panel shows the Jaccard distance (Appendix B.4). The top right panel shows the Jaccard distance between the sets of simplices with filtration value at most 0.01, without vertices. The bottom left panel shows the largest shift of a filtration value. The bottom right panel shows the percentage of pairs of simplices whose order in the filtration is reversed, among the pairs with distinct filtration values in the reference. Grey cells mark and of the polysemantic network, for which fewer than inputs were accepted at , and the outlined column marks the chosen .
Appendix F. Computational complexity
The cost of constructing a filtered DSC for neural network with internal neurons and an input set of size is dominated by the number of candidate simplices. For each predictor set, the construction integrates the ablation trajectories once, with steps each (Appendix E), and reuses them for all candidates that extend it (Appendix B.3). Each candidate is then tested at all ablation values. Each of these tests ranks the changes in target activation, which takes operations. Up to dimension , there are predictor sets and candidates (Section 1). If every candidate were admitted, the cost would therefore be
In practice, far fewer candidates are tested, because a candidate is tested only if all its codimension-one faces have been admitted. In the parameter sweep of Appendix D.2, for example, no dimension required more than 104 tests, while the monosemantic network with its internal neurons would require 6,720 tests at dimension 4 if every candidate were admitted.
The memory requirement is dominated by the ablation trajectories, which hold activation values for each predictor set and thus grow linearly in the number of ablation values, the sample size and the number of neurons . The tests for different predictor sets of the same dimension are independent of each other and can therefore run in parallel, as can the constructions for different input sets.
The cost is nearly the same for all relevance margins but increases considerably at . In this case, the relevance test admits every link that the input set can resolve, so many more candidates are tested at the next dimension. We measure the cost in CPU-hours, that is, the wall-clock time of a construction multiplied by the number of CPUs allocated to it. At the parameters of the main experiments, a single complex of a handcrafted network takes about a minute on a single CPU. In the parameter sweep, the constructions for each relevance margin took about 0.7 CPU-hours in total, compared with 3.0 CPU-hours at . The whole sweep took 9.3 CPU-hours and ran in 13 minutes on 48 CPUs, and the sweep of and in Appendix E ran in 3 minutes on 48 CPUs.
Since the number of candidates grows like , the construction as presented is constrained to small multilayer perceptrons. With some further research, its ideas might still apply to larger networks. The construction could, for example, be restricted to candidates of interest, such as the neurons of a few adjacent layers or of a circuit found by another method, or the simplices predicted by a hypothesis about the computation of the network. The vertices of the complex could also be groups of neurons, which would reduce their number .
Appendix G. Results on the quadrant classifiers
All complexes in this section are constructed from sets of inputs selected with selection tolerance (Appendix C.2). The remaining parameters are set to the values chosen in Appendices D and E (, , and with Bonferroni correction), and each complex is built up to the highest dimension that the number of neurons allows. We write , and for the complexes of the one-hot inputs , the two-hot inputs and the random inputs .
G.1. Handcrafted networks
For the handcrafted networks of Appendix C.1, the logic of the networks is simple enough to explain the simplices of their complexes. Ablating a set of neurons moves the inputs along a path in the input plane (Appendix B.1), and the relevance test detects whether the activation of a target neuron changes along this path. Below, we describe the logic of the monosemantic and polysemantic networks and explain how it is reflected in their complexes.
Monosemantic network. In the monosemantic network, the first-layer neurons and each detect one sign of or , and the second-layer neurons and construct the quadrants and by combining these signs (Appendix C.1). The one-hot inputs activate the neurons as follows.
| inputs | active first-layer neurons | active second-layer neuron |
|---|---|---|
This network classifies the quadrants exactly, and its accuracy on the evaluation set is 1.0.
The monosemantic network is symmetric under rotations of the input domain by . Such a rotation permutes and cyclically. Up to the corresponding relabelling of all neurons, the rotation therefore maps each quadrant to the next and leaves the logic of the network computation unchanged. Accordingly, the four complexes coincide after this relabelling, and each of them contains ten edges and four 2-simplices (Figure 8). Since the input sets for each quadrant are chosen independently, this agreement is a consistency check of the construction.
In , the four edges between the active neurons and enter first, at filtration values below 0.01. The edge arises because ablating moves the inputs horizontally towards the vertical decision boundary , where vanishes. Since on these inputs, the activation of drops along the way, and the relevance test detects this shift almost immediately. The edge arises in the same way, because ablating moves the inputs vertically towards . The backward edges and arise because ablating moves the inputs in the direction , which is the most direct way to reduce , so that and drop with it. They record that cannot be switched off without also reducing its inputs, although the network has no connection from back to or .
The remaining simplices describe how the ablation moves the inputs out of . Ablating moves the inputs towards , and since is an inhibitory input of the neuron , this activates already before the inputs reach the decision boundary. This gives the edge , and ablating gives the edge towards in the same way. Ablating alone moves the inputs parallel to the diagonal, so only the inputs above the diagonal approach , and those close to the diagonal only shortly before is switched off. The edge therefore enters only at 0.84, much later than at 0.17. The edge enters late for the same reason, through the inputs below the diagonal. Ablating and together reduces and at equal rates and thus leaves unchanged, so the inputs move horizontally towards as for alone. This gives the 2-simplices and . Both are tested by the same joint ablation, and both are present because the complex contains both edges and . The effect of the joint ablation on sets in early, at , but the two 2-simplices enter only together with their common face , because a simplex cannot enter before its faces. In the same way, ablating and together gives the 2-simplices and . The last two edges and enter only close to full ablation of , at 0.98 and 0.97, when the inputs cross the decision boundaries where the inactive neurons and become active.
The complex contains no 2-simplex with the predictors and , although combines them like an AND gate, since an input lies in only if and . Such a 2-simplex would require an edge between and . Since and depend on different input coordinates, ablating moves the inputs horizontally and leaves unchanged, and ablating leaves unchanged in the same way. The relevance test therefore finds no effect of on or of on at any ablation value, and the complex contains no edge between them. As a result, the AND gate appears only as the two edges and .
Polysemantic network. In the polysemantic network, the first-layer neurons and measure how far the input lies in the direction of the quadrants and , and the second-layer neurons and copy them (Appendix C.1). The fourth second-layer neuron represents by being active when the total activation of the first layer is below 2. For the one-hot inputs of and , one first-layer neuron and its copy are active. For those of and , the sign of divides the inputs into two groups of about equal size with different active neurons. The active neurons have the following activations on these inputs.
| inputs | active first-layer neurons | active second-layer neurons |
|---|---|---|
This network only approximates the quadrants, and its accuracy on the evaluation set is 0.866. Since we select the input sets based on the network's outputs, the complexes describe the logic of the network, which does not necessarily coincide with the features of the quadrants.
Monosemantic classifier: pure-class directed simplicial complexes

Figure 8: Complexes of the one-hot inputs of the monosemantic network. The fill of a node shows the mean activation of the neuron over the input set. Arrows are directed edges, coloured by filtration value. Translucent patches and dashed arrows show 2-simplices. After relabelling the neurons, the four complexes coincide. In each of them, the two active first-layer neurons are connected in both directions to the active second-layer neuron at low filtration values. The 2-simplices connect the active second-layer neuron and one first-layer neuron to the second-layer neuron of an adjacent quadrant.
The polysemantic network has a smaller symmetry than the monosemantic network. Reflecting the input domain in the line swaps and and leaves unchanged. Up to a relabelling that swaps with and with , the reflection therefore exchanges and and maps and to themselves. Accordingly, and coincide after this relabelling, while and are each mapped to themselves (Figure 9).
In , the two edges between the active neurons and enter first, at filtration values below 0.01. The edge arises because ablating moves the inputs in the direction towards the line , where vanishes. Since , the activation of drops along the way, and the relevance test detects this shift almost immediately. Ablating moves the inputs along the same path, so the backward edge enters at the same filtration value. It records that cannot be switched off without also reducing its input . This path leaves and hence unchanged, so the complex contains no edge to or . Along the path, becomes active only when drops below 2, that is, when the inputs approach the region that the network assigns to . The edges and therefore enter only at 0.31, much later than the edges between and . Ablating and together moves the inputs along the same path again. This gives the 2-simplices and , which enter together with their faces and .
In , the edges between and enter first, below 0.01, in the same way as those between and in . The edges between and and between and enter later, at 0.053 and 0.10, because and are each active on only about half of the inputs. The other inputs do not respond to the ablation of this neuron, which delays the detection of the shift. Ablating moves the inputs in the direction , which leaves and hence and unchanged, so the complex contains no edges from or to , , or . Along this path, becomes active only when the inputs approach the region assigned to , as for . The edges and therefore enter only at 0.59, even later than in at 0.31, because the inputs of lie further from this region. Ablating and together gives the 2-simplices and in the same way.
The inputs of lie close to the line with , where is active because of its bias. Those above the line activate and as the inputs of do, and those below it activate and as the inputs of do. Accordingly, contains all simplices of and , and in addition the four edges from to , , and . The differences arise because is active on and inactive on and . Above the line, , so ablating moves these inputs in the direction and increases and . Below the line, it moves the inputs in the direction and increases and . Conversely, ablating moves the inputs along the same path as for , but grows immediately, whereas for it stays zero until drops below 2. The simplices with target therefore enter below 0.08, much earlier than the 0.31 in and 0.34 in . The edges between and , in contrast, enter later than in , at 0.029 compared with 0.004, because only about half of the inputs of lie above the line.
The complex contains no 2-simplex with the predictors and , although it contains the edges between them in both directions. On the inputs above the line, , so and cannot be ablated together, and their joint ablation leaves these inputs in place. The same holds for and . is the largest of the four complexes, because the ablation of moves its inputs out of in two directions.
Since belongs to every 2-simplex, it belongs to more maximal simplices than any other neuron, 14 across the four complexes against two to seven for each of the six neurons that mix both coordinates. The number of simplices a neuron belongs to therefore does not identify the polysemantic neurons.
G.2. Trained networks
The logic of the trained networks is unknown, so we cannot explain their complexes as we did for the handcrafted networks in Appendix G.1. Table 2 compares the sizes of their complexes with those of the handcrafted networks, and Figures 10 and 11 show the trained complexes up to dimension two.
For each quadrant, the complex of a trained network is larger than that of the handcrafted network with the same architecture. The handcrafted monosemantic network gives the same complex with 22 simplices for all four quadrants, whereas the complexes of the trained [2, 4, 4, 4] network differ between the quadrants and contain between 24 and 220 simplices. For the [2, 3, 4, 4] architecture, the handcrafted complexes contain between 13 and 23 simplices and the trained complexes between 32 and 365.
Neither handcrafted network has simplices above dimension two. The trained [2, 4, 4, 4] network reaches dimension four for and , and the trained [2, 3, 4, 4] network for and .
The complexes of five of the eight trained input sets depend on the multiple-testing correction, whereas those of the handcrafted networks do not (Appendix D.2). The largest difference occurs for of the trained [2, 3, 4, 4] network. Without correction, it contains 24 edges and 196 simplices of higher dimension, and with the Bonferroni correction 18 edges and 62 simplices of higher dimension.
Of the 1,475 candidates tested with the Bonferroni correction, 21 are rejected but would be admitted without correction. Since a candidate is tested only if all its faces are admitted, these 21 rejections keep a further 206 candidates from being tested. For of the trained [2, 3, 4, 4] network, the entire difference comes from six edges that contain . Their p-values lie between and , below but above the Bonferroni cutoff of . In the handcrafted networks, no p-value lies between these two cutoffs.
In the handcrafted networks, the p-value of every admitted simplex stays below the cutoff once it has crossed it. In the trained networks, the p-value of 92 of the 1,184 admitted simplices crosses the cutoff more than once, and is the last of these crossings. A further 20 candidates pass the cutoff at an intermediate ablation value but not at full ablation, so the decision rule of Appendix B.3 does not admit them.
G.3. Untrained networks
An untrained network has no class structure, so selecting inputs by its outputs would pick an arbitrary region of input space. We therefore construct the complexes of the untrained networks on the one-hot inputs of the trained network with the same architecture (Appendix C.2), so that the comparison isolates the contribution of the weights. For each architecture, we use three untrained networks with different initialisation seeds. Table 3
Polysemantic classifier: pure-class directed simplicial complexes

Figure 9: Complexes of the one-hot inputs of the polysemantic network, drawn as in Figure 8. Each active first-layer neuron is connected in both directions with its copy in the second layer. Every 2-simplex has the target , and contains all simplices of and .

Figure 10: Complexes of the one-hot inputs of the trained [2, 4, 4, 4] network up to dimension two, drawn as in Figure 8. Table 2 gives the numbers of simplices of dimension three and four.

Figure 11: Complexes of the one-hot inputs of the trained [2, 3, 4, 4] network, drawn as in Figure 10.
| network | quadrant | simplices by dimension | max dim | total | |||
|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | ||||
| [2, 4, 4, 4], handcrafted | 10 | 4 | — | — | 2 | 22 | |
| [2, 4, 4, 4], trained | 10 | 6 | — | — | 2 | 24 | |
| [2, 4, 4, 4], trained | 22 | 56 | 86 | 48 | 4 | 220 | |
| [2, 4, 4, 4], trained | 24 | 50 | 42 | 8 | 4 | 132 | |
| [2, 4, 4, 4], trained | 12 | 12 | 6 | — | 3 | 38 | |
| [2, 3, 4, 4], handcrafted | 4 | 2 | — | — | 2 | 13 | |
| [2, 3, 4, 4], handcrafted | 8 | 2 | — | — | 2 | 17 | |
| [2, 3, 4, 4], handcrafted | 4 | 2 | — | — | 2 | 13 | |
| [2, 3, 4, 4], handcrafted | 12 | 4 | — | — | 2 | 23 | |
| [2, 3, 4, 4], trained | 26 | 74 | 138 | 120 | 4 | 365 | |
| [2, 3, 4, 4], trained | 25 | 68 | 126 | 120 | 4 | 346 | |
| [2, 3, 4, 4], trained | 18 | 32 | 30 | — | 3 | 87 | |
| [2, 3, 4, 4], trained | 13 | 10 | 2 | — | 3 | 32 | |
Table 2: Sizes of the complexes of the one-hot inputs of the handcrafted and trained networks, all constructed with the same parameters. Totals include the vertices. The handcrafted monosemantic network gives the same complex for all four quadrants, so it is listed once.
compares the sizes of their complexes with those of the trained networks. We compare only the sizes, because the Jaccard distance matches simplices by neuron index and therefore cannot compare networks with independent parameters.
The untrained complexes are not consistently smaller than the trained ones. For the [2, 4, 4, 4] architecture, five of the twelve untrained complexes are larger than the trained complex of the same quadrant. For the [2, 3, 4, 4] architecture, all twelve are smaller, but the largest of them has 327 simplices against 346 for the trained complex of .
The sizes of the untrained complexes vary strongly between seeds. For of the [2, 4, 4, 4] architecture, the three seeds give between 8 and 419 simplices. Two of the 24 untrained complexes contain only the vertices.
Three of the 24 untrained complexes reach dimension four, all of them for . The trained networks reach dimension four for four of their eight input sets.
| architecture | quadrant | trained | untrained, by seed | ||
|---|---|---|---|---|---|
| 0 | 1 | 2 | |||
| [2, 4, 4, 4] | 24 | 48 | 100 | 10 | |
| [2, 4, 4, 4] | 220 | 370 | 419 | 8 | |
| [2, 4, 4, 4] | 132 | 62 | 38 | 20 | |
| [2, 4, 4, 4] | 38 | 10 | 27 | 58 | |
| [2, 3, 4, 4] | 365 | 15 | 10 | 11 | |
| [2, 3, 4, 4] | 346 | 327 | 10 | 11 | |
| [2, 3, 4, 4] | 87 | 30 | 10 | 7 | |
| [2, 3, 4, 4] | 32 | 19 | 23 | 19 | |
Table 3: Sizes of the complexes of the one-hot inputs of the trained networks and of three untrained networks per architecture, all constructed on the same inputs. Totals include the vertices.
Appendix H. Comparing complexes across input sets
For each network, we compute the Jaccard distance (Appendix B.4) between the complexes of all one-hot, adjacent two-hot and random input sets (Figure 12). All complexes are constructed as in Appendix G.


Figure 12: Jaccard distances between the complexes of the one-hot, adjacent two-hot and random input sets of the monosematic (left) and polysemantic (right) networks.
H.1. One-hot inputs
The four one-hot complexes of the monosematic network share no edge, because the computation of each quadrant runs through its own second-layer neuron. Their pairwise distance is nevertheless 0.996 and not exactly 1, because the sublevel sets of all four complexes are empty at small filtration values, where .
In the polysemantic network, the distances among the one-hot complexes vary between 0.70 and 0.996. is closest to and , at 0.70 and 0.72, because it contains both of them (Appendix G.1). and share no simplex and have the largest distance, 0.996.
We compare these distances with distances between the mean activations of the internal neurons over the same input sets. For each pair of one-hot input sets, Figures 13 and 14 show the Jaccard distance between their complexes and the cosine and Euclidean distances between their mean activation vectors.
In the monosematic network, the cosine distance is between 0.81 and 0.83 for adjacent quadrants and 1.0 for opposite quadrants, while the Jaccard distance is the same for all pairs. Adjacent quadrants share one active first-layer neuron, and opposite quadrants share none.
In the polysemantic network, the Jaccard and cosine distances order the six pairs of input sets in the same way, with Spearman rank correlation . The same holds for the trained [2,3,4,4] network. For the trained [2,4,4,4] network, , so its Jaccard distance is not a monotone function of the cosine distance.
The activation distances of the trained networks are smaller than those of the hand-crafted networks with the same architecture, with a mean cosine distance of 0.73 against 0.88 for [2, 4, 4, 4] and 0.62 against 0.97 for [2, 3, 4, 4]. The mean Jaccard distance of the trained network is smaller for [2, 4, 4, 4], 0.94 against 0.996, but larger for [2, 3, 4, 4], 0.91 against 0.80.

Figure 13: Distances between the one-hot input sets of the monosemantic (top) and polysemantic (bottom) networks. Left: Jaccard distance between their complexes. Centre and right: cosine and Euclidean distance between the mean activations of the internal neurons over the same inputs.
H.2. Two-hot inputs
For each pair of adjacent quadrants and , we compare the distances of to and with its distances to the other two one-hot complexes. We say that the pair is recovered if and are both closer than the other two. As the separation of the pair, we report the smallest distance to the other two one-hot complexes minus the largest distance to and , so a positive separation means that the pair is recovered.
Both handcrafted networks recover all four pairs, and the separation is larger for the polysemantic network. For the monosemantic network, the distances of the two-hot complexes to their own one-hot complexes lie between 0.77 and 0.84, and those to the other two one-hot complexes are 0.997.

Figure 14: Distances between the one-hot input sets of the trained [2,4,4,4] (top) and [2,3,4,4] (bottom) networks, drawn as in Figure 13.
| network | pairs recovered | smallest separation | one-hot distances |
|---|---|---|---|
| [2, 4, 4, 4], handcrafted | 4/4 | +0.16 | 0.996 |
| [2, 3, 4, 4], handcrafted | 4/4 | +0.22 | 0.70–0.996 |
| [2, 4, 4, 4], trained | 3/4 | -0.15 | 0.82–0.99 |
| [2, 3, 4, 4], trained | 3/4 | -0.037 | 0.71–0.98 |
Table 4: Recovery of the adjacent two-hot input sets from the Jaccard distance. A pair is recovered when is closer to both and than to either of the other two one-hot complexes. The smallest separation is taken over the four adjacent pairs. The last column gives the range of the distances among the four one-hot complexes.
Each trained network recovers three of the four pairs. For the trained [2, 4, 4, 4] network, is closer to than to . For the trained [2, 3, 4, 4] network, is closer to and than to .
We also compare with the union of and , which contains every simplex of either complex with the smaller of its two filtration values. The distance between the two-hot complex and this union lies between 0.62 and 0.68 for the monosemantic network and between 0.49 and 0.54 for the polysemantic network. For the monosemantic network, the union is closer to than either one-hot complex. For the polysemantic network, one of the two one-hot complexes is closer than the union for all four pairs.
H.3. Random inputs
The random inputs come from all four quadrants, and the relevance test pools the responses of all of them. A simplex whose target changes on many of the inputs can therefore still be admitted, while a simplex that is specific to one quadrant is diluted by the inputs on which its predictors have no effect.
In the monosemantic network, every simplex of the one-hot complexes occurs in only one of them, and contains no edge. Its distance to all other complexes is therefore close to 1.
In the polysemantic network, contains the edges between each first-layer neuron and its copy, in both directions, as does . Its only other simplices are the edges and and the 2-simplices and . It is closest to , at a distance of 0.28, and contains as a subcomplex (Figure 15).
The simplices of enter much later in . The edges between and move from 0.004 to 0.033, and the 2-simplices and from 0.31 to 0.97. The distance between and is therefore 0.71, although one contains the other.
contains the edges to from and but not from and , although the network is symmetric under the reflection in , which exchanges with and with (Appendix G.1). Since the construction is symmetric under this reflection as well, the difference comes from the input set. Of the 128 random inputs, 70 lie on the side , where is active, and 58 on the side where is active.
Polysemantic classifier: pure class versus random mixture

Figure 15: The complexes and of the polysemantic network. Every simplex of also occurs in , which in addition contains the edges between and and between and , in both directions. The colour shows the difference in filtration value, and the shared 2-simplices enter at 0.31 in but only at 0.97 in .
Appendix I. Comparison with other interpretability methods
Circuit-discovery methods identify the connections of a network that its behaviour on a task depends on, and they return a subgraph of the network. We compare the filtered directed simplicial complexes (DSCs) of the handcrafted networks with four such methods. Since a graph cannot contain simplices of dimension two or higher, we restrict the comparison to the edges of the DSCs. The comparison therefore shows only whether the two kinds of method agree on the edges that both can express.
I.1. Representable edges
A circuit-discovery method intervenes on the activations of the network and measures the effect on its output. Its graph can therefore contain an edge from to only if feeds directly. A DSC suppresses neurons by moving the inputs (Appendix B.1) and measures the effect on the other neurons. Its edges can therefore connect any two neurons. For example, suppressing a second-layer neuron moves the inputs and thereby changes the first-layer neurons, which can give an edge from the second to the first hidden layer.
We call an edge of a DSC forward-adjacent if its predictor feeds its target directly, within-layer if both lie in the same hidden layer, and backward if it points from the second to the first hidden layer. Only the forward-adjacent edges can occur in a circuit. In the monosemantic network, four of the ten edges of each one-hot complex are forward-adjacent, two are within-layer and four are backward. In the polysemantic network, the forward-adjacent edges make up half of the edges of , and and a third of the edges of (Table 5).
I.2. Circuit-discovery methods
Automatic circuit discovery (ACDC) replaces the contribution of one connection at a time by its value on a corrupted input, and it removes the connection if this changes the output by less than a threshold (Conmy et al., 2023). Edge attribution patching (EAP) estimates the effect of every such replacement from the gradient at the clean input (Syed et al., 2023). Edge attribution patching with integrated gradients (EAP-IG) averages this gradient along the path from the corrupted to the clean input (Hanna et al., 2024). We apply these methods to the connections from the first to the second hidden layer. ACDC measures the change of the output by the Kullback–Leibler (KL) divergence, EAP by the difference between the logit of the quadrant and the mean of the other logits, and EAP-IG by either of the two.
As corrupted inputs, we negate a random nonempty subset of the coordinates of each input, which moves it into another quadrant. This lowers the accuracy from 1.0 to 0.0 for the four one-hot input sets of the monosemantic network and for of the polysemantic network, and to between 0.17 and 0.22 for the other three. EAP and EAP-IG score every connection, and we keep as many of the highest-scoring connections as ACDC keeps for the same input set, which is between three and ten.
Table 5 compares the forward-adjacent DSC edges with the connections that each method keeps. In 26 of the 32 comparisons, the method keeps every forward-adjacent DSC edge. EAP-IG with the logit difference does so for all eight input sets, ACDC and EAP-IG with the KL divergence for seven, and EAP for four. A random choice of the same number of connections would keep all forward-adjacent DSC edges with a probability between 0.002 and 0.12, depending on the input set.
The scores of the methods also rank the forward-adjacent DSC edges above the other connections (Figure 16). The area under the receiver operating characteristic curve (AUC) of the scores for membership in the DSC is 0.86 on average and at least 0.65, where a random score gives 0.5.
Except for of the polysemantic network, the methods keep more connections than the DSC has forward-adjacent edges. Of the 103 connections that a method keeps and the DSC lacks, summed over the 32 comparisons, 68 start at a first-layer neuron that is inactive on the whole one-hot input set, and 16 at one that is active on at most a fifth of it. An inactive neuron cannot be suppressed, so the DSC contains no edge from it. The corrupted inputs lie in other quadrants, where these neurons can be active.
| network | DSC | ACDC | EAP | EAP-IG | EAP-IG (KL) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| f/w/b | share | rec | AUC | rec | AUC | rec | AUC | rec | AUC | |||
| mono | 10 | 4/2/4 | 40% | 1.00 | 0.83 | 1.00 | 0.69 | 1.00 | 0.83 | 1.00 | 0.83 | |
| mono | 10 | 4/2/4 | 40% | 1.00 | 0.83 | 0.50 | 0.67 | 1.00 | 0.83 | 1.00 | 0.83 | |
| mono | 10 | 4/2/4 | 40% | 1.00 | 0.81 | 0.75 | 0.69 | 1.00 | 0.83 | 1.00 | 0.83 | |
| mono | 10 | 4/2/4 | 40% | 1.00 | 0.81 | 0.75 | 0.65 | 1.00 | 0.83 | 1.00 | 0.83 | |
| poly | 4 | 2/1/1 | 50% | 1.00 | 0.90 | 1.00 | 0.95 | 1.00 | 1.00 | 1.00 | 0.95 | |
| poly | 8 | 4/1/3 | 50% | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | |
| poly | 4 | 2/1/1 | 50% | 0.50 | 0.90 | 0.50 | 0.85 | 1.00 | 0.95 | 0.50 | 0.90 | |
| poly | 12 | 4/4/4 | 33% | 1.00 | 0.81 | 1.00 | 0.88 | 1.00 | 0.88 | 1.00 | 0.94 | |
Table 5: Forward-adjacent edges of the one-hot complexes against four circuit-discovery methods that keep the same number of connections. is the number of edges of the DSC, f/w/b their split into forward-adjacent, within-layer and backward edges, and “share” the share of forward-adjacent edges. “rec” is the fraction of the forward-adjacent DSC edges that the method keeps, and AUC that of its scores for membership in the DSC.
I.3. Other interpretability methods
Besides circuit-discovery methods, several other interpretability methods explain a network through interventions or attributions. Causal mediation analysis measures how much of an effect on the output passes through individual neurons by setting their activations to the values for another input (Vig et al., 2020), and integrated gradients attribute an output to the inputs by integrating gradients along a path (Sundararajan et al., 2017). Applied to the connections between neurons, these become activation patching and integrated gradients on connections, which ACDC and EAP-IG already implement. Subnetwork probing learns a sparse mask over the weights such that the remaining subnetwork still solves a given task (Cao et al., 2021), so it returns a subgraph and would enter the comparison like the four methods above. Distributed alignment search tests whether the variables of a hypothesised causal model are represented in subspaces of the activations (Geiger et al., 2024, 2025), and testing with concept activation vectors measures how sensitive an output is to a concept given by labelled examples (Kim et al., 2018). Both locate a given variable or concept in

Bottleneck: composition of the 1-skeleton
Bottleneck: baseline ranking of DSC edges
Figure 16: Edges of the one-hot complexes of the monosemantic (top) and polysemantic (bottom) networks. Left: numbers of forward-adjacent, within-layer and backward edges. Right: AUC of the scores of the four circuit-discovery methods for membership in the DSC, where a random score gives 0.5.
the activations and do not relate neurons to each other. A comparison with DSCs would first need a rule that translates their results into edges and simplices, which we leave for future work.