Paper deep dive
Mathematical Models of Computation in Superposition
Kaarel HƤnni, Jake Mendel, Dmitry Vaintrob, Lawrence Chan
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 93%
Last extracted: 3/12/2026, 7:33:04 PM
Summary
The paper introduces mathematical models of computation in superposition, where neural networks efficiently emulate sparse boolean circuits by representing more features than they have dimensions. The authors construct a 1-layer MLP to emulate Universal AND (U-AND) circuits using O~(m^(2/3)) neurons and generalize this to deep networks with error-correction layers, providing a framework for understanding how neural networks perform compressed computation.
Entities (5)
Relation Signals (3)
1-layer MLP ā emulates ā Universal AND (U-AND) circuit
confidence 95% · We construct a 1-layer MLP that uses superposition to perform this task up to ε-error
Neural Networks ā utilize ā Superposition
confidence 95% Ā· Superposition ā when a neural network represents more āfeaturesā than it has dimensions
Superposition ā enables ā Efficient Computation
confidence 90% Ā· superposition is actively helpful for efficiently accomplishing the task
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Superposition -- when a neural network represents more ``features'' than it has dimensions -- seems to pose a serious challenge to mechanistically interpreting current AI systems. Existing theory work studies \emph{representational} superposition, where superposition is only used when passing information through bottlenecks. In this work, we present mathematical models of \emph{computation} in superposition, where superposition is actively helpful for efficiently accomplishing the task. We first construct a task of efficiently emulating a circuit that takes the AND of the $\binom{m}{2}$ pairs of each of $m$ features. We construct a 1-layer MLP that uses superposition to perform this task up to $\varepsilon$-error, where the network only requires $\tilde{O}(m^{\frac{2}{3}})$ neurons, even when the input features are \emph{themselves in superposition}. We generalize this construction to arbitrary sparse boolean circuits of low depth, and then construct ``error correction'' layers that allow deep fully-connected networks of width $d$ to emulate circuits of width $\tilde{O}(d^{1.5})$ and \emph{any} polynomial depth. We conclude by providing some potential applications of our work for interpreting neural networks that implement computation in superposition.
Tags
Links
- Source: https://arxiv.org/abs/2408.05451
- Canonical: https://arxiv.org/abs/2408.05451
Trouble viewing inline? Open PDF directly ā
Full Text
274,888 characters extracted from source content.
Expand or collapse full text
Mathematical Models of Computation in Superposition Kaarel HƤnni Jake Mendel Dmitry Vaintrob Lawrence Chan Abstract Superposition ā when a neural network represents more āfeaturesā than it has dimensions ā seems to pose a serious challenge to mechanistically interpreting current AI systems. Existing theory work studies representational superposition, where superposition is only used when passing information through bottlenecks. In this work, we present mathematical models of computation in superposition, where superposition is actively helpful for efficiently accomplishing the task. We first construct a task of efficiently emulating a circuit that takes the AND of the (m2)binomial2 m2( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) pairs of each of m features. We construct a 1-layer MLP that uses superposition to perform this task up to ε ε-error, where the network only requires O~ā¢(m23)~superscript23 O(m 23)over~ start_ARG O end_ARG ( mdivide start_ARG 2 end_ARG start_ARG 3 end_ARG ) neurons, even when the input features are themselves in superposition. We generalize this construction to arbitrary sparse boolean circuits of low depth, and then construct āerror correctionā layers that allow deep fully-connected networks of width d to emulate circuits of width O~ā¢(d1.5)~superscript1.5 O(d^1.5)over~ start_ARG O end_ARG ( d1.5 ) and any polynomial depth. We conclude by providing some potential applications of our work for interpreting neural networks that implement computation in superposition. Machine Learning, ICML, superposition, random projection, sparse boolean circuits 1 Introduction Mechanistic interpretability seeks to decipher the algorithms utilized by neural networks (Olah et al., 2017; Elhage et al., 2021; RƤuker et al., 2023; Olah et al., 2020; Meng et al., 2023; Geiger et al., 2021; Wang et al., 2022; Conmy et al., 2024). A significant obstacle is that neurons are polysemantic ā activating in response to various unrelated inputs (Fusi et al., 2016; Nguyen et al., 2016; Olah et al., 2017; Geva et al., 2021; Goh et al., 2021). As a proposed explanation for polysemanticity, Olah et al. (2020) introduce the āsuperposition hypothesisā (see also Arora et al. (2018); Elhage et al. (2022)): the idea that networks represent many more concepts in their activation spaces than they have neurons by sparsely encoding features as nearly orthogonal directions. Figure 1: The naive way to linearly represent the pairwise ANDs of m boolean variables using an MLP is to use one neuron to compute the AND of each pair of variables (left). This requires (m2)=Oā¢(m2)binomial2superscript2 m2=O(m^2)( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) = O ( m2 ) neurons. However, when inputs are sparse, there is a much more efficient implementation using superposition (right). Here, each neuron checks for whether or not at least two variables are active in a subset of random variables. Then, for any pair of variables, we can read off the AND of that pair by averaging together the activations of all neurons corresponding to the subsets containing both variables. With appropriately chosen subsets, we can ε ε-linearly represent all pairwise ANDs using only O~ā¢(m23)~superscript23 O(m 23)over~ start_ARG O end_ARG ( mdivide start_ARG 2 end_ARG start_ARG 3 end_ARG ) neurons, even when the inputs are themselves represented in superposition (Section 3). Previous work has studied how networks can store more features than they have neurons in a range of toy models (Elhage et al., 2022; Scherlis et al., 2022). However, previous models of superposition either involve almost no computation (Elhage et al., 2022) or rely on some part of the computation not happening in superposition (Scherlis et al., 2022). Insofar as neural networks are incentivized to learn as many circuits as possible (Olah et al., 2020), they are likely to compute circuits in the most compressed way possible. Therefore, understanding how networks can undergo more general computation in a fully superpositional way is valuable for understanding the algorithms they learn. In this paper, we lay the groundwork for understanding computation in superposition in general, by studying how neural networks can emulate sparse boolean circuits. ⢠In Section 2, we clarify existing definitions of linearly represented features, and propose our own definition which is more suited for reasoning about computation. ⢠In Section 3, we focus our study on the task of emulating the particular boolean circuit we call the Universal AND (U-AND) circuit. In this task, a neural network must take in a set of boolean features in superposition, and compute the pairwise logical ANDs of these features in a single layer with as few hidden neurons as possible. We present a construction which allows for many more new features to be computed than the number of hidden neurons, with outputs represented natively in superposition. We argue that real neural networks may well implement our construction in the wild by proving that randomly initialised networks are very likely to emulate U-AND. ⢠In Section 4 we demonstrate a second reason why this task is worth studying: it is possible to modify our construction to allow a wide range of large boolean circuits to be emulated entirely in superposition, provided that they satisfy a certain sparsity property. We conclude with a discussion of the limitations of our formal models, including the fact that our results are asymptotic and deal with only boolean features, and provide directions of future work that could address them. 2 Background and setup 2.1 Notation and conventions Asymptotic complexity and O~~ Oover~ start_ARG O end_ARG notation We make extensive use of standard BachmannāLandau (ābig Oā) asymptotic notation. We use O~~ Oover~ start_ARG O end_ARG to indicate that we are ignoring polylogarithmic factors: O~ā¢(gā¢(n)):=Oā¢(gā¢(n)ā¢logkā”n)⢠for some kāā¤.assign~superscript for some kāā¤. O(g(n)):=O(g(n) ^kn) for some $kā% Z$.over~ start_ARG O end_ARG ( g ( n ) ) := O ( g ( n ) logitalic_k n ) for some k ā blackboard_Z . (And so forth for Ī~,Ī©~~Ī~Ī© , over~ start_ARG Ī end_ARG , over~ start_ARG Ī© end_ARG, etc.) Fully connected neural networks We use ā³w:XāY:subscriptā³āM_w:Xā YMitalic_w : X ā Y to denote a neural network model parameterized by w that takes input xāXxā Xx ā X and outputs ā³wā¢(x)āYsubscriptā³M_w(x)ā YMitalic_w ( x ) ā Y. In this work, we study fully-connected networks consisting of L MLP layers with ReLU activations: aā(0)ā¢(x)superscriptā0 a^(0)(x)overā start_ARG a end_ARG( 0 ) ( x ) =xabsent =x= x aā(l)ā¢(x)superscriptā a^(l)(x)overā start_ARG a end_ARG( l ) ( x ) =MLP(l)ā¢(aā(lā1)ā¢(x))absentsuperscriptMLPsuperscriptā1 =MLP^(l)( a^(l-1)(x))= MLP( l ) ( overā start_ARG a end_ARG( l - 1 ) ( x ) ) =ReLUā¢(Win(l)ā¢aā(lā1)ā¢(x)+wbias(l))absentReLUsuperscriptsubscriptinsuperscriptā1superscriptsubscriptbias =ReLU(W_ in^(l) a^(l-1)(x)+w_% bias^(l))= ReLU ( Win( l ) overā start_ARG a end_ARG( l - 1 ) ( x ) + wbias( l ) ) ā³wā¢(x)subscriptā³ M_w(x)Mitalic_w ( x ) =Woutā¢aā(L),absentsubscriptoutsuperscriptā =W_ out a^(L),= Wout overā start_ARG a end_ARG( L ) , where ReLUā¢(x)=maxā”(0,x)ReLU0ReLU(x)= (0,x)ReLU ( x ) = max ( 0 , x ) with max taken elementwise. We assume that our MLPs have width d for all hidden layers, that is, aā(l)āādsuperscriptāsuperscriptā a^(l) ^doverā start_ARG a end_ARG( l ) ā blackboard_Rd for all lā1,ā¦,L1ā¦lā\1,...,L\l ā 1 , ⦠, L . For simplicityās sake we will be dropping l whenever we only talk about a single layer at a time. Figure 2: In Section 2.2, we distinguish between boolean features that are ε ε-linearly represented (left), ReLUReLUReLUReLU-linearly represented (center left), and those that are only linearly separable (i.e. weakly linearly represented) (center right). Red/blue indicates the presence or absence of the feature. In addition to being linearly separable, ε ε-linearly represented features must satisfy the further condition that the variance in the readoff direction rāksubscriptā r_koverā start_ARG r end_ARGk within the positive and negative clusters is small compared to the margin between the two. Features and feature vectors Following previous work in mechanistic interpretability (e.g. Tamkin et al. (2023); Rajamanoharan et al. (2024)), we suppose that the activations of a model can be thought of as representing m>dm>dm > d boolean features fk:Xā0,1:subscriptā01f_k Xā\0,1\fitalic_k : X ā 0 , 1 of the input in superposition. That is, aāā¢(x)=āi=1mĻākā¢fkā¢(x)āsuperscriptsubscript1subscriptāitalic-Ļsubscript a(x)= _i=1^m Ļ_kf_k(x)overā start_ARG a end_ARG ( x ) = āi = 1m overā start_ARG Ļ end_ARGk fitalic_k ( x ) for some set of feature vectors Ļā1,ā¦,Ļāmāādsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļsuperscriptā Ļ_1,..., Ļ_m ^doverā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGm ā blackboard_Rd and features f1,ā¦,fm:Xā0,1:subscript1ā¦subscriptā01f_1,...,f_m Xā\0,1\f1 , ⦠, fitalic_m : X ā 0 , 1 . Equivalently, aā(l)ā¢(x)=Φā¢superscriptāΦ a^(l)(x)= boverā start_ARG a end_ARG( l ) ( x ) = Φ italic_b where Φ=(Ļā1,ā¦,Ļām)Φsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļ =( Ļ_1,..., Ļ_m)Φ = ( overā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGm ) is the dĆmdĆ md Ć m feature encoding matrix with columns equal to the feature vectors and ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m is the boolean vector with entries ksubscript b_kitalic_bitalic_k = fkā¢(x)subscriptf_k(x)fitalic_k ( x ). In addition, as in previous work, we assume that these features are s-sparse, in that only at most sāŖd,mmuch-less-thans d,ms āŖ d , m features fisubscriptf_ifitalic_i can be nonzero for any input x (equivalently, ā1ā¤ssubscriptnorm1|| b||_1⤠s| | italic_b | |1 ⤠s.) For clarity, we preferentially use k,āā1,ā¦,mā1ā¦k, ā\1,...,m\k , ā ā 1 , ⦠, m to index features (in 0,1m)\0,1\^m) 0 , 1 m ) and i,jā1,ā¦,d1ā¦i,jā\1,...,d\i , j ā 1 , ⦠, d to index the standard neuron basis of activations (in ādsuperscriptāR^dblackboard_Rd). Sparse boolean circuits We construct tasks where a neural network needs to emulate a boolean circuit :0,1mā0,1mā²:āsuperscript01superscript01superscriptā²C \0,1\^mā\0,1\^m C : 0 , 1 m ā 0 , 1 m start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT. We assume that this circuit can be written as =LāāÆā1subscriptāÆsubscript1C=C_L Ā·s _1C = Citalic_L ā ⯠ā C1, where each intermediate ālayerā l:0,1mā0,1m:subscriptāsuperscript01superscript01C_l:\0,1\^mā\0,1\^mCitalic_l : 0 , 1 m ā 0 , 1 m is a collection of m parallel boolean gates (of fan-in up to 2), for l<Ll<Ll < L. We say that a circuit CC is s-sparse on boolean input ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m if the input (0)=superscript0 b^(0)= bitalic_b( 0 ) = italic_b and all intermediate activations (l)=iā¢((lā1))superscriptsubscriptsuperscript1 b^(l)=C_i( b^(l-1))italic_b( l ) = Citalic_i ( italic_b( l - 1 ) ) are s-sparse, i.e. they satisfy ā(i)ā1ā¤ssubscriptnormsuperscript1|| b^(i)||_1⤠s| | italic_b( i ) | |1 ⤠s. 2.2 Strong and weak linear representations Given the activations of a neural network at a particular layer a(l):Xāād:superscriptāsuperscriptāa^(l) X ^da( l ) : X ā blackboard_Rd, we can also ask what features are linearly represented by a(l)superscripta^(l)a( l ). In this section, we present three definitions for a feature being linearly represented by a(l)superscripta^(l)a( l ), which we illustrate in Figure 2. The standard definition of linear representation is based on whether or not the representations of positive and negative examples can be separated by a hyperplane: Definition 1 (Weak linear representations). We say that a binary feature fksubscriptf_kfitalic_k is weakly linearly represented by a:Xāād:āsuperscriptāa X ^da : X ā blackboard_Rd (or linearly separable in a) if there exists some rākāādsubscriptāsuperscriptā r_k ^doverā start_ARG r end_ARGk ā blackboard_Rd such that for all x1,x2āXsubscript1subscript2x_1,x_2ā Xx1 , x2 ā X where fkā¢(x1)=0subscriptsubscript10f_k(x_1)=0fitalic_k ( x1 ) = 0 and fkā¢(x2)=1subscriptsubscript21f_k(x_2)=1fitalic_k ( x2 ) = 1, we have: rākā aā¢(x1)<rākā aā¢(x2).ā subscriptāsubscript1ā subscriptāsubscript2 r_kĀ· a(x_1)< r_kĀ· a(x_2).overā start_ARG r end_ARGk ā a ( x1 ) < overā start_ARG r end_ARGk ā a ( x2 ) . Or, equivalently, the sets x|fkā¢(x)=0conditional-setsubscript0\x|f_k(x)=0\ x | fitalic_k ( x ) = 0 and x|fkā¢(x)=1conditional-setsubscript1\x|f_k(x)=1\ x | fitalic_k ( x ) = 1 are separated by a hyperplane normal to rāksubscriptā r_koverā start_ARG r end_ARGk. That being said, features being linearly separable does not mean a neural network can easily āmake useā of the features. For some weakly linearly represented features f1subscript1f_1f1 and f2subscript2f_2f2, neither f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 nor f2āØf2subscript2subscript2f_2 f_2f2 ⨠f2 need to be linearly represented, even if their read-off vectors rā1,rā2subscriptā1subscriptā2 r_1, r_2overā start_ARG r end_ARG1 , overā start_ARG r end_ARG2 are orthogonal (Figure 3). In fact, a stronger statement is true: it might not even be possible to linearly separate f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 or f2āØf2subscript2subscript2f_2 f_2f2 ⨠f2 in MLPāaMLPMLP aMLP ā a, that is, even after applying an MLP to the activations (see Theorem 9 in Appendix C). As a result, in this paper we make use of a more restrictive notion of a feature being linearly represented: Definition 2 (ε ε-linear representations). Let X be a set of inputs and a:Xāād:āsuperscriptāa X ^da : X ā blackboard_Rd be the activations of a neural network (in a particular position/layer in a given model). We say that f1,ā¦,fmsubscript1ā¦subscriptf_1,ā¦,f_mf1 , ⦠, fitalic_m are linearly represented with interference ε ε (or ε ε-linearly represented from these activation vectors) if there exists a read-off matrix āMatmĆdsubscriptMatR _mĆ dR ā Matitalic_m Ć d with rows rā1,ā¦,rāmāādsubscriptā1ā¦subscriptāsuperscriptā r_1,ā¦, r_m ^doverā start_ARG r end_ARG1 , ⦠, overā start_ARG r end_ARGm ā blackboard_Rd such that for all kā1,ā¦,m1ā¦kā\1,ā¦,m\k ā 1 , ⦠, m and all xāXxā Xx ā X, we have |rākā aāā¢(x)āfkā¢(x)|<ε.ā subscriptāsubscript | r_kĀ· a(x)-f_k(x)|< .| overā start_ARG r end_ARGk ā overā start_ARG a end_ARG ( x ) - fitalic_k ( x ) | < ε . We refer to rāksubscriptā r_koverā start_ARG r end_ARGk as a read-off vector for the feature fksubscriptf_kfitalic_k. It follows that if aāā¢(x)=āi=1mĻākā¢fkā¢(x)āsuperscriptsubscript1subscriptāitalic-Ļsubscript a(x)= _i=1^m Ļ_kf_k(x)overā start_ARG a end_ARG ( x ) = āi = 1m overā start_ARG Ļ end_ARGk fitalic_k ( x ), then we have: āā¢Ī¦āmāā<εsubscriptnormΦsubscript ||R -Id_m||_ā< | | R Φ - Iditalic_m | |ā < ε where msubscriptId_mIditalic_m is the mĆmĆ m Ć m identity matrix111 In some cases if the feature vectors satisfy |ΦTā¢Ī¦ām|ā¤Ī¼superscriptΦsubscript| ^T -Id_m|ā¤Ī¼| Φitalic_T Φ - Iditalic_m | ⤠μ ā that is, if the feature vectors are almost orthogonal with interference μ, then the features vectors can function as their own readoffs. . For brevityās sake, we very slightly abuse notation here to include the bias term in rāksubscriptā r_koverā start_ARG r end_ARGk. This is equivalent to assuming that one of aā aoverā start_ARG a end_ARGās outputs is a constant, that is, aiā¢(x)=csubscripta_i(x)=caitalic_i ( x ) = c for all x for some iā1,ā¦,d1ā¦iā\1,...,d\i ā 1 , ⦠, d and some cāāc ā blackboard_R. In contrast to features that are merely linearly separable, features that are ε ε-linearly represented are easy to linearly separate, as we show in Figure 3. We formalize and prove this in Theorem 10 in Appendix C. Figure 3: When two features f1,f2subscript1subscript2f_1,f_2f1 , f2 are ε ε-linearly represented in activations aā¢(x)a(x)a ( x ), we can use two MLP neurons with input weights rā1,rā2subscriptā1subscriptā2 r_1, r_2overā start_ARG r end_ARG1 , overā start_ARG r end_ARG2 to read-off the two features, after which f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 and f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 are ε ε-linearly represented in the MLP activations MLPā¢(aā¢(x))MLPMLP(a(x))MLP ( a ( x ) ). However, because linearly-separable features can have arbitrarily small margin, there might exist no MLP such that f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 and f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 are linearly separable in MLPā¢(aā¢(x))MLPMLP(a(x))MLP ( a ( x ) ). Comparison with Anthropicās Toy Model of Superposition Finally, Elhage et al. (2022) and Bricken et al. (2023) consider a definition of linearly represented feature that involves using a ReLU to remove negative interference: Definition 3 (ReLU-linear representations). A set of m binary features Fā=(f1,ā¦,fm)āsubscript1ā¦subscript F=(f_1,...,f_m)overā start_ARG F end_ARG = ( f1 , ⦠, fitalic_m ) is ReLU-linearly represented in a:Xāād:āsuperscriptāa X ^da : X ā blackboard_Rd with error ε ε if there exists a read-off matrix āMatmĆdsubscriptMatR _mĆ dR ā Matitalic_m Ć d such that xāXā¢āFāā¢(x)āReLUā¢(ā¢aā¢(x))ā2subscriptsubscriptnormāReLU2 _xā X|| F(x)-ReLU (Ra(x)% )||_2blackboard_Ex ā X | | overā start_ARG F end_ARG ( x ) - ReLU ( R a ( x ) ) | |2 <ε.absent < .< ε . Note that in contrast to ε ε-linearly represented features, where each individual feature must be able to be read off using an affine function with small error on every datapoint, ReLU-linear representated features are read off using a MLP layer with m neurons (one per feature), such that the expected ā2subscriptā2 _2ā2 loss (summed across all m features) is small. 3 Universal ANDs: a model of single-layer MLP superposition We start by presenting one of the simplest non-trivial boolean circuits: namely, the one-layer circuit that computes the pairwise AND of the input features. Note that due to space limitations, we include only proof sketches in the main body and may ignore some regularity conditions in the theorem statement. See Appendix D for more rigorous theorem statements and proofs. Definition 4 (The universal AND boolean circuit). Let ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m be a boolean vector. The universal AND (or U-AND) circuit has m inputs and (m2)binomial2 m2( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) outputs indexed by unordered pairs k,āk, , ā of locations and is defined by UANDā¢()k,ā:=kā§ā.assignsubscriptUANDsubscriptāsubscriptsubscriptāC_UAND( b)_k, := b_k % b_ .Croman_UAND ( italic_b )k , ā := italic_bitalic_k ā§ italic_broman_ā . In other words, we apply the AND gate to all possible pairs of distinct inputs to produce (m2)binomial2 m2( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) outputs. We will build our theory of computation starting from a single-layer neural net that emulates the universal AND when the input bitalic_b is s-sparse for some sāās ā blackboard_N (this implies that the output has sparsity Oā¢(s2)superscript2O(s^2)O ( s2 )). 3.1 Superposition in MLP activations enables more efficient U-AND First, consider the naive implementation, where we use one ReLU to implement each AND using the fact that for boolean x1,x2subscript1subscript2x_1,x_2x1 , x2: ReLUā¢(x1+x2ā1)=x1ā§x2.ReLUsubscript1subscript21subscript1subscript2 (x_1+x_2-1)=x_1 x_2.ReLU ( x1 + x2 - 1 ) = x1 ā§ x2 . This requires (n2)=Oā¢(n2)binomial2superscript2 n2=O(n^2)( FRACOP start_ARG n end_ARG start_ARG 2 end_ARG ) = O ( n2 ) neurons, each of which is monosemantic in that it represents a single natural feature. In contrast, by using sparsity, we can construct using exponentially fewer neurons (Figure 1): Theorem 1 (U-AND with basis-aligned inputs). Fix a sparsity parameter sāā.ās .s ā blackboard_N . Then for large input length m, there exists a single-layer neural network ā³wā¢(x)=MLPā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³MLPReLUsubscriptinsubscriptbiasM_w(x)=MLP(x)=ReLU(W_ inx+w_% bias)Mitalic_w ( x ) = MLP ( x ) = ReLU ( Win x + wbias ) that ε ε-linearly represents the universal AND circuit UANDsubscriptUANDC_UANDCroman_UAND on s-sparse inputs, with width d=O~mā¢(1/ε2)subscript~1superscript2d= O_m(1/ ^2)d = over~ start_ARG O end_ARGm ( 1 / ε2 ) (i.e. polylogarithmic in m). Proof. (sketch) To show this, we construct an MLP such that each neuron checks whether or not at least two inputs in a small random subset of the boolean input bitalic_b are active (see also Figure 1). Intuitively, since the inputs are sparse, each neuron can be thought of as checking the ANDs of any pair of input variables k1,k2subscriptsubscript1subscriptsubscript2 b_k_1, b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT in the subset, with interference terms corresponding to all the other variables. That is, we can write the preactivation of each neuron as the sum of the AND of k1,k2subscriptsubscript1subscriptsubscript2 b_k_1, b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT and some interference terms: ā1+k1+k2ā¢āk1ā§k2+ākā²ā k1,k2kā²āinterference termssubscriptā1subscriptsubscript1subscriptsubscript2subscriptsubscript1subscriptsubscript2subscriptāsubscriptsuperscriptā²subscript1subscript2subscriptsuperscriptā²interference terms -1+ b_k_1+ b_k_2% width=0.0pt,height=0.0pt,depth=12.52913pt_ b_k_1% b_k_2+ _k =k_1,k_2% b_k _ interference termsunderā start_ARG - 1 + italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_ARGitalic_b start_POSTSUBSCRIPT k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ā§ italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT + underā start_ARG ākā² ā k start_POSTSUBSCRIPT 1 , k2 end_POSTSUBSCRIPT italic_bitalic_kā² end_ARGinterference terms We then use the sparsity of inputs to bound the size of the interference terms, and show that we can āread-offā the AND of k1,k2subscriptsubscript1subscriptsubscript2 b_k_1, b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT by averaging together the value of post-ReLU activations of the neurons connected to k1,k2subscriptsubscript1subscriptsubscript2 b_k_1, b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT. We then argue that this averaging reduces the size of the interference terms to below ε ε. Specifically, we construct input weights WināMatdĆmsubscriptinsubscriptMatW_ in _dĆ mWin ā Matitalic_d Ć m such that the input to each neuron is connected to the kkkth entry of the input ksubscript b_kitalic_bitalic_k with weight 1 with probability p=log2ā”m/dsuperscript2p= ^2m/ dp = log2 m / square-root start_ARG d end_ARG, and weight 0 otherwise. We set the bias of each neuron to ā11-1- 1. Let Īā¢(k)Ī (k)Ī ( k ) be indices of neurons that have input weight 1111 for ksubscript b_kitalic_bitalic_k, and Īā¢(k1,k2)Īsubscript1subscript2 (k_1,k_2)Ī ( k1 , k2 ) be the indices of neurons that have input weight 1111 for k1,k2subscriptsubscript1subscriptsubscript2 b_k_1, b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, Īā¢(k1,k2,k3)Īsubscript1subscript2subscript3 (k_1,k_2,k_3)Ī ( k1 , k2 , k3 ) be the indices of neurons reading from all of k1,k2,k3subscriptsubscript1subscriptsubscript2subscriptsubscript3 b_k_1, b_k_2, b_k_3italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , italic_bitalic_k start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT, and so forth. By construction, Īā¢(k1)Īsubscript1 (k_1)Ī ( k1 ) has expected size Īā¢(log2ā”mā d)Īsuperscript2ā ( ^2mĀ· d)Ī ( log2 m ā square-root start_ARG d end_ARG ), Īā¢(k1,k2)Īsubscript1subscript2 (k_1,k_2)Ī ( k1 , k2 ) has expected size Īā¢(log4ā”m)Īsuperscript4 ( ^4m)Ī ( log4 m ), and Īā¢(k1,k2,k3)Īsubscript1subscript2subscript3 (k_1,k_2,k_3)Ī ( k1 , k2 , k3 ) has expected size Īā¢(log6ā”m/d)Īsuperscript6 ( ^6m/ d)Ī ( log6 m / square-root start_ARG d end_ARG ). In general, the set of indices for n such inputs has expected size Īā¢(log2ā¢n/d(n/2ā1))Īsuperscript2superscript21 ( ^2n/d^(n/2-1))Ī ( log2 n / d( n / 2 - 1 ) ) Our read-off vector rā roverā start_ARG r end_ARG for the AND k1ā§k2subscriptsubscript1subscriptsubscript2 b_k_1 b_k_2italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ā§ italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT will have entries: rā(i)=1|Īā¢(k1,k2)|iā|Īā¢(k1,k2)|0otherwisesubscriptācases1Īsubscript1subscript2Īsubscript1subscript20otherwise r_(i)= cases 1| (k_1,k_2)|&iā|% (k_1,k_2)|\\ 0& otherwise casesoverā start_ARG r end_ARG( i ) = start_ROW start_CELL divide start_ARG 1 end_ARG start_ARG | Ī ( k1 , k2 ) | end_ARG end_CELL start_CELL i ā | Ī ( k1 , k2 ) | end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL otherwise end_CELL end_ROW We then check that rāā MLPā¢()ā āMLP rĀ·MLP( b)overā start_ARG r end_ARG ā MLP ( italic_b ) gives the correct output in each of three cases. Note that for any input, rāā MLPā¢()ā„k1ā§k2ā āMLPsubscriptsubscript1subscriptsubscript2 rĀ·MLP( b)ā„ b_k_1 % b_k_2overā start_ARG r end_ARG ā MLP ( italic_b ) ā„ italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ā§ italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, so it suffices to upper bound the average number of non-k1,k2subscript1subscript2k_1,k_2k1 , k2 inputs that are non-zero, divided by the total number of neurons in Īā¢(k1,k2)Īsubscript1subscript2 (k_1,k_2)Ī ( k1 , k2 ). ⢠When k1=k2=0subscriptsubscript1subscriptsubscript20 b_k_1= b_k_2=0italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 0, the interference terms in each read-off neuron have value at most s, and there are at most ākā²=kā²=1|Īā¢(k1,k2,kā²,kā²)|subscriptsubscriptsuperscriptā²subscriptsuperscriptā²1Īsubscript1subscript2superscriptā² _ b_k = b_k % =1| (k_1,k_2,k ,k )|āitalic_b start_POSTSUBSCRIPT kā² = italic_bitalic_kā² ā² = 1 end_POSTSUBSCRIPT | Ī ( k1 , k2 , kā² , kā² ā² ) | =Īā¢(s2ā log8ā”m/d)absentĪā superscript2superscript8 = (s^2Ā· ^8m/d)= Ī ( s2 ā log8 m / d ) such neurons outputting non-zero values. So the error is bounded above by sā ākā²ā k1,k2|Īā¢(k1,k2,kā²,kā²)||Īā¢(k1,k2)|ā subscriptsuperscriptā²subscript1subscript2Īsubscript1subscript2superscriptā²Īsubscript1subscript2 sĀ· _k =k_1,k_2| (k_1,k_2,% k ,k )|| (k_1,k_2)|divide start_ARG s ā ākā² ā k start_POSTSUBSCRIPT 1 , k2 end_POSTSUBSCRIPT | Ī ( k1 , k2 , kā² , kā² ā² ) | end_ARG start_ARG | Ī ( k1 , k2 ) | end_ARG =Īā¢(s3ā log4ā”m/d).absentĪā superscript3superscript4 = (s^3Ā· ^4m/d).= Ī ( s3 ā log4 m / d ) . ⢠When k1=1subscriptsubscript11 b_k_1=1italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = 1 or k2=1subscriptsubscript21 b_k_2=1italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 1, the interference terms in each read-off neuron have value at most sā22s-2s - 2, and there are at most ākā²=1|Īā¢(k1,k2,kā²)|subscriptsubscriptsuperscriptā²1Īsubscript1subscript2superscriptā² _ b_k =1| (k_1,k_2,k % )|āitalic_b start_POSTSUBSCRIPT kā² = 1 end_POSTSUBSCRIPT | Ī ( k1 , k2 , kā² ) | =Īā¢(sā log6ā”m/d)absentĪā superscript6 = (sĀ· ^6m/ d)= Ī ( s ā log6 m / square-root start_ARG d end_ARG ) neurons that have such interference terms. So the error is bounded above by sā2|Īā¢(k1,k2)|ā¢ākā²ā k1,k2|Īā¢(k1,k2,kā²)|2Īsubscript1subscript2subscriptsuperscriptā²subscript1subscript2Īsubscript1subscript2superscriptā² s-2| (k_1,k_2)| _k =k_1,k_2% | (k_1,k_2,k )|divide start_ARG s - 2 end_ARG start_ARG | Ī ( k1 , k2 ) | end_ARG ākā² ā k start_POSTSUBSCRIPT 1 , k2 end_POSTSUBSCRIPT | Ī ( k1 , k2 , kā² ) | =Ī(s2ā = (s^2Ā·= Ī ( s2 ā log2m/d) ^2m/ d)log2 m / square-root start_ARG d end_ARG ) Combining the above, we get that the read-off error is Oā¢(log4ā”m/d)superscript4O( ^4m/ d)O ( log4 m / square-root start_ARG d end_ARG ), and so setting d=Īā¢(log8ā”m/ε2)=O~mā¢(1/ε2)Īsuperscript8superscript2subscript~1superscript2d= ( ^8m/ ^2)= O_m(1/ ^2)d = Ī ( log8 m / ε2 ) = over~ start_ARG O end_ARGm ( 1 / ε2 ) gives us an error that is <εabsent< < ε outside negligible probability. ā 3.2 Neural networks can implement efficient U-AND even with inputs in superposition Note that in Theorem 1, we assume that the network gets m basis-aligned inputs (that is, not in superposition). However, it turns out that we can extend the result in Theorem 1 to inputs in superposition. Theorem 2 (U-AND with inputs in superposition). Let sāās ā blackboard_N be a fixed sparsity limit and ε<11 <1ε < 1 a fixed interference parameter. There exists a feature encoding Φ Φ and single-layer neural net ā³wā¢(x)=MLPā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³MLPReLUsubscriptinsubscriptbiasM_w(x)=MLP(x)=ReLU(W_ inx+w_% bias)Mitalic_w ( x ) = MLP ( x ) = ReLU ( Win x + wbias ) with input size and width d=O~ā¢(m/ε2)~superscript2d= O( m/ ^2)d = over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG / ε2 ), where ā³wāΦsubscriptā³Ī¦M_w _w ā Φ ε ε-linearly represents UANDsubscriptUANDC_UANDCroman_UAND on all s-sparse inputs bitalic_b. Proof. (sketch) By picking almost orthogonal unit-norm vectors Φ=(Ļā1,ā¦,Ļām)Φsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļ =( Ļ_1,ā¦, Ļ_m)Φ = ( overā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGm ), we can recover each feature up to error ε ε using readoffs =ΦTsuperscriptΦR= ^TR = Φitalic_T. Take the input weight WināMatdĆmsubscriptinsubscriptMatW_ in _dĆ mWin ā Matitalic_d Ć m for the MLP constructed in the proof of Theorem 1. Using Winā²=Winā¢superscriptsubscriptinā²subscriptinW_ in =W_ inRWinā² = Win R and wbiasā²=wbiassuperscriptsubscriptbiasā²subscriptbiasw_ bias =w_ biaswbiasā² = wbias suffices, as this gives us ā³wāΦā¢()subscriptā³Ī¦ M_w ( b)Mitalic_w ā Φ ( italic_b ) =ReLUā¢(Winā¢Ī¦ā¢+wbias)absentReLUsubscriptinΦsubscriptbias =ReLU(W_ inR b+w_% bias)= ReLU ( Win R Φ italic_b + wbias ) āReLUā¢(Winā¢+wbias),absentReLUsubscriptinsubscriptbias (W_ in b+w_ % bias),ā ReLU ( Win italic_b + wbias ) , which is just the model from Theorem 1, which ε ε-linearly represents UANDsubscriptUANDC_UANDCroman_UAND as desired. Carefully tracking error terms shows that we need d=Ī~ā¢(m)~Īd= ( m)d = over~ start_ARG Ī end_ARG ( square-root start_ARG m end_ARG ) neurons. ā 3.3 Randomly initialized neural networks linearly represent U-AND While the results in previous section show that there exist some network weights that ε ε-linearly represents the U-AND circuit UANDsubscriptUANDC_UANDCroman_UAND, there still is a question of whether neural networks can learn to represent many ANDs starting from the standard initialization. In this section, we provide some theoretical evidence ā namely, that sufficiently wide randomly initialized one-layer MLPs ε ε-linearly represent UANDsubscriptUANDC_UANDCroman_UAND. Theorem 3 (Randomly initialized MLPs linearly represent U-AND). Let MLP:āmāād:MLPāsuperscriptāsuperscriptāMLP:R^m ^dMLP : blackboard_Rm ā blackboard_Rd be a one-layer MLP with d=Ī©~ā¢(1/ε2)~Ī©1superscript2d= (1/ ^2)d = over~ start_ARG Ī© end_ARG ( 1 / ε2 ) neurons that takes input bitalic_b, and where WinsubscriptinW_ inWin is drawn i.i.d from a normal distribution ā¢(0,Ī“2)0superscript2N(0,Ī“^2)N ( 0 , Ī“2 ) and wbias=0āsubscriptbiasā0w_ bias= 0wbias = overā start_ARG 0 end_ARG. Then this MLP ε ε-linearly represents UANDsubscriptUANDC_UANDCroman_UAND on s-sparse inputs outside of negligible probability. Proof. (Sketch) We prove this by constructing a read-off vector rā roverā start_ARG r end_ARG for each pair of features k1,k2subscript1subscript2k_1,k_2k1 , k2. Let Ļ be the sign function Ļā¢(x)=+1x>00x=0ā1x<0cases100010 Ļ(x)= cases+1&x>0\\ ~~0&x=0\\ -1&x<0 casesĻ ( x ) = start_ROW start_CELL + 1 end_CELL start_CELL x > 0 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL x = 0 end_CELL end_ROW start_ROW start_CELL - 1 end_CELL start_CELL x < 0 end_CELL end_ROW and let wi,ksubscriptw_i,kwitalic_i , k be the contribution to the preactivation of neuron i from ksubscript b_kitalic_bitalic_k. We construct rā roverā start_ARG r end_ARG coordinatewise (that is, neuron-by-neuron). In particular, we set the iiith coordinate of rā roverā start_ARG r end_ARG to be rāi=Ī·iā¢(Ļ(wi,k1)=Ļ(wi,k2)āĻā¢(wi,k1)ā Ļā¢(wi,k2)). r_i= _i (1_Ļ(w_i,k_1)=Ļ(% w_i,k_2)-1_Ļ(w_i,k_1) =Ļ(w_i,k_2) ).overā start_ARG r end_ARGi = Ī·italic_i ( 1italic_Ļ ( w start_POSTSUBSCRIPT i , k start_POSTSUBSCRIPT 1 ) end_POSTSUBSCRIPT = Ļ ( witalic_i , k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) end_POSTSUBSCRIPT - 1italic_Ļ ( w start_POSTSUBSCRIPT i , k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) ā Ļ ( witalic_i , k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) end_POSTSUBSCRIPT ) . That is, if k1subscript1k_1k1 and k2subscript2k_2k2 contribute to the neuron preactivations with the same sign, then rāi=Ī·isubscriptāsubscript r_i= _ioverā start_ARG r end_ARGi = Ī·italic_i, else, rāi=āĪ·isubscriptāsubscript r_i=- _ioverā start_ARG r end_ARGi = - Ī·italic_i. Here, Ī·isubscript _iĪ·italic_i is a scaling parameter of size Īā¢(s/d)Ī ( s/d)Ī ( square-root start_ARG s end_ARG / d ) used to scale the read-off to be 1111 when k1=k2=1subscriptsubscript1subscriptsubscript21 b_k_1= b_k_2=1italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 1 When k1=0subscriptsubscript10 b_k_1=0italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = 0 or k2=0subscriptsubscript20 b_k_2=0italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 0, the expected value of rāā ā³wā¢()ā āsubscriptā³ rĀ·M_w( b)overā start_ARG r end_ARG ā Mitalic_w ( italic_b ) is zero, while the error terms have size O~mā¢(1/d)subscript~1 O_m(1/ d)over~ start_ARG O end_ARGm ( 1 / square-root start_ARG d end_ARG ). So setting d=Ī©~ā¢(1/ε2)~Ī©1superscript2d= (1/ ^2)d = over~ start_ARG Ī© end_ARG ( 1 / ε2 ) suffices to get error below ε ε with high probability. When k1=k2=1subscriptsubscript1subscriptsubscript21 b_k_1= b_k_2=1italic_bitalic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_bitalic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 1, the contribution from each neuron i to rāā ā³wā¢()ā āsubscriptā³ rĀ·M_w( b)overā start_ARG r end_ARG ā Mitalic_w ( italic_b ) with Ļ(wi,k1)=Ļ(wi,k2)Ļ(w_i,k_1)=Ļ(w_i,k_2)Ļ ( witalic_i , k start_POSTSUBSCRIPT 1 ) end_POSTSUBSCRIPT = Ļ ( witalic_i , k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) will be in expectation larger than those with Ļ(wi,k1)ā Ļ(wi,k2)Ļ(w_i,k_1) =Ļ(w_i,k_2)Ļ ( witalic_i , k start_POSTSUBSCRIPT 1 ) end_POSTSUBSCRIPT ā Ļ ( witalic_i , k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) (as the standard deviation of the sum of two weights with equal signs is larger than the sum of two weights with different signs, and we apply a ReLU). By setting Ī· to be the reciprocal of the difference in expected contributions, we have that this value has expectation 1. Again, as the error terms have size O~mā¢(1/d)subscript~1 O_m(1/ d)over~ start_ARG O end_ARGm ( 1 / square-root start_ARG d end_ARG ), it follows that setting d=Ī©~ā¢(1/ε2)~Ī©1superscript2d= (1/ ^2)d = over~ start_ARG Ī© end_ARG ( 1 / ε2 ) suffices to get error below ε ε with high probability, as desired. ā Before proceeding, we record a corollary, which underscores the surprisingly strong asymptotic representability of the universal AND circuit. Corollary 4. For any fixed input size s,s,s , dimension d and m=dOā¢(1)superscript1m=d^O(1)m = ditalic_O ( 1 ) polynomial in d, there exists a āuniversal ANDā model with hidden dimension d,d,d , ā³w:xā¦ReLUā¢(Winā¢(x)):subscriptā³maps-toReLUsubscriptinM_w:x (W_ in(x))Mitalic_w : x ⦠ReLU ( Win ( x ) ) from ādsuperscriptāR^dblackboard_Rd to ādsuperscriptāR^dblackboard_Rd and a feature matrix ΦāMatmĆdΦsubscriptMat _mĆ dΦ ā Matitalic_m Ć d such that for any input bitalic_b with sparsity ā1=s,subscriptnorm1|| b||_1=s,| | italic_b | |1 = s , we have that ā³wā¢(Φā¢())āādsubscriptā³Ī¦superscriptāM_w( ( b)) ^dMitalic_w ( Φ ( italic_b ) ) ā blackboard_Rd strongly linearly represents uANDā¢()ā0,1(m2)uANDsuperscript01binomial2uAND( b)ā\0,1\ m2uAND ( italic_b ) ā 0 , 1 ( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) (with error at worst ε=O~ā¢(1d)~1 = O ( 1 d )ε = over~ start_ARG O end_ARG ( divide start_ARG 1 end_ARG start_ARG square-root start_ARG d end_ARG end_ARG )). 4 MLPs as representing sparse boolean circuits In the previous section we showed variants of computation in superposition at a single layer, for one of the simplest non-trivial boolean circuits. In this section, we extend these results to show that neural networks can efficiently represent arbitrary sparse boolean circuits. As in Section 3, we include only proof sketches in the main body due to space limitations, and may also ignore some regularity conditions in our theorem statements. See Appendix D for more rigorous theorem statements and proofs. 4.1 Boolean circuits in single layer MLPs We start by extending these results from Section 3 to ANDs of more than two variables. Let UAND(n)superscriptsubscriptUANDC_UAND^(n)Croman_UAND( n ) be the boolean circuit of depth L=logā”(n)L= (n)L = log ( n ) that computes the ANDs of each n-tuple of elements in bitalic_b.222Note that by our definition, boolean circuits are made of gates of fan-in at most 2. So computing the ANDs of n variables requires a boolean circuit of depth logā”(n) (n)log ( n ). Lemma 5 (āHigh fan-inā U-AND). For each nāān ā blackboard_N, there exists a one-layer neural network ā³w=MLP:āmāād:subscriptā³MLPāsuperscriptāsuperscriptāM_w=MLP:R^m ^dMitalic_w = MLP : blackboard_Rm ā blackboard_Rd with width d=O~ā¢(n/ε2)~superscript2d= O(n/ ^2)d = over~ start_ARG O end_ARG ( n / ε2 ) such that ā³wā¢()subscriptā³M_w( b)Mitalic_w ( italic_b ) ε ε-linearly represents UAND(n)superscriptsubscriptUANDC_UAND^(n)Croman_UAND( n ) on s-sparse inputs. Proof. (sketch) We can extend the construction in the proof of Theorem 1 to allow for ANDs of exactly n variables, by considering index sets ā¢(k1,k2,ā¦,kn)subscript1subscript2ā¦subscriptI(k_1,k_2,...,k_n)I ( k1 , k2 , ⦠, kitalic_n ) of n variables, and changing the bias of each neuron from ā11-1- 1 to ān+11-n+1- n + 1. The expected size of an index set of n variables is ā¢[|ā¢(k1,k2,ā¦,kn)|]=pnā¢ddelimited-[]subscript1subscript2ā¦subscriptsuperscriptE[|I(k_1,k_2,...,k_n)|]=p^ndblackboard_E [ | I ( k1 , k2 , ⦠, kitalic_n ) | ] = pitalic_n d, and we require this expected value to be Ī©ā¢(log4ā”m)Ī©superscript4 ( ^4m)Ī© ( log4 m ) to ensure that the index set is non-empty outside negligible probability (using the normal Chernoff and Union bounds). Therefore, we have to scale up the probability that any given value in WinsubscriptinW_ inWin is 1111: p=log2ā”md1/nsuperscript2superscript1p= ^2md^1/np = divide start_ARG log2 m end_ARG start_ARG d1 / n end_ARG suffices. A similar argument to the one found in the proof of Theorem 1 shows that all the interference terms are oā¢(1)1o(1)o ( 1 ). ā As illustrated in Figure 4, Lemma 5 allows us to construct MLPs that ε ε-linearly represents arbitrary small circuits: Figure 4: As discussed in Section 4.1, our U-AND construction can be extended to allow for arbitrarily high fan-in ANDs, which in turn allows for single-layer MLPs that linearly represent all small boolean circuits. Theorem 6. For any s-sparse circuit CC of width m and depth L, there exists a feature encoding ΦāMatdĆmΦsubscriptMat _dĆ mΦ ā Matitalic_d Ć m and a single-layer neural network ā³wā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³ReLUsubscriptinsubscriptbiasM_w(x)=ReLU(W_ inx+w_ bias)Mitalic_w ( x ) = ReLU ( Win x + wbias ) of width d=O~ā¢(m)~d= O( m)d = over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG ) such that ā³wā¢(Φā¢)subscriptā³Ī¦M_w( b)Mitalic_w ( Φ italic_b ) ε ε-linearly represents ā¢()ksubscriptC( b)_kC ( italic_b )k for all kā1,ā¦,m1ā¦kā\1,...,m\k ā 1 , ⦠, m for some ε=O~ā¢(mā1/3)~superscript13 = O(m^-1/3)ε = over~ start_ARG O end_ARG ( m- 1 / 3 ). Proof. (sketch) First, apply the construction in Theorem 2 to show that there exists one-layer MLPs of width d=O~ā¢(m)~d= O( m)d = over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG ) that compute UAND(n)superscriptsubscriptUANDC_UAND^(n)Croman_UAND( n ) when the inputs are in superposition, where nā2,3,ā¦,2L23ā¦superscript2nā\2,3,...,2^L\n ā 2 , 3 , ⦠, 2L . Next, concatenate together the 2Lā1superscript212^L-12L - 1 networks of width d=O~ā¢(m)~d= O( m)d = over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG ) that ε ε-linearly represent each UAND(n)superscriptsubscriptUANDC_UAND^(n)Croman_UAND( n ) for nā2,3,ā¦,2L23ā¦superscript2nā\2,3,...,2^L\n ā 2 , 3 , ⦠, 2L , when the inputs are in superposition. Since the output of any boolean circuits of depth L can be written as a linear combinations of ANDs of maximum fan-in 2Lsuperscript22^L2L, it follows that the concatenated network εā²-linearly represents any boolean circuit of depth L, for some εⲠdependent on how many ANDs need to be added together to compute the circuit, as desired. ā 4.2 Efficient boolean circuits via deep MLPs The one-layer MLP in Theorem 6 has width that is exponential in the depth of the circuit. However, by combining pairwise U-AND layers (which linearly represent any one-layer boolean circuit) with āerror correctionā layers, we can construct deeper neural networks with sublinear width and depth linear in the depth of the circuit. Lemma 7. Assume that m=O~ā¢(d1.5),~superscript1.5m= O(d^1.5),m = over~ start_ARG O end_ARG ( d1.5 ) , and c is some large polylog constant. Then for sufficiently small input interference ε=O~ā¢(1/d)~1 = O(1/ d)ε = over~ start_ARG O end_ARG ( 1 / square-root start_ARG d end_ARG ) there exists a 1-layer MLP ā³w:ādāād:subscriptā³āsuperscriptāsuperscriptāM_w:R^d ^dMitalic_w : blackboard_Rd ā blackboard_Rd that takes as input a boolean vector of length m encoded in d-dimensions using superposition and returns (outside negligible probability) an encoding of the same boolean vector with interference ε/c /cε / c. Proof. See Theorem 21 in Appendix D.4. ā By alternating between such āerror correctionā layers and U-AND layers, we can construct more efficient circuits: Theorem 8. Let :0,1mā0,1m:āsuperscript01superscript01C:\0,1\^mā\0,1\^mC : 0 , 1 m ā 0 , 1 m be a circuit of width m and of depth L=Oā¢(mc)superscriptL=O(m^c)L = O ( mitalic_c ) polynomial in m. There exists a neural network of width d=O~ā¢(m23ā¢s2)~superscript23superscript2d= O(m 23s^2)d = over~ start_ARG O end_ARG ( mdivide start_ARG 2 end_ARG start_ARG 3 end_ARG s2 ) and with depth 2ā¢L22L2 L such that ā³wā¢(Φā¢)subscriptā³Ī¦M_w( b)Mitalic_w ( Φ italic_b ) ε ε-linearly ā¢()C( b)C ( italic_b ) for all but a negligible fraction of inputs bitalic_b on which CC is s-sparse. Proof. (sketch) As a single MLP layer can ε ε-linearly represent the ANDs of all input features (by Theorem 2), we can use one MLP layer to approximate each layer of the circuit. However, the naive construction suffers from (potentially) exponentially growing error. To fix this, we insert an error correction layer from Lemma 7 between every such layer. ā 5 Related Work The idea that neural networks could or should make use of distributed or compositional representations has been a mainstay of early neural network research (Rosenblatt, 1961; Holyoak, 1987; Fodor & Pylyshyn, 1988). Arora et al. (2018) were the first in the modern deep learning context to discuss that neural networks could store many features in superposition. Olah et al. (2020) developed this idea into the āsuperposition hypothesisā: the conjecture that networks use the same neurons for multiple circuits to maximise the number of circuits they can learn. Many of our results are similar in flavor to those from the fields of sparse dictionary (Tillmann, 2014) and hyperdimensional computing (Zou et al., 2021), as all rely on useful properties of high-dimensional spaces. In addition, many of our boolean circuit results on randomly-initialized MLP layers are similar in flavor to universality results on randomly initialized neural networks with different non-linearities (Rahimi & Recht, 2008a, b). However, these results consider cases where there are fewer ātrue featuresā than there are dimensions, while the superposition hypothesis requires that the number of ātrue featuresā exceeds the dimensionality of the space. Randomized numerical linear algebra (Murray et al., 2023) studies the use of random projections to perform efficient computation, but in the context of reducing the cost of linear algebra operations such as linear regression or SVD with inputs and outputs represented in an axis-aligned fashion. Superposition has been studied in a range of idealised settings: Elhage et al. (2022) provided the first examples of toy models which employed superposition to achieve low loss and Henighan et al. (2023) further explored superposition in a toy memorisation task. Notably, they study features that are ReLU-linear represented. (See Section 2.2 for more discussion.) Scherlis et al. (2022) study a model of using a small number of neurons with quadratic activations to approximately compute degree two polynomials. The models studied in all of these papers require sparse features of declining importance. In contrast, our model allows for sparse features that are equally important. More importantly, none of these listed works study performing computation with inputs in superposition. Several papers have also explored the prevalence of superposition in language models. Gurnee et al. (2023) found that some bigrams are represented on sparse sets of neurons but not on any individual neurons. There is also a growing literature on using sparse dictionary learning to identify features in language models inspired by the superposition hypothesis (Cunningham et al., 2023; Bricken et al., 2023; Tamkin et al., 2023; Bloom, 2024; Braun et al., 2024; Templeton et al., 2024) although it is unclear how much evidence the success of sparse dictionary learning in finding human-interpretable features provides for the superposition hypothesis. 6 Discussion 6.1 Summary In this work, we have presented a mathematical framework for understanding how neural networks can perform computation in superposition, where the number of features computed can greatly exceed the number of neurons. We have demonstrated this capability through the construction of a neural network that efficiently emulates the Universal AND circuit, computing all pairwise logical ANDs of input features using far fewer neurons than the number of output features. Furthermore, we have shown how this construction can be generalized to emulate a wide range of sparse, low-depth boolean circuits entirely in superposition. This work lays the foundation for a deeper understanding of how neural networks can efficiently represent and manipulate information, and highlights the importance of considering computation in superposition when interpreting the algorithms learned by these systems. 6.2 Practical Takeaways for Mechanistic Interpretability Our primary motivation for undertaking this work was to glean insights about the computation implemented by neural networks. While we provide more potential takeaways in Appendix B, here we discuss what we think are two salient takeaways for interpretability: Unused features The implementation of U-AND by random matrices (Theorem 3) suggests that certain concepts may be detectable through linear probes in a networkās activation space without being actively utilized in subsequent computations. This phenomenon could explain the findings of Marks (2024), who observed that arbitrary XORs of concepts can be successfully probed in language models. Furthermore, it implies that successfully probing for a concept and identifying a direction that explains a high percentage of variance (e.g., 80%) may not constitute strong evidence of the modelās actual use of that concept. Consequently, there is reason to be cautious about how many of the features identified by Sparse Autoencoders (Cunningham et al., 2023; Bricken et al., 2023; Bloom, 2024; Templeton et al., 2024) are actively employed by the model in its computation. Robustness to noise This research underscores the critical role of error correction in networks performing computations in superposition. Effective error correction mechanisms should enable networks to rectify minor perturbations in their activation states, resulting in a nonlinear response in output when activation vectors are slightly altered along specific directions. Expanding on this concept, Heimersheim & Mendel (2023) conducted follow-up investigations, revealing the presence of plateaus surrounding activation vectors in GPT2-small (Radford et al., 2019). Within these plateaus, model outputs exhibit minimal variation despite small changes in activation values, providing weak evidence for an error correcting mechanism in the modelās computation. 6.3 Limitations and future work That being said, there are a number of ways in which the computational framework presented in this work is very likely to miss the full richness of computation happening in any given real neural network. Firstly, this work studies computation on binary features. It is plausible that other kinds of features ā in particular, discrete features which take on more than 2222 distinct values, or continuous-valued features ā occur commonly in real neural networks. It would be valuable to extend the understanding developed in this work to such non-binary features. Secondly, though we do not require features to have declining importance, we do require features to be sparse, with each data point only having a small number of active features. It is plausible that not all features are sparse in practice (given the present state of empirical evidence, it even appears open to us whether a significant fraction of features are sparse in practice) ā for instance, perhaps real neural networks partly use more compositional representations with dense features. Thirdly, in this work, we have made a particular choice regarding what it takes for a feature to be provided in the input and to have been computed in the output: ε ε-linear representation (Definition 2). Future empirical results or theoretical arguments could call for revising this choice ā for instance, perhaps an eventual full reverse-engineering picture would permit certain kinds of non-linear features. Finally and least specifically, the way of looking at neural net computation suggested in this work could turn out to be thoroughly confused. We consider there to be a lot of room for the development of a more principled and empirically grounded picture. Impact Statement The primary impact of our work is to advance the field of mechanistic interpretability. While advancing this field may have many potential societal impacts, we feel that there are no direct, non-standard impacts of our work that are worth highlighting. References Arora et al. (2018) Arora, S., Li, Y., Liang, Y., Ma, T., and Risteski, A. Linear algebraic structure of word senses, with applications to polysemy. Transactions of the Association for Computational Linguistics, 6:483ā495, 2018. Bellare (2002) Bellare. A note on negligible functions. Journal of Cryptology, 15:271ā284, 2002. Bernstein (1924) Bernstein, S. On a modification of chebyshevās inequality and of the error formula of laplace. Ann. Sci. Inst. Sav. Ukraine, Sect. Math, 1(4):38ā49, 1924. Bloom (2024) Bloom, J. Open source sparse autoencoders for all residual stream layers of GPT2 small. https://w.alignmentforum.org/posts/f9EgfLSurAiqRJySD/, 2024. Braun et al. (2024) Braun, D., Taylor, J., Goldowsky-Dill, N., and Sharkey, L. Identifying functionally important features with end-to-end sparse dictionary learning. arXiv preprint arXiv:2405.12241, 2024. Bricken et al. (2023) Bricken, T., Templeton, A., Batson, J., Chen, B., Jermyn, A., Conerly, T., Turner, N., Anil, C., Denison, C., Askell, A., Lasenby, R., Wu, Y., Kravec, S., Schiefer, N., Maxwell, T., Joseph, N., Hatfield-Dodds, Z., Tamkin, A., Nguyen, K., McLean, B., Burke, J. E., Hume, T., Carter, S., Henighan, T., and Olah, C. Towards monosemanticity: Decomposing language models with dictionary learning. Transformer Circuits Thread, 2023. https://transformer-circuits.pub/2023/monosemantic-features/index.html. Conmy et al. (2024) Conmy, A., Mavor-Parker, A., Lynch, A., Heimersheim, S., and Garriga-Alonso, A. Towards automated circuit discovery for mechanistic interpretability. Advances in Neural Information Processing Systems, 36, 2024. Cunningham et al. (2023) Cunningham, H., Ewart, A., Riggs, L., Huben, R., and Sharkey, L. Sparse autoencoders find highly interpretable features in language models. arXiv preprint arXiv:2309.08600, 2023. Elhage et al. (2021) Elhage, N., Nanda, N., Olsson, C., Henighan, T., Joseph, N., Mann, B., Askell, A., Bai, Y., Chen, A., Conerly, T., DasSarma, N., Drain, D., Ganguli, D., Hatfield-Dodds, Z., Hernandez, D., Jones, A., Kernion, J., Lovitt, L., Ndousse, K., Amodei, D., Brown, T., Clark, J., Kaplan, J., McCandlish, S., and Olah, C. A mathematical framework for transformer circuits. Transformer Circuits Thread, 2021. https://transformer-circuits.pub/2021/framework/index.html. Elhage et al. (2022) Elhage, N., Hume, T., Olsson, C., Schiefer, N., Henighan, T., Kravec, S., Hatfield-Dodds, Z., Lasenby, R., Drain, D., Chen, C., et al. Toy models of superposition. arXiv preprint arXiv:2209.10652, 2022. Fodor & Pylyshyn (1988) Fodor, J. A. and Pylyshyn, Z. W. Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2):3ā71, 1988. Fusi et al. (2016) Fusi, S., Miller, E. K., and Rigotti, M. Why neurons mix: high dimensionality for higher cognition. Current Opinion in Neurobiology, 37:66ā74, 2016. ISSN 0959-4388. doi: https://doi.org/10.1016/j.conb.2016.01.010. URL https://w.sciencedirect.com/science/article/pii/S0959438816000118. Neurobiology of cognitive behavior. Geiger et al. (2021) Geiger, A., Lu, H., Icard, T., and Potts, C. Causal abstractions of neural networks. Advances in Neural Information Processing Systems, 34:9574ā9586, 2021. Geva et al. (2021) Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories, September 2021. URL http://arxiv.org/abs/2012.14913. arXiv:2012.14913 [cs]. Goh et al. (2021) Goh, G., ā , N. C., ā , C. V., Carter, S., Petrov, M., Schubert, L., Radford, A., and Olah, C. Multimodal neurons in artificial neural networks. Distill, 2021. doi: 10.23915/distill.00030. https://distill.pub/2021/multimodal-neurons. Gurnee et al. (2023) Gurnee, W., Nanda, N., Pauly, M., Harvey, K., Troitskii, D., and Bertsimas, D. Finding neurons in a haystack: Case studies with sparse probing. arXiv preprint arXiv:2305.01610, 2023. Heimersheim & Mendel (2023) Heimersheim, S. and Mendel, J. Interim research report: Activation plateaus and sensitive periods in transformer training, 2023. URL https://w.alignmentforum.org/posts/LajDyGyiyX8DNNsuF/interim-research-report-activation-plateaus-and-sensitive-1. Accessed: 2024-07-27. Henighan et al. (2023) Henighan, T., Carter, S., Hume, T., Elhage, N., Lasenby, R., Fort, S., Schiefer, N., and Olah, C. Superposition, memorization, and double descent. Transformer Circuits Thread, 2023. Holyoak (1987) Holyoak, K. J. Parallel distributed processing: explorations in the microstructure of cognition. Science, 236:992ā997, 1987. Langley (2000) Langley, P. Crafting papers on machine learning. In Langley, P. (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), p. 1207ā1216, Stanford, CA, 2000. Morgan Kaufmann. Marks (2024) Marks, S. Whatās up with llms representing xors of arbitrary features?, 2024. URL https://w.alignmentforum.org/posts/hjJXCn9GsskysDceS/what-s-up-with-llms-representing-xors-of-arbitrary-features. Accessed: 2024-07-27. Meng et al. (2023) Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt, 2023. Murray et al. (2023) Murray, R., Demmel, J., Mahoney, M. W., Erichson, N. B., Melnichenko, M., Malik, O. A., Grigori, L., Luszczek, P., DereziÅski, M., Lopes, M. E., et al. Randomized numerical linear algebra: A perspective on the field with an eye to software. arXiv preprint arXiv:2302.11474, 2023. Nguyen et al. (2016) Nguyen, A., Yosinski, J., and Clune, J. Multifaceted feature visualization: Uncovering the different types of features learned by each neuron in deep neural networks, 2016. Olah et al. (2017) Olah, C., Mordvintsev, A., and Schubert, L. Feature visualization. Distill, 2017. doi: 10.23915/distill.00007. https://distill.pub/2017/feature-visualization. Olah et al. (2020) Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, M., and Carter, S. Zoom in: An introduction to circuits. Distill, 5(3):e00024ā001, 2020. Radford et al. (2019) Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. Rahimi & Recht (2008a) Rahimi, A. and Recht, B. Uniform approximation of functions with random bases. In 2008 46th annual allerton conference on communication, control, and computing, p. 555ā561. IEEE, 2008a. Rahimi & Recht (2008b) Rahimi, A. and Recht, B. Weighted sums of random kitchen sinks: Replacing minimization with randomization in learning. Advances in neural information processing systems, 21, 2008b. Rajamanoharan et al. (2024) Rajamanoharan, S., Conmy, A., Smith, L., Lieberum, T., Varma, V., KramĆ”r, J., Shah, R., and Nanda, N. Improving dictionary learning with gated sparse autoencoders. arXiv preprint arXiv:2404.16014, 2024. Rosenblatt (1961) Rosenblatt, F. Principles of neurodynamics. perceptrons and the theory of brain mechanisms. Technical report, Cornell Aeronautical Lab Inc Buffalo NY, 1961. RƤuker et al. (2023) RƤuker, T., Ho, A., Casper, S., and Hadfield-Menell, D. Toward transparent AI: A survey on interpreting the inner structures of deep neural networks, 2023. Scherlis et al. (2022) Scherlis, A., Sachan, K., Jermyn, A. S., Benton, J., and Shlegeris, B. Polysemanticity and capacity in neural networks. arXiv preprint arXiv:2210.01892, 2022. Taggart (2024) Taggart, G. M. ProLU: A nonlinearity for sparse autoencoders. https://w.alignmentforum.org/posts/HEpufTdakGTTKgoYF/prolu-a-nonlinearity-for-sparse-autoencoders, 2024. Tamkin et al. (2023) Tamkin, A., Taufeeque, M., and Goodman, N. D. Codebook features: Sparse and discrete interpretability for neural networks. arXiv preprint arXiv:2310.17230, 2023. Templeton et al. (2024) Templeton, A., Conerly, T., Marcus, J., Lindsey, J., Bricken, T., Chen, B., Pearce, A., Citro, C., Ameisen, E., Jones, A., Cunningham, H., Turner, N. L., McDougall, C., MacDiarmid, M., Freeman, C. D., Sumers, T. R., Rees, E., Batson, J., Jermyn, A., Carter, S., Olah, C., and Henighan, T. Scaling monosemanticity: Extracting interpretable features from claude 3 sonnet. Transformer Circuits Thread, 2024. URL https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html. Tillmann (2014) Tillmann, A. M. On the computational intractability of exact and approximate dictionary learning. IEEE Signal Processing Letters, 22(1):45ā49, 2014. Wang et al. (2022) Wang, K., Variengien, A., Conmy, A., Shlegeris, B., and Steinhardt, J. Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. arXiv preprint arXiv:2211.00593, 2022. Zou et al. (2021) Zou, Z., Alimohamadi, H., Imani, F., Kim, Y., and Imani, M. Spiking hyperdimensional network: Neuromorphic models integrated with memory-inspired framework. arXiv preprint arXiv:2110.00214, 2021. Appendix A Mathematical definitions Here, we list and define the mathematical terms that we use throughout this work. X set of inputs Y set of outputs ā³w:XāY:subscriptā³āM_w:Xā YMitalic_w : X ā Y neural network with ReLUReLUReLUReLU activations, parameterized by w aā(l)ā¢(x)āādsuperscriptāsuperscriptā a^(l)(x) ^doverā start_ARG a end_ARG( l ) ( x ) ā blackboard_Rd the activations of a neural network at layer l, lā0,ā¦,L0ā¦lā\0,...,L\l ā 0 , ⦠, L MLP(l):ādāād:superscriptMLPāsuperscriptāsuperscriptāMLP^(l):R^d ^dMLP( l ) : blackboard_Rd ā blackboard_Rd the lllth MLP layer, MLP(l)ā¢(x)=ReLUā¢(Win(l)ā¢x+wbias(l))superscriptMLPReLUsuperscriptsubscriptinsuperscriptsubscriptbiasMLP^(l)(x)=ReLU(W_ in^(l)x+w_ bias% ^(l))MLP( l ) ( x ) = ReLU ( Win( l ) x + wbias( l ) ) fk:Xā0,1:subscriptā01f_k:Xā\0,1\fitalic_k : X ā 0 , 1 boolean feature of the input, k=1,ā¦,m1ā¦k=1,ā¦,mk = 1 , ⦠, m F:Xā0,1m:āsuperscript01F:Xā\0,1\^mF : X ā 0 , 1 m the concatenation of m boolean features Ļākāādsubscriptāitalic-Ļsuperscriptā Ļ_k ^doverā start_ARG Ļ end_ARGk ā blackboard_Rd vector linearly representing the kkkth boolean feature ΦāādĆmΦsuperscriptā ^dĆ mΦ ā blackboard_Rd Ć m the feature embedding matrix, Φ=(Ļā1,ā¦,Ļām)Φsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļ =( Ļ_1,..., Ļ_m)Φ = ( overā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGm ) =ā¢(x)ā0,1msuperscript01 b= b(x)ā\0,1\^mitalic_b = italic_b ( x ) ā 0 , 1 m a boolean vector of length m associated to an input/activation k=kā¢(x)ā0,1subscriptsubscript01 b_k= b_k(x)ā\0,1\italic_bitalic_k = italic_bitalic_k ( x ) ā 0 , 1 the kkkth entry in the boolean vector, equal to fkā¢(x)subscriptf_k(x)fitalic_k ( x ) āā¢(x)ā1subscriptnorm1|| b(x)||_1| | italic_b ( x ) | |1 āsparsityā, a.k.a. number of bits that are āonā for the boolean vector , b,italic_b , equal to āk=1mfkā¢(x).superscriptsubscript1subscript _k=1^mf_k(x).āk = 1m fitalic_k ( x ) . :0,1mā0,1mā²:āsuperscript01superscript01superscriptā²C:\0,1\^mā\0,1\^m C : 0 , 1 m ā 0 , 1 m start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT a boolean circuit l:0,1mā0,1mā²:subscriptāsuperscript01superscript01superscriptā²C_l:\0,1\^mā\0,1\^m Citalic_l : 0 , 1 m ā 0 , 1 m start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT layer l of the boolean circuit CC, consisting of mā² boolean gates of fan-in at most two. Table 1: Definitions of terms used in this work. We also use the following conventions for clarity: i,jā1,ā¦,d1ā¦i,jā\1,...,d\i , j ā 1 , ⦠, d indices for neurons k, ā ā, pā1,ā¦,m1ā¦pā\1,...,m\p ā 1 , ⦠, m indices for features μ amount of interference between near-orthogonal vectors ε ε error in the read-off of a boolean feature s A bound on the āsparsityā; we require āā¢(x)ā1ā¤sā¢āxāX.subscriptnorm1for-all|| b(x)||_1⤠s\,\,ā\,\,xā X.| | italic_b ( x ) | |1 ⤠s ā x ā X . Table 2: Conventions used in this work. We assume our terms satisfy the following asymptotic relationships in terms of the principal complexity parameter m (the number of features): d is polynomial in m so d=Ī©~ā¢(mα+),d=O~ā¢(mαā)formulae-sequence~Ī©superscriptsubscript~superscriptsubscriptd= (m _+),d= O(m _-)d = over~ start_ARG Ī© end_ARG ( mitalic_α+ ) , d = over~ start_ARG O end_ARG ( mitalic_α- ) for some finite exponents 0<αā¤Ī±ā<ā.0subscript0<α⤠_-<ā.0 < α ⤠α- < ā . s is at worst polynomial in m,m,m , so s=Oā¢(mβ).superscripts=O(m^β).s = O ( mitalic_β ) . Note that this is different from the body, where we assumed s is a constant (so β=00β=0β = 0). s=O~ā¢(d1/3).~superscript13s= O(d^1/3).s = over~ start_ARG O end_ARG ( d1 / 3 ) . This is a technical āsparsityā condition that will be useful for us. Table 3: Asymptotic relationships between variables in this work. Appendix B Potential takeaways for practical mechanistic interpretability Our motivation for studying these mathematical models is to glean insights about the computation implemented by real networks, that could have ramifications for the field of mechanistic interpretability, particularly the subfield focussed on taking features out of superposition in language models using sparse dictionary learning (Cunningham et al., 2023; Bricken et al., 2023; Tamkin et al., 2023; Bloom, 2024; Braun et al., 2024; Templeton et al., 2024). In order to render the models mathematically tractable, we have had to make idealising assumptions about the computation implemented by the networks. 1. Early work on superposition (Elhage et al., 2022) suggested that it may be possible to store exponentially many features in superposition in an activation space. On the other hand, early sparse dictionary learning efforts (Cunningham et al., 2023; Bricken et al., 2023; Bloom, 2024) learn dictionaries which are smaller than even the square of the dimension of the activation space. Our work suggests that the number of features that can be stored in superposition and computed with is likely to be around O~ā¢(d2)~superscript2 O(d^2)over~ start_ARG O end_ARG ( d2 ) (this is also the information-theoretic limit). We think that by using a dictionary size that scales quadratically in the size of the activations, while computationally challenging, this will likely lead to better performance on downstream tasks. We are heartened by more recent work by Templeton et al. (2024) which works with dictionaries that are closer to this size, and would encourage more systems-oriented work to scale to ever larger dictionaries. 2. The current mainstream sparse autoencoder (SAE) architecture used by Cunningham et al. (2023); Bricken et al. (2023); Bloom (2024); Templeton et al. (2024) and others uses ReLUs to read off feature values, in accordance with the toy model of superposition of Elhage et al. (2022) and features being ReLU-linearly represented. Our work suggests that networks may be more expressive when storing features ε ε-linearly. If so, this suggests that future work should consider sparse dictionary learning with alternative activation functions that only allow for removing errors of size ε ε, such as a noise-filtering nonlinearity NFεā¢(x)=x|x|>ε0|x|ā¤Īµ.subscriptNFcases0NF_ (x)= casesx&|x|> \\ 0&|x|⤠cases.NFitalic_ε ( x ) = start_ROW start_CELL x end_CELL start_CELL | x | > ε end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL | x | ⤠ε end_CELL end_ROW . or nonlinearities that filter all but the k largest positive and largest negative preactivations. Notably, recent work by Rajamanoharan et al. (2024); Taggart (2024) finds suggestive evidence that the ProLU activation: ProLUεā¢(x)=x>ε0xā¤ĪµsubscriptProLUcases0 _ (x)= casesx&x> \\ 0&x⤠casesProLUitalic_ε ( x ) = start_ROW start_CELL x end_CELL start_CELL x > ε end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL x ⤠ε end_CELL end_ROW outperforms the standard ReLU activation SAEs, which accords with the predictions in this work. 3. Previous work by Gurnee et al. (2023) found some features that were represented on a small set of neurons, even when they werenāt represented on any singular particular neuron. In our constructions, feature representations end up distributed over a larger range of neurons. We expect that networks which employ superposition heavily to maximise their expressiveness are unlikely to have many sparse features that are localised to one or even a few neurons. Appendix C Additional discussion of various feature definitions C.1 Formal statements and proofs for facts referenced in main body We present formal statements and proofs that we referred to in Section 2.1. Note that without loss of generality, we can include the activation function a into our input set X, so we omit the use of a in this section. Theorem 9 (Composition of linearly separable features). There exist a set of inputs X and two features f1,f2subscript1subscript2f_1,f_2f1 , f2 weakly linearly represented in X such that there exists no MLP layer MLPMLPMLPMLP such that either f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 or f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 are linearly separable in MLPā¢(x)MLPMLP(x)MLP ( x ). Proof. (sketch) Let X=[ā1,1]2superscript112X=[-1,1]^2X = [ - 1 , 1 ]2 be the unit square in ā2superscriptā2R^2blackboard_R2, and let f1ā¢(x)=ā¢(x1>0)subscript11subscript10f_1(x)=1(x_1>0)f1 ( x ) = 1 ( x1 > 0 ) and f2ā¢(x)=ā¢(x2>0)subscript21subscript20f_2(x)=1(x_2>0)f2 ( x ) = 1 ( x2 > 0 ) be the indicator functions of whether the first and second coordinates are greater than zero. There exists no MLP layer MLP:Xāād:MLPāsuperscriptāMLP:X ^dMLP : X ā blackboard_Rd of any width d such that f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 is linearly separable in MLPā¢(X)MLPMLP(X)MLP ( X ). To show this, it suffices to notice that any MLP layer has finite Lipschitz coefficient, and that any function weakly linearly representing f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 or f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 will need to have arbitrarily high Lipschitz coefficient (since there exist points that are arbitrarily close to the separating hyperplanes of f1subscript1f_1f1 and f2subscript2f_2f2. ā Theorem 10 (Composition of ε ε-linearly represented features). For any set X and features f1,f2subscript1subscript2f_1,f_2f1 , f2 that are ε ε-linearly represented in X, there exists a two neuron MLP MLP:Xāā2:MLPāsuperscriptā2MLP:X ^2MLP : X ā blackboard_R2 such that f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 and f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 are εā²-linearly represented in MLPā¢(X)MLPMLP(X)MLP ( X ) for some εā². Proof. (sketch) We use an MLP with two neurons MLP1subscriptMLP1MLP_1MLP1, MLP2subscriptMLP2MLP_2MLP2 with input weights equal to the read-off vectors of rā1,rā2subscriptā1subscriptā2 r_1, r_2overā start_ARG r end_ARG1 , overā start_ARG r end_ARG2. To read off f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2, we use the read-off vector rā1ā§2subscriptā12 r_1 2overā start_ARG r end_ARG1 ā§ 2 defined by rā1ā§2ā¢(x)=MLP1ā¢(x)+MLP1ā¢(x)ā3/4subscriptā12subscriptMLP1subscriptMLP134 r_1 2(x)=MLP_1(x)+MLP_1(x)-3/4overā start_ARG r end_ARG1 ā§ 2 ( x ) = MLP1 ( x ) + MLP1 ( x ) - 3 / 4. Similarly, to read off f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2, we use the read-off vector rā1āØ2ā¢(x)=MLP1ā¢(x)+MLP1ā¢(x)ā1/4subscriptā12subscriptMLP1subscriptMLP114 r_1 2(x)=MLP_1(x)+MLP_1(x)-1/4overā start_ARG r end_ARG1 ⨠2 ( x ) = MLP1 ( x ) + MLP1 ( x ) - 1 / 4. ā In fact, by allowing for wider MLPs, it is fairly easy to construct an MLP MLP:Xāād:MLPāsuperscriptāMLP:X ^dMLP : X ā blackboard_Rd such that f1ā§f2subscript1subscript2f_1 f_2f1 ā§ f2 and f1āØf2subscript1subscript2f_1 f_2f1 ⨠f2 are also ε ε-linearly represented in MLPā¢(X)MLPMLP(X)MLP ( X ) (that is, with equal error). We leave the construction of this MLP as an exercise for the reader. Appendix D Precise statements and proofs of theorems Let m be a parameter associated to the length of a boolean input. For the remainder of this section, we will work with real parameters α,βin,βout,γsubscriptinsubscriptoutα, _in, _out,γα , βroman_in , βroman_out , γ which do not scale with m and corresponding to scaling exponents. We impose the following asymptotic relationships on parameters m (length of boolean input), d=dinsubscriptind=d_ind = droman_in (width of emulating neural net), s (sparsity, i.e., number of 1111 values, of suitable boolean variables), εinsubscriptin _inεroman_in (incoming interference, if applicable) and εoutsubscriptout _outεroman_out (outgoing interference): m=Ī©~ā¢(rα)~Ī©superscript m= (r^α)m = over~ start_ARG Ī© end_ARG ( ritalic_α ) (1) εin=Ī©~ā¢(rāβā¢in)subscriptin~Ī©superscriptin _in= (r^-βin)εroman_in = over~ start_ARG Ī© end_ARG ( r- β in ) (2) εout=O~ā¢(rāβā¢out)subscriptout~superscriptout _out= O(r^-βout)εroman_out = over~ start_ARG O end_ARG ( r- β out ) (3) s=O~ā¢(rγ).~superscript s= O(r^γ).s = over~ start_ARG O end_ARG ( ritalic_γ ) . (4) More precisely, we assume that a large parameter m is given and the Oā¢(polylogā¢(m))polylogO(polylog(m))O ( polylog ( m ) ) scaling factors implicit in the O~,Ī©~~~Ī© O, over~ start_ARG O end_ARG , over~ start_ARG Ī© end_ARG asymptotics can be chosen in a suitable way to make the results hold. D.1 Emulation of AND layer In this section we prove a generalization of Theorem 3.2. Let Īā1,ā¦,m[2]Īsuperscript1ā¦delimited-[]2 ā\1,ā¦,m\^[2]Ī ā 1 , ⦠, m [ 2 ] be the edges of a graph (here the superscript [2]delimited-[]2[2][ 2 ] denotes the āexterior powerā of a set, i.e., the set of (m2)binomial2 m2( FRACOP start_ARG m end_ARG start_ARG 2 end_ARG ) unordered pairs). Assume that the number of edges |EĪ|=O~ā¢(m).subscriptĪ~|E_ |= O(m).| Eroman_Ī | = over~ start_ARG O end_ARG ( m ) . Let Ī:0,1mā0,1EĪ:subscriptĪāsuperscript01superscript01subscriptĪC_ :\0,1\^mā\0,1\^E_ Croman_Ī : 0 , 1 m ā 0 , 1 Eroman_Ī be the circuit with value Īā¢()(k,ā)=kā§subscriptĪsubscriptāsubscriptC_ ( b)_(k, )= b_k % bCroman_Ī ( italic_b )( k , ā ) = italic_bitalic_k ā§ italic_b at the unordered pair (k,ā)āEĪāsubscriptĪ(k, )ā E_ ( k , ā ) ā Eroman_Ī corresponding to an edge of Ī.Ī .Ī . We think of ĪsubscriptĪC_ Croman_Ī as the (not quite universal) circuit that takes ANDās of pairs of features in Ī Ī and returns a boolean vector of roughly the same size. We will show that this circuit can be emulated with suitably small interference on the output. The proof is very similar to the proof of the error correction theorem above (Theorem 21), in particular with the main argument controlled by a subset Ī£ā1,ā¦,mĆ1,ā¦,d,Ī£1ā¦1⦠ā\1,ā¦,m\Ć\1,ā¦,d\,Ī£ ā 1 , ⦠, m Ć 1 , ⦠, d , with m the number of edges of Ī Ī (i.e., outputs of the circuit). There are however two main differences. 1. What we read from each subset Ī£k,āsubscriptĪ£ā _k, Ī£italic_k , ā associated to an edge (k,ā)āĪāĪ(k, )ā ( k , ā ) ā Ī is a the result of a nonlinearity applied to a sum of two random ±1plus-or-minus1± 1± 1 vectors Ļk,Ļāsubscriptitalic-Ļsubscriptitalic-Ļā _k, _ Ļitalic_k , Ļroman_ā (associated to the two inputs k,āk, , ā), that returns (up to small error) the sum of neurons in of Ī£iā¢jsubscriptĪ£ _ijĪ£italic_i j where the signs of Ļksubscriptitalic-Ļ _kĻitalic_k and Ļāsubscriptitalic-Ļā _ Ļroman_ā are both 1111. 2. To control interference issues, we need to carefully partition the graph Ī Ī into pieces with a certain asymptotic ābalancedā property (see Theorem 13). 3. The output interference is O~(s2d O( s^2dover~ start_ARG O end_ARG ( square-root start_ARG divide start_ARG s2 end_ARG start_ARG d end_ARG end_ARG instead of O~(sd O( sdover~ start_ARG O end_ARG ( square-root start_ARG divide start_ARG s end_ARG start_ARG d end_ARG end_ARG since there are Oā¢(s2)superscript2O(s^2)O ( s2 ) active output features (corresponding to pairs of features that are on). Theorem 11 (Targeted superpositional AND). Let m be an integer and Īā1,ā¦,mĆ1,ā¦,mĪ1ā¦1⦠ā\1,ā¦,m\Ć\1,ā¦,m\Ī ā 1 , ⦠, m Ć 1 , ⦠, m a graph. Assume we have a readoff matrix ināMatmĆdsubscriptinsubscriptMatR_in _mĆ dRroman_in ā Matitalic_m Ć d that maps a d-dimensional space to an m-dimensional space, and let s=oā¢(m)s=o( m)s = o ( square-root start_ARG m end_ARG ) be a sparsity parameter (either polynomial or polylogarithmic in m). Let εinsubscriptin _inεroman_in be an interference parameter. Assume that we have εin2ā¢mā¢dā¢d/s=O~ā¢(1)superscriptsubscriptin2~1 _in^2md d/s= O(1)εroman_in2 m d square-root start_ARG d / s end_ARG = over~ start_ARG O end_ARG ( 1 ) is bounded by some sufficiently small inverse polylogarithmic expression in m.m.m . Then there exists a single-layer mixed emulation ā³wā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³ReLUsubscriptinsubscriptbiasM_w(x)=ReLU(W_ inx+w_ bias)Mitalic_w ( x ) = ReLU ( Win x + wbias ) of the universal AND circuit uandsubscriptuandC_uandCroman_uand (together with an āoutput readoffā matrix outsubscriptoutR_outRroman_out) such that ā³wsubscriptā³M_wMitalic_w is an emulation of ĪsubscriptĪC_ Croman_Ī on the input class ā¬=ā¬sā¬subscriptā¬B=B_sB = Bitalic_s of boolean vectors of sparsity ā¤s,absent⤠s,⤠s , with precision εināεout,āsubscriptinsubscriptout _inā _out,εroman_in ā εroman_out , for εout=O~ā¢(s2d).subscriptout~superscript2 _out= O ( s^2d ).εroman_out = over~ start_ARG O end_ARG ( square-root start_ARG divide start_ARG s2 end_ARG start_ARG d end_ARG end_ARG ) . Before proving the theorem, we note that our UAND statements are corollaries: Corollary 12 (U-AND with basis-aligned inputs). Fix a sparsity parameter sāā.ās .s ā blackboard_N . Then for large input length m, there exists a single-layer neural network ā³wā¢(x)=MLPā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³MLPReLUsubscriptinsubscriptbiasM_w(x)=MLP(x)=ReLU(W_ inx+w_% bias)Mitalic_w ( x ) = MLP ( x ) = ReLU ( Win x + wbias ) that ε ε-linearly represents the universal AND circuit UANDsubscriptUANDC_UANDCroman_UAND on s-sparse inputs, with width d=O~mā¢(1/ε2)subscript~1superscript2d= O_m(1/ ^2)d = over~ start_ARG O end_ARGm ( 1 / ε2 ) (i.e. polylogarithmic in m). This follows from the fact that the incoming interference εin=0subscriptin0 _in=0εroman_in = 0 since the incoming feature basis is basis-aligned. Corollary 13 (U-AND with inputs in superposition). Let sāās ā blackboard_N be a fixed sparsity limit and ε<11 <1ε < 1 a fixed interference parameter. There exists a feature encoding Φ Φ and single-layer neural net ā³wā¢(x)=MLPā¢(x)=ReLUā¢(Winā¢x+wbias)subscriptā³MLPReLUsubscriptinsubscriptbiasM_w(x)=MLP(x)=ReLU(W_ inx+w_% bias)Mitalic_w ( x ) = MLP ( x ) = ReLU ( Win x + wbias ) with input size minsubscriptinm_inmroman_in and width d=O~ā¢(min/ε2)~subscriptinsuperscript2d= O( m_in/ ^2)d = over~ start_ARG O end_ARG ( square-root start_ARG mroman_in end_ARG / ε2 ), such that ā³wāΦsubscriptā³Ī¦M_w _w ā Φ ε ε-linearly represents UANDsubscriptUANDC_UANDCroman_UAND on all s-sparse inputs bitalic_b. This follows by restricting all but min=msubscriptinm_in= mmroman_in = square-root start_ARG m end_ARG input features to 00 and taking Ī Ī to be the complete graph on vertices 0,ā¦,min.0ā¦subscriptin\0,ā¦,m_in\. 0 , ⦠, mroman_in . Now we prove the theorem. Proof. We begin by considering a simpler case. We say that a graph Ī Ī with m edges is self-balanced if each vertex has degree at most O~ā¢(1)~1 O(1)over~ start_ARG O end_ARG ( 1 ) (some fixed polylogarithmic-in-m bound). Suppose Ī Ī is self-balanced. Define A:=d/s.assignA:= d/s.A := square-root start_ARG d / s end_ARG . For each edge (k,ā)āĪ,āĪ(k, )ā ,( k , ā ) ā Ī , choose at random a subset Ī£kā¢āā1,ā¦,dsubscriptĪ£ā1⦠_k ā\1,ā¦,d\Ī£italic_k ā ā 1 , ⦠, d of size within a polylog error of A.A.A . Write also Ī£k=āāā£(k,ā)āĪĪ£k,ā.subscriptĪ£subscriptconditionalāĪsubscriptĪ£ā _k= _ (k, )ā _k, .Ī£italic_k = āā ⣠( k , ā ) ā ΠΣitalic_k , ā . Write down feature vectors Ļākā¢ā=āiāĪ£k±eāi,subscriptāitalic-Ļāplus-or-minussubscriptsubscriptĪ£subscriptā Ļ_k = _iā _k± e_i,overā start_ARG Ļ end_ARGk ā = āi ā Ī£ start_POSTSUBSCRIPT k end_POSTSUBSCRIPT ± overā start_ARG e end_ARGi , with signs Ļk,isubscript _k,iĻitalic_k , i chosen independently and randomly for each k,i.k,i.k , i . For a pair k,āāĪ,āĪk, ā ,k , ā ā Ī , define the vector rāk,āsubscriptāā r_k, overā start_ARG r end_ARGk , ā to be the indicator of the set of neurons Ī£k,āout:=iā1,ā¦,dā£Ļk,i=Ļā,i=1,assignsuperscriptsubscriptĪ£āoutconditional-set1ā¦subscriptsubscriptā1 _k, ^out:=\iā\1,ā¦,d\ _k,i= _% ,i=1\,Ī£italic_k , āroman_out := i ā 1 , ⦠, d ⣠Ļitalic_k , i = Ļroman_ā , i = 1 , Note that |Ī£k,āout|superscriptsubscriptĪ£āout| _k, ^out|| Ī£italic_k , āroman_out | has, o. n. p., within a polylog difference from 14ā¢|Ī£k,ā|=A414subscriptĪ£ā4 14| _k, |= A4divide start_ARG 1 end_ARG start_ARG 4 end_ARG | Ī£italic_k , ā | = divide start_ARG A end_ARG start_ARG 4 end_ARG elements. Write Ļākin:=āāā£(k,ā)āĪĻāk,ā,assignsuperscriptsubscriptāitalic-ĻinsubscriptconditionalāĪsubscriptāitalic-Ļā Ļ_k^in:= _ (k, )ā Ļ_k,% ,overā start_ARG Ļ end_ARGkroman_in := āā ⣠( k , ā ) ā Ī overā start_ARG Ļ end_ARGk , ā , Note that this is a indicator function of a union polylog-many independently chosen sets of size A.A.A . Write ΦinsuperscriptΦin ^inΦroman_in for the mĆdmĆ dm Ć d matrix with columns Ļākin.superscriptsubscriptāitalic-Ļin Ļ_k^in.overā start_ARG Ļ end_ARGkroman_in . Now we define the emulation net to be ā³wĪā¢(x)=4Aā¢ReLUā¢(Φinā¢(x)ā1).subscriptsubscriptā³Ī4ReLUsuperscriptΦin1M_w_ (x)= 4AReLU( ^in(x)-1).Mitalic_wroman_Ī ( x ) = divide start_ARG 4 end_ARG start_ARG A end_ARG ReLU ( Φroman_in ( x ) - 1 ) . We note that (outside interference and collision errors of frequency bounded o. n. p. by O~ā¢(εout)~subscriptout O( _out)over~ start_ARG O end_ARG ( εroman_out ),) we have ReLU(ΦT())ā1)i=1,āk,āāS⢠with ā¢iāĪ£k,ā⢠and ā¢Ļk,i=Ļā,i=10, otherwise,.ReLU( ^T( b))-1)_i= cases1,&ā k, % ā S with iā _k, and _k,i= _ ,i=% 1\\ 0,& otherwise, cases.ReLU ( Φitalic_T ( italic_b ) ) - 1 )i = start_ROW start_CELL 1 , end_CELL start_CELL ā k , ā ā S with i ā Ī£italic_k , ā and Ļitalic_k , i = Ļroman_ā , i = 1 end_CELL end_ROW start_ROW start_CELL 0 , end_CELL start_CELL otherwise, end_CELL end_ROW . Here as before we take Sā1,ā¦,m1ā¦Sā\1,ā¦,m\S ā 1 , ⦠, m for the set of features that are on. Analogously to our proof of Lemma 23ās part 1 we see that the difference ΦTā¢()āΦTā¢(inā¢(x))superscriptΦsuperscriptΦsubscriptin ^T( b)- ^T(R_in(x))Φitalic_T ( italic_b ) - Φitalic_T ( Rroman_in ( x ) ) is (o. n. p.) bounded by oā¢(1),1o(1),o ( 1 ) , and thus we are done just as in the previous lemma. For general graphs Ī,Ī ,Ī , we might have an issue if some vertices have very high degree; if one were to try to run the same proof, their corresponding features would then admit unmanageably high interference. To fix this, we note that in order to emulate ĪsubscriptĪC_ Croman_Ī it is sufficient (up to polylogarithmically increasing the number of neurons) to emulate Ī1,ā¦,ĪTsubscriptsubscriptĪ1ā¦subscriptsubscriptĪC_ _1,ā¦,C_ _TCroman_Ī start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , ⦠, Croman_Ī start_POSTSUBSCRIPT T end_POSTSUBSCRIPT for some polylogarithmic collection of graphs ĪtsubscriptĪ _tĪitalic_t with āŖtĪt=Ī.subscriptsubscriptĪ _t _t= .āŖt Īitalic_t = Ī . We now split an arbitrary graph Ī Ī into subgraphs with a nice ābalancedā property. Let a,bāāa,b , b ā blackboard_R be parameters. We say that a graph is a,ba,ba , b-balanced if it is bipartite on a pair of disjoint subsets of vertices V0,V1ā0,ā¦,m,subscript0subscript10ā¦V_0,V_1ā\0,ā¦,m\,V0 , V1 ā 0 , ⦠, m , such that |V0|=a,|V1|=bformulae-sequencesubscript0subscript1|V_0|=a,|V_1|=b| V0 | = a , | V1 | = b and each vertex in V0subscript0V_0V0 has degree at most m/am/am / a and each vertex in V1subscript1V_1V1 has degree at most m/b.m/b.m / b . We say a graph Īā0,ā¦,m[2]Īsuperscript0ā¦delimited-[]2 ā\0,ā¦,m\^[2]Ī ā 0 , ⦠, m [ 2 ] is balanced if it is a,ba,ba , b-balanced for some a,b.a,b.a , b . It can be shown using an inductive argument that any graph Ī Ī with m edges can be written as a union of polylog(m.)polylog(m.)polylog ( m . ) Now it remains to show that the theorem holds for a balanced graph. Indeed, suppose that Ī Ī has vertices supported on V0āV1ā1,ā¦,msquare-unionsubscript0subscript11ā¦V_0 V_1ā\1,ā¦,m\V0 ā V1 ā 1 , ⦠, m and is a,ba,ba , b-balanced. Suppose (WLOG) that aā¤b.a⤠b.a ⤠b . Then we randomly partition the neurons 1,ā¦,d1ā¦\1,ā¦,d\ 1 , ⦠, d into a roughly equal sets Ī£ksubscriptĪ£ _kĪ£italic_k for kāV0subscript0kā V_0k ā V0 (equivalently, we choose a random map 1,ā¦,dāV0ā1ā¦subscript0\1,ā¦,d\ā V_0 1 , ⦠, d ā V0 and define Ī£ksubscriptĪ£ _kĪ£italic_k to be the preimage of k). We then choose for āāV1āsubscript1 ā V_1ā ā V1 the set Ī£k,āsubscriptĪ£ā _k, Ī£italic_k , ā to be a random subset of size about d/s2superscript2 d/s^2square-root start_ARG d / s2 end_ARG inside Ī£k,subscriptĪ£ _k,Ī£italic_k , and define Ī£ā=āŖkā£(k,ā)āĪ.subscriptĪ£āsubscriptconditionalāĪ _ = _k (k, )ā .Ī£roman_ā = āŖk ⣠( k , ā ) ā Ī . We finish the argument by bounding the errors in the same way as in the self-balanced case, concluding the proof. ā D.2 Universal AND with inputs in superposition We use the conventions from Section A. We make an additional assumption, that our inputs aā(0)ā¢(x)superscriptā0 a^(0)(x)overā start_ARG a end_ARG( 0 ) ( x ) for xāXxā Xx ā X approximately lie on a sphere of suitable radius. Note that if m=dm=dm = d and the feature basis Ļāisubscriptāitalic-Ļ Ļ_ioverā start_ARG Ļ end_ARGi is an orthonormal basis, then |Φā¢()|=ā1,Φsubscriptnorm1| ( b)|= || b||_1,| Φ ( italic_b ) | = square-root start_ARG | | italic_b | |1 end_ARG , so the ā2subscriptā2 _2ā2 norm of the embedding is the square root of the sparsity. If the sparsity ā1subscriptnorm1|| b||_1| | italic_b | |1 is exactly s and the feature interference parameter μ is sufficiently small compared to the sparsity bound s,s,s , we still have |Φā¢()|āsΦ| ( b)|ā s| Φ ( italic_b ) | ā square-root start_ARG s end_ARG (with some suitable bound ā in general, it will be O~ā¢(μā¢s1.5)~superscript1.5 O(μ s^1.5)over~ start_ARG O end_ARG ( μ s1.5 )). If instead, we assume only that the boolean features fiā¢()subscriptf_i( b)fitalic_i ( italic_b ) are ε ε-linearly represented for suitable ε>1d,1 > 1 d,ε > divide start_ARG 1 end_ARG start_ARG square-root start_ARG d end_ARG end_ARG , in general we cannot guarantee that |aā(0)ā¢(x)|ās;superscriptā0| a^(0)(x)|ā s;| overā start_ARG a end_ARG( 0 ) ( x ) | ā square-root start_ARG s end_ARG ; rather, we will have |aā(0)ā¢(x)|=Ī©~ā¢(s)superscriptā0~Ī©| a^(0)(x)|= ( s)| overā start_ARG a end_ARG( 0 ) ( x ) | = over~ start_ARG Ī© end_ARG ( square-root start_ARG s end_ARG ) since especially for small s,s,s , the norm might be significantly increased by adding a large vector that is almost-orthogonal to all features (and thus doesnāt affect the linear representability of the fisubscriptf_ifitalic_i). This observation allows us, in principle, to write down a vector with some suitable norm in Īø~ā¢(s)~ Īø( s)over~ start_ARG Īø end_ARG ( square-root start_ARG s end_ARG ) which ε ε-linearly represents a very sparse boolean vector bitalic_b with ā1<<s.much-less-thansubscriptnorm1|| b||_1<<s.| | italic_b | |1 < < s . We show how to modify inputs with unknown bounded sparsity āā¢(x)ā1<ssubscriptnorm1|| b(x)||_1<s| | italic_b ( x ) | |1 < s to have an (approximately) constant norm in the following section. For now, we assume in addition to āā¢(x)ā1<ssubscriptnorm1|| b(x)||_1<s| | italic_b ( x ) | |1 < s that all our inputs have norm equal to some s0=O~ā¢(s)subscript0~s_0= O( s)s0 = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG ) up to a small error. Theorem 14. Let m,d,X,Φ,ε=ε0,μ,sformulae-sequenceΦsubscript0m,d,X, , = _0,μ,sm , d , X , Φ , ε = ε0 , μ , s be as in Appendix A. Let r be a parameter so that r2=O~ā¢(s)superscript2~r^2= O(s)r2 = over~ start_ARG O end_ARG ( s ). Assume in addition to the conditions on X,ΦX, , Φ in Appendix A that for any input xāX,xā X,x ā X , we have |aā(0)ā¢(x)|=r+O~ā¢(sd),superscriptā0~| a^(0)(x)|=r+ O( s d),| overā start_ARG a end_ARG( 0 ) ( x ) | = r + over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) , i.e., the inputs lie approximately on a sphere of radius r. Let WāMatdĆdsubscriptMatW _dĆ dW ā Matitalic_d Ć d be a random weight matrix with i.i.d. Gaussian-distributed entries, and let aā(1)ā¢(x)=ā³wā¢(aā(0)ā¢(x)):=ReLUā¢(Wā¢x)superscriptā1subscriptā³superscriptā0assignReLU a^(1)(x)=M_w( a^(0)(x)):=ReLU(Wx)overā start_ARG a end_ARG( 1 ) ( x ) = Mitalic_w ( overā start_ARG a end_ARG( 0 ) ( x ) ) := ReLU ( W x ) be the associated neural net. Then there exist some ε(1)=O~ā¢(maxā”(sā¢Ī¼,sā¢Īµ,s/d))superscript1~ ^(1)= O ( (sμ, s , s/d)% )ε( 1 ) = over~ start_ARG O end_ARG ( max ( s μ , square-root start_ARG s end_ARG ε , square-root start_ARG s / d end_ARG ) ) and μ(1)=O~ā¢(maxā”(1/d,μ)),superscript1~1μ^(1)= O ( ( 1/d,μ)),μ( 1 ) = over~ start_ARG O end_ARG ( max ( square-root start_ARG 1 / d end_ARG , μ ) ) , such that the boolean function fkā§āā¢(x):=fkā¢(x)ā§fāā¢(x)assignsubscriptāsubscriptsubscriptāf_k (x):=f_k(x) f_ (x)fitalic_k ā§ ā ( x ) := fitalic_k ( x ) ā§ froman_ā ( x ) is ε(1)superscript1 ^(1)ε( 1 )-linearly represented by a feature vector Ļākā§ā(1)āād,superscriptsubscriptāitalic-Ļā1superscriptā Ļ_k ^(1) ^d,overā start_ARG Ļ end_ARGk ā§ ā( 1 ) ā blackboard_Rd , outside negligible probability (in the entries of W). Moreover, up to rescaling by a fixed scalar, the feature vectors Ļākā§āsubscriptāitalic-Ļā Ļ_k overā start_ARG Ļ end_ARGk ā§ ā form an almost-orthogonal collection with feature interference parameter μ(1).superscript1μ^(1).μ( 1 ) . Corollary 15. The result of Theorem 14 is true with the assumption |aā(0)ā¢(x)|2=r2+O~ā¢(εā¢s)superscriptsuperscriptā02superscript2~| a^(0)(x)|^2=r^2+ O( s)| overā start_ARG a end_ARG( 0 ) ( x ) |2 = r2 + over~ start_ARG O end_ARG ( ε s ) (that inputs are close to a sphere) replaced by |aā(0)ā¢(x)|2=O~ā¢(s),superscriptsuperscriptā02~| a^(0)(x)|^2= O(s),| overā start_ARG a end_ARG( 0 ) ( x ) |2 = over~ start_ARG O end_ARG ( s ) , at the cost of increasing the depth of the neural network ā³wsubscriptā³M_wMitalic_w from 1111 to 3333. Proof. (Of corollary.) This follows by chaining the neural network constructed in this theorem with the ānorm-balancer networkā constructed in Appendix D.3 (independent from this one). ā The idea of the proof of Theorem 14 is derived from the quadratic activations case, ā³wā¢(xā)=Qā¢(Wā¢xā),subscriptā³āM_w( x)=Q(W x),Mitalic_w ( overā start_ARG x end_ARG ) = Q ( W overā start_ARG x end_ARG ) , where Q is the function that squares entries of a vector coordinatewise. Let aki=Wā¢(Ļāk)isuperscriptsubscriptsuperscriptsubscriptāitalic-Ļa_k^i=W( Ļ_k)^iaitalic_kitalic_i = W ( overā start_ARG Ļ end_ARGk )i (for iā0,ā¦,dā10ā¦1iā\0,ā¦,d-1\i ā 0 , ⦠, d - 1 ) be the coordinates of the preactivation vector Wā¢(Ļāk)subscriptāitalic-ĻW( Ļ_k)W ( overā start_ARG Ļ end_ARGk ) associated to the kkkth boolean bit. One can show using the theory of quadratic forms that the readoff vector Rk,āi=akiā¢aāisuperscriptsubscriptāsuperscriptsubscriptsuperscriptsubscriptāR_k, ^i=a_k^ia_ ^iRitalic_k , āitalic_i = aitalic_kitalic_i aroman_āitalic_i gives a valid readoff direction to show ε ε-strong linear separation of the boolean expression kā§āsubscriptsubscriptā b_k b_ italic_bitalic_k ā§ italic_broman_ā (o. n. p.). We will show that a similar strategy works for an arbitrary (reasonable, and in particular nonlinear) activation function, including ReLU. Write down the unnormalized model ā³wuā¢(xā):=ReLUā¢(Wā¢(xā)).assignsuperscriptsubscriptā³āReLUāM_w^u( x):=ReLU(W( x)).Mitalic_witalic_u ( overā start_ARG x end_ARG ) := ReLU ( W ( overā start_ARG x end_ARG ) ) . Define Ļākā²=Wā¢Ļāksuperscriptsubscriptāitalic-Ļā²subscriptāitalic-Ļ Ļ_k =W Ļ_koverā start_ARG Ļ end_ARGkā² = W overā start_ARG Ļ end_ARGk to be the preactivation under this model of Ļāk.subscriptāitalic-Ļ Ļ_k.overā start_ARG Ļ end_ARGk . Define the unnormalized readoff matrix for the UAND coordinate associated to the pair of features k,āk, , ā as follows: rāk,āi=signā¢((Ļākā²)iā (Ļāāā²)i),superscriptsubscriptāāsignā subscriptsuperscriptsubscriptāitalic-Ļā²subscriptsuperscriptsubscriptāitalic-Ļāā² r_k, ^i=sign(( Ļ_k )_iĀ·( Ļ% _ )_i),overā start_ARG r end_ARGk , āitalic_i = sign ( ( overā start_ARG Ļ end_ARGkā² )i ā ( overā start_ARG Ļ end_ARGāā² )i ) , where signā¢(x)signsign(x)sign ( x ) is the sign function that returns ā1,0,1101-1,0,1- 1 , 0 , 1 depending on whether x is negative, 00 or positive, respectively. Remark 16. Note that as we care about the existence of a linear representation rather than a learnable formula for it, the readoff doesnāt have to depend continuously on the parameters. However having continuous dependence is also possible; in particular, it would also be reasonable to make the dependence continuous; indeed, the readoff vector with coordinates akiā aāiā superscriptsubscriptsuperscriptsubscriptāa_k^iĀ· a_ ^iaitalic_kitalic_i ā aroman_āitalic_i (same as for quadratic activations) would also work, with an alternative normalization; the important property of the readoff function is that it is odd in each of the x and y coordinates independently, and that it does not have wild asymptotic behavior. We use the discrete āsignā function for the readoff for convenience. The crucial observation is the following simple lemma. For a given input x,x,x , let aāā¢(x)ā a(x)overā start_ARG a end_ARG ( x ) be the corresponding embedding. Let aā(x)Ī:=aā(x)āfk(x)Ļākāfā(x)]Ļāā a(x) := a(x)-f_k(x) Ļ_k-f_ (x)] Ļ% _ overā start_ARG a end_ARG ( x )Ī := overā start_ARG a end_ARG ( x ) - fitalic_k ( x ) overā start_ARG Ļ end_ARGk - froman_ā ( x ) ] overā start_ARG Ļ end_ARGā (the āhatā notation denotes that we are āskippingā information about features k and ā ā in the embedded input aāā¢(x);ā a(x);overā start_ARG a end_ARG ( x ) ; it linearly represents the modification of the boolean vector ā¢(x) b(x)italic_b ( x ) that zeroes out the kkkth and ā āth coordinates). Lemma 17. Suppose Φ,k,ā,Φā ,k, ,Φ , k , ā , and bitalic_b are fixed. Then in the context of the theorem above, the unnormalized readoff k,āuā¢(ā³wā¢(Φā¢()))subscriptsuperscriptāsubscriptā³Ī¦R^u_k, (M_w( ( b)))Ritalic_uitalic_k , ā ( Mitalic_w ( Φ ( italic_b ) ) ) is a sum of d i.i.d. variables of the form Fā¢(xi,yi,zi),subscriptsubscriptsubscriptF(x_i,y_i,z_i),F ( xitalic_i , yitalic_i , zitalic_i ) , where Fā¢(x,y,z)=signā¢(x)ā¢signā¢(y)ā¢ReLUā¢(kā¢(x)ā¢x+āā¢(x)ā¢y+z)signsignReLUsubscriptsubscriptāF(x,y,z)=sign(x)sign(y)ReLU( b_k(x)x+% b_ (x)y+z)F ( x , y , z ) = sign ( x ) sign ( y ) ReLU ( italic_bitalic_k ( x ) x + italic_broman_ā ( x ) y + z ) and the triple (xi,yi,zi)subscriptsubscriptsubscript(x_i,y_i,z_i)( xitalic_i , yitalic_i , zitalic_i ) is drawn from the distribution ā¢(0,Ī£)0Ī£N(0, )N ( 0 , Ī£ ) where Ī£=(āĻākā22Ļākā ĻāāĻākā xāĪĻākā ĻāāāĻāāā22Ļāāā xāĪĻākā xāĪĻāāā xāĪāxāĪā2).Ī£matrixsuperscriptsubscriptnormsubscriptāitalic-Ļ22ā subscriptāitalic-Ļsubscriptāitalic-Ļāā subscriptāitalic-ĻsuperscriptāĪā subscriptāitalic-Ļsubscriptāitalic-Ļāsuperscriptsubscriptnormsubscriptāitalic-Ļā22ā subscriptāitalic-ĻāsuperscriptāĪā subscriptāitalic-ĻsuperscriptāĪā subscriptāitalic-ĻāsuperscriptāĪsuperscriptnormsuperscriptāĪ2 = pmatrix|| Ļ_k||_2^2& Ļ_kĀ· Ļ% _ & Ļ_kĀ· x \\ Ļ_kĀ· Ļ_ &|| Ļ_ ||_2^2& Ļ_% Ā· x \\ Ļ_kĀ· x & Ļ_ Ā· x &|% | x ||^2 pmatrix.Ī£ = ( start_ARG start_ROW start_CELL | | overā start_ARG Ļ end_ARGk | |22 end_CELL start_CELL overā start_ARG Ļ end_ARGk ā overā start_ARG Ļ end_ARGā end_CELL start_CELL overā start_ARG Ļ end_ARGk ā overā start_ARG x end_ARGĪ end_CELL end_ROW start_ROW start_CELL overā start_ARG Ļ end_ARGk ā overā start_ARG Ļ end_ARGā end_CELL start_CELL | | overā start_ARG Ļ end_ARGā | |22 end_CELL start_CELL overā start_ARG Ļ end_ARGā ā overā start_ARG x end_ARGĪ end_CELL end_ROW start_ROW start_CELL overā start_ARG Ļ end_ARGk ā overā start_ARG x end_ARGĪ end_CELL start_CELL overā start_ARG Ļ end_ARGā ā overā start_ARG x end_ARGĪ end_CELL start_CELL | | overā start_ARG x end_ARGĪ | |2 end_CELL end_ROW end_ARG ) . Proof. Write xi=(Ļākā²)i,yi=(Ļāāā²)i,zi=Wā¢aāā¢(x)Īformulae-sequencesubscriptsubscriptsuperscriptsubscriptāitalic-Ļā²formulae-sequencesubscriptsubscriptsuperscriptsubscriptāitalic-Ļāā²subscriptāsuperscriptĪx_i=( Ļ_k )_i,y_i=( Ļ_ )_i,z_% i=W a(x) xitalic_i = ( overā start_ARG Ļ end_ARGkā² )i , yitalic_i = ( overā start_ARG Ļ end_ARGāā² )i , zitalic_i = W overā start_ARG a end_ARG ( x )Ī be the neuronal coordinates of the corresponding activations. Then (Rk,āu)i=signā¢(xi)ā¢signā¢(yi)subscriptsuperscriptsubscriptāsignsubscriptsignsubscript(R_k, ^u)_i=sign(x_i)sign(y_i)( Ritalic_k , āitalic_u )i = sign ( xitalic_i ) sign ( yitalic_i ) and ā³wuā¢(aāā¢(x))i=ReLUā¢(Wā¢(aāā¢(x))i)=ReLUā¢(ā¢(x)kā¢xi+ā¢(y)kā¢yi+zi).superscriptsubscriptā³subscriptāReLUsubscriptāReLUsubscriptsubscriptsubscriptsubscriptsubscriptM_w^u( a(x))_i=ReLU (W( a(x))_i% )=ReLU( b(x)_kx_i+ b(y)_ky_i+z_% i).Mitalic_witalic_u ( overā start_ARG a end_ARG ( x ) )i = ReLU ( W ( overā start_ARG a end_ARG ( x ) )i ) = ReLU ( italic_b ( x )k xitalic_i + italic_b ( y )k yitalic_i + zitalic_i ) . It remains to show that (xi,yi,zi)subscriptsubscriptsubscript(x_i,y_i,z_i)( xitalic_i , yitalic_i , zitalic_i ) are drawn according to the Gaussian distribution ā¢(0,Ī£).0Ī£N(0, ).N ( 0 , Ī£ ) . This follows from the standard result that applying a Gaussian-distributed matrix with entries in ā¢(0,1/d)01N(0,1/d)N ( 0 , 1 / d ) to a collection of vectors vā1,ā¦,vānsubscriptā1ā¦subscriptā v_1,ā¦, v_noverā start_ARG v end_ARG1 , ⦠, overā start_ARG v end_ARGn is distributed as a (possibly singular) Gaussian with PSD covariance matrix Ī£kā¢ā=vākā vāā.subscriptĪ£āā subscriptāsubscriptāā _k = v_kĀ· v_ .Ī£italic_k ā = overā start_ARG v end_ARGk ā overā start_ARG v end_ARGā . ā Now our interference bounds imply that the triple (xi,yi,zi+kā¢xi+āā¢yi)subscriptsubscriptsubscriptsubscriptsubscriptsubscriptāsubscript(x_i,y_i,z_i+ b_kx_i+ b_ y_i)( xitalic_i , yitalic_i , zitalic_i + italic_bitalic_k xitalic_i + italic_broman_ā yitalic_i ) are distributed according to a matrix of the form (1+Oā¢(μ)Oā¢(μ)k+Oā¢(ε)Oā¢(μ)1+Oā¢(μ)ā+Oā¢(ε)k+Oā¢(ε)ā+Oā¢(ε)r2+O~ā¢(s/d).)matrix1subscript1subscriptāsubscriptsubscriptāsuperscript2~ pmatrix1+O(μ)&O(μ)& b_k+O( )\\ O(μ)&1+O(μ)& b_ +O( )\\ b_k+O( )& b_ +O( )&r^2+% O(s/ d). pmatrix( start_ARG start_ROW start_CELL 1 + O ( μ ) end_CELL start_CELL O ( μ ) end_CELL start_CELL italic_bitalic_k + O ( ε ) end_CELL end_ROW start_ROW start_CELL O ( μ ) end_CELL start_CELL 1 + O ( μ ) end_CELL start_CELL italic_broman_ā + O ( ε ) end_CELL end_ROW start_ROW start_CELL italic_bitalic_k + O ( ε ) end_CELL start_CELL italic_broman_ā + O ( ε ) end_CELL start_CELL r2 + over~ start_ARG O end_ARG ( s / square-root start_ARG d end_ARG ) . end_CELL end_ROW end_ARG ) Let sā²:=r2ākāāassignsuperscriptā²2subscriptsubscriptās :=r^2- b_k- b_ sā² := r2 - italic_bitalic_k - italic_broman_ā and rā²:=sā².assignsuperscriptā²r := s .rā² := square-root start_ARG sā² end_ARG . Now o.n.p., we can assume that xi,yiāO~ā¢(1)subscriptsubscript~1x_i,y_iā O(1)xitalic_i , yitalic_i ā over~ start_ARG O end_ARG ( 1 ) and ziāO~ā¢(r).subscript~z_iā O(r).zitalic_i ā over~ start_ARG O end_ARG ( r ) . Since F grows linearly, we see that Fā¢(xi,yi,zi)āO~ā¢(r)subscriptsubscriptsubscript~F(x_i,y_i,z_i)ā O(r)F ( xitalic_i , yitalic_i , zitalic_i ) ā over~ start_ARG O end_ARG ( r ) o.n.p. We can now apply Bernsteinās inequality 29 to get that, o.n.p., āi=1dFā¢(xi,yi,zi)=dā¢[(x,y,z)ā¼ā¢(0,Ī£)ā¢fā¢(x,y,z)+O~ā¢(r/d)].superscriptsubscript1subscriptsubscriptsubscriptdelimited-[]subscriptsimilar-to0Ī£~ _i=1^dF(x_i,y_i,z_i)=d[E_(x,y,z) (0,% )f(x,y,z)+ O(r/ d)].āi = 1d F ( xitalic_i , yitalic_i , zitalic_i ) = d [ blackboard_E( x , y , z ) ā¼ N ( 0 , Ī£ ) f ( x , y , z ) + over~ start_ARG O end_ARG ( r / square-root start_ARG d end_ARG ) ] . Now since r=O~ā¢(s)~r= O( s)r = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG ) and |(rā²)2ār2|superscriptsuperscriptā²2superscript2|(r )^2-r^2|| ( rā² )2 - r2 | is an integer equal to at most 2222 (the sum of two feature readoffs of aā aoverā start_ARG a end_ARG), the error term in the Bernstein inequality is bounded by O~ā¢(rā²/d).~superscriptā² O(r / d).over~ start_ARG O end_ARG ( rā² / square-root start_ARG d end_ARG ) . It remains to estimate the expectation E:=(x,y,z)ā¼ā¢(0,Ī£)ā¢Fā¢(x,y,zĀÆ).assignsubscriptsimilar-to0Σ¯E:=E_(x,y,z) (0, )F(x,y, z).E := blackboard_E( x , y , z ) ā¼ N ( 0 , Ī£ ) F ( x , y , overĀÆ start_ARG z end_ARG ) . Assume that ā¢(x) b(x)italic_b ( x ) has nonzero coordinates other than at k,ā,āk, ,k , ā , so that rā²=Ī©ā¢(1)superscriptā²Ī©1r = (1)rā² = Ī© ( 1 ) (the case where ā¢(x) b(x)italic_b ( x ) only has nonzero coordinates on a subset of k,ā\k, \ k , ā can be handled similarly and more easily). In this case, we add a new notation Fā²ā¢(x,y,zā²):=Fā¢(x,y,sā²ā¢zā²)=signā¢(x)ā¢signā¢(y)ā¢ReLUā¢(rā²ā¢zĀÆ+kā¢x+āā¢y),assignsuperscriptā²superscriptā²signsignReLUsuperscriptā²ĀÆsubscriptsubscriptāF (x,y,z ):=F(x,y,s z )=sign(x)% sign(y)ReLU(r z+ b_kx+ b_% y),Fā² ( x , y , zā² ) := F ( x , y , sā² zā² ) = sign ( x ) sign ( y ) ReLU ( rā² overĀÆ start_ARG z end_ARG + italic_bitalic_k x + italic_broman_ā y ) , where the third input of F is rescaled to make the distribution on (x,y,zā²)superscriptā²(x,y,z )( x , y , zā² ) closer to the identity Gaussian. Let ΣⲠbe the distribution on (x,y,zā²),superscriptā²(x,y,z ),( x , y , zā² ) , given by Ī£ā²=diagā¢(1,1,(rā²)ā1)ā¢Ī£ā¢diagā¢(1,1,(rā²)ā1).superscriptĪ£ā²diag11superscriptsuperscriptā²1Ī£diag11superscriptsuperscriptā²1 =diag(1,1,(r )^-1) (1,1,(r^% )^-1).ΣⲠ= diag ( 1 , 1 , ( rā² )- 1 ) Ī£ diag ( 1 , 1 , ( rā² )- 1 ) . Since the two differ by a reparametrization, the expectation of Fā² on ā¢(0,Ī£ā²)0superscriptĪ£ā²N(0, )N ( 0 , ΣⲠ) is equal to the expectation of F on ā¢(0,Ī£).0Ī£N(0, ).N ( 0 , Ī£ ) . Let Xā²=ā¢(0,Ī£ā²)superscriptā²0superscriptĪ£ā²X =N(0, )Xā² = N ( 0 , ΣⲠ) and X0ā²=ā¢(0,Ī),superscriptsubscript0ā²0ĪX_0 =N(0, ),X0ā² = N ( 0 , Ī ) , both on ā3.superscriptā3R^3.blackboard_R3 . Our various interference bounds imply that the difference Ī£āĪΣΠ- Ī£ - Ī is bounded by Ī“:=O~ā¢(maxā”(sd,εs,μ)).assign~Ī“:= O ( ( s d, % s,μ)).Ī“ := over~ start_ARG O end_ARG ( max ( divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG , divide start_ARG ε end_ARG start_ARG square-root start_ARG s end_ARG end_ARG , μ ) ) . This means that the total variational difference between X and Xā² is bounded by Oā¢(Ī“).O(Ī“).O ( Ī“ ) . Now the expectation Fā² on X,X0subscript0X,X_0X , X0 are not affected, up to negligible terms, by (x,y,z)(x,y,z)( x , y , z ) outside some constant O~ā¢(1),~1 O(1),over~ start_ARG O end_ARG ( 1 ) , and here Fā² is bounded by O~ā¢(r).~ O(r).over~ start_ARG O end_ARG ( r ) . Thus we have |(x,y,zā²)ā¼Xā¢Fā²ā¢(x,y,zā²)ā(x,y,zā²)ā¼X0ā¢Fā²ā¢(x,y,zā²)|=O~ā¢(rā¢Ī“).subscriptsimilar-tosuperscriptā²superscriptā²subscriptsimilar-tosuperscriptā²subscript0superscriptā²~|E_(x,y,z ) XF (x,y,z )-E_(x,% y,z ) X_0F (x,y,z )|= O(rĪ“).| blackboard_E( x , y , zā² ) ā¼ X Fā² ( x , y , zā² ) - blackboard_E( x , y , zā² ) ā¼ X start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT Fā² ( x , y , zā² ) | = over~ start_ARG O end_ARG ( r Ī“ ) . It remains to estimate the mean E0:=(x,y,zā²)ā¼X0ā²ā¢Fā²ā¢(x,y,zā²)=(x,y,z)ā¼X0ā¢Fā¢(x,y,z),assignsubscript0subscriptsimilar-tosuperscriptā²subscriptsuperscriptā²0superscriptā²subscriptsimilar-tosubscript0E_0:=E_(x,y,z ) X _0F (x,y,z^% )=E_(x,y,z) X_0F(x,y,z),E0 := blackboard_E( x , y , zā² ) ā¼ Xā² start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT Fā² ( x , y , zā² ) = blackboard_E( x , y , z ) ā¼ X start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT F ( x , y , z ) , where X0=ā¢(0,diagā¢(1,1,(dā²)2)).subscript00diag11superscriptsuperscriptā²2X_0=N(0,diag(1,1,(d )^2)).X0 = N ( 0 , diag ( 1 , 1 , ( dā² )2 ) ) . Up to symmetry, we have three cases depending on the k and ā ā coordinates of =ā¢(x) b= b(x)italic_b = italic_b ( x ) associated to our input: ⢠k=ā=0,subscriptsubscriptā0 b_k= b_ =0,italic_bitalic_k = italic_broman_ā = 0 , ⢠k=0,ā=1,formulae-sequencesubscript0subscriptā1 b_k=0, b_ =1,italic_bitalic_k = 0 , italic_broman_ā = 1 , ⢠k=ā=1.subscriptsubscriptā1 b_k= b_ =1.italic_bitalic_k = italic_broman_ā = 1 . The expectation calculation in the first two cases are trivial: if ksubscript b_kitalic_bitalic_k, is zero, then each F is odd in the x, resp., y coordinate, so since the distribution X0subscript0X_0X0 is independent Gaussian, the mean is E0=0.subscript00E_0=0.E0 = 0 . It remains to consider the case k=ā=1,subscriptsubscriptā1 b_k= b_ =1,italic_bitalic_k = italic_broman_ā = 1 , i.e., the āinterestingā case where ā§(k,ā)=1.subscriptsubscriptā1 ( b_k, b_ )=1.ā§ ( italic_bitalic_k , italic_broman_ā ) = 1 . We write down the integral expression E0:=(x,y,z)ā¼X0ā¢Qiā¢(x,y,z)=ā«signā¢(x)ā¢signā¢(y)ā¢ReLUā¢(x+y+z)ā¢p0ā¢(x,y,z)ā¢xā¢yā¢z,assignsubscript0subscriptsimilar-tosubscript0subscriptsignsignReLUsubscript0differential-ddifferential-ddifferential-d E_0:=E_(x,y,z) X_0Q_i(x,y,z)= % (x)sign(y)ReLU(x+y+z)p_0(x,y,z)dxdydz,E0 := blackboard_E( x , y , z ) ā¼ X start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT Qitalic_i ( x , y , z ) = ā« sign ( x ) sign ( y ) ReLU ( x + y + z ) p0 ( x , y , z ) d x d y d z , (5) for p0ā¢(x,y,z)subscript0p_0(x,y,z)p0 ( x , y , z ) the pdf of X0=ā¢(0,diagā¢(1,1,sā²)).subscript00diag11superscriptā²X_0=N(0,diag(1,1,s )).X0 = N ( 0 , diag ( 1 , 1 , sā² ) ) . We would like to show this value is positive and bound it from below (to show eventually that the mean in the CLT dominates the errors). We use x,yx,yx , y-symmetry to rewrite the integral as A=2ā¢ā«xā¤ysignā¢(x)ā¢signā¢(y)ā¢ReLUā¢(x+y+z)ā¢p0ā¢(x,y,z).2subscriptsignsignReLUsubscript0A=2 _x⤠ysign(x)sign(y)ReLU(x+y+z)p_0(x,y,z).A = 2 ā«x ⤠y sign ( x ) sign ( y ) ReLU ( x + y + z ) p0 ( x , y , z ) . Since the independent Gaussian p0ā¢(x,y,z)subscript0p_0(x,y,z)p0 ( x , y , z ) is symmetric in the x and y coordinates, we can collect ±x,±yplus-or-minusplus-or-minus± x,± y± x , ± y terms together to write E0=2ā¢ā«0ā¤xā¤ypā¢(x,y,z)ā¢(ReLUā¢(x+y+z)āReLUā¢(xāy+z)āReLUā¢(āx+y+z)+ReLUā¢(x+y+z)).subscript02subscript0ReLUReLUReLUReLUE_0=2 _0⤠x⤠yp(x,y,z) (ReLU(x+y+z)-ReLU(x% -y+z)-ReLU(-x+y+z)+ReLU(x+y+z) ).E0 = 2 ā«0 ⤠x ⤠y p ( x , y , z ) ( ReLU ( x + y + z ) - ReLU ( x - y + z ) - ReLU ( - x + y + z ) + ReLU ( x + y + z ) ) . We split the domain up further into five terms, E0=Aā+Aā+A0+A+ā¢A++,subscript0superscriptabsentsuperscriptsuperscript0superscriptsuperscriptabsentE_0=A^--+A^-+A^0+A^+A^++,E0 = A- - + A- + A0 + A+ A+ + , into regions on which the relus are constantly 00 or nonnegative linear functions: Aāsuperscriptabsent A^--A- - = == 2ā¢ā«0ā¤xā¤y,zā¤āxāyp0ā¢(x,y,z)ā¢xā¢yā¢zā 02subscriptformulae-sequence0ā subscript0differential-ddifferential-ddifferential-d0 2 _0⤠x⤠y,zā¤-x-yp_0(x,y,z)dxdydzĀ· 02 ā«0 ⤠x ⤠y , z ⤠- x - y p0 ( x , y , z ) d x d y d z ā 0 Aāsuperscript A^-A- = == 2ā¢ā«0ā¤xā¤y,āxāyā¤zā¤xāyp0ā¢(x,y,z)ā¢(x+y+z)2subscriptformulae-sequence0subscript0 2 _0⤠x⤠y,-x-y⤠z⤠x-yp_0(x,y,z)(x+y+z)2 ā«0 ⤠x ⤠y , - x - y ⤠z ⤠x - y p0 ( x , y , z ) ( x + y + z ) A0superscript0 A^0A0 = == 2ā¢ā«0ā¤xā¤y,xāyā¤zā¤yāxp0ā¢(x,y,z)ā¢xā¢yā¢zā¢((x+y+z)ā(āx+y+z))2subscriptformulae-sequence0subscript0differential-ddifferential-ddifferential-d 2 _0⤠x⤠y,x-y⤠z⤠y-xp_0(x,y,z)dxdydz\, % ((x+y+z)-(-x+y+z) )2 ā«0 ⤠x ⤠y , x - y ⤠z ⤠y - x p0 ( x , y , z ) d x d y d z ( ( x + y + z ) - ( - x + y + z ) ) = == 2ā¢ā«ā¦p0ā¢(x,y,z)ā¢xā¢yā¢zā¢(2ā¢x)2subscriptā¦subscript0differential-ddifferential-ddifferential-d2 2 _ā¦p_0(x,y,z)dxdydz\,(2x)2 ā«ā¦ p0 ( x , y , z ) d x d y d z ( 2 x ) A+superscript A^+A+ = == 2ā¢ā«0ā¤xā¤y,yāxā¤zā¤x+yp0ā¢(x,y,z)ā¢xā¢yā¢zā¢(x+y+z)ā(āx+y+z)ā(xāy+z)2subscriptformulae-sequence0subscript0differential-ddifferential-ddifferential-d 2 _0⤠x⤠y,y-x⤠z⤠x+yp_0(x,y,z)dxdydz\,(x+y+% z)-(-x+y+z)-(x-y+z)2 ā«0 ⤠x ⤠y , y - x ⤠z ⤠x + y p0 ( x , y , z ) d x d y d z ( x + y + z ) - ( - x + y + z ) - ( x - y + z ) = == 2ā¢ā«ā¦p0ā¢(x,y,z)ā¢xā¢yā¢zā¢(x+yāz)2subscriptā¦subscript0differential-ddifferential-ddifferential-d 2 _ā¦p_0(x,y,z)dxdydz\, (x+y-z )2 ā«ā¦ p0 ( x , y , z ) d x d y d z ( x + y - z ) A++superscriptabsent A^++A+ + = == 2ā¢ā«0ā¤xā¤y,zā„x+yp0ā¢(x,y,z)ā¢xā¢yā¢zā¢((x+y+z)ā(āx+y+z)ā(xāy+z)+(āxāy+z))2subscriptformulae-sequence0subscript0differential-ddifferential-ddifferential-d 2 _0⤠x⤠y,zā„ x+yp_0(x,y,z)dxdydz\, ((x+y+z% )-(-x+y+z)-(x-y+z)+(-x-y+z) )2 ā«0 ⤠x ⤠y , z ā„ x + y p0 ( x , y , z ) d x d y d z ( ( x + y + z ) - ( - x + y + z ) - ( x - y + z ) + ( - x - y + z ) ) = == 0.0 0.0 . Note in particular that each term above is nonnegative on its domain (for A+,superscriptA^+,A+ , this is because the domain includes the inequality zā¤x+yz⤠x+yz ⤠x + y). Thus in particular, Eā„A0.superscript0Eā„ A^0.E ā„ A0 . Since the integrand is positive, we can get a lower bound by restricting the domain: A0ā„2ā¢ā«xā¤1,yā„2,ā1ā¤zā¤12ā¢p0ā¢(x,y,z)ā¢xā¢yā¢z,superscript02subscriptformulae-sequence1formulae-sequence2112subscript0differential-ddifferential-ddifferential-dA^0ā„ 2 _x⤠1,yā„ 2,-1⤠z⤠12p_0(x,y,z)dxdydz,A0 ā„ 2 ā«x ⤠1 , y ā„ 2 , - 1 ⤠z ⤠1 2 p0 ( x , y , z ) d x d y d z , using that the integrand is 2ā¢xā„2.222xā„ 2.2 x ā„ 2 . This is, equivalently, twice the probability that |x|ā„1,|y|ā„2,|z|ā¤1,formulae-sequence1formulae-sequence21|x|ā„ 1,|y|ā„ 2,|z|⤠1,| x | ā„ 1 , | y | ā„ 2 , | z | ⤠1 , for (x,y,z)(x,y,z)( x , y , z ) drawn from p0ā¢(x,y,z)=Ļ0,1ā¢(x)ā¢Ļ0,1ā¢(y)ā¢Ļ0,r2ā2ā¢(z).subscript0subscript01subscript01subscript0superscript22p_0(x,y,z)= _0,1(x) _0,1(y) _0,r^2-2(z).p0 ( x , y , z ) = Ļ0 , 1 ( x ) Ļ0 , 1 ( y ) Ļ0 , r2 - 2 ( z ) . By independence of p0,subscript0p_0,p0 , this is a product of 3333 terms. The probability distributions on x,yx,yx , y are fixed unit Gaussians, so the corresponding terms are Oā¢(1),1O(1),O ( 1 ) , and so the mean has (up to an Oā¢(1)1O(1)O ( 1 ) constant) the same asymptotic as the third term, which is Pzā¼Ļ0,r2ā2ā¢(|z|<1)=Oā¢(1/r)=Ī~ā¢(1/s).subscriptsimilar-tosubscript0superscript2211~Ī1P_z _0,r^2-2(|z|<1)=O(1/r)= (1/ s).Pitalic_z ā¼ Ļ start_POSTSUBSCRIPT 0 , r2 - 2 end_POSTSUBSCRIPT ( | z | < 1 ) = O ( 1 / r ) = over~ start_ARG Ī end_ARG ( 1 / square-root start_ARG s end_ARG ) . The Bernstein bound applied to d i.i.d. such variables now gives us o.n.p. āi=1dFā¢(xi,yi,zi)(xi,yi,zi)ā¼X0=dā E0+dā¢O~ā¢(r).superscriptsubscript1subscriptsubscriptsubscriptsubscriptsimilar-tosubscriptsubscriptsubscriptsubscript0ā subscript0~ _i=1^dF(x_i,y_i,z_i)_(x_i,y_i,z_i) X_0=dĀ· E_0% + d O(r).āi = 1d F ( xitalic_i , yitalic_i , zitalic_i )( x start_POSTSUBSCRIPT i , yitalic_i , zitalic_i ) ā¼ X0 end_POSTSUBSCRIPT = d ā E0 + square-root start_ARG d end_ARG over~ start_ARG O end_ARG ( r ) . Incorporating error terms, we get rāk,āuā¢(ā³wuā¢(aāā¢(x)))=dā E0+dā¢O~ā¢(r)+dā¢O~ā¢(rā¢Ī“).superscriptsubscriptāāsuperscriptsubscriptā³āā subscript0~~ r_k, ^u(M_w^u( a(x)))=dĀ· E_0+ d% O(r)+d O(rĪ“).overā start_ARG r end_ARGk , āitalic_u ( Mitalic_witalic_u ( overā start_ARG a end_ARG ( x ) ) ) = d ā E0 + square-root start_ARG d end_ARG over~ start_ARG O end_ARG ( r ) + d over~ start_ARG O end_ARG ( r Ī“ ) . We now normalize: ā³wā¢(aā):=ā³wuā¢(aā)dā¢E0assignsubscriptā³āsuperscriptsubscriptā³āsubscript0 M_w( a):= M_w^u( a)% dE_0Mitalic_w ( overā start_ARG a end_ARG ) := divide start_ARG Mitalic_witalic_u ( overā start_ARG a end_ARG ) end_ARG start_ARG square-root start_ARG d end_ARG E0 end_ARG (6) rāk,ā:=rāk,āud.assignsubscriptāāsuperscriptsubscriptāā r_k, := r_k, ^u d.overā start_ARG r end_ARGk , ā := divide start_ARG overā start_ARG r end_ARGk , āitalic_u end_ARG start_ARG square-root start_ARG d end_ARG end_ARG . (7) Then if fkā¢(x)ā§fāā¢(x)=1,subscriptsubscriptā1f_k(x) f_ (x)=1,fitalic_k ( x ) ā§ froman_ā ( x ) = 1 , then (o.n.p.) rāk,āā¢(x)=1+O~ā¢(r)d+O~ā¢rā¢Ī“.subscriptāā1~~ r_k, (x)=1+ O(r) d+ OrĪ“.overā start_ARG r end_ARGk , ā ( x ) = 1 + divide start_ARG over~ start_ARG O end_ARG ( r ) end_ARG start_ARG square-root start_ARG d end_ARG end_ARG + over~ start_ARG O end_ARG r Ī“ . Alternatively if fkā¢(x)ā§fāā¢(x)=0,subscriptsubscriptā0f_k(x) f_ (x)=0,fitalic_k ( x ) ā§ froman_ā ( x ) = 0 , the expectation is zero and we are left with the error term, rāk,āā¢(x)=O~ā¢(r)d+O~ā¢rā¢Ī“subscriptāā~~ r_k, (x)= O(r) d+ Or ā start_ARG r end_ARGk , ā ( x ) = divide start_ARG over~ start_ARG O end_ARG ( r ) end_ARG start_ARG square-root start_ARG d end_ARG end_ARG + over~ start_ARG O end_ARG r Ī“ The theorem follows. ā D.3 Norm-balancer network In this section, we prove a technical result that was needed in the previous section. Namely, at one point we assumed that the norm of our inputs aā0ā¢(x)subscriptā0 a_0(x)overā start_ARG a end_ARG0 ( x ) are (o.n.p., and up to a multiplicative error of 1+O~ā¢(1d)1~11+ O( 1 d)1 + over~ start_ARG O end_ARG ( divide start_ARG 1 end_ARG start_ARG square-root start_ARG d end_ARG end_ARG )) equal to a specific value Ī»,Ī»,Ī» , which is related to the sparsity by a bound of the form Ī»=O~ā¢(s).~Ī»= O( s).Ī» = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG ) . It is not difficult to guarantee this if we know the exact sparsity of the sparse boolean vector seā¢xā¢aā¢cā¢t=ā0ā1.subscriptsubscriptnormsubscript01s_exact=|| b_0||_1.sitalic_e x a c t = | | italic_b0 | |1 . However, in the process of chaining together multiple boolean circuits, we would like to allow the exact sparsity of intermediate layers to vary (so long as it is bounded by s), even if the exact sparsity of the input layer is fixed. In this section we give a two-layer neural network mechanism that allows us to circumvent this issue by modifying all inputs aā0ā¢(x)subscriptā0 a_0(x)overā start_ARG a end_ARG0 ( x ) to have roughly the same norm, equal to some specific value s0=O~ā¢s.subscript0~ s_0= O s.square-root start_ARG s0 end_ARG = over~ start_ARG O end_ARG square-root start_ARG s end_ARG . We note that while it seems plausible that real neural networks share properties in common with the past two artificial neural nets we constructed (error correction and universal AND), the neural net constructed here Theorem 18. Let s0=O~ā¢(d)subscript0~s_0= O( d)s0 = over~ start_ARG O end_ARG ( square-root start_ARG d end_ARG ) be a sparsity parameter. There exists a 2-layer neural net balances0:ādāād:subscriptbalancesubscript0āsuperscriptāsuperscriptābalance_s_0:R^d ^dbalanceitalic_s start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT : blackboard_Rd ā blackboard_Rd depending on random parameters, with hidden layers of width Oā¢(d),O(d),O ( d ) , with the following property. Suppose that Ļā1,ā¦,Ļādsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļ Ļ_1,ā¦, Ļ_doverā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGd is a collection of features of length <2,absent2<2,< 2 , and aāxsubscriptā a_xoverā start_ARG a end_ARGx is an input satisfying |aāx|<s0.subscriptāsubscript0| a_x|< s_0.| overā start_ARG a end_ARGx | < square-root start_ARG s0 end_ARG . Then 1. |balanceā¢(aāx)|=s0ā (1+O~ā¢(1/d))balancesubscriptāā subscript01~1|balance( a_x)|= s_0Ā·(1+ O(1/ d))| balance ( overā start_ARG a end_ARGx ) | = square-root start_ARG s0 end_ARG ā ( 1 + over~ start_ARG O end_ARG ( 1 / square-root start_ARG d end_ARG ) ) 2. aāxā Ļākābalanceā¢(aāx)ā Ļāk=O~ā¢(s0d).ā subscriptāsubscriptāitalic-Ļā balancesubscriptāsubscriptāitalic-Ļ~subscript0 a_xĀ· Ļ_k-balance( a_x)Ā· Ļ_k% = O( s_0 d).overā start_ARG a end_ARGx ā overā start_ARG Ļ end_ARGk - balance ( overā start_ARG a end_ARGx ) ā overā start_ARG Ļ end_ARGk = over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG s0 end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) . Proof. Let WāMatdĆdsubscriptMatW _dĆ dW ā Matitalic_d Ć d be a random square matrix, with entries drawn independently from Ļā¢(0,1/d2).01superscript2Ļ(0,1/d^2).Ļ ( 0 , 1 / d2 ) . Define the function Nā¢(aā)=āi=1dReLUā¢(Wā¢x)i.āsuperscriptsubscript1ReLUsubscriptN( a)= _i=1^dReLU(Wx)_i.N ( overā start_ARG a end_ARG ) = āi = 1d ReLU ( W x )i . Then Nā¢(aā)āN( a)N ( overā start_ARG a end_ARG ) is a sum of d i.i.d. random variables of the form Ni=ReLUā¢(x)ā£xā¼Ļā¢(0,|aā|/d).subscriptconditionalReLUsimilar-to0āN_i=ReLU(x) x Ļ(0,| a|/d).Nitalic_i = ReLU ( x ) ⣠x ā¼ Ļ ( 0 , | overā start_ARG a end_ARG | / d ) . Applying arguments similar to those used in the proof of the previous theorem, we see that NisubscriptN_iNitalic_i has norm cā |aā|/d,ā ācĀ·| a|/d,c ā | overā start_ARG a end_ARG | / d , for c>00c>0c > 0 the absolute constant c=xā¼Ļā¢(0,1)ā¢ReLUā¢(x)=12ā¢Ļ.subscriptsimilar-to01ReLU12c=E_x Ļ(0,1)ReLU(x)= 12 Ļ.c = blackboard_Ex ā¼ Ļ ( 0 , 1 ) ReLU ( x ) = divide start_ARG 1 end_ARG start_ARG 2 square-root start_ARG Ļ end_ARG end_ARG . The variance of NisubscriptN_iNitalic_i is Oā¢(|aā|2)/d,superscriptā2O(| a|^2)/d,O ( | overā start_ARG a end_ARG |2 ) / d , and NisubscriptN_iNitalic_i is bounded o.n.p. by O~ā¢(|aā|).~ā O(| a|).over~ start_ARG O end_ARG ( | overā start_ARG a end_ARG | ) . Thus Bernsteinās inequality implies that, o.n.p., Nā¢(aā)=āi=1dNi=cā |aā|+O~ā¢(|aā|/d).āsuperscriptsubscript1subscriptā ā~āN( a)= _i=1^dN_i=cĀ·| a|+ O(| a|/ d).N ( overā start_ARG a end_ARG ) = āi = 1d Nitalic_i = c ā | overā start_ARG a end_ARG | + over~ start_ARG O end_ARG ( | overā start_ARG a end_ARG | / square-root start_ARG d end_ARG ) . Now |aā|<s0=O~ā¢(s),āsubscript0~| a|<s_0= O( s),| overā start_ARG a end_ARG | < s0 = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG ) , so Nā¢(aā)=|aā|+O~ā¢(ε).ā~N( a)=| a|+ O( ).N ( overā start_ARG a end_ARG ) = | overā start_ARG a end_ARG | + over~ start_ARG O end_ARG ( ε ) . Let fā¢(y)=s0āy2subscript0superscript2f(y)= s_0-y^2f ( y ) = square-root start_ARG s0 - y2 end_ARG (for |y|ā¤s0subscript0|y|⤠s_0| y | ⤠square-root start_ARG s0 end_ARG), a semicircle of radius s0subscript0 s_0square-root start_ARG s0 end_ARG viewed as a function of a real variable. Define the piecewise-linear function fPā¢Lsubscriptf_PLfitalic_P L given by splitting the semicircle into d equal arcs, and connecting the endpoints of the arcs (extending the first and last arc linearly outside the domain of definition). The difference between the values of f on the endpoints of each arc is bounded by its arclength, which is Oā¢(s0/d).subscript0O( s_0/d).O ( square-root start_ARG s0 end_ARG / d ) . Thus |fā¢(x)āfPā¢Lā¢(x)|=Oā¢(s0/d)subscriptsubscript0|f(x)-f_PL(x)|=O( s_0/d)| f ( x ) - fitalic_P L ( x ) | = O ( square-root start_ARG s0 end_ARG / d ) (in fact, much better asymptotic bounds are possible.) Now fPā¢Lsubscriptf_PLfitalic_P L is a sum of d ReLUs, thus it is a scalar-valued function which can be expressed by a width-d neural net. Now choose a random āapproximately unitā vector vāādsuperscriptāv ^dv ā blackboard_Rd according to the Gaussian vā¼Ļā¢(0,1/d).similar-to01v Ļ(0,1/ d).v ā¼ Ļ ( 0 , 1 / square-root start_ARG d end_ARG ) . Now we define the neural net balanceā¢(aā):=aā+fPā¢Lā¢(Nā¢(aā))ā¢v.assignbalanceāsubscriptābalance( a):= a+f_PL(N( a))v.balance ( overā start_ARG a end_ARG ) := overā start_ARG a end_ARG + fitalic_P L ( N ( overā start_ARG a end_ARG ) ) v . Since both Nā¢(aā)āN( a)N ( overā start_ARG a end_ARG ) and fPā¢Lsubscriptf_PLfitalic_P L can be expressed as width-d neural nets, balancebalancebalancebalance can be expressed as a width-Oā¢(d)O(d)O ( d ) neural net. Now since v is a random vector, we have, o.n.p., vā aā=O~ā¢(|aā|/d)ā ā~āvĀ· a= O(| a|/ d)v ā overā start_ARG a end_ARG = over~ start_ARG O end_ARG ( | overā start_ARG a end_ARG | / square-root start_ARG d end_ARG ) and vā Ļāk=O~ā¢(1d).ā subscriptāitalic-Ļ~1vĀ· Ļ_k= O( 1 d).v ā overā start_ARG Ļ end_ARGk = over~ start_ARG O end_ARG ( divide start_ARG 1 end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) . Since there are at most polynomially-many (in r) features, the ānegligible probablityā exceptions remain negligible when combined over all features. The bound Nā¢(aā)=O~ā¢(s)ā~N( a)= O( s)N ( overā start_ARG a end_ARG ) = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG ) thus implies both bounds in the theorem. ā Let αā¢(x),βā¢(x,y)α(x),β(x,y)α ( x ) , β ( x , y ) be functions. Let W be random and Φ Φ be a matrix of features. Fix k,āā0,ā¦,mā1.ā0ā¦1k, ā\0,ā¦,m-1\.k , ā ā 0 , ⦠, m - 1 . Let ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m be a boolean vector. Let kā¢l=kā¢Ļāk+āā¢Ļāā,subscriptsubscriptsubscriptāitalic-Ļsubscriptāsubscriptāitalic-Ļā b_kl= b_k Ļ_k+ b_ % Ļ_ ,italic_bitalic_k l = italic_bitalic_k overā start_ARG Ļ end_ARGk + italic_broman_ā overā start_ARG Ļ end_ARGā , and ā²=ākā¢ā.superscriptā²subscriptā b = b- b_k .italic_bā² = italic_b - italic_bitalic_k ā . Outside negligible probability, we know that Φā¢(kā¢ā)ā Φā¢(ā²)=O~ā¢(ε).ā ΦsubscriptāΦsuperscriptā²~ ( b_k )Ā· ( b )= O(% ).Φ ( italic_bitalic_k ā ) ā Φ ( italic_bā² ) = over~ start_ARG O end_ARG ( ε ) . This means that if ε=Ī~ā¢(1/d)~Ī1 = (1/ d)ε = over~ start_ARG Ī end_ARG ( 1 / square-root start_ARG d end_ARG ) and we apply a random matrix W then we still have Wā¢Ī¦ā¢(ā²)ā Wā¢Ī¦ā¢(kā¢ā)=O~ā¢(ε)ā Φsuperscriptā²Ī¦subscriptā~W ( b )Ā· W ( b_k )= O( )W Φ ( italic_bā² ) ā W Φ ( italic_bitalic_k ā ) = over~ start_ARG O end_ARG ( ε ) (outside negligible probability). Define xākā¢l=Wā¢Ī¦ā¢(kā¢l)subscriptāΦsubscript x_kl=W ( b_kl)overā start_ARG x end_ARGk l = W Φ ( italic_bitalic_k l ) and xāā²=Wā¢Ī¦ā¢(ā²).superscriptāā²Ī¦superscriptā² x =W ( b ).overā start_ARG x end_ARGā² = W Φ ( italic_bā² ) . Since random matrices are Oā¢(d)O(d)O ( d )-invariant, we can assume WLOG that these are drawn independently and randomly from appropriate Gaussian distributions EXPAND. Specifically, xākā¢lsubscriptā x_kloverā start_ARG x end_ARGk l is drawn from a distribution with variance 2222 and xāā² x overā start_ARG x end_ARGā² is drawn from a distribution with variance Oā¢(s).O(s).O ( s ) . Define ā³wā¢(xā)=αā¢(Wā¢(xā)),subscriptā³āM_w( x)=α(W( x)),Mitalic_w ( overā start_ARG x end_ARG ) = α ( W ( overā start_ARG x end_ARG ) ) , and define Rkā¢āi:=βā¢(Ļāki,Ļāāi).assignsubscriptsuperscriptāsubscriptsuperscriptāitalic-Ļsubscriptsuperscriptāitalic-ĻāR^i_k :=β( Ļ^i_k, Ļ^i_ ).Ritalic_iitalic_k ā := β ( overā start_ARG Ļ end_ARGiitalic_k , overā start_ARG Ļ end_ARGiroman_ā ) . Lemma 19. For suitable choices of a piecewise-linear function α and some function β (both depending on s) we can guarantee that Rk,āā ā³wā¢(Φā¢())=kā§ā+O~ā¢(εout).ā subscriptāsubscriptā³Ī¦subscriptsubscriptā~subscriptoutR_k, Ā·M_w( ( b))= b_k % b_ + O( _out).Ritalic_k , ā ā Mitalic_w ( Φ ( italic_b ) ) = italic_bitalic_k ā§ italic_broman_ā + over~ start_ARG O end_ARG ( εroman_out ) . Proof. As explained above, we can assume that xkā¢āi,(xi)ā²subscriptsuperscriptāsuperscriptsuperscriptā²x^i_k ,(x^i) xitalic_iitalic_k ā , ( xitalic_i )ā² are drawn from independent boolean distributions with variance respectively 2d,sd.2 2d, sd.divide start_ARG 2 end_ARG start_ARG d end_ARG , divide start_ARG s end_ARG start_ARG d end_ARG . Define X=Ļā¢(0,sdā¢I)0X=Ļ(0, sdI)X = Ļ ( 0 , divide start_ARG s end_ARG start_ARG d end_ARG I ) to be the Gaussian variable with variance sd. sd.divide start_ARG s end_ARG start_ARG d end_ARG . Define Īi(x):=α(x+xākā¢āi)āα(x)). _i(x):=α (x+ x^i_k )-α(x) ).Īitalic_i ( x ) := α ( x + overā start_ARG x end_ARGiitalic_k ā ) - α ( x ) ) . Write ā³wĪā¢(yā)i:=Īiā¢(yā).assignsubscriptsubscriptā³ĪsuperscriptāsubscriptĪāM_w_ ( y)^i:= _i( y).Mitalic_wroman_Ī ( overā start_ARG y end_ARG )i := Īitalic_i ( overā start_ARG y end_ARG ) . Then ā³wā¢(xā)=ā³wā¢(xāā²)+Īiā¢(xāā²).subscriptā³āsubscriptā³superscriptāā²subscriptĪsuperscriptāā²M_w( x)=M_w( x )+ _i( % x ).Mitalic_w ( overā start_ARG x end_ARG ) = Mitalic_w ( overā start_ARG x end_ARGā² ) + Īitalic_i ( overā start_ARG x end_ARGā² ) . It remains to prove the following sublemma: Lemma 20. (Outside negligible probability:) Rkā¢āā ā³wā¢(xāā²)=O~ā¢(εout)ā subscriptāsubscriptā³superscriptāā²~subscriptout R_k Ā·M_w( x )= O(% _out)Ritalic_k ā ā Mitalic_w ( overā start_ARG x end_ARGā² ) = over~ start_ARG O end_ARG ( εroman_out ) (8) Rkā¢āā Īiā¢(xāā²)=kā§ā+O~ā¢(εout)ā subscriptāsubscriptĪsuperscriptāā²subscriptsubscriptā~subscriptout R_k Ā· _i( x )= b_k% b_ + O( _out)Ritalic_k ā ā Īitalic_i ( overā start_ARG x end_ARGā² ) = italic_bitalic_k ā§ italic_broman_ā + over~ start_ARG O end_ARG ( εroman_out ) (9) We start with the first expression. We have ⢠xāiā²subscriptāā² x_i overā start_ARG x end_ARGiā² random from Gaussian X, variance s/d.s/d.s / d . ⢠αā¢(xāiā²)superscriptsubscriptāā²Ī±( x_i )α ( overā start_ARG x end_ARGiā² ) random, bounded by B (o.n.p. bound for α on X). ⢠From POV of xā²::superscriptā²absentx :xā² : we know (x,y)(x,y)( x , y ) random Gaussian, variance 1/d.11/d.1 / d . ⢠So Rkā¢lā ā³wā¢(xāā²)ā subscriptsubscriptā³superscriptāā²R_klĀ·M_w( x )Ritalic_k l ā Mitalic_w ( overā start_ARG x end_ARGā² ) is the sum of d samples of βā¢(x,y)ā¢Ī±ā¢(z)β(x,y)α(z)β ( x , y ) α ( z ) for x,y,zx,y,zx , y , z from appropriate Gaussians. ⢠WTS: ±plus-or-minus± symmetric in independent way, variance O~ā¢(εout)/d,~subscriptout O( _out)/d,over~ start_ARG O end_ARG ( εroman_out ) / d , bounded (onp) by O~~ Oover~ start_ARG O end_ARG of stdev (check if this bound correct for Azuma inequality). For this (modelling on quadratic case): choose β to be ±plus-or-minus± symmetric in either coordinate independently, and appropriately bounded. For the second expression, we treat two cases, namely (k,ā)ā(1,1),(0,1).subscriptsubscriptā1101( b_k, b_ )ā\(1,1),(0,1)\.( italic_bitalic_k , italic_broman_ā ) ā ( 1 , 1 ) , ( 0 , 1 ) . We do not need to treat other cases as (1,0)10(1,0)( 1 , 0 ) follows by symmetry and (0,0)00(0,0)( 0 , 0 ) is trivial. Start with (1,1)11(1,1)( 1 , 1 ) case, so kā§ā=1.subscriptsubscriptā1 b_k b_ =1.italic_bitalic_k ā§ italic_broman_ā = 1 . We then have ⢠Want E(β(x,y)Īx,y(z)))E (β(x,y) _x,y(z)) )E ( β ( x , y ) Īitalic_x , y ( z ) ) ) to be 1111. ⢠Above bounded to make Azuma ok (prob enough to check Ī=Oā¢(1)Ī1 =O(1)Ī = O ( 1 ) and use Azuma bounds from previous). Final case, (0,1).01(0,1).( 0 , 1 ) . ⢠Want Eā¢((βā¢(x,y)ā¢Īxā¢(z)))subscriptĪE( (β(x,y) _x(z)) )E ( ( β ( x , y ) Īitalic_x ( z ) ) ) to be 1111. ⢠This follows from ±plus-or-minus± symmetry of β (and bounds as above). ā D.4 Error correction layers Theorem 21. Suppose we are in the context of Appendix A. Then there exists a polylog constant K=Kā¢(d)K=K(d)K = K ( d ) and a single-layer neural net ā³wā¢(x)=v1+W1ā¢ReLUā¢(v0+W0ā¢(x))subscriptā³subscript1subscript1ReLUsubscript0subscript0M_w(x)=v_1+W_1ReLU(v_0+W_0(x))Mitalic_w ( x ) = v1 + W1 ReLU ( v0 + W0 ( x ) ) and a feature matrix Φ(1)āMatdĆmsuperscriptΦ1subscriptMat ^(1) _dĆ mΦ( 1 ) ā Matitalic_d Ć m such that if ε(=ε(0))<Kā¢d1/4m1/2ā¢s1/4,annotatedabsentsuperscript0superscript14superscript12superscript14 (= ^(0))<K d^1/4m^1/2s^1/4,ε ( = ε( 0 ) ) < K divide start_ARG d1 / 4 end_ARG start_ARG m1 / 2 s1 / 4 end_ARG , then for each input x,x,x , o.n.p., the feature Ļāk(1)superscriptsubscriptāitalic-Ļ1 Ļ_k^(1)overā start_ARG Ļ end_ARGk( 1 ) linearly separates the boolean function fksubscriptf_kfitalic_k on the activation aā(1)ā¢(x)=ā³wā¢(x),superscriptā1subscriptā³ a^(1)(x)=M_w(x),overā start_ARG a end_ARG( 1 ) ( x ) = Mitalic_w ( x ) , with error ε(1)=Oā¢(logā”(d)ā sd.) ^(1)=O ( (d)Ā· s d. )ε( 1 ) = O ( log ( d ) ā divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG . end_ARG ) Moreover, we can choose the new feature vectors Ļk(1)superscriptsubscriptitalic-Ļ1 _k^(1)Ļitalic_k( 1 ) such that they have feature interference bounded by μ(1)=O~ā¢(sd).superscript1~μ^(1)= O ( s d ).μ( 1 ) = over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) . Proof. We begin by defining an unnormalized version of the output feature matrix. Define p=1dā¢s,1p= 1 ds,p = divide start_ARG 1 end_ARG start_ARG square-root start_ARG d s end_ARG end_ARG , a probability parameter. Let Φ(1),uāMatmĆdsuperscriptΦ1subscriptMat ^(1),u _mĆ dΦ( 1 ) , u ā Matitalic_m Ć d be a matrix of entries MkisubscriptsuperscriptM^i_kMitalic_iitalic_k drawn uniformly from the ternary random variable pā¢(Mki=1)=p/2pā¢(Mki=ā1)=p/2pā¢(Mki=0)=1āp.casessubscriptsuperscript1absent2subscriptsuperscript1absent2subscriptsuperscript0absent1 casesp(M^i_k=1)&=p/2\\ p(M^i_k=-1)&=p/2\\ p(M^i_k=0)&=1-p cases. start_ROW start_CELL p ( Mitalic_iitalic_k = 1 ) end_CELL start_CELL = p / 2 end_CELL end_ROW start_ROW start_CELL p ( Mitalic_iitalic_k = - 1 ) end_CELL start_CELL = p / 2 end_CELL end_ROW start_ROW start_CELL p ( Mitalic_iitalic_k = 0 ) end_CELL start_CELL = 1 - p end_CELL end_ROW . Let Īā0,ā¦,mĆ0,ā¦,dĪ0ā¦0⦠ā\0,ā¦,m\Ć\0,ā¦,d\Ī ā 0 , ⦠, m Ć 0 , ⦠, d be the set of nonzero values of Φ(1),u.superscriptΦ1 ^(1),u.Φ( 1 ) , u . Note that (o.n.p.), it has size |Ī|=mā¢ds+O~ā¢(1).Ī~1| |=m ds+ O(1).| Ī | = m square-root start_ARG divide start_ARG d end_ARG start_ARG s end_ARG end_ARG + over~ start_ARG O end_ARG ( 1 ) . We think of this as a graph, connecting each feature k to a set of (approximately ds dssquare-root start_ARG divide start_ARG d end_ARG start_ARG s end_ARG end_ARG) neurons it āactivatesā, Īkā1,ā¦,d.subscriptĪ1⦠_kā\1,ā¦,d\.Īitalic_k ā 1 , ⦠, d . We also write Īiā1,ā¦,msubscriptĪ1⦠_iā\1,ā¦,m\Īitalic_i ā 1 , ⦠, m for the set of features connected to the iiith neuron. Let round[0,1]ā¢(x):=3ā¢(ReLUā¢(xā1/3)āReLUā¢(xā2/3)),assignsubscriptround013ReLU13ReLU23round_[0,1](x):=3 (ReLU(x-1/3)-ReLU(x-2/3)% ),round[ 0 , 1 ] ( x ) := 3 ( ReLU ( x - 1 / 3 ) - ReLU ( x - 2 / 3 ) ) , the piecewise-linear function that maps āRblackboard_R to the interval [0,1]01[0,1][ 0 , 1 ] and is non-constant only on the interval (1/3,2/3).1323(1/3,2/3).( 1 / 3 , 2 / 3 ) . Now for any integer, define round[0,a]ā¢(x):=round[0,1]ā¢(x)+round[0,1]ā¢(xā1)+āÆ+round[0,1]ā¢(xāa+1),assignsubscriptround0subscriptround01subscriptround011āÆsubscriptround011round_[0,a](x):=round_[0,1](x)+round_[0,1](x-% 1)+ā¦+round_[0,1](x-a+1),round[ 0 , a ] ( x ) := round[ 0 , 1 ] ( x ) + round[ 0 , 1 ] ( x - 1 ) + ⯠+ round[ 0 , 1 ] ( x - a + 1 ) , and similarly, round[āa,a]ā¢(x):=round[0,a]ā¢(x)āround[0,1]ā¢(āx).assignsubscriptroundsubscriptround0subscriptround01round_[-a,a](x):=round_[0,a](x)-round_[0,1](-% x).round[ - a , a ] ( x ) := round[ 0 , a ] ( x ) - round[ 0 , 1 ] ( - x ) . This is a piecewise-linear āstaircaseā function with the following properties: ⢠round[āa,a]ā¢(x)ā[āa,a]subscriptroundround_[-a,a](x)ā[-a,a]round[ - a , a ] ( x ) ā [ - a , a ] for all xāāx ā blackboard_R and ⢠round[āa,a]ā¢(n+ε)=n,subscriptroundround_[-a,a](n+ )=n,round[ - a , a ] ( n + ε ) = n , whenever nā[āa,a]nā[-a,a]n ā [ - a , a ] is an integer and ε<1/3.13 <1/3.ε < 1 / 3 . Thus for all sufficiently small values x,x,x , the function roundroundroundround will āroundā x to the nearest integer, so long as the nearest integer is less than 1/3131/31 / 3 away; hence its name. By construction, the function round[āa,a]ā¢(x)subscriptroundround_[-a,a](x)round[ - a , a ] ( x ) is a sum of a 4ā¢a44a4 a ReLUs. We will use for our nonlinearity the function roundā¢(x)=round[ā2,2]ā¢(x)::roundsubscriptround22absentround(x)=round_[-2,2](x):round ( x ) = round[ - 2 , 2 ] ( x ) : ā22-2- 2ā11-1- 111112222ā22-2- 2ā11-1- 111112222xxxroundā¢(x)roundround(x)round ( x ) (Using larger intervals [āa,a][-a,a][ - a , a ] in our nonlinearity round[āa.a]subscriptrounddelimited-[]formulae-sequenceround_[-a.a]round[ - a . a ] would give slightly stronger results, but wonāt be needed.) Now we define the unnormalized neural net model as follows: ā³wuā¢(x):=roundā¢(Φ(1),uā¢(Φ(0))Tā¢(x)).assignsuperscriptsubscriptā³roundsuperscriptΦ1superscriptsuperscriptΦ0 M_w^u(x):=round( ^(1),u ( ^% (0) )^T(x)).Mitalic_witalic_u ( x ) := round ( Φ( 1 ) , u ( Φ( 0 ) )T ( x ) ) . (10) Finally, we normalize: ā³wā¢(x):=ā³wuā¢(x)d/sassignsubscriptā³superscriptsubscriptā³ M_w(x):= M_w^u(x) d/sMitalic_w ( x ) := divide start_ARG Mitalic_witalic_u ( x ) end_ARG start_ARG square-root start_ARG d / s end_ARG end_ARG (11) Φ(1):=Φ(1),ud/s.assignsuperscriptΦ1superscriptΦ1 ^(1):= ^(1),u d/s.Φ( 1 ) := divide start_ARG Φ( 1 ) , u end_ARG start_ARG square-root start_ARG d / s end_ARG end_ARG . (12) For each feature kā1,ā¦,m1ā¦kā\1,ā¦,m\k ā 1 , ⦠, m in an input x, the unnormalized neural net ā³w(1),usuperscriptsubscriptā³1M_w^(1),uMitalic_w( 1 ) , u roughly does the following. 1. āReadsā the feature Ļksubscriptitalic-Ļ _kĻitalic_k 2. āWritesā 1111s in all neurons iāĪksubscriptĪiā _ki ā Īitalic_k connected to k assuming Ļksubscriptitalic-Ļ _kĻitalic_k is present 3. āRoundsā each neuron which is close to ā2,ā1,0,12101-2,-1,0,1- 2 , - 1 , 0 , 1 or 2222 to the closest integer. At the end, we hope to obtain a vector with exactly the entry Mkiā±1superscriptsubscriptplus-or-minus1M_k^iā± 1Mitalic_kitalic_i ā ± 1 for each k with fkā¢(x)=1subscript1f_k(x)=1fitalic_k ( x ) = 1 and zero elsewhere. If weāre lucky and there are no issues with excess interference and no pairs of active features k,āk, , ā that share a neuron iāĪkā©Īā,subscriptĪsubscriptĪāiā _kā© _ ,i ā Īitalic_k ā© Īroman_ā , the result of this computation will be Φ(1),uā¢(ā¢(x)),superscriptΦ1 ^(1),u( b(x)),Φ( 1 ) , u ( italic_b ( x ) ) , and its error can then be controlled by understanding the interference of the new normalized feature matrix Φ(1)superscriptΦ1 ^(1)Φ( 1 ). In order to make this work, we need to control two types of issues: ⢠Collision: itās possible that two simultaneously active features k,āk, , ā with fkā¢(x)=fāā¢(x)=1subscriptsubscriptā1f_k(x)=f_ (x)=1fitalic_k ( x ) = froman_ā ( x ) = 1 share some neurons, so some of the entries of Ļāk(1),u+Ļāā(1),usubscriptsuperscriptāitalic-Ļ1subscriptsuperscriptāitalic-Ļ1ā Ļ^(1),u_k+ Ļ^(1),u_ overā start_ARG Ļ end_ARG( 1 ) , uitalic_k + overā start_ARG Ļ end_ARG( 1 ) , uroman_ā have ācollidingā information from the kkkth and ā āth neurons that gives the wrong answer after getting rounded to one of ā2,ā1,0,1,2.21012\-2,-1,0,1,2\. - 2 , - 1 , 0 , 1 , 2 . ⢠Interference: itās possible that, even if ĪksuperscriptĪ ^kĪitalic_k are disjoint for all features k appearing in ā¢(x), b(x),italic_b ( x ) , the various interference terms shift the value far enough from the ācorrectā value in ā1,0,1101\-1,0,1\ - 1 , 0 , 1 that the āroundā function does not successfully return it to its original position. These are controlled by the two parts of the following lemma. Lemma 22. 1. For any xāXxā Xx ā X, we have o.n.p.: ā(Φ(1,u)ā¢(Φ(0))Tā¢(x)āΦ(1),uā¢x)āā=oā¢(1).subscriptnormsuperscriptΦ1superscriptsuperscriptΦ0superscriptΦ1subscript1|| ( ^(1,u) ( ^(0) )^T(x)- ^(1),u b_% x )||_ā=o(1).| | ( Φ( 1 , u ) ( Φ( 0 ) )T ( x ) - Φ( 1 ) , u italic_bitalic_x ) | |ā = o ( 1 ) . 2. For any boolean bitalic_b with sparsity ā1<ssubscriptnorm1|| b||_1<s| | italic_b | |1 < s, we have (o.n.p.) the difference errācollision:=roundā¢(Φ(1,u)ā¢())āΦ(1,u)ā¢()āādassignsubscriptāerrcollisionroundsuperscriptΦ1superscriptΦ1superscriptā err_collision:=round( ^(1,u)(% b))- ^(1,u)( b) ^doverā start_ARG err end_ARGcollision := round ( Φ( 1 , u ) ( italic_b ) ) - Φ( 1 , u ) ( italic_b ) ā blackboard_Rd has all unnormalized feature readoffs Ļākuā errācollision=O~ā¢maxā”(1,s3/d).ā superscriptsubscriptāitalic-Ļsubscriptāerrcollision~1superscript3 Ļ_k^uĀ· err_collision= % O (1, s^3/d).overā start_ARG Ļ end_ARGkitalic_u ā overā start_ARG err end_ARGcollision = over~ start_ARG O end_ARG max ( 1 , square-root start_ARG s3 / d end_ARG ) . Proof. Note that the two results are both about āāsubscriptā _āāā errors, but in two different spaces, namely in the space ādsuperscriptāR^dblackboard_Rd with the neuron basis for part (1) and in the space āmsuperscriptāR^mblackboard_Rm with the feature basis for part (2). We start with part (1). Since there is a polynomial number of neurons, bounding the āāsubscriptā _āāā error o.n.p. is equivalent to bounding the difference for each coordinate: Eiā¢(x):=(Φ(1,u)ā¢(Φ(0))Tā¢(x)āΦ(1),uā¢(x))ā āi.assignsubscriptā superscriptΦ1superscriptsuperscriptΦ0superscriptΦ1subscriptāE_i(x):= ( ^(1,u) ( ^(0) )^T(x)- ^(1),u% b(x) )Ā· e_i.Eitalic_i ( x ) := ( Φ( 1 , u ) ( Φ( 0 ) )T ( x ) - Φ( 1 ) , u italic_b ( x ) ) ā overā start_ARG italic_e end_ARGi . This difference is a linear combination of the errors Ļāk(0)ā x,ā superscriptsubscriptāitalic-Ļ0 Ļ_k^(0)Ā· x,overā start_ARG Ļ end_ARGk( 0 ) ā x , with coefficients given by the matrix coefficients (Φ(1,u))ik,superscriptsubscriptsuperscriptΦ1 ( ^(1,u) )_i^k,( Φ( 1 , u ) )iitalic_k , with i fixed and k varying. For a pair (i,k)āĪ,Ī(i,k)ā ,( i , k ) ā Ī , let Ļā¢(i,k)ā±1plus-or-minus1Ļ(i,k)ā± 1Ļ ( i , k ) ā ± 1 be the sign of the corresponding matrix coefficient (which is chosen independently at random in the random variable-valued definition of our neural net). We then have Eiā¢(x)=ākāĪiĻā¢(i,k)ā¢xā Ļāk(0).subscriptsubscriptsuperscriptĪā superscriptsubscriptāitalic-Ļ0E_i(x)= _kā ^iĻ(i,k)xĀ· Ļ_k^(0).Eitalic_i ( x ) = āk ā Īitalic_i Ļ ( i , k ) x ā overā start_ARG Ļ end_ARGk( 0 ) . By assumption, xā Ļkā¤Īµ(0).ā subscriptitalic-Ļsuperscript0xĀ· _k⤠^(0).x ā Ļitalic_k ⤠ε( 0 ) . Since the signs are chosen independently at random, we can bound this value o.n.p. by the Bernstein inequality, Theorem 29, with discrete variables Xk=Ļi,kā¢xā Ļāk(0).subscriptā subscriptsuperscriptsubscriptāitalic-Ļ0X_k= _i,kxĀ· Ļ_k^(0).Xitalic_k = Ļitalic_i , k x ā overā start_ARG Ļ end_ARGk( 0 ) . Here k is indexed by a |Īi|superscriptĪ| ^i|| Īitalic_i |-element set. By definition of Φ(1),superscriptΦ1 ^(1),Φ( 1 ) , each element 1,ā¦,m1ā¦\1,ā¦,m\ 1 , ⦠, m has probability p=1sā¢d1p= 1 sdp = divide start_ARG 1 end_ARG start_ARG square-root start_ARG s d end_ARG end_ARG of being in Īi,superscriptĪ ^i,Īitalic_i , so |Īi|=msā¢d+O~ā¢(msā¢d)=O~ā¢(msā¢d).superscriptĪ~~| ^i|= m sd+ O ( m sd% )= O ( m sd ).| Īitalic_i | = divide start_ARG m end_ARG start_ARG square-root start_ARG s d end_ARG end_ARG + over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG m end_ARG end_ARG start_ARG square-root start_ARG s d end_ARG end_ARG ) = over~ start_ARG O end_ARG ( divide start_ARG m end_ARG start_ARG square-root start_ARG s d end_ARG end_ARG ) . Since all these random variables are bounded by ε(0)superscript0 ^(0)ε( 0 ) in absolute value, Bernsteinās inequality implies that o.n.p., Ei=Oā¢(ε(0)ā (msā¢d)1/2),subscriptā superscript0superscript12E_i=O ( ^(0)Ā· ( m sd )^1/2% ),Eitalic_i = O ( ε( 0 ) ā ( divide start_ARG m end_ARG start_ARG square-root start_ARG s d end_ARG end_ARG )1 / 2 ) , giving part (1) of the lemma. To prove the second part, note that the āground truthā activation aāground:=Φ(1,u)ā¢assignsubscriptāgroundsuperscriptΦ1 a_ground:= ^(1,u) boverā start_ARG a end_ARGground := Φ( 1 , u ) italic_b is an integer-valued vector with coefficients (aāground)i=ākāĪiā©Ļk.subscriptsubscriptāgroundsubscriptsuperscriptĪsubscript( a_ground)_i= _kā ^iā© b _% k.( overā start_ARG a end_ARGground )i = āk ā Īitalic_i ā© italic_b Ļitalic_k . It is changed by applying the roundroundroundround function if and only if this sum is >2absent2>2> 2 in absolute value, i.e., if it is a ācollisionā (i.e., contained in the intersection) of at least 3333 subset of the form Ī£k.subscriptĪ£ _k.Ī£italic_k . The expectation of the number of such overlaps a given neuron iā1,ā¦,d1ā¦iā\1,ā¦,d\i ā 1 , ⦠, d can be can be bounded by Oā¢(s3(sā¢d)3)=Oā¢(s3/2d3/2).superscript3superscript3superscript32superscript32O( s^3( sd)^3)=O ( s^3/2d^3/2 ).O ( divide start_ARG s3 end_ARG start_ARG ( square-root start_ARG s d end_ARG )3 end_ARG ) = O ( divide start_ARG s3 / 2 end_ARG start_ARG d3 / 2 end_ARG ) . Thus the coefficients of the error vector (errācollision)i=(aāground)iāroundā¢(aāground)isubscriptsubscriptāerrcollisionsubscriptsubscriptāgroundroundsubscriptsubscriptāground( err_collision)_i=( a_% ground)_i-round( a_ground)_i( overā start_ARG err end_ARGcollision )i = ( overā start_ARG a end_ARGground )i - round ( overā start_ARG a end_ARGground )i are drawn i.i.d. from a distribution with mean 00 (as it is symmetric) and variance bounded by O~ā¢(s3/2d3/2),~superscript32superscript32 O( s^3/2d^3/2),over~ start_ARG O end_ARG ( divide start_ARG s3 / 2 end_ARG start_ARG d3 / 2 end_ARG ) , which is absolutely bounded by O~ā¢(1).~1 O(1).over~ start_ARG O end_ARG ( 1 ) . In other words, we have o.n.p. that this vector has at most O~ā¢maxā”(1,(s3/2ā¢d))~1superscript32 O (1, (s^3/2 d ) )over~ start_ARG O end_ARG max ( 1 , ( s3 / 2 square-root start_ARG d end_ARG ) ) entries all bounded by O~ā¢(1),~1 O(1),over~ start_ARG O end_ARG ( 1 ) , and with independently random signs. When we take the dot product with another unnormalized feature vector we are left with an error bounded by εcollisionā Ļāk(1),u=O~ā¢maxā”(1,(s3/2d1/2)),ā subscriptcollisionsuperscriptsubscriptāitalic-Ļ1~1superscript32superscript12 _collisionĀ· Ļ_k^(1),u= O (1% , ( s^3/2d^1/2 ) ),εcollision ā overā start_ARG Ļ end_ARGk( 1 ) , u = over~ start_ARG O end_ARG max ( 1 , ( divide start_ARG s3 / 2 end_ARG start_ARG d1 / 2 end_ARG ) ) , completing the proof. ā Now we can finish the proof. The interference bound in the lemma implies that o.n.p., the d-dimensional vector Φ(1),uā¢()āΦ(1),uā¢(Φ(0,T)ā¢(x))superscriptΦ1superscriptΦ1superscriptΦ0 ^(1),u( b)- ^(1),u( ^(0,T)(x))Φ( 1 ) , u ( italic_b ) - Φ( 1 ) , u ( Φ( 0 , T ) ( x ) ) has all coefficients bounded by oā¢(1),1o(1),o ( 1 ) , an in particular, bounded by 1/3.131/3.1 / 3 . Since the LHS has all integer entries, this means that roundā¢(Φ(1),uā¢())=roundā¢(Φ(1),uā¢(Φ(0,T)ā¢(x)))roundsuperscriptΦ1roundsuperscriptΦ1superscriptΦ0round( ^(1),u( b))=round( ^(1),u( ^% (0,T)(x)))round ( Φ( 1 ) , u ( italic_b ) ) = round ( Φ( 1 ) , u ( Φ( 0 , T ) ( x ) ) ) (As the āroundā function is constant on [nā1/3,n+1/3]1313[n-1/3,n+1/3][ n - 1 / 3 , n + 1 / 3 ] for any integer n). Since we have assumed that s<d1/3superscript13s<d^1/3s < d1 / 3 (in A), the asymptotic term s3/2/d1/2superscript32superscript12s^3/2/d^1/2s3 / 2 / d1 / 2 in the collision error bound is bounded by 1111, so o.n.p., εcollisionā Ļāk(1),u=O~ā¢(1).ā subscriptcollisionsuperscriptsubscriptāitalic-Ļ1~1 _collisionĀ· Ļ_k^(1),u= O(1).εcollision ā overā start_ARG Ļ end_ARGk( 1 ) , u = over~ start_ARG O end_ARG ( 1 ) . Finally, when we normalize, both sides of the dot product get multiplied by A=s1/4/d1/4,superscript14superscript14A=s^1/4/d^1/4,A = s1 / 4 / d1 / 4 , and so after normalizing the coresponding bound gets multiplied by s/d, s/ d,square-root start_ARG s end_ARG / square-root start_ARG d end_ARG , and we get the expression (o.n.p.): Ļāk(1)ā (ā³wā¢(x)āΦ(1)ā¢(ā¢(x)))=O~ā¢(s/d).ā superscriptsubscriptāitalic-Ļ1subscriptā³superscriptΦ1~ Ļ_k^(1)Ā· (M_w(x)- ^(1)( b(% x)) )= O( s/ d).overā start_ARG Ļ end_ARGk( 1 ) ā ( Mitalic_w ( x ) - Φ( 1 ) ( italic_b ( x ) ) ) = over~ start_ARG O end_ARG ( square-root start_ARG s end_ARG / square-root start_ARG d end_ARG ) . Finally, by a similar argument to the collision proof, we see that the unnormalized dot product Φ(1),uā¢(ā¢(x))ā Ļākā superscriptΦ1subscriptāitalic-Ļ ^(1),u( b(x))Ā· Ļ_kΦ( 1 ) , u ( italic_b ( x ) ) ā overā start_ARG Ļ end_ARGk is d/s d/ ssquare-root start_ARG d end_ARG / square-root start_ARG s end_ARG up to an error of O~ā¢(1),~1 O(1),over~ start_ARG O end_ARG ( 1 ) , so the error m We claim that the pair (ā³w,Φ(1))subscriptā³superscriptΦ1(M_w, ^(1))( Mitalic_w , Φ( 1 ) ) satisfies (o.n.p.) the conditions for the error-correction circuit above, for some appropriate relationships between the values d,ε(0),ε(1)superscript0superscript1d, ^(0), ^(1)d , ε( 0 ) , ε( 1 ) depending on m,m,m , satisfying asymptotic inequalities of the form ε(0)=O~ā¢(d1/4m1/2ā¢s1/4),superscript0~superscript14superscript12superscript14 ^(0)= O ( d^1/4m^1/2s^1/4 ),ε( 0 ) = over~ start_ARG O end_ARG ( divide start_ARG d1 / 4 end_ARG start_ARG m1 / 2 s1 / 4 end_ARG ) , ε(1)=O~ā¢(sd),superscript1~ ^(1)= O ( s d ),ε( 1 ) = over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) , μ(1)=O~ā¢(sd).superscript1~μ^(1)= O ( s d ).μ( 1 ) = over~ start_ARG O end_ARG ( divide start_ARG square-root start_ARG s end_ARG end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) . Lemma 23. For a suitable choice of εinsubscriptin _inεroman_in as above we can guarantee that: 1. If errāāāmāerrsuperscriptā err ^moverā start_ARG err end_ARG ā blackboard_Rm has āerrāāā<εin,subscriptnormāerrsubscriptin|| err||_ā< _in,| | overā start_ARG err end_ARG | |ā < εroman_in , then āΦā¢(errā)āā=oā¢(1),subscriptnormΦāerr1|| ( err)||_ā=o(1),| | Φ ( overā start_ARG err end_ARG ) | |ā = o ( 1 ) , o. n. p. (Note that the latter value is an āāsuperscriptā ^āāā norm in the neuron basis.) 2. If bitalic_b is boolean and s-sparse, then ΦA(round(Φ())āεā¢out, A(round( ( b)) _ % out b,divide start_ARG Φ end_ARG start_ARG A end_ARG ( round ( Φ ( italic_b ) ) āε out italic_b , o. n. p. To get part (1) above, observe that for any neuron index i,i,i , we have Φā¢(errā)i=ākā£kāĪiĻk,iā¢errāk,ΦsubscriptāerrsubscriptconditionalsuperscriptĪsubscriptsubscriptāerr ( err)_i= _k kā ^i _k,i% err_k,Φ ( overā start_ARG err end_ARG )i = āk ⣠k ā Īitalic_i Ļitalic_k , i overā start_ARG err end_ARGk , where we define Īi:=kā£(k,i)āĪ.assignsuperscriptĪconditional-setĪ ^i:=\k (k,i)ā \.Īitalic_i := k ⣠( k , i ) ā Ī . Since the signs Ļk,isubscript _k,iĻitalic_k , i are random and independent, this is a sum with random signs of numbers of absolute value <εin.absentsubscriptin< _in.< εroman_in . From the Azuma inequality, we see that (o. n. p.) Φā¢(errā)i=O~ā¢(errāā |Īi|).Φsubscriptāerr~ā āerrsubscriptĪ ( err)_i= O( err% Ā· | _i|).Φ ( overā start_ARG err end_ARG )i = over~ start_ARG O end_ARG ( overā start_ARG err end_ARG ā square-root start_ARG | Īitalic_i | end_ARG ) . Since the Ī Ī was chosen randomly, o. n. p. |Īi|=Ī~ā¢(|Ī|/d)=Ī~ā¢(d1āγ2)=oā¢(εinā2).subscriptĪ~ĪĪ~Īsuperscript12superscriptsubscriptin2| _i|= (| |/d)= (d 1-γ2)% =o( _in^-2).| Īitalic_i | = over~ start_ARG Ī end_ARG ( | Ī | / d ) = over~ start_ARG Ī end_ARG ( ddivide start_ARG 1 - γ end_ARG start_ARG 2 end_ARG ) = o ( εroman_in- 2 ) . The last statement follows from comparing exponents in the two sides, and the freedom of choice of polylog term in εin.subscriptin _in.εroman_in . For part (2) above, observe that (outā¢(roundā¢(Φā¢())))ksubscriptsubscriptoutroundΦ (R_out(round( ( b))) )_k( Rroman_out ( round ( Φ ( italic_b ) ) ) )k is the average over the set Īk=iā£(k,i)āĪsubscriptĪconditional-setĪ _k=\i (k,i)ā \Īitalic_k = i ⣠( k , i ) ā Ī of ai:=roundā¢(āāāSΦā,i)assignsubscriptroundsubscriptāsubscriptΦāa_i:=round ( _ ā S _ ,i )aitalic_i := round ( āā ā S Φroman_ā , i ) where S is the set of features that are on in , b,italic_b , of size |S|ā¤s.|S|⤠s.| S | ⤠s . We want to compare this to ksubscript b_kitalic_bitalic_k, which is 1111 if kāSkā Sk ā S and 00 otherwise. We expect (for iāĪksubscriptĪiā _ki ā Īitalic_k) that ai=0subscript0a_i=0aitalic_i = 0 if k=0subscript0 b_k=0italic_bitalic_k = 0 and ai=1subscript1a_i=1aitalic_i = 1 if k=1.subscript1 b_k=1.italic_bitalic_k = 1 . Since roundā¢()roundround()round ( ) always returns a value of absolute value ā¤1,absent1⤠1,⤠1 , we can bound the error by twice the number of incorrect values. We get errors of two types. 1. Interference error, from neurons that are on when they should be off. I.e., when aiā 0subscript0a_iā 0aitalic_i ā 0 despite k=0.subscript0 b_k=0.italic_bitalic_k = 0 . 2. Collision error, from neurons which should be on but are 00 (or have wrong sign) due to contributions from both SksubscriptS_kSitalic_k and another feature. Either of these errors happens when ĪksubscriptĪ _kĪitalic_k and āāāSā²Īāsubscriptāsuperscriptā²subscriptĪā _ ā S _ āā ā Sā² Īroman_ā intersect for Sā²=Sāk,superscriptā²S =S \k\,Sā² = S ā k , the set of nonzero values of bitalic_b not equal to k. Now ĪksubscriptĪ _kĪitalic_k has O~ā¢(d1āγ2)~superscript12 O(d 1-γ2)over~ start_ARG O end_ARG ( ddivide start_ARG 1 - γ end_ARG start_ARG 2 end_ARG ) nonzero entries and āāāSā²Īāsubscriptāsuperscriptā²subscriptĪā _ ā S _ āā ā Sā² Īroman_ā has at most O~ā¢(dγ+1āγ2)~superscript12 O(d^γ+ 1-γ2)over~ start_ARG O end_ARG ( ditalic_γ + divide start_ARG 1 - γ end_ARG start_ARG 2 end_ARG ) entries; since each subset ĪksubscriptĪ _kĪitalic_k is independently random, we see (o. n. p.) that the intersection has at most O~ā¢(d1+γ2ā¢dγ+1+γ2d)=O~ā¢(1)~superscript12superscript12~1 O( d 1+γ2d^γ+ 1+γ2d)=% O(1)over~ start_ARG O end_ARG ( divide start_ARG ddivide start_ARG 1 + γ end_ARG start_ARG 2 end_ARG ditalic_γ + divide start_ARG 1 + γ end_ARG start_ARG 2 end_ARG end_ARG start_ARG d end_ARG ) = over~ start_ARG O end_ARG ( 1 ) entries, and the average is indeed O~ā¢(εout).~subscriptout O( _out).over~ start_ARG O end_ARG ( εroman_out ) . This completes the proof of the lemma. The theorem follows. Indeed, suppose that xāādā¢insuperscriptāinx ^dinx ā blackboard_Rd in is a vector with inā¢(x)āεā¢insubscriptinsubscriptinR_in(x) _ in bRroman_in ( x ) āε in italic_b for ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m an s-sparse boolean vector. Setting errā=inā¢(x)ā,āerrsubscriptin err=R_in(x)- b,overā start_ARG err end_ARG = Rroman_in ( x ) - italic_b , part (1) implies that Φāinā¢(x)āΦā¢()ΦsubscriptinΦ _in(x)- ( b)Φ ā Rroman_in ( x ) - Φ ( italic_b ) has coefficients at most oā¢(1);1o(1);o ( 1 ) ; since Φā¢()Φ ( b)Φ ( italic_b ) has integer entries, this means that applying roundroundroundround to both sides produces the same results. Part (1) then implies that the RHS Φā¢()Φ ( b)Φ ( italic_b ) has sufficiently small interference. ā Corollary 24 (Lemma 7). For sufficiently small input interfefrence there exists a 1-layer MLP that returns (outside negligible probability) an encoding of the same boolean vector with low interference (1/d11/ d1 / square-root start_ARG d end_ARG assuming low sparsity parameter). Proof. This follows from the theorem in the case γ=0,0γ=0,γ = 0 , i.e., when the sparsity parameter s is polylog in m.m.m . ā Appendix E Theoretical Framework and Statistical Tools Here we provide statistical definitions and lemmas required for our proofs in Appendix D. E.1 Negligible probabilities Most results in this paper are proven outside negligible probability. This is a standard notion in complexity theory and cryptography (Bellare, 2002), with the following formal definition: Definition 5. Let Enn=1āsuperscriptsubscriptsubscript1\E_n\_n=1^ā Eitalic_n n = 1ā be a sequence of events parameterized by n. We say that EnsubscriptE_nEitalic_n is true with negligible probability (w. n. p.) if for any polynomial exponent cāāc ā blackboard_N, there exists some constant NcāāsubscriptāN_c _c ā blackboard_N such that Pā¢(En)<Oā¢(nāc)subscriptsuperscriptP(E_n)<O(n^-c)P ( Eitalic_n ) < O ( n- c ) for all n>Ncsubscriptn>N_cn > Nitalic_c. Similarly, we say that EnsubscriptE_nEitalic_n is true outside negligible probability (o. n. p.) if its complement EnĀÆsubscript E_noverĀÆ start_ARG Eitalic_n end_ARG is true with negligible probability. If En=Enā¢(x)subscriptsubscriptE_n=E_n(x)Eitalic_n = Eitalic_n ( x ) depends on an input in some set X, when we say Enā¢()subscriptE_n( b)Eitalic_n ( italic_b ) is true with negligible probability for all fixed inputs xāXxā Xx ā X we implicitly assume that there is an explicit constant Cn<Oā¢(nāc)subscriptsuperscriptC_n<O(n^-c)Citalic_n < O ( n- c ) as above that bounds the probability of Enā¢(x)subscriptE_n(x)Eitalic_n ( x ) for each valid input xāXxā Xx ā X. Intuitively, the reason why this probability is ānegligibleā is that the union of polynomially many events of negligible probability also has negligible probability. As we never consider more networks requiring more than polynomially many operations, we can ignore events of negligible probability at each step when performing asymptotic analysis, which greatly simplifies our proofs. Example 1. Let bitalic_b be a random boolean vectors of length n. Then outside negligible probability, bitalic_b has between n/2+logā”(n)ā¢n2n/2+ (n) nn / 2 + log ( n ) square-root start_ARG n end_ARG and n/2ālogā”(n)ā¢n2n/2- (n) nn / 2 - log ( n ) square-root start_ARG n end_ARG zeroes. This follows from the central limit theorem. (Note that if we used logā”(n)ā¢n, (n) n,square-root start_ARG log ( n ) end_ARG square-root start_ARG n end_ARG , the result would be false!) For cases where the event is a bound on a random function (as above), we can combine ānegligible probabilityā notation and big-O, as well as big-O~~ Oover~ start_ARG O end_ARG notation, as follows. Definition 6. Suppose a function fā¢(x)=fnā¢(x)subscriptf(x)=f_n(x)f ( x ) = fitalic_n ( x ) depends on the complexity parameter n and a fixed input xāXxā Xx ā X and is valued in random variables333The input can be an āempty inputā, i.e., f is itself a random variable depending only on n. Let gā¢(x)ā„00g(x)ā„ 0g ( x ) ā„ 0 be a deterministic function444or a constant depending on n if x is an empty input. Then we say that fā¢(x)=O~ā¢(gā¢(x))~f(x)= O(g(x))f ( x ) = over~ start_ARG O end_ARG ( g ( x ) ) if there exists a polylog constant Kn=Oā¢(polylogā¢(n))subscriptpolylogK_n=O(polylog(n))Kitalic_n = O ( polylog ( n ) ) such that, for any input x,x,x , the event |fā¢(x)|<gā¢(x)ā¢Kā¢(x)|f(x)|<g(x)K(x)| f ( x ) | < g ( x ) K ( x ) is true outside negligible probability. This lets us rephrase the previous example as āfor bitalic_b a random boolean vector of length m,m,m , we have ākā¢(x)=m/2+O~ā¢(m).subscript2~Ī£ b_k(x)=m/2+ O( m).ā italic_bitalic_k ( x ) = m / 2 + over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG ) .ā We also list the following result, which will be important for us. Lemma 25. Let dāād ā blackboard_N be a complexity parameter. Let vāā¢(0,Ī/d)0Īv (0, /d)v ā N ( 0 , Ī / d ) be a Gaussian-distributed random vector in ād,superscriptāR^d,blackboard_Rd , and let xāādsuperscriptāx ^dx ā blackboard_Rd be a fixed input vector. Then, outside negligible probability, we have 1. |v|=1+O~ā¢(1d)1~1|v|=1+ O ( 1 d )| v | = 1 + over~ start_ARG O end_ARG ( divide start_ARG 1 end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) 2. vā x=O~ā¢(|x|d).ā ~vĀ· x= O ( |x| d ).v ā x = over~ start_ARG O end_ARG ( divide start_ARG | x | end_ARG start_ARG square-root start_ARG d end_ARG end_ARG ) . Proof. The first statement is standard (and follows from the central limit theorem applied to the real variable ā¢(0,1)2superscript012N(0,1)^2N ( 0 , 1 )2). The second statement follows from the fact that sums of Gaussian random variables are Gaussian (and variance adds). ā Note that this in particular implies a version of the Johnson-Lindenstrauss lemma: Corollary 26. Suppose m is a polynomial function of d (which we take to be the complexity parameter), and suppose Ļā1,ā¦,Ļāmāāmsubscriptāitalic-Ļ1ā¦subscriptāitalic-Ļsuperscriptā Ļ_1,ā¦, Ļ_m ^moverā start_ARG Ļ end_ARG1 , ⦠, overā start_ARG Ļ end_ARGm ā blackboard_Rm are random vectors drawn from ā¢(0,Ī/d).0ĪN(0, /d).N ( 0 , Ī / d ) . Then outside negligible probability, Ļākā Ļāā=1+O~ā¢(1/d),k=āO~ā¢(1/d),kā ā.ā subscriptāitalic-Ļsubscriptāitalic-Ļācases1~1ā~1ā Ļ_kĀ· Ļ_ = cases1+ O(1/ d),&k=% \\ O(1/ d),&kā . casesoverā start_ARG Ļ end_ARGk ā overā start_ARG Ļ end_ARGā = start_ROW start_CELL 1 + over~ start_ARG O end_ARG ( 1 / square-root start_ARG d end_ARG ) , end_CELL start_CELL k = ā end_CELL end_ROW start_ROW start_CELL over~ start_ARG O end_ARG ( 1 / square-root start_ARG d end_ARG ) , end_CELL start_CELL k ā ā . end_CELL end_ROW Proof. We are checking polynomially many (namely, Oā¢(m2)superscript2O(m^2)O ( m2 ) with m polynomial in d) statements, thus by the union bound, it suffices to show that each is true outside negligible probability. The corollary now follows by inductively on k applying 25 to Ļākā Ļāk=|Ļāk|2ā subscriptāitalic-Ļsubscriptāitalic-Ļsuperscriptsubscriptāitalic-Ļ2 Ļ_kĀ· Ļ_k=| Ļ_k|^2overā start_ARG Ļ end_ARGk ā overā start_ARG Ļ end_ARGk = | overā start_ARG Ļ end_ARGk |2 and Ļākā Ļāāā£ā<k,conditionalā subscriptāitalic-Ļsubscriptāitalic-Ļā Ļ_kĀ· Ļ_ <k,overā start_ARG Ļ end_ARGk ā overā start_ARG Ļ end_ARGā ⣠ā < k , in the latter case taking the vector Ļāāsubscriptāitalic-Ļā Ļ_ overā start_ARG Ļ end_ARGā as fixed. ā Before continuing, we record the following simple result, which will allow us to convert ānegligible probabilityā results to our existence results in the body. Theorem 27. Suppose that s=Oā¢(1)1s=O(1)s = O ( 1 ) is a constant sparsity parameter, ā³wsubscriptā³M_wMitalic_w is a model in a fixed class that depends on some random parameters, and a property Pā¢(ā³w,x)subscriptā³P(M_w,x)P ( Mitalic_w , x ) holds outside negligible probability for all inputs x=Φā¢()Φx= ( b)x = Φ ( italic_b ) corresponding to boolean inputs ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m of sparsity s.s.s . Then there exists a model ā³wsubscriptā³M_wMitalic_w such that the property Pā¢(ā³w,)subscriptā³P(M_w, b)P ( Mitalic_w , italic_b ) holds for all boolean inputs . b.italic_b . Proof. This follows from the union bound, since the number of possibly inputs bitalic_b with sparsity s is (ms)<msbinomialsuperscript ms<m^s( FRACOP start_ARG m end_ARG start_ARG s end_ARG ) < mitalic_s (and negligible probability goes to zero faster than any inverse polynomial). ā Remark 28. For every ānegligible probabilityā statement we encounter, it is straightforward to check that, up to decreasing the asymptotic parameters in appropriate O~~ Oover~ start_ARG O end_ARG-asymptotic assumptions in the variables involved, we can guarantee for a stronger statement to hold: namely, for any fixed c,c,c , we can guarantee that the negligible probability p asymptotically satisfies p=O(exp(ālog(m)c)).p=O( (- (m)^c)).p = O ( exp ( - log ( m )c ) ) . Thus (by another union bound), statements that are true with negligible probability for any boolean input bitalic_b of size ā1=O~ā¢(1)subscriptnorm1~1|| b||_1= O(1)| | italic_b | |1 = over~ start_ARG O end_ARG ( 1 ) (at most polylogarithmic in m) can be made to hold for all such parameters , b,italic_b , for an appropriate choice of parameters. E.2 Concentration inequalities Concentration inequalities (in the sense we use here) bound tail probabilities of sums of random variables which are either i.i.d. or āclose toā i.i.d. in some sense. As we only care about O~~ Oover~ start_ARG O end_ARG-type precision in our error bounds (i.e., up to polylog factors) and we need statements to be true only outside negligible probability, we are able to get away with very weak versions of bounds which exist in general with much more precision; both of the results we need follow from the Bernstein inequality for martingales (which subsumes the Azuma inequality). Theorem 29 (Coarse Bernstein bound). Suppose that X1,ā¦,Xnsubscript1ā¦subscriptX_1,ā¦,X_nX1 , ⦠, Xitalic_n are a real random variable bounded by a constant M, which are either i.i.d. or form the difference sequence of a Martingale, i.e., ā¢(Xiā£X1,ā¦,Xiā1)=0.conditionalsubscriptsubscript1ā¦subscript10E(X_i X_1,ā¦,X_i-1)=0.blackboard_E ( Xitalic_i ⣠X1 , ⦠, Xitalic_i - 1 ) = 0 . Then āxi=nā¢Ī¼+O~ā¢(Mā¢n)subscript~Ī£ x_i=nμ+ O(M n)ā xitalic_i = n μ + over~ start_ARG O end_ARG ( M square-root start_ARG n end_ARG ) outside negligible probability, uniformly in the XisubscriptX_iXitalic_i. In other words, there exists a polylogarithmic sequence of constants Kn=Oā¢(polylogā¢(n))subscriptpolylogK_n=O(polylog(n))Kitalic_n = O ( polylog ( n ) ) such that the probability Pā¢(|āi=1n(xiā[Xi])|<Knā Mā¢n)ā¤Pnsuperscriptsubscript1subscriptdelimited-[]subscriptā subscriptsubscriptP (| _i=1^n(x_i-[X_i])|<K_nĀ· M n )⤠P_nP ( | āi = 1n ( xitalic_i - [ Xitalic_i ] ) | < Kitalic_n ā M square-root start_ARG n end_ARG ) ⤠Pitalic_n for some sequence PnsubscriptP_nPitalic_n that goes to zero faster than any polynomial function in n. Proof. This follows from Bernsteinās theorem, (Bernstein, 1924). In fact, both statements also follow from the simpler Azuma-Hoeffding inequality. ā Corollary 30. Let V=āasuperscriptāV=R^aV = blackboard_Ra be a vector space, with a=Oā¢(1)1a=O(1)a = O ( 1 ) a constant (we will use a=11a=1a = 1 and a=33a=3a = 3). Let Ī£āMataĆaĪ£subscriptMat _aĆ aĪ£ ā Matitalic_a Ć a be a fixed symmetric positive-definite matrix, with X=ā¢(0,Ī£)0Ī£X=N(0, )X = N ( 0 , Ī£ ) the corresponding distribution. Let f:Vāā:āāf:V : V ā blackboard_R be a fixed function with subpolynomial growth in x, and let μ=[fā¢(x),xā¼X]delimited-[]similar-toμ=[f(x),x X]μ = [ f ( x ) , x ā¼ X ] be the mean of f on x drawn from this distribution. Let x1,ā¦,xmsubscript1ā¦subscriptx_1,ā¦,x_mx1 , ⦠, xitalic_m be a collection of variables drawn from i.i.d. copies of ā¢(0,Ī£).0Ī£N(0, ).N ( 0 , Ī£ ) . Then o.n.p., āfā¢(xi)=mā¢Ī¼+O~ā¢(m),subscript~Ī£ f(x_i)=mμ+ O( m),ā f ( xitalic_i ) = m μ + over~ start_ARG O end_ARG ( square-root start_ARG m end_ARG ) , where the polylogarithmic constant in O~~ Oover~ start_ARG O end_ARG depends on f.f.f . Proof. Since f has polynomial growth, fā¢(x)<Kā¢(1+|x|c)1superscriptf(x)<K(1+|x|^c)f ( x ) < K ( 1 + | x |c ) for some constants C,d.C,d.C , d . Thus o.n.p. in m, fā¢(x)ā¤(cā¢logā”(Kā¢m))f(x)ā¤(c (Km))f ( x ) ⤠( c log ( K m ) ) (note that fā¢(x)f(x)f ( x ) doesnāt depend on m;m;m ; weāre just saying that Pā¢(fā¢(x)ā¤dā¢logā”(m))P (f(x)⤠d (m) )P ( f ( x ) ⤠d log ( m ) ) goes to 00 faster than any polynomial function in m;m;m ; in fact this probability is Oā¢(mālogā”(m))superscriptO(m^- (m))O ( m- log ( m ) )). Let M=cā¢logā”(Kā¢m).M=c (Km).M = c log ( K m ) . Then the concentration theorem above implies that āi=1m(fā¢(xi)ā[fā¢(xi)])=O~ā¢(M)=O~ā¢(1),superscriptsubscript1subscriptdelimited-[]subscript~~1 _i=1^m(f(x_i)-[f(x_i)])= O(M)= O(1),āi = 1m ( f ( xitalic_i ) - [ f ( xitalic_i ) ] ) = over~ start_ARG O end_ARG ( M ) = over~ start_ARG O end_ARG ( 1 ) , since M=O~ā¢(1).~1M= O(1).M = over~ start_ARG O end_ARG ( 1 ) . ā E.3 Precise and mixed emulations The parameters in the models ā³wsubscriptā³M_wMitalic_w in the proofs of our emulation results depend on random matrices of ±1plus-or-minus1± 1± 1ās and 00ās, hence can be understood as suitable random variables. In terms of this point of view, we make the following definition. Suppose that :0,1mā0,1mā²:āsuperscript01superscript01superscriptā²C:\0,1\^mā\0,1\^m C : 0 , 1 m ā 0 , 1 m start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT is a boolean circuit with input size m.m.m . We always assume that the output size mā² and the depth are at most polynomial in m.m.m . Let ā¬ā0,1mā¬superscript01Bā\0,1\^mB ā 0 , 1 m be a class of inputs (usually characterized by a suitable sparsity property). Let ε<11 <1ε < 1 be an interference parameter. Definition 7. An ε ε-precise emulation of CC (on input class ā¬BB) is a triple of data (Φ,ā³w,)Φsubscriptā³( ,M_w,R)( Φ , Mitalic_w , R ) all possibly depending on random parameters where ΦāMatdinĆmΦsubscriptMatsubscriptin _d_inĆ mΦ ā Matitalic_d start_POSTSUBSCRIPT in Ć m end_POSTSUBSCRIPT is a feature matrix, āMatmā²ĆdoutsubscriptMatsuperscriptā²subscriptoutR _m Ć d_outR ā Matitalic_mā² Ć d start_POSTSUBSCRIPT out end_POSTSUBSCRIPT is a readoff matrix and ā³w:ādā¢ināādā¢out:subscriptā³āsuperscriptāinsuperscriptāoutM_w:R^din ^doutMitalic_w : blackboard_Rd in ā blackboard_Rd out is a (not necessarily linear) function given by a neural net, with the following property: For any āā¬,⬠b ,italic_b ā B , we have, outside negligible probability, āāā³wāΦā¢()āā¢()āā<ε.subscriptnormsubscriptā³Ī¦||R M_w ( b)-C(% b)||_ā< .| | R ā Mitalic_w ā Φ ( italic_b ) - C ( italic_b ) | |ā < ε . Importantly, we do not consider the boolean circuit CC or the input ā⬠b _b ā B to be random variables, and the randomness involved in the negligible probability statement is purely in terms of the parameters that go into the emulation scheme (Φ,ā³w,).Φsubscriptā³( ,M_w,R).( Φ , Mitalic_w , R ) . In particular, this guarantees that if the boolean input bitalic_b is generated in a non-random way (e.g., adversarially), an emulation nevertheless guarantees (in the ānegligible probability senseā) safe performance on b so long as the parameters of the emulation were chosen randomly. It will be useful to extend the notion of emulation to one which correctly approximates CC on inputs xāādā¢insuperscriptāinx ^dinx ā blackboard_Rd in which represent a boolean input ā0,1msuperscript01 bā\0,1\^mitalic_b ā 0 , 1 m not in the sense of āpure superpositionā x=Φā¢()Φx= ( b)x = Φ ( italic_b ) but in the sense of āread-offā, āinā¢(x)āāā<εin.subscriptnormsubscriptinsubscriptin||R_in(x)- b||_ā< _ % in.| | Rroman_in ( x ) - italic_b | |ā < εroman_in . Here ināMatmĆā¢dinsubscriptinsubscriptMatsubscriptsubscriptinR_in __Ćmd_inRroman_in ā Matstart_FLOATSUBSCRIPT Ć end_FLOATSUBSCRIPT m droman_in is a readoff matrix that should be thought of as a noisy inverse to the feature matrix on sparse inputs. Formally, we make the following definition. Here we will assume that the matrix insubscriptinR_inRroman_in was generated at an earlier stage of the computation, and does not depend on random variables. Fix a circuit :0,1mā0,1mā²,:āsuperscript01superscript01superscriptā²C:\0,1\^mā\0,1\^m ,C : 0 , 1 m ā 0 , 1 m start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT , a class of inputs ā¬ā0,1m,ā¬superscript01Bā\0,1\^m,B ā 0 , 1 m , and an āinput readoffā matrix ināMatmĆdin.subscriptinsubscriptMatsubscriptinR_in _mĆ d_in.Rroman_in ā Matitalic_m Ć d start_POSTSUBSCRIPT in end_POSTSUBSCRIPT . Let εin,εoutsubscriptinsubscriptout _in, _outεroman_in , εroman_out be two interference parameters. Definition 8. A mixed emulation of CC with precision εināεoutāsubscriptinsubscriptout _inā _outεroman_in ā εroman_out (on input class ā¬BB and relative to a fixed input readoff matrix insubscriptinR_inRroman_in) is a pair of data (ā³w,out)subscriptā³subscriptout(M_w,R_out)( Mitalic_w , Rroman_out ) both possibly depending on random parameters where āMatmā²ĆdoutsubscriptMatsuperscriptā²subscriptoutR _m Ć d_outR ā Matitalic_mā² Ć d start_POSTSUBSCRIPT out end_POSTSUBSCRIPT is a readoff matrix and ā³w:ādā¢ināādā¢out:subscriptā³āsuperscriptāinsuperscriptāoutM_w:R^din ^doutMitalic_w : blackboard_Rd in ā blackboard_Rd out is a (not necessarily linear) function given by a neural net, with the following property: For any boolean input ā⬠b _b ā B and xāādā¢insuperscriptāinx ^dinx ā blackboard_Rd in satisfying āinā¢(x)āāā<εin,subscriptnormsubscriptinsubscriptin||R_in(x)- b||_ā< _ % in,| | Rroman_in ( x ) - italic_b | |ā < εroman_in , we have, outside negligible probability, āāā³wā¢(x)āā¢()āā<εout.subscriptnormsubscriptā³subscriptout||R M_w(x)-C( b)||_ā% < _out.| | R ā Mitalic_w ( x ) - C ( italic_b ) | |ā < εroman_out . Remark 31. Note that if it is impossible to accurately represent bitalic_b via the matrix ,R,R , i.e., to satisfy āā¢(x)āāā<εin,subscriptnormsubscriptin||R(x)- b||_ā< _in,| | R ( x ) - italic_b | |ā < εroman_in , then the notion of mixed emulation is vacuous (any neural net would satisfy it for tautological reasons). We will generally apply this notion in contexts where such representations are possible (for example, with via a suitable feature matrix x=Φā¢()Φx= ( b)x = Φ ( italic_b )). Here as before we do not consider the boolean circuit CC or the input ā⬠b _b ā B to be random variables, and in addition the representation x and the input readoff matrix insubscriptinR_inRroman_in are assumed fixed. So the randomness involved in the negligible probability statement is purely in terms of the parameters that go into the pair (ā³w,).subscriptā³(M_w,R).( Mitalic_w , R ) .