arXiv:2611.00786cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00786

The Tangled Web They Weave: Exploring Neural Representations with Directed Simplicial Complexes

Michael Bleher

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

  1. From the Greek poly (many) and semantic (meaning).

© 2026 M. Bleher.

Figure

Figure 1: Construction of a filtered directed simplicial complex KX\mathcal{K}_X from the activations of an input sample X={xb}b=1BX=\{x_b\}_{b=1}^B. Panel 1. We start with the input sample XX and map it to the internal activation profiles {a(xb)}b=1B\{a(x_b)\}_{b=1}^B. Panel 2. The internal neurons are the vertex set V={ni}i∈IV=\{n_i\}_{i\in I}, from which candidate simplices are constructed inductively. Panel 3. For an admitted simplex with predictor set PP we test whether it's causal link extends to a target neuron nqn_q by analysing its activation values along a coherent counterfactual ablation (CCA) trajectory γa(x),P(s)\gamma_{a(x),P}(s) that progressively suppresses PP. Panel 4. If the activation changes significantly, the candidate simplices are admitted and labelled by the last persistent crossing to significance s∗s^*; lower values indicate more immediate functional interactions in the context of XX.

of these concepts, we will call a feature polytopic2polytopic^2 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 NN internal neurons, yielding O(3N)O(3^N) candidate relations. We therefore rely on the subclass of directed simplicial complexes (DSCs), which can be constructed inductively from the vertex set VV and require the slightly more amenable number of O(Nk+1)O(N^{k+1}) candidates when probing interactions of order at most kk.

In this work, we introduce a method to construct filtered directed simplicial complexes (DSCs) KX\mathcal{K}_X from the activation profiles and parameters of a pre-trained feedforward multilayer perceptron (MLP) for a given set of input data X={xb}b=1BX=\{x_b\}_{b=1}^B.³ Its vertices are the internal neurons VV, while its directed edges and higher-order simplices represent higher-order causal relations between neuron activations in the context of XX. 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,

  1. From the Greek poly (many) and topos (place).

  2. 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 xx activates multiple features, ablating a group of neurons P⊆VP \subseteq V that are part of a single feature representation should primarily affect other neurons nq∈V∖Pn_q \in V \setminus P within that same feature's processing pathway. So, as long as off-feature pathways remain largely undisturbed, a directed edge P→nqP \to n_q is evidence that nqn_q is part of the same polytopic feature as the neurons in PP. 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 σ\sigma that quantifies the required coordinated reduction of activations over PP to induce a significant change in the activation of the target neuron nqn_q. Figure 1 summarises the resulting construction.

Our main contributions are:

  • We construct filtered DSCs KX\mathcal{K}_X from the activation data of MLPs with respect to input data XX 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 KX\mathcal{K}_X 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.

References (34)