Paper deep dive
Polysemanticity and Capacity in Neural Networks
Adam Scherlis, Kshitij Sachan, Adam S. Jermyn, Joe Benton, Buck Shlegeris
Models: Anthropic autoencoder toy model, Custom 2-layer quadratic activation model, GeLU variants, ReLU variants
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 92%
Last extracted: 3/12/2026, 8:03:33 PM
Summary
This paper investigates the phenomenon of polysemanticity in neural networksāwhere individual neurons represent multiple unrelated featuresāthrough the lens of 'feature capacity'. The authors propose a framework where capacity is defined as the fractional dimension a feature consumes in the embedding space. They demonstrate that optimal capacity allocation leads to monosemantic representation for important features, polysemantic representation for less important ones, and exclusion of unimportant features. The study identifies a block-semi-orthogonal structure in the embedding space and shows that polysemanticity is influenced by input sparsity, kurtosis, and model architecture.
Entities (5)
Relation Signals (3)
Embedding Space ā exhibits ā Block-semi-orthogonal structure
confidence 95% Ā· We find a block-semi-orthogonal structure, with differing block sizes in different models
Polysemanticity ā isinfluencedby ā Input Sparsity
confidence 90% Ā· Polysemanticity is more prevalent when the inputs have higher kurtosis or sparsity
Feature Capacity ā determines ā Polysemanticity
confidence 85% Ā· We propose doing so through the lens of feature capacity... to understand its causes [of polysemanticity].
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Individual neurons in neural networks often represent a mixture of unrelated features. This phenomenon, called polysemanticity, can make interpreting neural networks more difficult and so we aim to understand its causes. We propose doing so through the lens of feature \emph{capacity}, which is the fractional dimension each feature consumes in the embedding space. We show that in a toy model the optimal capacity allocation tends to monosemantically represent the most important features, polysemantically represent less important features (in proportion to their impact on the loss), and entirely ignore the least important features. Polysemanticity is more prevalent when the inputs have higher kurtosis or sparsity and more prevalent in some architectures than others. Given an optimal allocation of capacity, we go on to study the geometry of the embedding space. We find a block-semi-orthogonal structure, with differing block sizes in different models, highlighting the impact of model architecture on the interpretability of its neurons.
Tags
Links
- Source: https://arxiv.org/abs/2210.01892
- Canonical: https://arxiv.org/abs/2210.01892
Trouble viewing inline? Open PDF directly ā
Full Text
164,446 characters extracted from source content.
Expand or collapse full text
Polysemanticity and Capacity in Neural Networks Adam Scherlis1, Kshitij Sachan1, Adam S. Jermyn2, Joe Benton, Buck Shlegeris1 1Redwood Research 2Flatiron Institute Abstract Individual neurons in neural networks often represent a mixture of unrelated features. This phenomenon, called polysemanticity, can make interpreting neural networks more difficult and so we aim to understand its causes. We propose doing so through the lens of feature capacity, which is the fractional dimension each feature consumes in the embedding space. We show that in a toy model the optimal capacity allocation tends to monosemantically represent the most important features, polysemantically represent less important features (in proportion to their impact on the loss), and entirely ignore the least important features. Polysemanticity is more prevalent when the inputs have higher kurtosis or sparsity and more prevalent in some architectures than others. Given an optimal allocation of capacity, we go on to study the geometry of the embedding space. We find a block-semi-orthogonal structure, with differing block sizes in different models, highlighting the impact of model architecture on the interpretability of its neurons. 1 Introduction Individual neurons in neural networks often represent multiple unrelated features in the input [OMS17, OCS+20]. This phenomenon is known as polysemanticity, and makes it more difficult to interpret neural networks [OCS+20]. While "feature" is a somewhat fuzzy concept [EHO+22b], there are at least some cases where we āknow it when we see itā. For example, when the input features are independent random variables that do not interact in the data-generating process, neurons that represent combinations of these input features can be confidently called polysemantic. In this work we explore how loss functions incentivize polysemanticity in this setting, and the structure of the learned solutions. Fittingly, there are multiple ways that polysemanticity can manifest. Here we focus on one form that seems particularly fundamental, namely superposition [EHO+22b]. Suppose we have a linear layer that embeds features which then pass through a layer with a nonlinear activation function. The feature embedding vectors might not be orthogonal, in which case multiple neurons (nonlinear units) are involved in representing each feature. When there are at least as many features as neurons this means that some neurons represent multiple features, and so are polysemantic (Figure 1, right). There are other causes of polysemanticity, e.g. feature embedding vectors could be rotated relative to the neuron basis (Figure 1, left), but we do not study these in this work. Figure 1: Feature embedding vectors are shown in two dimensions. The neuron basis corresponds to the coordinate axes. Left: rotated embeddings. Right: non-orthogonal embeddings. In both cases the result is polysemanticity because each neuron receives some input when either feature is present. Here we build on the work of [EHO+22b], who studied polysemanticity in the context of toy models of autoencoders. They found that models can support both monosemantic and polysemantic neurons, that polysemantic neurons can perform certain kinds of computations, and that the embedding vectors of features often formed repeating motifs of a few features symmetrically embedded in a low-dimensional subspace. Moreover, in their models they found distinct āphasesā where superposition was either significant or completely absent. Sparser inputs resulted in more superposition. Features with similar importance were more likely to be in superposition. This reflects an abundance of unexpected structure, and gives new handles on the phenomenon of polysemanticity. We study these phenomena through the lens of capacity, or the fraction of an embedding dimension allocated to each feature (Section 2, also termed ādimensionalityā by [EHO+22b]). This ranges from 0-1 for each feature, and the total capacity across all features is bounded by the dimension of the embedding space. Because the model has a limited number of neurons and so a limited number of embedding dimensions, there is a trade-off between representing different features. We find that the capacity constraint on individual features (0-1) means that many features are either ignored altogether (not embedded) or else allocated a full dimension orthogonal to all the other features in the embedding space, depending on the relative importance of each feature to the loss. Features are represented polysemantically only when the marginal loss reduction of assigning more capacity to each is equal (Figure 2). This neatly explains the sharp āpinningā of features to either 0 or 1 capacity noted by [EHO+22b], and gives us a framework for understanding the circumstances under which features are represented polysemantically. Figure 2: The marginal loss reduction āāL/āCisubscript-ā L/ā C_i- ā L / ā Citalic_i is shown for several features as a function of feature capacity in our toy model. Circles represent the optimal capacity allocation for a particular total embedding dimension. Colors vary to make individual curves more distinguishable. To explore capacity allocation in a concrete model, we instantiate our theory for a one-layer model with quadratic activations (Section 3). Our model differs from the Anthropic toy model in that ours uses a different activation function to make the math more tractable, and, more importantly, ours is focused on polysemantic computation rather than data compression. We contrast these toy models in Figure 3. Figure 3: Comparison between the Anthropic toy model of [EHO+22b] (left) and our toy model (right). Model inputs are at the bottom of the diagram and outputs are at the top. The key difference is that the Anthropic model studies the compression and recovery of high-dimensional vectors, while ours examines how a smaller number of polysemantic neurons can simulate the computation done by a larger number of monosemantic ones. Figure kindly provided by Chris Olah. For our toy model we can analytically determine the capacity allocation as a function of feature sparsity and importance (i.e. weight in the loss), and so construct a āphase diagramā (Figure 4). While the details of our phase diagram differ from those of [EHO+22b], reflecting our different toy model, there are three qualitative features that are in good agreement. First, when a feature is much more important than the rest, it is always represented fully with its own embedding dimension. Second, when a feature is much less important than the rest, it is ignored entirely. Finally, in a sparsity-dependent intermediate region features are partially represented, sharing embedding dimensions. In addition, this confirms our theoretical expectation that capacity is allocated according to how much each feature matters to the loss (a mixture of importance and sparsity) and that it is often allocated to fully ignore some features while fully representing others. We supplement this with empirical results for a variety of activation functions showing that the phase diagram predicts the behavior of a broad family of 2-layer models. Figure 4: Upper: Analytical and empirical phase diagrams for our toy model with 6 features and 3 neurons. In both panels one feature has a different importance from the rest, and colors show the resulting capacity allocation for that feature as a function of sparsity and relative importance. Lower: Plots of marginal loss reduction āL/āCisubscriptā L/ā C_iā L / ā Citalic_i as a function of feature capacity for each labelled point in the analytical phase diagram. The blue curve represents the feature with varied importance and the black one represents the constant important feature. Black dots are optimal allocations of capacity. We then turn to study the geometry of the embedding space (Section 4). When embedding matrices fully utilize the available capacity we call them āefficientā. We find that every efficient embedding matrix has a block-semi-orthogonal structure, with features partitioned into different blocks. When multiple features in a block are present they interfere with each other, causing spurious correlations in the output and hence greater loss. Features do not, however, interfere across blocks. Figure 5: Left: An embedding matrix with two blocks. Center: The relationship between features and (principal-component-aligned) neurons for this matrix. Right: Embedding vector geometry for this matrix. The blocks in efficient matrices correspond to the polytope structure [EHO+22b] found, with small blocks corresponding to features embedded as regular polytopes and large blocks corresponding to less-ordered structures. Large- and small-block arrangements come with different advantages. With large blocks there is significant freedom to allocate capacity across features, whereas with small blocks there is the additional constraint that the capacity of each block be an integer and that the block capacities add up to the total capacity. On the other hand, with small blocks the lengths of embedding vectors can be chosen more freely because blocks can be scaled independently of each other without affecting the capacity allocation. In our quadratic model the embedding matrices in our toy model always have one large block, which is correspondingly less structured. We expect that differences in architecture can lead to different sizes of blocks, which could provide a way to control the extent of polysemanticity in models, alongside other approaches such as changing the activation function [EHO+22a]. 2 Capacity and Superposition 2.1 Definitions Suppose we have a model composed of stacks of linear layers with nonlinear activation functions. In each layer, the model applies a linear transform to the input vector x to produce an embedding vector e, and then performs an element-wise non-linear calculation on those embeddings to produce the non-linear activation vector hāh. For instance, we might have e e ā”Wā xabsentā ā” WĀ· xā” W ā x (1) hā h ā”ReLUā¢(e)absentReLU (e)ā” ReLU ( e ) (2) with WāādĆpsuperscriptāW ^dĆ pW ā blackboard_Rd Ć p, xāāpsuperscriptāx ^px ā blackboard_Rp, e,hāādāsuperscriptāe,h ^de , h ā blackboard_Rd. We associate each dimension of the input vector x with a feature, and we call each dimension of the non-linear layer a neuron. For simplicity, in the rest of this paper we work with a one-layer model, but our capacity definition should be valid for any layer in a multi-layer model. When a model represents a feature in the input space, it is convenient to think that it expends some capacity to do so. Our intuition here is that as we ask a model to represent more and more features we eventually exhaust its ability to do so, resulting in features interfering. We study the superposition phenomena by asking the question: "How do models allocate limited representation capacity to input features?" In what follows we assume that each input feature is assigned a unique dimension in the input space (e.g. feature i is input dimension i), and capacity we define below. Let Wā ,iāādsubscriptā superscriptāW_Ā·,i ^dWā , i ā blackboard_Rd be the embedding vector for feature i. The capacity allocated to feature i is Ci=(Wā ,iā Wā ,i)2āj(Wā ,iā Wā ,j)2subscriptsuperscriptā subscriptā subscriptā 2subscriptsuperscriptā subscriptā subscriptā 2 C_i= (W_Ā·,iĀ· W_Ā·,i)^2 _j(W_% Ā·,iĀ· W_Ā·,j)^2Citalic_i = divide start_ARG ( Wā , i ā Wā , i )2 end_ARG start_ARG āj ( Wā , i ā Wā , j )2 end_ARG (3) We can think of CisubscriptC_iCitalic_i as āthe fraction of a dimensionā allocated to feature i ([EHO+22b])111We can also interpret CisubscriptC_iCitalic_i as the squared correlation coefficient between xisubscriptx_ixitalic_i and (WTā¢Wā¢x)isubscriptsuperscript(W^TWx)_i( Witalic_T W x )i ā see Appendix E.. The numerator measures the size of the embedding and the denominator tracks the interference from other features. By this definition, CisubscriptC_iCitalic_i is bounded between 0 and 1. In the case Wā ,i=0subscriptā 0W_Ā·,i=0Wā , i = 0, where this expression is undefined, we set Ci=0subscript0C_i=0Citalic_i = 0.222This is the limit of the expression from almost all directions, so in practice Wā ,iā0subscriptā 0W_Ā·,iā 0Wā , i ā 0 implies Ciā0subscript0C_iā 0Citalic_i ā 0. We define the total model capacity to be C=āiCisubscriptsubscriptC= _iC_iC = āi Citalic_i (in a multi-layer model, this would be a single layer-pairās capacity). This is bounded between 1 and the embedding dimension D (see Appendix F for a proof of the upper bound). Figure 6: Example capacity allocations for different embeddings. Note that a set of capacities does not uniquely specify a weight matrix. For example, capacity is invariant to the overall scaling and rotation of W. In what follows it will be useful to have a full parameterization of W that includes CisubscriptC_iCitalic_i, so we define S to be a set of additional parameters that uniquely specify a weight matrix W given its capacities C1,ā¦,CNsubscript1ā¦subscriptC_1,ā¦,C_NC1 , ⦠, Citalic_N. We can then parameterize the loss using (C1,ā¦,CN,S)subscript1ā¦subscript(C_1,ā¦,C_N,S)( C1 , ⦠, Citalic_N , S ) rather than W. 2.2 Loss Minimization We are interested in how loss minimization allocates capacity among different features. Because the capacity of each feature lies in [0,1]01[0,1][ 0 , 1 ] and there is also a constraint on the total capacity of a model, this is a constrained optimization problem: minC1:n,Ssubscriptsubscript:1 _C_1:n,Sminitalic_C start_POSTSUBSCRIPT 1 : n , S end_POSTSUBSCRIPT Lā¢(C1:n,S)subscript:1 L(C_1:n,S)L ( C1 : n , S ) s.t. 0ā¤Ciā¤10subscript1 0⤠C_i⤠10 ⤠Citalic_i ⤠1 1ā¤āiCiā¤D1subscriptsubscript 1⤠_iC_i⤠D1 ⤠āi Citalic_i ⤠D In brief, we minimize over S first to find the Sāā¢(Ci)superscriptsubscriptS^*(C_i)Sā ( Citalic_i ) minimizing the loss333There are multiple ways to define S, which give different (āL/āCi)subscript(ā L/ā C_i)( ā L / ā Citalic_i ) holding āSā constant. Minimizing over S removes this ambiguity.. We then minimize over CisubscriptC_iCitalic_i Intuitively capacity should always be a good thing, so we are interested in situations where the loss function L is monotonically decreasing in CisubscriptC_iCitalic_i. In this case, the bound on the total capacity āiCiā¤Dsubscriptsubscript _iC_i⤠Dāi Citalic_i ⤠D will be saturated, and we can replace this constraint with a Lagrange multiplier: minC1:n,Ī»subscriptsubscript:1 _C_1:n,Ī» _C start_POSTSUBSCRIPT 1 : n , Ī» end_POSTSUBSCRIPT Lā¢(C1:n)+Ī»ā¢(āiCiāD)subscript:1subscriptsubscript L(C_1:n)+Ī» ( _iC_i-D )L ( C1 : n ) + Ī» ( āi Citalic_i - D ) (4) s.t. 0ā¤Ciā¤10subscript1 0⤠C_i⤠10 ⤠Citalic_i ⤠1 Because we have independent constraints on each CisubscriptC_iCitalic_i, for each i the minimum occurs either at a boundary (Ci=0subscript0C_i=0Citalic_i = 0 or 1111) or in between at a point where āCiā¢(Lā¢(C1:n)+Ī»ā¢(āiCiāD))=0subscriptsubscript:1subscriptsubscript0 ā C_i (L(C_1:n)+Ī» (Ī£% _iC_i-D ) )=0divide start_ARG ā end_ARG start_ARG ā Citalic_i end_ARG ( L ( C1 : n ) + Ī» ( āi Citalic_i - D ) ) = 0 (5) The derivative in the three cases will obey āLā¢(C1:n)āCisubscript:1subscript ā L(C_1:n)ā C_idivide start_ARG ā L ( C1 : n ) end_ARG start_ARG ā Citalic_i end_ARG ā„āĪ»(Ci=0)absentsubscript0 ā„-Ī» (C_i=0)ā„ - Ī» ( Citalic_i = 0 ) (6) āLā¢(C1:n)āCisubscript:1subscript ā L(C_1:n)ā C_idivide start_ARG ā L ( C1 : n ) end_ARG start_ARG ā Citalic_i end_ARG =āĪ»(0<Ci<1)absent0subscript1 =-Ī» (0<C_i<1)= - Ī» ( 0 < Citalic_i < 1 ) (7) āLā¢(C1:n)āCisubscript:1subscript ā L(C_1:n)ā C_idivide start_ARG ā L ( C1 : n ) end_ARG start_ARG ā Citalic_i end_ARG ā¤āĪ»(Ci=1)absentsubscript1 ā¤-Ī» (C_i=1)⤠- Ī» ( Citalic_i = 1 ) (8) In other words, at the minimum of the loss, capacity is allocated to each feature until the marginal value (decrease in loss) from additional capacity is at a constant threshold ā unless the feature is so important that the marginal value is above threshold even when fully represented, or so unimportant that the marginal value is below threshold even when the feature is ignored. Note that none of this derivation depended on the precise definition of capacity. We only had to assume that (1) allocating more capacity to a feature never makes the loss greater, (2) all capacity allocations satisfying the feature-level and total constraints are realizable by some embedding matrix. Thus we could have used other definitions, and indeed in Appendix G we explore one such alternative. We can visualize this in terms of the graph of āL/āCisubscriptā L/ā C_iā L / ā Citalic_i as a function of CisubscriptC_iCitalic_i, holding CjsubscriptC_jCitalic_j constant for jā ijā ij ā i. For instance, in Figure 2 there are diminishing returns: ā2L/āCi2>0superscript2superscriptsubscript20ā^2L/ā C_i^2>0ā2 L / ā Citalic_i2 > 0, so that each additional unit of capacity makes the next one less useful. If āL/āCisubscriptā L/ā C_iā L / ā Citalic_i crosses āĪ»-Ī»- Ī», the value of CisubscriptC_iCitalic_i where it crosses will be the optimal allocation. Features only get 0 or 1 capacity if the entire āL/āCisubscriptā L/ā C_iā L / ā Citalic_i curve is above or below āĪ»-Ī»- Ī» (respectively). By contrast, in the case of increasing returns (ā2L/āCi2<0superscript2superscriptsubscript20ā^2L/ā C_i^2<0ā2 L / ā Citalic_i2 < 0), every feature will have Ci=0subscript0C_i=0Citalic_i = 0 or Ci=1subscript1C_i=1Citalic_i = 1 and superposition will not occur at all. As we show below for several different toy models, diminishing returns occur for inputs of high sparsity or kurtosis, and accelerating return for inputs of low sparsity or kurtosis. 3 Quadratic model We now instantiate our theory for a two-layer model with quadratic activations. This choice of activation function allows us to study this model analytically in some detail. We define our model in Section 3.1. In Section 3.2 we analyze the loss function for the case of independent random input features. We are able to write the expected loss entirely in terms of the embedding lengths and the variance and kurtosis of feature strengths. In Section 3.3 we demonstrate a surprising feature of this quadratic model: the loss function can be written in terms of the feature capacity and the embedding lengths. This allows us to analytically explore the marginal benefit of allocating more capacity to each feature. We then go on to solve for the optimum allocation of capacity across features (Section 3.4) and relate this to our results from Section 2). 3.1 The model We study a regression task, with ground-truth data x,yā¢(x)x,y(x)x , y ( x ) and modeled data x,y~ā¢(x)~x, y(x)x , over~ start_ARG y end_ARG ( x ). The ground truth data is generated by a random vector of IID variables, x, and a set of āimportance" coefficients visubscriptv_ivitalic_i: y y =āiviā¢xi2.absentsubscriptsubscriptsuperscriptsubscript2 = _iv_ix_i^2.= āi vitalic_i xitalic_i2 . (9) We think of visubscriptv_ivitalic_i as the importance of feature i, and highlight that y here is a scalar. The model y~ā¢(x)~ y(x)over~ start_ARG y end_ARG ( x ) is parameterized as y~~ yover~ start_ARG y end_ARG =āi(Wi,ā x)2+babsentsubscriptsuperscriptā subscriptā 2 = _i(W_i,Ā· x)^2+b= āi ( Witalic_i , ā ā x )2 + b (10) where b is a bias and W is a rectangular embedding matrix. Like y, y~~ yover~ start_ARG y end_ARG is a scalar. Note that the ground-truth and modeled data are both of the form xTā¢Aā¢xsuperscriptx^TAxxitalic_T A x for a matrix A. For the ground truth, this is a full-rank diagonal444In general, we could consider a ground truth with an arbitrary full-rank A instead of a diagonal matrix. Forcing A to be diagonal is then equivalent to choosing to always write x in the principal-component (SVD) basis of A. This gives a slightly stronger motivation for our choice to interpret the components of x as separate āfeaturesā: we are really choosing features based on the principal axes of A. matrix; for our model it is limited in rank by the shape of W. Therefore, perfect loss is not possible in general. Our loss function is squared error Lā¢(x)=(y~ā¢(x)āyā¢(x))2.superscript~2 L(x)=( y(x)-y(x))^2.L ( x ) = ( over~ start_ARG y end_ARG ( x ) - y ( x ) )2 . (11) 3.2 Interpreting the loss function We now assume that ā¢[xi]=0delimited-[]subscript0E[x_i]=0blackboard_E [ xitalic_i ] = 0 and Covā¢[xi,xj]=Ī“iā¢jCovsubscriptsubscriptsubscriptCov[x_i,x_j]= _ijCov [ xitalic_i , xitalic_j ] = Ī“italic_i j, but do not impose any additional restrictions on the distribution of xisubscript\x_i\ xitalic_i . With this, we find (Appendix A) ā¢[L]=(ā¢[xi4]ā1)ā¢āi(āWā ,iā2āvi)2+2ā¢āiā j(Wā ,iā Wā ,j)2delimited-[]delimited-[]superscriptsubscript41subscriptsuperscriptsuperscriptnormsubscriptā 2subscript22subscriptsuperscriptā subscriptā subscriptā 2E[L]=(E[x_i^4]-1) _i(||W_Ā·,i||^2-v_i)^2% +2 _iā j(W_Ā·,iĀ· W_Ā·,j)^2blackboard_E [ L ] = ( blackboard_E [ xitalic_i4 ] - 1 ) āi ( | | Wā , i | |2 - vitalic_i )2 + 2 āi ā j ( Wā , i ā Wā , j )2 (12) The loss is a weighted sum of two components. The first term captures true correlations in the data, because viāCovā¢[y,xi2]proportional-tosubscriptCovsuperscriptsubscript2v_i [y,x_i^2]vitalic_i ā Cov [ y , xitalic_i2 ], while the second represents āhallucinated correlationsā which are not present in the data (Wā ,iā Wā ,jāCovā¢[y~,xiā¢xj]proportional-toā subscriptā subscriptā Cov~subscriptsubscriptW_Ā·,iĀ· W_Ā·,j [ y,x_ix_j]Wā , i ā Wā , j ā Cov [ over~ start_ARG y end_ARG , xitalic_i xitalic_j ]) but which the model produces anyway (Appendix B). When the fourth moment is large (for example due to sparsity, see Appendix D) the hallucinated term becomes less important and we get polysemanticity/superposition. More generally, when a model is incapable of representing the precise correlations in the data there is often a tradeoff, where the model can improve its representation of the true correlations at the cost of incorporating hallucinated ones. This will often be beneficial to the overall loss, but can end up spreading the task of representing a single feature across multiple neurons. If the model has a limited number of neurons this can result in polysemanticity. 3.3 Capacity We would like to write the expected loss in terms of the capacity of each feature. Recalling the definition of capacity, the expected loss can be written as āā¢(Cā,nā)=(kā1)ā¢āi(niāvi)2ā2ā¢āini2+2ā¢āini2Ci,āā1subscriptsuperscriptsubscriptsubscript22subscriptsuperscriptsubscript22subscriptsuperscriptsubscript2subscript ( C, n)=(k-1) _i(n_i-v_i)^2-2Ī£% _in_i^2+2 _i n_i^2C_i,L ( overā start_ARG C end_ARG , overā start_ARG n end_ARG ) = ( k - 1 ) āi ( nitalic_i - vitalic_i )2 - 2 āi nitalic_i2 + 2 āi divide start_ARG nitalic_i2 end_ARG start_ARG Citalic_i end_ARG , (13) where āā”ā¢[L]ādelimited-[]L [L]L ā” blackboard_E [ L ] is the expected loss, kā”ā¢[xi4]delimited-[]superscriptsubscript4k [x_i^4]k ā” blackboard_E [ xitalic_i4 ] is the kurtosis, and niā”āWā ,iā2subscriptsuperscriptnormsubscriptā 2n_iā”||W_Ā·,i||^2nitalic_i ā” | | Wā , i | |2 is the squared embedding length. This form is surprising because it says that the loss is composed of (1) a term that depends only on the embedding lengths and (2) a sum of terms that each depend on the capacity of just one feature. In particular, what is surprising is that the effects of interference between features are entirely captured by the feature capacity, so the second term can be interpreted as the loss due to interference. Perhaps more striking, the partial derivative of loss with respect to capacity is just āāāCi=ā2ā¢ni2Ci2.āsubscript2superscriptsubscript2superscriptsubscript2 ā C_i=-2 n_i^2C_i^2.divide start_ARG ā L end_ARG start_ARG ā Citalic_i end_ARG = - 2 divide start_ARG nitalic_i2 end_ARG start_ARG Citalic_i2 end_ARG . (14) That is, the marginal benefit of capacity for feature i depends only on the embedding length and capacity of that feature and not at all on any other aspect of the model. In what follows we make extensive use of this property to find the optimal capacity allocation. 3.4 Optimal capacity allocation We now minimize the loss to find (Appendix C): Cisubscript C_iCitalic_i =maxā”(minā”(kā1kā3ā¢viĪ»ā2kā3,1),0)absent13subscript2310 = ( ( k-1k-3 v_iĪ»- 2% k-3,1 ),0 )= max ( min ( divide start_ARG k - 1 end_ARG start_ARG k - 3 end_ARG divide start_ARG vitalic_i end_ARG start_ARG Ī» end_ARG - divide start_ARG 2 end_ARG start_ARG k - 3 end_ARG , 1 ) , 0 ) (15) nisubscript n_initalic_i =0Ci=0kā1kā3ā¢viā2ā¢Ī»kā30<Ci<1viCi=1absentcases0subscript013subscript230subscript1subscriptsubscript1 = cases0& C_i=0\\ k-1k-3v_i- 2Ī»k-3& 0<C_i<1\\ v_i& C_i=1 cases= start_ROW start_CELL 0 end_CELL start_CELL Citalic_i = 0 end_CELL end_ROW start_ROW start_CELL divide start_ARG k - 1 end_ARG start_ARG k - 3 end_ARG vitalic_i - divide start_ARG 2 Ī» end_ARG start_ARG k - 3 end_ARG end_CELL start_CELL 0 < Citalic_i < 1 end_CELL end_ROW start_ROW start_CELL vitalic_i end_CELL start_CELL Citalic_i = 1 end_CELL end_ROW (16) Here Ī» is a Lagrange multiplier determined by the condition that āiCi=Dsubscriptsubscript _iC_i=Dāi Citalic_i = D. In Appendix C we also verify that this solution is indeed feasible (i.e. there is an embedding matrix producing the above CisubscriptC_iCitalic_i and nisubscriptn_initalic_i). For kurtosis k>33k>3k > 3, features will be ignored if kā12ā¢vi<Ī»12subscript k-12v_i< start_ARG k - 1 end_ARG start_ARG 2 end_ARG vitalic_i < Ī» (17) and fully represented if vi>Ī»subscript v_i> _i > Ī» (18) If kā¤33k⤠3k ⤠3, features will always either be ignored or fully represented because the loss is concave-down (or flat) in CisubscriptC_iCitalic_i. Hence the D features with highest visubscriptv_ivitalic_i will be represented. 3.5 Phase diagrams We now calculate phase diagrams for capacity allocation. 3.5.1 Phase diagram boundaries First, we solve for Ī» by inserting the set of visubscriptv_ivitalic_i into equation (57): Ci=maxā”(minā”(kā1kā3ā¢viĪ»ā2kā3,1),0).subscript13subscript2310C_i= ( ( k-1k-3 v_iĪ»- 2k-3,1% ),0 ).Citalic_i = max ( min ( divide start_ARG k - 1 end_ARG start_ARG k - 3 end_ARG divide start_ARG vitalic_i end_ARG start_ARG Ī» end_ARG - divide start_ARG 2 end_ARG start_ARG k - 3 end_ARG , 1 ) , 0 ) . We then sum over i and set this equal to D, allowing us to solve for Ī». Features will be polysemantic if (equations 17 and 18) vi<Ī»<kā12ā¢visubscript12subscriptv_i<Ī»< k-12v_ivitalic_i < Ī» < divide start_ARG k - 1 end_ARG start_ARG 2 end_ARG vitalic_i or equivalently 2kā1ā¢Ī»<vi<Ī»21subscript 2k-1Ī»<v_i< start_ARG 2 end_ARG start_ARG k - 1 end_ARG Ī» < vitalic_i < Ī» Note that for k<33k<3k < 3, this is impossible, so features will never be partially represented (polysemantic). 3.5.2 Most-importances-equal case We now consider the case with N features, D<ND<ND < N dimensions, and visubscript v_ivitalic_i =Vabsent =V= V (19) visubscript v_ivitalic_i =1absent1 =1= 1 iā 11 iā 1i ā 1 (20) When all features are partially represented we can use the constraint āiCi=Dsubscriptsubscript _iC_i=Dāi Citalic_i = D to solve for Ī» and find Ī»=(kā1)ā¢(Nā1+V)(kā3)ā¢D+2ā¢N.1132Ī»= (k-1)(N-1+V)(k-3)D+2N.Ī» = divide start_ARG ( k - 1 ) ( N - 1 + V ) end_ARG start_ARG ( k - 3 ) D + 2 N end_ARG . Feature #1 therefore has capacity C1=(kā3)ā¢D+2ā¢N(kā3)ā¢(Nā1+V)ā¢Vā2kā3.subscript1323123C_1= (k-3)D+2N(k-3)(N-1+V)V- 2k-3.C1 = divide start_ARG ( k - 3 ) D + 2 N end_ARG start_ARG ( k - 3 ) ( N - 1 + V ) end_ARG V - divide start_ARG 2 end_ARG start_ARG k - 3 end_ARG . As a sanity check, this is D/ND/ND / N when V=11V=1V = 1. Feature #1 becomes fully represented (C1=1)subscript11(C_1=1)( C1 = 1 ) when Vā„(kā1)ā¢(Nā1)(kā3)ā¢(Dā1)+2ā¢(Nā1)113121Vā„ (k-1)(N-1)(k-3)(D-1)+2(N-1)V ā„ divide start_ARG ( k - 1 ) ( N - 1 ) end_ARG start_ARG ( k - 3 ) ( D - 1 ) + 2 ( N - 1 ) end_ARG When k is large, this approaches (Nā1)/(Dā1)11(N-1)/(D-1)( N - 1 ) / ( D - 1 ). When Vā„(Nā1)/(Dā1)11Vā„(N-1)/(D-1)V ā„ ( N - 1 ) / ( D - 1 ), feature #1 is fully represented regardless of k. Feature #1 is ignored (C1=0)subscript10(C_1=0)( C1 = 0 ) when Vā¤2ā¢(Nā1)(kā3)ā¢D+2ā¢(Nā1)21321V⤠2(N-1)(k-3)D+2(N-1)V ⤠divide start_ARG 2 ( N - 1 ) end_ARG start_ARG ( k - 3 ) D + 2 ( N - 1 ) end_ARG When k is large, this goes to zero like 1/k11/k1 / k. For k=33k=3k = 3, both bounds are at V=11V=1V = 1 and the feature instantly changes from being ignored to fully represented when V crosses 1. 3.6 Phase Diagram Intuition Figure 4 shows the analytic phase diagram and the corresponding empirical results. The lower panel shows the marginal loss benefit (āāL/āCisubscript-ā L/ā C_i- ā L / ā Citalic_i) as a function of feature capacity for each labelled point in the analytical phase diagram. We first focus on relative feature importance. In our model an increase in relative feature importance corresponds to shifting āL/āCisubscriptā L/ā C_iā L / ā Citalic_i up by a constant factor. Going from point D to point F, the blue feature increases in relative importance, and the corresponding marginal loss curve is shifted up. At point D the blue feature is too unimportant to be represented, at point E the blue feature is similar enough in importance to be allocated a fractional dimension with equal marginal loss benefit to the black reference feature, and at point F the blue feature is so much more important than the black feature that it consumes all available capacity. We next turn to sparsity (kurtosis). As sparsity increases, the marginal loss curves go from convex (A) to flat (C), and eventually to concave (E). Thus, there are diminishing returns to representing a feature when it is sparse and increasing returns when it is dense. When features are dense, the curves are concave, so the feature with larger marginal loss benefit is purely represented and the other feature is ignored. This explains the jump from ignored to monosemantic at the top of the phase diagram between points A and B. When features are sparse, we see a smoother transition from ignored to polysemantic to monosemantic representations. At the critical point (labelled C in the figure), the marginal loss benefit curves are flat and equal in scale, so any allocation of capacity that makes full use of the available embedding dimensions is optimal. Thus, any given feature could be ignored, represented monosemantically, or represented polysemantically. The shapes of the āL/āCisubscriptā L/ā C_iā L / ā Citalic_i curves are specific to our toy model, but it is generally true that the boundaries between phases are determined by the marginal loss benefit of capacity. Note that this is true for any notion of capacity satisfying the properties discussed in Section 2.2. Finally, we note that our phase diagram bears a striking resemblance to that of a physical system with a second-order phase transition: there is a line of discontinuous āfirst orderā change (above the critical point), giving way to a continuous transition at higher sparsity. The resemblance is stronger if we think of āL/āCisubscriptā L/ā C_iā L / ā Citalic_i as our āorder parameter" instead of CisubscriptC_iCitalic_i itself: āL/āCisubscriptā L/ā C_iā L / ā Citalic_i is constant along one side of the discontinuity, and changes as a function of sparsity along the other side, with the discontinuity going to zero at the critical point. āL/āCisubscriptā L/ā C_iā L / ā Citalic_i is continuous everywhere else. That said, there are some notable differences from typical second-order transitions; most importantly, āL/āCisubscriptā L/ā C_iā L / ā Citalic_i is not a smooth analytic function of importance and sparsity, but rather a piecewise-analytic function whose derivatives are discontinuous at the edges of the superposition phase. It is also unclear whether there is any meaningful analog of critical-point phenomena such as critical exponents. 3.7 Other models and nonlinearities We now compare the numerical phase diagram for our toy model to that of Anthropicās autoencoder model [EHO+22b]. The key difference between these models is that we sum the output of the nonlinear layer before computing the loss whereas in Anthropicās model the loss is computed by summing the squared differences on the output layer. This means that theirs is tasked with data compression (i.e. recovering an encoded vector) while ours is tasked with a nonlinear computation. We compare these models across three nonlinearities: quadratic, ReLU, and GeLU. In our model when we vary the nonlinearity we do so both in the ground truth and in the activations. We further consider two cases: one with six features embedded in three dimensions (ā6 in 3ā) and one with six features embedded in five dimensions (ā6 in 5ā). The top row of Figure 7 shows the results for our toy model. The same general shape is the same in all cases, as predicted from our theoretical results: a sharp 0-1 transition at mild sparsity (low kurtosis), and a smoother transition with a region of superposition for more extreme sparsity (higher kurtosis). The superposition phase of our model also seems to be smoother, with capacity changing steadily from 0 to 1 (as predicted by our analytic results). In contrast, the Anthropic model has a large region where the capacity used by a feature is āstuckā close to 1/2. This presumably corresponds to an antipodal embedding geometry; or, in the terminology of Section 4, a separate block of the embedding matrix containing two features in a one-dimensional subspace. If the neuron basis is rotated appropriately, this becomes a single neuron that represents two features, with neither the neuron nor the features overlapping with anything else. By contrast, the superposed features in our model unavoidably project onto many neurons regardless of how the neuron basis is rotated. Interestingly, some aspects of the phase diagram seem to depend on the nonlinearity and/or model. Our model has a narrower superposed region than Anthropicās model. For the ā6 in 3ā case with significantly more features than neurons, Anthropicās model shows features in superposition even when their importance is orders of magnitude larger than any other feature, which does not happen for our model (or for Anthropicās when there is only one more feature than neurons). Figure 7: Empirical phase diagrams are shown for our toy model, Anthropicās toy model with 6 features in 3 dimensions, and Anthropicās toy model with 6 features in 5 dimensions. For each model we study three different nonlinearities. Our toy model looks similar for 6 features in 3 dimensions and 6 features in 5 dimensions for all nonlinearities, so we only display plots of 6 features in 3 dimensions. The contour at c=0.50.5c=0.5c = 0.5 has been replaced with two contours at c=0.47,0.530.470.53c=0.47,0.53c = 0.47 , 0.53 to give more detail for the large cā1/212cā 1/2c ā 1 / 2 regions, which correspond to the antipode polytope from [EHO+22b]. 4 Geometry of efficient matrices In this section we study the geometric of efficient embedding matrices, namely those which saturate the total capacity bound āiCiā¤Dsubscriptsubscript _iC_i⤠Dāi Citalic_i ⤠D with the capacity defined in equation (3). In particular, we exhaustively enumerate the forms these matrices can take and comment on the implications for the optimal capacity allocation in models. 4.1 Diagonal (monosemantic) The simplest way to make W efficient is to put D of the vectors orthogonal to each other with arbitrary lengths and set the rest to zero. This makes W a diagonal matrix padded with zeros. In this case, the capacities CisubscriptC_iCitalic_i are either 0 or 1. The norms-squared nisubscriptn_initalic_i are zero (if Ci=0subscript0C_i=0Citalic_i = 0) or nonzero but arbitrary (if Ci=1subscript1C_i=1Citalic_i = 1). 4.2 Semiorthogonal (āeverything bagelā) At the other extreme, we can choose W=Ī»ā¢RW= Ī»RW = square-root start_ARG Ī» end_ARG R where R is semiorthogonal, meaning that Rā¢RT=IsuperscriptRR^T=IR Ritalic_T = I. (This means the rows of W are orthonormal, but the columns arenāt.) In this case, we have Wā¢WT=Ī»ā¢IsuperscriptWW^T=Ī» IW Witalic_T = Ī» I, so (WTā¢W)2superscriptsuperscript2 (W^TW)^2( Witalic_T W )2 =Ī»ā¢WTā¢Wabsentsuperscript =Ī» W^TW= Ī» Witalic_T W (21) and the capacity simplifies to Ci=1Ī»ā¢[WTā¢W]iā¢i=niĪ»subscript1subscriptdelimited-[]superscriptsubscript C_i= 1Ī»[W^TW]_i= n_iĪ»Citalic_i = divide start_ARG 1 end_ARG start_ARG Ī» end_ARG [ Witalic_T W ]i i = divide start_ARG nitalic_i end_ARG start_ARG Ī» end_ARG (22) So the capacities and norms of vectors are directly related. We now confirm that this is efficient: āiCisubscriptsubscript _iC_iāi Citalic_i =1Ī»ā¢Trā¢(WTā¢W)=1Ī»ā¢Trā¢(Wā¢WT)=1Ī»ā¢Ī»ā¢D=Dabsent1Trsuperscript1Trsuperscript1 = 1Ī»Tr(W^TW)= 1Ī»Tr(W% ^T)= 1Ī» D=D= divide start_ARG 1 end_ARG start_ARG Ī» end_ARG Tr ( Witalic_T W ) = divide start_ARG 1 end_ARG start_ARG Ī» end_ARG Tr ( W Witalic_T ) = divide start_ARG 1 end_ARG start_ARG Ī» end_ARG Ī» D = D (23) Theorem 1 Such a matrix exists for any Cā Coverā start_ARG C end_ARG that sums to D, so this gives us a way of dividing up capacity efficiently however we like. The proof is shown in Appendix H. The singular values of a semiorthogonal matrix are all equal (and vice versa), so the condition of semiorthogonality is equivalent to requiring embedding vectors to be distributed in all directions in a balanced, isotropic way.555The exact sense of ābalancedā is a little tricky: the vectors donāt have to be centered around the origin! Instead, think about a dataset whose principal components all have the same variance. This gives some geometric intuition for what the angles between vectors are doing: shorter vectors, for features with less capacity, will be spaced closer together in order to keep the overall arrangement balanced. 4.3 Mixed (tegum product) We can combine these approaches by splitting our embedding space into orthogonal subspaces of dimension DksubscriptD_kDitalic_k and using a semiorthogonal matrix to embed NksubscriptN_kNitalic_k of our vectors into the kkkth subspace. To do this, make W block-diagonal with blocks Ī»kā¢Rksubscriptsubscript _kR_kĪ»italic_k Ritalic_k, where RksubscriptR_kRitalic_k is a DkĆNksubscriptsubscriptD_kĆ N_kDitalic_k Ć Nitalic_k semiorthogonal matrix. Here ākDk=Dsubscriptsubscript _kD_k=Dāk Ditalic_k = D and ākNk=Nsubscriptsubscript _kN_k=Nāk Nitalic_k = N. For an example with two blocks, see Figure 5. Within each block, the dimensions of a subspace are divided up as before: nisubscript n_initalic_i =Ī»kā¢Ciif iā block ā¢kabsentsubscriptsubscriptif iā block = _kC_i $iā$ block k= Ī»italic_k Citalic_i if i ā block k (24) āiā block ā¢kCisubscript block subscript _iā block kC_iāi ā block k Citalic_i =Dkabsentsubscript =D_k= Ditalic_k (25) Note that the independent scalars Ī»ksubscript _kĪ»italic_k let us scale different subspaces arbitrarily. (This is the only thing that makes this more general than the previous case.) 4.4 General So far we have chosen subspaces aligned with the standard basis on āDsuperscriptāR^Dblackboard_RD (i.e. the neurons), but we can rotate our set of embedding vectors however we like without changing Cā Coverā start_ARG C end_ARG or nā noverā start_ARG n end_ARG. Similarly, we have assigned dimensions of āNsuperscriptāR^Nblackboard_RN (i.e. features) to subspaces sequentially, but we can do it in any order. In other words: a sufficient condition for efficiency is that W is a DĆNDĆ ND Ć N matrix of the form Qā¢Bā¢PQBPQ B P, where ⢠Q is a DĆDĆ D Ć D orthogonal matrix, ⢠P is an NĆNĆ N Ć N permutation matrix, and ⢠B is a DĆNDĆ ND Ć N block-diagonal matrix whose (rectangular) blocks are of the form Rkā¢Ī³ksubscriptsubscriptR_k _kRitalic_k square-root start_ARG γitalic_k end_ARG, where γksubscript _kγitalic_k is a positive scalar and RksubscriptR_kRitalic_k is a semiorthogonal matrix. In terms of the SVD decomposition W=Qā¢Sā¢RW=QSRW = Q S R, an equivalent condition is that rows of R corresponding to unequal singular values Siā¢isubscriptS_iSitalic_i i are never nonzero in the same column. Theorem 2 This is also a necessary condition; all efficient matrices are of this form. The proof is shown in Appendix H. 4.5 Interpolating between regimes Consider some block of an efficient matrix (factor of a tegum product), and some vector wāisubscriptā w_ioverā start_ARG w end_ARGi in that block. If the norm-squared nisubscriptn_initalic_i of that vector is increased, its capacity CisubscriptC_iCitalic_i increases in order to keep cānproportional-toc nc ā n within the block. At the same time, the vector becomes more orthogonal to the rest of the block. If the capacity reaches Ci=1subscript1C_i=1Citalic_i = 1, the vector becomes fully orthogonal and separates into a new block. Once that happens, nisubscriptn_initalic_i can be varied arbitrarily without affecting CisubscriptC_iCitalic_i. On the other hand, if the capacity decreases to Ci=0subscript0C_i=0Citalic_i = 0, then ni=0subscript0n_i=0nitalic_i = 0 and the vector becomes zero; at that point the feature is ignored. 4.6 Application to toy models Empirically, Anthropic found that (when importances are equal) their embedding matrices often factor into orthogonal subspaces containing simple geometric structures [EHO+22b]. This is equivalent to the statement that their embedding matrices have a large number of small blocks. (This also explains some features of the phase diagram for their model, such as a large region near c=1/212c=1/2c = 1 / 2; see above.) In contrast, the embedding matrices in our model have one large superposed block (except for ignored or fully-represented features). We can understand this phenomenon by thinking about the constraints on Cā Coverā start_ARG C end_ARG and nā noverā start_ARG n end_ARG in the large-block and small-block regime. When there is one large block, capacity can be divided up arbitrarily; however, the lengths of embedding vectors are determined entirely by the capacities (up to an overall scalar). For our model, this is compatible with good loss, because minimizing loss gives the relationship Ciāniproportional-tosubscriptsubscriptC_i n_iCitalic_i ā nitalic_i anyway (see above). However, for Anthropicās model, this may be more constraining of embedding vector norms than the loss function āwants". In contrast, a collection of small blocks imposes constraints on capacity allocation, because each block must separately add up to the correct capacity. Once capacity is allocated, however, the lengths of vectors can be chosen much more freely by scaling blocks independently of each other. This doesnāt provide any benefit for our toy model, but seems to be useful to Anthropicās. This qualitative difference matters because it affects the interpretability of the network: when there are many small blocks, it is possible to choose an orthogonal basis of neurons such that each neuron is only polysemantic between a small number of features. On the other hand, large blocks imply that neurons will be polysemantic between many features at once. 5 Conclusions We have studied polysemanticity through the lens of feature capacity, or the fraction of an embedding dimension allocated to each feature. Treating capacity allocation as a constrained optimization problem, we find that many features are either ignored (not embedded) or else allocated a full embedding dimension orthogonal to all other features, depending on their relative importance to the loss. Features are represented polysemantically only when the marginal loss reduction of assigning more capacity to each is equal and significant (Figure 2). This neatly explains the sharp āpinningā of features to either 0 or 1 capacity noted by [EHO+22b]. To explore capacity allocation in a concrete model, we investigated a 2-layer model with quadratic activations (Section 3) and constructed a phase diagram of capacity allocation. We found good qualitative agreement to the phase diagram of [EHO+22b], and confirmed our theoretical predictions regarding optimal capacity allocation. Finally, we studied the geometry of the embedding space (Section 4), and characterized embedding matrices which make full use of the available dimensions. We found that efficient embedding matrices are block-semiorthogonal. These blocks correspond to the polytope structure [EHO+22b] found, with small blocks corresponding to features embedded as regular polytopes and large blocks corresponding to less-ordered structures. Large- and small-block arrangements come with different advantages. With large blocks there is significant freedom to allocate capacity across features, whereas with small blocks there is the additional constraint that the capacity of each block be an integer and that the block capacities add up to the total capacity. On the other hand, with small blocks the lengths of embedding vectors can be chosen more freely because blocks can be scaled independently of each other without affecting the capacity allocation. In our quadratic model the embedding matrices in our toy model always have one large block, while [EHO+22b] found a range of block sizes depending on the properties of the training distribution. This suggests that differences in architecture can lead to different sizes of blocks, which could provide a way to control the extent of polysemanticity in models, alongside other approaches such as changing the activation function [EHO+22a]. Author Contributions AS derived the geometry of efficient matrices, proved the upper bound on the model capacity, and proposed an alternate definition of capacity. KS performed the numerical calculations in this work. ASJ, KS, and BS developed the capacity allocation and constrained optimization framework. AS, KS, and BS developed the quadratic model, and derived the expected loss, and related this to the input kurtosis and sparsity. AS, KS, ASJ, and BS derived the analytic optima for the quadratic model. JB proved the existence of feasible matrices for optimal capacity allocations and proved that single-block semiorthogonal matrices can be found for any capacity allocation. JS, KS, ASJ, and BS provided feedback on drafts and the organization of this manuscript. AS, ASJ, and KS contributed to writing this manuscript. Acknowledgments The Flatiron Institute is supported by the Simons Foundation. We are grateful to Jacob Steinhardt, David Lindner, Oliver Balfour, Jeff Wu, Ryan Greenblatt, and Martin Wattenberg for helpful comments on this manuscript, as well as to Chris Olah and Nicholas Schiefer for discussions about this work. We thank Chris Olah for producing Figure 3. Appendix A Quadratic Model Expected Loss Our loss function is squared error Lā¢(x)=(y~ā¢(x)āyā¢(x))2.superscript~2 L(x)=( y(x)-y(x))^2.L ( x ) = ( over~ start_ARG y end_ARG ( x ) - y ( x ) )2 . (26) We assume that the xisubscriptx_ixitalic_iās are IID with ā¢[xi]=0delimited-[]subscript0E[x_i]=0blackboard_E [ xitalic_i ] = 0 and Varā¢[xi]=1Vardelimited-[]subscript1Var[x_i]=1Var [ xitalic_i ] = 1. With this, we can write the expected loss as ā¢[L]delimited-[] [L]blackboard_E [ L ] =ā¢[(xTā¢Dā¢x+b)2]absentdelimited-[]superscriptsuperscript2 =E[(x^TDx+b)^2]= blackboard_E [ ( xitalic_T D x + b )2 ] (27) =ā¢[(āi,jDiā¢jā¢xiā¢xj+b)2]absentdelimited-[]superscriptsubscriptsubscriptsubscriptsubscript2 =E [ ( _i,jD_ijx_ix_j+b )^2 ]= blackboard_E [ ( āi , j Ditalic_i j xitalic_i xitalic_j + b )2 ] (28) =āi,j,k,lDiā¢jā¢Dkā¢lā¢[xiā¢xjā¢xkā¢xl]+2ā¢bā¢āi,jDiā¢jā¢[xiā¢xj]+b2,absentsubscriptsubscriptsubscriptdelimited-[]subscriptsubscriptsubscriptsubscript2subscriptsubscriptdelimited-[]subscriptsubscriptsuperscript2 = _i,j,k,lD_ijD_klE [x_ix_jx_kx_l% ]+2b _i,jD_ijE[x_ix_j]+b^2,= āi , j , k , l Ditalic_i j Ditalic_k l blackboard_E [ xitalic_i xitalic_j xitalic_k xitalic_l ] + 2 b āi , j Ditalic_i j blackboard_E [ xitalic_i xitalic_j ] + b2 , (29) where D=WTā¢WāvsuperscriptD=W^TW-vD = Witalic_T W - v and v is the diagonal matrix formed of visubscript\v_i\ vitalic_i . We can split the first summation term into several summations by considering all partitions of four terms (4, 3|1, 2|2, 2|1|1, 1|1|1|1). For example, the 2|2 cases are ā(i=j)ā (k=l),ā(i=k)ā (j=l),ā(i=l)ā (k=j)subscriptsubscriptsubscript _(i=j)ā (k=l), _(i=k)ā (j=l), _(i=l)ā (k=j)ā( i = j ) ā ( k = l ) , ā( i = k ) ā ( j = l ) , ā( i = l ) ā ( k = j ). Because the xās are independent with mean 0 and variance 1, the only partition terms that are non-zero are 4 and 2|2, so we find ā¢[L]delimited-[] [L]blackboard_E [ L ] =ā¢[xi4]ā¢āiDiā¢i2+āiā jDiā¢iā¢Djā¢j+2ā¢āiā jDiā¢j2+2ā¢bā¢āiDiā¢i2+b2absentdelimited-[]superscriptsubscript4subscriptsuperscriptsubscript2subscriptsubscriptsubscript2subscriptsuperscriptsubscript22subscriptsuperscriptsubscript2superscript2 =E[x_i^4] _iD_i^2+ _iā jD_iD_% j+2 _iā jD_ij^2+2b _iD_i^2+b^2= blackboard_E [ xitalic_i4 ] āi Ditalic_i i2 + āi ā j Ditalic_i i Ditalic_j j + 2 āi ā j Ditalic_i j2 + 2 b āi Ditalic_i i2 + b2 (30) =(ā¢[xi4]ā1)ā¢āiDiā¢i2+āi,jDiā¢iā¢Djā¢j+2ā¢āiā jDiā¢j2+2ā¢bā¢āiDiā¢i2+b2absentdelimited-[]superscriptsubscript41subscriptsuperscriptsubscript2subscriptsubscriptsubscript2subscriptsuperscriptsubscript22subscriptsuperscriptsubscript2superscript2 =(E[x_i^4]-1) _iD_i^2+ _i,jD_iD_% j+2 _iā jD_ij^2+2b _iD_i^2+b^2= ( blackboard_E [ xitalic_i4 ] - 1 ) āi Ditalic_i i2 + āi , j Ditalic_i i Ditalic_j j + 2 āi ā j Ditalic_i j2 + 2 b āi Ditalic_i i2 + b2 (31) =(ā¢[xi4]ā1)ā¢āiDiā¢i2+(āiDiā¢i)2+2ā¢āiā jDiā¢j2+2ā¢bā¢āiDiā¢i2+b2absentdelimited-[]superscriptsubscript41subscriptsuperscriptsubscript2superscriptsubscriptsubscript22subscriptsuperscriptsubscript22subscriptsuperscriptsubscript2superscript2 =(E[x_i^4]-1) _iD_i^2+ ( _iD_i% )^2+2 _iā jD_ij^2+2b _iD_i^2+b^2= ( blackboard_E [ xitalic_i4 ] - 1 ) āi Ditalic_i i2 + ( āi Ditalic_i i )2 + 2 āi ā j Ditalic_i j2 + 2 b āi Ditalic_i i2 + b2 (32) =(ā¢[xi4]ā1)ā¢āiDiā¢i2+(b+āiDiā¢i)2+2ā¢āiā jDiā¢j2.absentdelimited-[]superscriptsubscript41subscriptsuperscriptsubscript2superscriptsubscriptsubscript22subscriptsuperscriptsubscript2 =(E[x_i^4]-1) _iD_i^2+ (b+ _iD_% i )^2+2 _iā jD_ij^2.= ( blackboard_E [ xitalic_i4 ] - 1 ) āi Ditalic_i i2 + ( b + āi Ditalic_i i )2 + 2 āi ā j Ditalic_i j2 . (33) Inspecting the second term we see that at optimum b=āāiDiā¢isubscriptsubscriptb=- _iD_ib = - āi Ditalic_i i. Making this assignment we find ā¢[L]delimited-[] [L]blackboard_E [ L ] =(ā¢[xi4]ā1)ā¢āiDiā¢i2+2ā¢āiā jDiā¢j2,absentdelimited-[]superscriptsubscript41subscriptsuperscriptsubscript22subscriptsuperscriptsubscript2 =(E[x_i^4]-1) _iD_i^2+2 _iā jD_ij% ^2,= ( blackboard_E [ xitalic_i4 ] - 1 ) āi Ditalic_i i2 + 2 āi ā j Ditalic_i j2 , (34) Substituting in for D gives us ā¢[L]=(ā¢[xi4]ā1)ā¢āi(āWā ,iā2āvi)2+2ā¢āiā j(Wā ,iā Wā ,j)2delimited-[]delimited-[]superscriptsubscript41subscriptsuperscriptsuperscriptnormsubscriptā 2subscript22subscriptsuperscriptā subscriptā subscriptā 2E[L]=(E[x_i^4]-1) _i(||W_Ā·,i||^2-v_i)^2% +2 _iā j(W_Ā·,iĀ· W_Ā·,j)^2blackboard_E [ L ] = ( blackboard_E [ xitalic_i4 ] - 1 ) āi ( | | Wā , i | |2 - vitalic_i )2 + 2 āi ā j ( Wā , i ā Wā , j )2 (35) Appendix B Covariances and Correlations Here we derive the relationship between the terms in the quadratic model loss and true/hallucinated correlations: Covā¢[y,xi2]Covsuperscriptsubscript2 [y,x_i^2]Cov [ y , xitalic_i2 ] =Covā¢[ājvjā¢xj2,xi2]absentCovsubscriptsubscriptsuperscriptsubscript2superscriptsubscript2 =Cov [ _jv_jx_j^2,x_i^2 ]= Cov [ āj vitalic_j xitalic_j2 , xitalic_i2 ] (36) =viā¢Covā¢[xi2,xi2]absentsubscriptCovsuperscriptsubscript2superscriptsubscript2 =v_iCov[x_i^2,x_i^2]= vitalic_i Cov [ xitalic_i2 , xitalic_i2 ] (37) =viā¢(ā¢[xi4]āā¢[xi2]2)absentsubscriptdelimited-[]superscriptsubscript4superscriptdelimited-[]superscriptsubscript22 =v_i(E[x_i^4]-E[x_i^2]^2)= vitalic_i ( blackboard_E [ xitalic_i4 ] - blackboard_E [ xitalic_i2 ]2 ) (38) =viā¢(ā¢[xi4]ā1)absentsubscriptdelimited-[]superscriptsubscript41 =v_i(E[x_i^4]-1)= vitalic_i ( blackboard_E [ xitalic_i4 ] - 1 ) (39) Covā¢[y~,xi2]Cov~superscriptsubscript2 [ y,x_i^2]Cov [ over~ start_ARG y end_ARG , xitalic_i2 ] =Covā¢[āj,k(WTā¢W)jā¢kā¢xjā¢xk,xi2]absentCovsubscriptsubscriptsuperscriptsubscriptsubscriptsuperscriptsubscript2 =Cov [ _j,k(W^TW)_jkx_jx_k,x_i^2 ]= Cov [ āj , k ( Witalic_T W )j k xitalic_j xitalic_k , xitalic_i2 ] (40) =(WTā¢W)iā¢iā¢Covā¢[xi2,xi2]absentsubscriptsuperscriptCovsuperscriptsubscript2superscriptsubscript2 =(W^TW)_iCov[x_i^2,x_i^2]= ( Witalic_T W )i i Cov [ xitalic_i2 , xitalic_i2 ] (41) =āWā ,iā2ā¢(ā¢[xi4]ā1)absentsuperscriptnormsubscriptā 2delimited-[]superscriptsubscript41 =||W_Ā·,i||^2(E[x_i^4]-1)= | | Wā , i | |2 ( blackboard_E [ xitalic_i4 ] - 1 ) (42) Covā¢[y,xiā¢xj]Covsubscriptsubscript [y,x_ix_j]Cov [ y , xitalic_i xitalic_j ] =0absent0 =0= 0 (iā j) (iā j)( i ā j ) (44) Covā¢[y~,xiā¢xj]Cov~subscriptsubscript [ y,x_ix_j]Cov [ over~ start_ARG y end_ARG , xitalic_i xitalic_j ] =Covā¢[āj,k(WTā¢W)jā¢kā¢xjā¢xk,xiā¢xj]absentCovsubscriptsubscriptsuperscriptsubscriptsubscriptsubscriptsubscript =Cov [ _j,k(W^TW)_jkx_jx_k,x_ix_j ]= Cov [ āj , k ( Witalic_T W )j k xitalic_j xitalic_k , xitalic_i xitalic_j ] (iā j) (iā j)( i ā j ) (45) =2ā¢(WTā¢W)iā¢jā¢Covā¢[xiā¢xj,xiā¢xj]absent2subscriptsuperscriptCovsubscriptsubscriptsubscriptsubscript =2(W^TW)_ijCov[x_ix_j,x_ix_j]= 2 ( Witalic_T W )i j Cov [ xitalic_i xitalic_j , xitalic_i xitalic_j ] (46) =2ā¢(Wā ,iā Wā ,j)absent2ā subscriptā subscriptā =2(W_Ā·,iĀ· W_Ā·,j)= 2 ( Wā , i ā Wā , j ) (47) Here the true correlations in the model are described by the term Covā¢[y~,xi2]Cov~superscriptsubscript2Cov[ y,x_i^2]Cov [ over~ start_ARG y end_ARG , xitalic_i2 ], as these are what appear in the ground truth (Covā¢[y,xi2]Covsuperscriptsubscript2Cov[y,x_i^2]Cov [ y , xitalic_i2 ]). By contrast, the hallucinated correlations are those of the form Covā¢[y~,xiā¢xj],iā jCov~subscriptsubscriptCov[ y,x_ix_j],iā jCov [ over~ start_ARG y end_ARG , xitalic_i xitalic_j ] , i ā j, which are zero in the ground truth but are generally non-zero in the quadratic toy model. Appendix C Quadratic Model Loss Minmization In minimizing the loss we have to consider three constraints: 1. 1ā¤āiCiā¤D1subscriptsubscript1⤠_iC_i⤠D1 ⤠āi Citalic_i ⤠D 2. 0ā¤Ciā¤10subscript10⤠C_i⤠10 ⤠Citalic_i ⤠1 3. (Cā,nā)ā( C, n)( overā start_ARG C end_ARG , overā start_ARG n end_ARG ) is feasible Here feasibility means that there is actually a set of embedding directions we can choose such that W realizes the capacity allocation Cā Coverā start_ARG C end_ARG and embedding lengths nā noverā start_ARG n end_ARG. Our strategy here will be to āask forgiveness rather than permission": We minimize āLL, ignoring the feasibility constraint, and check for feasibility after the fact. First we hold Cā Coverā start_ARG C end_ARG fixed and optimize over nā noverā start_ARG n end_ARG: āāāniāsubscript ān_idivide start_ARG ā L end_ARG start_ARG ā nitalic_i end_ARG =2ā¢(kā1)ā¢(niāvi)ā4ā¢ni+4ā¢niCiabsent21subscriptsubscript4subscript4subscriptsubscript =2(k-1)(n_i-v_i)-4n_i+4 n_iC_i= 2 ( k - 1 ) ( nitalic_i - vitalic_i ) - 4 nitalic_i + 4 divide start_ARG nitalic_i end_ARG start_ARG Citalic_i end_ARG (49) 00 0 =2ā¢(kā1)ā¢(niāāvi)ā4ā¢niā+4ā¢niāCiabsent21superscriptsubscriptsubscript4superscriptsubscript4superscriptsubscriptsubscript =2(k-1)(n_i^*-v_i)-4n_i^*+4 n_i^*C_i= 2 ( k - 1 ) ( nitalic_iā - vitalic_i ) - 4 nitalic_iā + 4 divide start_ARG nitalic_iā end_ARG start_ARG Citalic_i end_ARG (50) niāā¢((kā3)+2/Ci)superscriptsubscript32subscript n_i^*((k-3)+2/C_i)nitalic_iā ( ( k - 3 ) + 2 / Citalic_i ) =(kā1)ā¢viabsent1subscript =(k-1)v_i= ( k - 1 ) vitalic_i (51) niāsuperscriptsubscript n_i^*nitalic_iā =(kā1)ā¢vi(kā3)+2/Ciabsent1subscript32subscript = (k-1)v_i(k-3)+2/C_i= divide start_ARG ( k - 1 ) vitalic_i end_ARG start_ARG ( k - 3 ) + 2 / Citalic_i end_ARG (52) Note that limCiā0niā=0subscriptāsubscript0superscriptsubscript0 _C_iā 0n_i^*=0limitalic_C start_POSTSUBSCRIPT i ā 0 end_POSTSUBSCRIPT nitalic_iā = 0 and limCiā0(niā/2Ci)=0 _C_iā 0(n_i^*^2/C_i)=0limitalic_C start_POSTSUBSCRIPT i ā 0 end_POSTSUBSCRIPT ( nitalic_iā start_FLOATSUPERSCRIPT 2 end_FLOATSUPERSCRIPT / Citalic_i ) = 0, so the final two terms of the loss are zero for non-represented features. Next we differentiate with respect to capacity to find āāā¢(Cā,nāāā¢(Cā))āCi=āāāCi+ājāāānjā¢ānjāāCiāāsuperscriptāsubscriptāsubscriptsubscriptāsubscriptsuperscriptsubscriptsubscript ( C, n^*( C))ā C% _i= ā C_i+ _j ā% Lā n_j ā n_j^*ā C_idivide start_ARG ā L ( overā start_ARG C end_ARG , overā start_ARG n end_ARGā ( overā start_ARG C end_ARG ) ) end_ARG start_ARG ā Citalic_i end_ARG = divide start_ARG ā L end_ARG start_ARG ā Citalic_i end_ARG + āj divide start_ARG ā L end_ARG start_ARG ā nitalic_j end_ARG divide start_ARG ā nitalic_jā end_ARG start_ARG ā Citalic_i end_ARG (53) The second term vanishes666This is because we optimized over nisubscript\n_i\ nitalic_i without any constraints, so nāāsuperscriptā n^*overā start_ARG n end_ARGā is a local optimum for any Cā Coverā start_ARG C end_ARG., so we only have the first term āāāCi=ā2ā¢(niāā¢(Ci))2Ci2āsubscript2superscriptsuperscriptsubscriptsubscript2superscriptsubscript2 ā C_i=-2 (n_i^*(C_% i))^2C_i^2divide start_ARG ā L end_ARG start_ARG ā Citalic_i end_ARG = - 2 divide start_ARG ( nitalic_iā ( Citalic_i ) )2 end_ARG start_ARG Citalic_i2 end_ARG (54) This is non-positive, so our loss is monotonically decreasing in CisubscriptC_iCitalic_i. That means that we will saturate our first constraint, āiCi=Dsubscriptsubscript _iC_i=Dāi Citalic_i = D. Next letās solve for CisubscriptC_iCitalic_i and nisubscriptn_initalic_i: Ī»ā¢Cisubscript Ī» C_iĪ» Citalic_i =(kā1)ā¢vi(kā3)+2/Ciabsent1subscript32subscript = (k-1)v_i(k-3)+2/C_i= divide start_ARG ( k - 1 ) vitalic_i end_ARG start_ARG ( k - 3 ) + 2 / Citalic_i end_ARG (55) viĪ»subscript v_iĪ»divide start_ARG vitalic_i end_ARG start_ARG Ī» end_ARG =Ciā¢kā3kā1+2kā1absentsubscript3121 =C_i k-3k-1+ 2k-1= Citalic_i divide start_ARG k - 3 end_ARG start_ARG k - 1 end_ARG + divide start_ARG 2 end_ARG start_ARG k - 1 end_ARG (56) Cisubscript C_iCitalic_i =maxā”(minā”(kā1kā3ā¢viĪ»ā2kā3,1),0)absent13subscript2310 = ( ( k-1k-3 v_iĪ»- 2% k-3,1 ),0 )= max ( min ( divide start_ARG k - 1 end_ARG start_ARG k - 3 end_ARG divide start_ARG vitalic_i end_ARG start_ARG Ī» end_ARG - divide start_ARG 2 end_ARG start_ARG k - 3 end_ARG , 1 ) , 0 ) (57) where we have introduced the clipping at 0 and 1 to make this also apply to the capacities on the boundary. With CisubscriptC_iCitalic_i we then obtain ni=0Ci=0kā1kā3ā¢viā2ā¢Ī»kā30<Ci<1viCi=1subscriptcases0subscript013subscript230subscript1subscriptsubscript1 n_i= cases0& C_i=0\\ k-1k-3v_i- 2Ī»k-3& 0<C_i<1\\ v_i& C_i=1 casesnitalic_i = start_ROW start_CELL 0 end_CELL start_CELL Citalic_i = 0 end_CELL end_ROW start_ROW start_CELL divide start_ARG k - 1 end_ARG start_ARG k - 3 end_ARG vitalic_i - divide start_ARG 2 Ī» end_ARG start_ARG k - 3 end_ARG end_CELL start_CELL 0 < Citalic_i < 1 end_CELL end_ROW start_ROW start_CELL vitalic_i end_CELL start_CELL Citalic_i = 1 end_CELL end_ROW (58) C.0.1 Checking feasibility For our solution (Cā,nā)ā( C, n)( overā start_ARG C end_ARG , overā start_ARG n end_ARG ) to be feasible, there must exist a corresponding matrix W. As shown in Appendix H, for any Cā Coverā start_ARG C end_ARG with āiCi=Dā¤Nsubscriptsubscript _iC_i=D⤠Nāi Citalic_i = D ⤠N and 0ā¤Ciā¤10subscript10⤠C_i⤠10 ⤠Citalic_i ⤠1, there is a semiorthogonal matrix W of shape (N,D)(N,D)( N , D ) with Ciā¢(W)=CisubscriptsubscriptC_i(W)=C_iCitalic_i ( W ) = Citalic_i. We next need to show that nā noverā start_ARG n end_ARG is compatible with Cā Coverā start_ARG C end_ARG. The condition niāCiproportional-tosubscriptsubscriptn_i C_initalic_i ā Citalic_i holds for any semiorthogonal matrix, and we can multiply each Wā ,isubscriptā W_Ā·,iWā , i by a scalar to get the constant of proportionality right. Therefore, this solution is feasible! Appendix D Kurtosis and Sparsity D.1 Sparsity increases fourth moment Suppose that, with probability p, x takes the value of a new random variable z and otherwise it is 0 (i.e. x=sā¢zx=szx = s z, sā¼Bā¢(p)similar-tos B(p)s ā¼ B ( p )). We set the mean ā¢[z]=0delimited-[]0E[z]=0blackboard_E [ z ] = 0 and variance Varā¢[z]=1/pVardelimited-[]1Var[z]=1/pVar [ z ] = 1 / p so that ā¢[x]=0,Varā¢[x]=1formulae-sequencedelimited-[]0Vardelimited-[]1E[x]=0,Var[x]=1blackboard_E [ x ] = 0 , Var [ x ] = 1. As p decreases (i.e. sparsity increases), ā¢[x4]delimited-[]superscript4E[x^4]blackboard_E [ x4 ] increases: ā¢[x4]=ā¢[s4ā¢z4]=ā¢[s4]ā¢[z4]=pā Kurtā¢[z]ā¢Varā¢[z]2=Kurtā¢[z]/pdelimited-[]superscript4delimited-[]superscript4superscript4delimited-[]superscript4delimited-[]superscript4ā Kurtdelimited-[]Varsuperscriptdelimited-[]2Kurtdelimited-[] [x^4]=E[s^4z^4]=E[s^4] % E[z^4]=pĀ·Kurt[z]Var[z]^2=Kurt[z]/pblackboard_E [ x4 ] = blackboard_E [ s4 z4 ] = blackboard_E [ s4 ] blackboard_E [ z4 ] = p ā Kurt [ z ] Var [ z ]2 = Kurt [ z ] / p (59) D.2 Uniform Random Variable Moments We want to choose a such that for xā¼Uā¢(āa,a)ā Bā¢(p)similar-toā x U(-a,a)Ā· B(p)x ā¼ U ( - a , a ) ā B ( p ), Varā¢[x]=1Vardelimited-[]1Var[x]=1Var [ x ] = 1. Choose a=3p3a= 3pa = square-root start_ARG divide start_ARG 3 end_ARG start_ARG p end_ARG end_ARG: Varā¢[x]Vardelimited-[] [x]Var [ x ] =ā¢[s2]ā¢[z2]=pā (2ā¢3/p)212=1absentdelimited-[]superscript2delimited-[]superscript2ā superscript232121 =E[s^2]E[z^2]=pĀ· (2 3/p% )^212=1= blackboard_E [ s2 ] blackboard_E [ z2 ] = p ā divide start_ARG ( 2 square-root start_ARG 3 / p end_ARG )2 end_ARG start_ARG 12 end_ARG = 1 (60) Kurtā¢[x]Kurtdelimited-[] [x]Kurt [ x ] =ā¢[x4]ā¢[x2]2=95ā 1pabsentdelimited-[]superscript4superscriptdelimited-[]superscript22ā 951 = E[x^4]E[x^2]^2= 95Ā·% 1p= divide start_ARG blackboard_E [ x4 ] end_ARG start_ARG blackboard_E [ x2 ]2 end_ARG = divide start_ARG 9 end_ARG start_ARG 5 end_ARG ā divide start_ARG 1 end_ARG start_ARG p end_ARG (61) Appendix E Interpretation as correlation coefficient The (population) Pearson correlation coefficient Ļ2superscript2Ļ^2Ļ2, also called āfraction of variance explainedā, is defined as the ratio between covariance squared and the product of variances: Ļ2ā¢(X,Y)=(kā1)ā¢(X,Y)2Īŗā¢(X,X)ā¢Īŗā¢(Y,Y)superscript21superscript2 Ļ^2(X,Y)= (k-1)(X,Y)^2Īŗ(X,X)Īŗ(Y,Y)Ļ2 ( X , Y ) = divide start_ARG ( k - 1 ) ( X , Y )2 end_ARG start_ARG Īŗ ( X , X ) Īŗ ( Y , Y ) end_ARG (62) (The more-familiar r2superscript2r^2r2 is an estimator for Ļ2superscript2Ļ^2Ļ2 computed from a sample.) Letās assume our input features XisubscriptX_iXitalic_i are linearly uncorrelated and have mean zero and variance one: (kā1)ā¢(Xi)1subscript (k-1)(X_i)( k - 1 ) ( Xitalic_i ) =0absent0 =0= 0 (63) (kā1)ā¢(Xi,Xj)1subscriptsubscript (k-1)(X_i,X_j)( k - 1 ) ( Xitalic_i , Xitalic_j ) =Ī“iā¢jabsentsubscript = _ij= Ī“italic_i j (64) Weāl embed them with embedding vectors wi=Wā¢e^i=W:,isubscriptsubscript^subscript:w_i=W e_i=W_:,iwitalic_i = W over start_ARG e end_ARGi = W: , i and immediately unembed with WTsuperscriptW^TWitalic_T. Then Ļ2superscript2Ļ^2Ļ2 between the iiith input and output is (using Einstein notation for everything except i, which is never summed) Ļ2ā¢(Xi,[WTā¢Wā¢X]i)superscript2subscriptsubscriptdelimited-[]superscript Ļ^2(X_i,[W^TWX]_i)Ļ2 ( Xitalic_i , [ Witalic_T W X ]i ) =(kā1)ā¢(Xi,Wāiā¢kā¢Wkā¢jā¢Xj)2(kā1)ā¢(Xi,Xi)ā¢(kā1)ā¢(Wiā¢kā¢Wkā¢jā¢Xj,Wiā¢kā²ā¢Wkā²ā¢jā²ā¢Xjā²)absent1superscriptsubscriptsubscriptsubscript21subscriptsubscript1subscriptsubscriptsubscriptsubscriptsuperscriptā²subscriptsuperscriptā²subscriptsuperscriptā² = (k-1)(X_i,W*ikW_kjX_j)^2(k-1)(X_i,X_i)(k-1% )(W_ikW_kjX_j,W_ik W_k j X_j )= divide start_ARG ( k - 1 ) ( Xitalic_i , W ā i k Witalic_k j Xitalic_j )2 end_ARG start_ARG ( k - 1 ) ( Xitalic_i , Xitalic_i ) ( k - 1 ) ( Witalic_i k Witalic_k j Xitalic_j , Witalic_i kā² Witalic_kā² jā² Xitalic_jā² ) end_ARG (65) =(Wiā¢kā¢Wkā¢jā¢(kā1)ā¢(Xi,Xj))2Wiā¢kā¢Wkā¢jā¢Wiā¢kā²ā¢Wkā²ā¢jā²ā¢(kā1)ā¢(Xi,Xi)ā¢(kā1)ā¢(Xj,Xjā²)absentsuperscriptsubscriptsubscript1subscriptsubscript2subscriptsubscriptsubscriptsuperscriptā²subscriptsuperscriptā²1subscriptsubscript1subscriptsubscriptsuperscriptā² = (W_ikW_kj(k-1)(X_i,X_j))^2W_ikW_kjW_ik^% W_k j (k-1)(X_i,X_i)(k-1)(X_j,X_j )= divide start_ARG ( Witalic_i k Witalic_k j ( k - 1 ) ( Xitalic_i , Xitalic_j ) )2 end_ARG start_ARG Witalic_i k Witalic_k j Witalic_i kā² Witalic_kā² jā² ( k - 1 ) ( Xitalic_i , Xitalic_i ) ( k - 1 ) ( Xitalic_j , Xitalic_jā² ) end_ARG (66) =(Wiā¢kā¢Wkā¢jā¢Ī“iā¢j)2Wiā¢kā¢Wkā¢jā¢Wiā¢kā²ā¢Wkā²ā¢jā²ā¢Ī“jā¢jā²absentsuperscriptsubscriptsubscriptsubscript2subscriptsubscriptsubscriptsuperscriptā²subscriptsuperscriptā²subscriptsuperscriptā² = (W_ikW_kj _ij)^2W_ikW_kjW_ik % W_k j _j = divide start_ARG ( Witalic_i k Witalic_k j Ī“italic_i j )2 end_ARG start_ARG Witalic_i k Witalic_k j Witalic_i kā² Witalic_kā² jā² Ī“italic_j jā² end_ARG (67) =(Wiā¢kā¢Wkā¢i)2(Wiā¢kā¢Wkā¢j)ā¢(Wiā¢kā²ā¢Wkā²ā¢j)absentsuperscriptsubscriptsubscript2subscriptsubscriptsubscriptsuperscriptā²subscriptsuperscriptā² = (W_ikW_ki)^2(W_ikW_kj)(W_ik W_k^% j)= divide start_ARG ( Witalic_i k Witalic_k i )2 end_ARG start_ARG ( Witalic_i k Witalic_k j ) ( Witalic_i kā² Witalic_kā² j ) end_ARG (68) =(wiā wi)2āj(wiā wj)2absentsuperscriptā subscriptsubscript2subscriptsuperscriptā subscriptsubscript2 = (w_iĀ· w_i)^2 _j(w_iĀ· w_j)^2= divide start_ARG ( witalic_i ā witalic_i )2 end_ARG start_ARG āj ( witalic_i ā witalic_j )2 end_ARG (69) =Ciabsentsubscript =C_i= Citalic_i (70) where weāve written the sum over j explicitly for the sake of clarity. Note that WTsuperscriptW^TWitalic_T is not always the optimal way to reconstruct XisubscriptX_iXitalic_i from Wā¢XWXW X. We havenāt checked the math, but it seems to be the case that using the optimal unembedding matrix instead of WTsuperscriptW^TWitalic_T gives the alternate definition of capacity in Appendix G. Appendix F Proof of capacity constraint Suppose we have N features and D neurons, with Nā„DNā„ DN ā„ D. Let our embedding matrix be Waā¢isubscriptW_aiWitalic_a i, with shape [D,N][D,N][ D , N ]. The embedding vectors in āDsuperscriptāR^Dblackboard_RD are column vectors wāi:=W:,iassignsubscriptāsubscript: w_i:=W_:,ioverā start_ARG w end_ARGi := W: , i with components [wi]a=Waā¢isubscriptdelimited-[]subscriptsubscript[w_i]_a=W_ai[ witalic_i ]a = Witalic_a i. Define Vaā¢isubscript V_aiVitalic_a i :=Waā¢i[WTā¢Wā¢WTā¢W]iā¢iassignabsentsubscriptsubscriptdelimited-[]superscriptsuperscript := W_ai [W^TW^TW]_i:= divide start_ARG Witalic_a i end_ARG start_ARG square-root start_ARG [ Witalic_T W Witalic_T W ]i i end_ARG end_ARG (71) vāi:=V:,iassignsubscriptāsubscript: v_i:=V_:,ioverā start_ARG v end_ARGi := V: , i =wāiāj(wāiā wāj)2absentsubscriptāsubscriptsuperscriptā subscriptāsubscriptā2 = w_i _j( w_iĀ· w_j)^% 2= divide start_ARG overā start_ARG w end_ARGi end_ARG start_ARG square-root start_ARG āj ( overā start_ARG w end_ARGi ā overā start_ARG w end_ARGj )2 end_ARG end_ARG (72) and U U :=VTā¢Wassignabsentsuperscript :=V^TW:= Vitalic_T W (73) Uiā¢jsubscript U_ijUitalic_i j =vāiā wājabsentā subscriptāsubscriptā = v_iĀ· w_j= overā start_ARG v end_ARGi ā overā start_ARG w end_ARGj (74) Note that Uiā¢i2superscriptsubscript2 U_i^2Uitalic_i i2 =(wāiā wāi)2āj(wāiā wāj)2=Ciabsentsuperscriptā subscriptāsubscriptā2subscriptsuperscriptā subscriptāsubscriptā2subscript = ( w_iĀ· w_i)^2 _j( w_i% Ā· w_j)^2=C_i= divide start_ARG ( overā start_ARG w end_ARGi ā overā start_ARG w end_ARGi )2 end_ARG start_ARG āj ( overā start_ARG w end_ARGi ā overā start_ARG w end_ARGj )2 end_ARG = Citalic_i (75) Also, āj=1NUiā¢j2=1superscriptsubscript1superscriptsubscript21 _j=1^NU_ij^2=1āj = 1N Uitalic_i j2 = 1 (76) so the row vectors u^i:=Ui,:āāNassignsubscript^subscript:superscriptā u_i:=U_i,: ^Nover start_ARG u end_ARGi := Uitalic_i , : ā blackboard_RN are unit vectors. Let Dā²:=rankā¢(U)ā¤Dassignsuperscriptā²rankD :=rank(U)⤠Dā² := rank ( U ) ⤠D, so that the vectors u^isubscript u_iover start_ARG u end_ARGi span a subspace of dimension Dā². Let the Dā² unit vectors y^bāāNsubscript^superscriptā y_b ^Nover start_ARG y end_ARGb ā blackboard_RN with components [yb]i=:Ybā¢i[y_b]_i=:Y_bi[ yitalic_b ]i = : Yitalic_b i be an orthonormal basis for this subspace. Let Xiā¢bsubscriptX_ibXitalic_i b be the components of u^isubscript u_iover start_ARG u end_ARGi in the y^bsubscript y_bover start_ARG y end_ARGb basis, so that U U =Xā¢Yabsent =XY= X Y (77) u^isubscript u_iover start_ARG u end_ARGi =āb=1Dā²Xiā¢bā¢y^babsentsuperscriptsubscript1superscriptā²subscriptsubscript = _b=1^D X_ib y_b= āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT Xitalic_i b over start_ARG y end_ARGb (78) u^isubscript u_iover start_ARG u end_ARGi is a unit vector, so its components in an orthonormal basis obey āb=1Dā²Xiā¢b2superscriptsubscript1superscriptā²subscript2 _b=1^D X_ib^2āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT Xitalic_i b2 =1absent1 =1= 1 (79) Therefore, the row vectors x^i:=Xi,:āāDā²assignsubscript^subscript:superscriptāsuperscriptā² x_i:=X_i,: ^D over start_ARG x end_ARGi := Xitalic_i , : ā blackboard_RD start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT are unit vectors. We can also define vectors yāi:=Y:,iassignsubscriptāsubscript: y_i:=Y_:,ioverā start_ARG y end_ARGi := Y: , i; note that these are the columns of Y and y^bsubscript y_bover start_ARG y end_ARGb are the rows. Note that Uiā¢j=x^iā yāisubscriptā subscript^subscriptāU_ij= x_iĀ· y_iUitalic_i j = over start_ARG x end_ARGi ā overā start_ARG y end_ARGi, so we have Ci=Uiā¢i2subscriptsuperscriptsubscript2 C_i=U_i^2Citalic_i = Uitalic_i i2 =(x^iā yāi)2absentsuperscriptā subscript^subscriptā2 =( x_iĀ· y_i)^2= ( over start_ARG x end_ARGi ā overā start_ARG y end_ARGi )2 (80) ā¤(x^iā x^i)ā¢(yāiā yāi)⢠by Cauchy-Schwarzabsentā subscript^subscript^ā subscriptāsubscriptā by Cauchy-Schwarz ā¤( x_iĀ· x_i)( y_iĀ· y_i)% by Cauchy-Schwarz⤠( over start_ARG x end_ARGi ā over start_ARG x end_ARGi ) ( overā start_ARG y end_ARGi ā overā start_ARG y end_ARGi ) by Cauchy-Schwarz (81) =(yāiā yāi)absentā subscriptāsubscriptā =( y_iĀ· y_i)= ( overā start_ARG y end_ARGi ā overā start_ARG y end_ARGi ) (82) =āb=1Dā²Ybā¢i2absentsuperscriptsubscript1superscriptā²subscript2 = _b=1^D Y_bi^2= āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT Yitalic_b i2 (83) Finally, summing over i, āi=1NCisuperscriptsubscript1subscript _i=1^NC_iāi = 1N Citalic_i ā¤āi=1Nāb=1Dā²Ybā¢i2absentsuperscriptsubscript1superscriptsubscript1superscriptā²subscript2 ⤠_i=1^N _b=1^D Y_bi^2⤠āi = 1N āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT Yitalic_b i2 (84) =āb=1Dā²āi=1NYbā¢i2absentsuperscriptsubscript1superscriptā²subscript1superscriptsubscript2 = _b=1^D _i=1^NY_bi^2= āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT āi = 1N Yitalic_b i2 (85) =āb=1Dā²|y^b|2absentsuperscriptsubscript1superscriptā²subscript^2 = _b=1^D | y_b|^2= āb = 1D start_POSTSUPERSCRIPT ā² end_POSTSUPERSCRIPT | over start_ARG y end_ARGb |2 (86) =Dā²ā¤Dabsentsuperscriptā² =D ⤠D= DⲠ⤠D (87) Appendix G An alternative definition of capacity Instead of applying equation (2) directly to W, we can take the (compact) SVD W=Qā¢Sā¢RW=QSRW = Q S R and apply it to R, C~iā¢(W):=([RTā¢R]iā¢i)2[(RTā¢R)2]iā¢i=[RTā¢R]iā¢iassignsubscript~superscriptsubscriptdelimited-[]superscript2subscriptdelimited-[]superscriptsuperscript2subscriptdelimited-[]superscript C_i(W):= ([R^TR]_i)^2[(R^TR)^2]_i% =[R^TR]_iover~ start_ARG C end_ARGi ( W ) := divide start_ARG ( [ Ritalic_T R ]i i )2 end_ARG start_ARG [ ( Ritalic_T R )2 ]i i end_ARG = [ Ritalic_T R ]i i (88) An equivalent prescription is to first rotate (by Qā1superscript1Q^-1Q- 1) and then scale (by Sā1superscript1S^-1S- 1) the embedding space āDsuperscriptāR^Dblackboard_RD so that the embedding vectors are isotropically distributed, then take C~isubscript~ C_iover~ start_ARG C end_ARGi to be the norm-squared of the new embedding vector Sā1ā¢Qā1ā¢wāisuperscript1superscript1subscriptāS^-1Q^-1 w_iS- 1 Q- 1 overā start_ARG w end_ARGi. This is equivalent to our previous definition when W is āc-efficientā, āi=1NCi=Dā¹C~i=Cisuperscriptsubscript1subscriptsubscript~subscript _i=1^NC_i=D C_i=C_iāi = 1N Citalic_i = D ā¹ over~ start_ARG C end_ARGi = Citalic_i (89) but relaxes the condition for āc~~ cover~ start_ARG c end_ARG-efficiencyā dramatically, to the point that generic matrices are efficient: āi=1NC~isuperscriptsubscript1subscript~ _i=1^N C_iāi = 1N over~ start_ARG C end_ARGi =rankā¢(W)absentrank =rank(W)= rank ( W ) (90) W⢠full rank full rank W full rankW full rank ā¹āi=1NC~i=Dabsentsuperscriptsubscript1subscript~ _i=1^N C_i=Dā¹ āi = 1N over~ start_ARG C end_ARGi = D (91) On the other hand, C~iā¢(W)subscript~ C_i(W)over~ start_ARG C end_ARGi ( W ) is a somewhat more discontinuous function of W than Ciā¢(W)subscriptC_i(W)Citalic_i ( W ) is. Our results for the quadratic toy model are essentially unchanged; W is efficient at the minimum of missingā¢Eā¢[ā]missingdelimited-[]ā missingE[L]missing E [ L ], so these definitions coincide (although weāre not sure their derivatives do). In more realistic models, it remains to be seen which version is more useful. This new definition also sheds some light on āc-efficiencyā: a matrix is efficient if its embedding vectors are isotropically distributed within each block. In the case of only one block, a matrix is efficient if identity covariance for a random xā xoverā start_ARG x end_ARG implies identity covariance for Wā¢xāW xW overā start_ARG x end_ARG. Appendix H Feasibility Proofs Set-up: We have vectors w1,ā¦,wNāāDsubscript1ā¦subscriptsuperscriptāw_1,ā¦,w_N ^Dw1 , ⦠, witalic_N ā blackboard_RD spanning āDsuperscriptāR^Dblackboard_RD, where Dā¤ND⤠ND ⤠N, arranged into an DĆNDĆ ND Ć N matrix W=(||w1ā¦wN||).matrix|missing-subexpression|subscript1ā¦subscript|missing-subexpression|W= pmatrix|&&|\\ w_1&ā¦&w_N\\ |&&| pmatrix.W = ( start_ARG start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW start_ROW start_CELL w1 end_CELL start_CELL ⦠end_CELL start_CELL witalic_N end_CELL end_ROW start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW end_ARG ) . Our aim is to show that āi=1NCiā¤Dsuperscriptsubscript1subscript _i=1^NC_i⤠Dāi = 1N Citalic_i ⤠D and to determine the conditions under which equality holds. Solution: We begin by finding a maximal decomposition of āDsuperscriptāR^Dblackboard_RD into orthogonal subspaces V1āāÆāVrdirect-sumsubscript1āÆsubscriptV_1 ⦠V_rV1 ā ⯠ā Vitalic_r such that each wisubscriptw_iwitalic_i lies in some VssubscriptV_sVitalic_s and partition the wisubscriptw_iwitalic_i accordingly, discarding any index with wi=0subscript0w_i=0witalic_i = 0. It then suffices to examine the problem separately on each subspace VssubscriptV_sVitalic_s. Therefore, we assume that w1,ā¦,wNsubscript1ā¦subscriptw_1,ā¦,w_Nw1 , ⦠, witalic_N are such that we cannot decompose our problem further. In particular, this implies that wiā 0subscript0w_iā 0witalic_i ā 0 for all i and we cannot partition the indices into two subsets S,TS,TS , T such that wiā wj=0ā subscriptsubscript0w_iĀ· w_j=0witalic_i ā witalic_j = 0 for all iāS,jāTformulae-sequenceiā S,jā Ti ā S , j ā T. Lemma 1 Let e1,ā¦,eNsubscript1ā¦subscript\e_1,ā¦,e_N\ e1 , ⦠, eitalic_N be the standard basis of āNsuperscriptāR^Nblackboard_RN and let VāāNsuperscriptāV ^NV ā blackboard_RN be a linear subspace of dimension D, such that eiāVāsubscriptsuperscriptperpendicular-toe_i ā V eitalic_i ā Vā for all i. Then for any arbitrary unit vectors v1,ā¦,vNāVsubscript1ā¦subscriptv_1,ā¦,v_Nā Vv1 , ⦠, vitalic_N ā V, we have āi=1N(viā ei)2ā¤Dsuperscriptsubscript1superscriptā subscriptsubscript2 _i=1^N(v_iĀ· e_i)^2⤠Dāi = 1N ( vitalic_i ā eitalic_i )2 ⤠D with equality if and only if visubscriptv_ivitalic_i is parallel to projā”(ei,V)projsubscriptproj(e_i,V)proj ( eitalic_i , V ), where projā”(u,W)projproj(u,W)proj ( u , W ) denotes the orthogonal projection of a vector u onto the subspace W. Proof: Define viāāVsuperscriptsubscriptāv_i ā Vvitalic_iā ā V to be a unit vector in the direction projā”(ei,V)projsubscriptproj(e_i,V)proj ( eitalic_i , V ), and note that this exists by the assumption eiāVāsubscriptsuperscriptperpendicular-toe_i ā V eitalic_i ā Vā. Then we have |viā ei|ā¤|viāā ei|ā subscriptsubscriptā subscriptsuperscriptāsubscript|v_iĀ· e_i|ā¤|v _iĀ· e_i|| vitalic_i ā eitalic_i | ⤠| vāitalic_i ā eitalic_i | for all other unit vectors vāVvā Vv ā V, with equality if and only if visubscriptv_ivitalic_i is parallel to viāsubscriptsuperscriptāv _ivāitalic_i. So it suffices to show that āi=1N(viāā ei)2=D.superscriptsubscript1superscriptā superscriptsubscriptāsubscript2 _i=1^N(v_i Ā· e_i)^2=D.āi = 1N ( vitalic_iā ā eitalic_i )2 = D . Let b1,ā¦,bDsubscript1ā¦subscriptb_1,ā¦,b_Db1 , ⦠, bitalic_D be an orthonormal basis for V, and let bD+1,ā¦,bNsubscript1ā¦subscriptb_D+1,ā¦,b_Nbitalic_D + 1 , ⦠, bitalic_N be an orthonormal basis for Vāsuperscriptperpendicular-toV Vā. Then viā=Ī»iā¢(b1ā ei)ā¢b1+āÆ+(bDā ei)ā¢bDsuperscriptsubscriptāsubscriptā subscript1subscriptsubscript1āÆā subscriptsubscriptsubscriptv_i = _i(b_1Ā· e_i)b_1+ā¦+(b_DĀ· e_i)b_Dvitalic_iā = Ī»italic_i ( b1 ā eitalic_i ) b1 + ⯠+ ( bitalic_D ā eitalic_i ) bitalic_D where the normalising constant Ī»i=(āj=1D(bjā ei)2)ā1/2subscriptsuperscriptsuperscriptsubscript1superscriptā subscriptsubscript212 _i=( _j=1^D(b_jĀ· e_i)^2)^-1/2Ī»italic_i = ( āj = 1D ( bitalic_j ā eitalic_i )2 )- 1 / 2 is non-zero as viāsubscriptsuperscriptāv _ivāitalic_i is non-zero (and we may wlog assume Ī»i>0subscript0 _i>0Ī»italic_i > 0). Then (viāā ei)2=Ī»i2ā¢(āj=1D(bjā ei)2)2=āj=1D(bjā ei)2superscriptā superscriptsubscriptāsubscript2superscriptsubscript2superscriptsuperscriptsubscript1superscriptā subscriptsubscript22superscriptsubscript1superscriptā subscriptsubscript2(v_i Ā· e_i)^2= _i^2 ( _j=1^D(b_jĀ· e% _i)^2 )^2= _j=1^D(b_jĀ· e_i)^2( vitalic_iā ā eitalic_i )2 = Ī»italic_i2 ( āj = 1D ( bitalic_j ā eitalic_i )2 )2 = āj = 1D ( bitalic_j ā eitalic_i )2 from which the lemma follows. Define the matrix A=(aiā¢j)i,j=1,ā¦,Nsubscriptsubscriptformulae-sequence1ā¦A=(a_ij)_i,j=1,ā¦,NA = ( aitalic_i j )i , j = 1 , ⦠, N via aiā¢j=wiā wjsubscriptā subscriptsubscripta_ij=w_iĀ· w_jaitalic_i j = witalic_i ā witalic_j, and denote by aisubscripta_iaitalic_i the vector (aiā¢1,ā¦,aiā¢n)TāāNsuperscriptsubscript1ā¦subscriptsuperscriptā(a_i1,ā¦,a_in)^T ^N( aitalic_i 1 , ⦠, aitalic_i n )T ā blackboard_RN, so that A=(||a1ā¦aN||)matrix|missing-subexpression|subscript1ā¦subscript|missing-subexpression|A= pmatrix|&&|\\ a_1&ā¦&a_N\\ |&&| pmatrixA = ( start_ARG start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW start_ROW start_CELL a1 end_CELL start_CELL ⦠end_CELL start_CELL aitalic_N end_CELL end_ROW start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW end_ARG ) and the capacities can be expressed as Ci=aiā¢i2/āaiā2subscriptsuperscriptsubscript2superscriptnormsubscript2C_i=a_i^2/||a_i||^2Citalic_i = aitalic_i i2 / | | aitalic_i | |2. Note that aiā¢i=āwiā2ā 0subscriptsuperscriptnormsubscript20a_i=||w_i||^2ā 0aitalic_i i = | | witalic_i | |2 ā 0 and so non of the aisubscripta_iaitalic_i are trivial. Also, note that A=WTā¢WsuperscriptA=W^TWA = Witalic_T W, so the rank of A is the same as the rank of W, and thus equal to D. Now let vi=ai/āaiāsubscriptsubscriptnormsubscriptv_i=a_i/||a_i||vitalic_i = aitalic_i / | | aitalic_i | |, so that visubscriptv_ivitalic_i is a unit vector. Since the rank of A is D, the aisubscripta_iaitalic_i span a space VāāNsuperscriptāV ^NV ā blackboard_RN of dimension D. We can write viā ei=aiā¢i/āaiā,ā subscriptsubscriptsubscriptnormsubscriptv_iĀ· e_i=a_i/||a_i||,vitalic_i ā eitalic_i = aitalic_i i / | | aitalic_i | | , from which it also follows that eiāVāsubscriptsuperscriptperpendicular-toe_i ā V eitalic_i ā Vā (otherwise we would have aiā¢i=0subscript0a_i=0aitalic_i i = 0 which is not possible). Therefore we may apply Lemma 1 to get āi=1NCiā¤Dsuperscriptsubscript1subscript _i=1^NC_i⤠Dāi = 1N Citalic_i ⤠D with equality if and only if aisubscripta_iaitalic_i is parallel to projā”(ei,V)projsubscriptproj(e_i,V)proj ( eitalic_i , V ). Assuming that equality holds, using the proof of Lemma 1, we can write ai=μiā¢āk=1D(bkā ei)ā¢bk,aiā¢j=μiā¢āk=1D(bkā ei)ā¢(bkā ej)formulae-sequencesubscriptsubscriptsuperscriptsubscript1ā subscriptsubscriptsubscriptsubscriptsubscriptsuperscriptsubscript1ā subscriptsubscriptā subscriptsubscripta_i= _i _k=1^D(b_kĀ· e_i)b_k, 14.22636pta_ij=μ% _i _k=1^D(b_kĀ· e_i)(b_kĀ· e_j)aitalic_i = μitalic_i āk = 1D ( bitalic_k ā eitalic_i ) bitalic_k , aitalic_i j = μitalic_i āk = 1D ( bitalic_k ā eitalic_i ) ( bitalic_k ā eitalic_j ) for some constant μisubscript _iμitalic_i. Since aiā¢i=aiā ei>0subscriptā subscriptsubscript0a_i=a_iĀ· e_i>0aitalic_i i = aitalic_i ā eitalic_i > 0, we see that μi>0subscript0 _i>0μitalic_i > 0. Now, if μiā μjsubscriptsubscript _iā _jμitalic_i ā μitalic_j then μjā¢aiā¢j=μjā¢Ī¼iā¢āk=1D(bkā ei)ā¢(bkā ej)=μiā¢ajā¢isubscriptsubscriptsubscriptsubscriptsuperscriptsubscript1ā subscriptsubscriptā subscriptsubscriptsubscriptsubscript _ja_ij= _j _i _k=1^D(b_kĀ· e_i)(b_kĀ· e_j)% = _ia_jiμitalic_j aitalic_i j = μitalic_j μitalic_i āk = 1D ( bitalic_k ā eitalic_i ) ( bitalic_k ā eitalic_j ) = μitalic_i aitalic_j i from which we conclude by the symmetry of aiā¢jsubscripta_ijaitalic_i j that aiā¢j=wiā wj=0subscriptā subscriptsubscript0a_ij=w_iĀ· w_j=0aitalic_i j = witalic_i ā witalic_j = 0. Hence if we have any μiā μjsubscriptsubscript _iā _jμitalic_i ā μitalic_j we can perform a non-trivial decomposition into orthogonal subspaces V1āāÆāVrdirect-sumsubscript1āÆsubscriptV_1 ⦠V_rV1 ā ⯠ā Vitalic_r satisfying the conditions at the start of the solution. Since we assumed this was not possible, we must in fact have μ:=μiassignsubscriptμ:= _iμ := μitalic_i is constant for all i. Consider the map Ī:wiā¦Ī¼1/2ā¢āk=1D(bkā ei)ā¢bk.:Īmaps-tosubscriptsuperscript12superscriptsubscript1ā subscriptsubscriptsubscript :w_i μ^1/2 _k=1^D(b_kĀ· e_i)b_k.Ī : witalic_i ⦠μ1 / 2 āk = 1D ( bitalic_k ā eitalic_i ) bitalic_k . If we let TāāNsuperscriptāT ^NT ā blackboard_RN be the linear subspace spanned by w1,ā¦,wNsubscript1ā¦subscriptw_1,ā¦,w_Nw1 , ⦠, witalic_N, then dimT=mdimension T=mdim T = m and Ī Ī maps T to V. We can also check that the orthogonality of the bases eiisubscriptsubscript\e_i\_i eitalic_i i and biisubscriptsubscript\b_i\_i bitalic_i i implies that Ī Ī preserves the inner products of the wisubscriptw_iwitalic_i. It follows that Ī Ī is invertible and orthogonal. In addition, we have that bjTā¢Īā¢Wā¢ei=bjTā¢Īā¢wi=μ1/2ā¢āk=1D(bkā ei)ā¢(bkā bj)=μ1/2ā¢(bjā ei)superscriptsubscriptĪsubscriptsuperscriptsubscriptĪsubscriptsuperscript12superscriptsubscript1ā subscriptsubscriptā subscriptsubscriptsuperscript12ā subscriptsubscriptb_j^T We_i=b_j^T w_i=μ^1/2 _k=1^D(b_k% Ā· e_i)(b_kĀ· b_j)=μ^1/2(b_jĀ· e_i)bitalic_jitalic_T Ī W eitalic_i = bitalic_jitalic_T Ī witalic_i = μ1 / 2 āk = 1D ( bitalic_k ā eitalic_i ) ( bitalic_k ā bitalic_j ) = μ1 / 2 ( bitalic_j ā eitalic_i ) so if we consider Īā¢WĪ WĪ W as a map from āDsuperscriptāR^Dblackboard_RD with basis eiisubscriptsubscript\e_i\_i eitalic_i i to V with basis biisubscriptsubscript\b_i\_i bitalic_i i then it has matrix Īā¢W=μ1/2ā¢(b1ā e1ā¦b1ā eNā®bDā e1ā¦bDā eN).Īsuperscript12matrixā subscript1subscript1ā¦ā subscript1subscriptā®missing-subexpressionā®ā subscriptsubscript1ā¦ā subscriptsubscript W=μ^1/2 pmatrixb_1Ā· e_1&ā¦&b_1Ā· e_N\\ && \\ b_DĀ· e_1&ā¦&b_DĀ· e_N pmatrix.Ī W = μ1 / 2 ( start_ARG start_ROW start_CELL b1 ā e1 end_CELL start_CELL ⦠end_CELL start_CELL b1 ā eitalic_N end_CELL end_ROW start_ROW start_CELL ā® end_CELL start_CELL end_CELL start_CELL ā® end_CELL end_ROW start_ROW start_CELL bitalic_D ā e1 end_CELL start_CELL ⦠end_CELL start_CELL bitalic_D ā eitalic_N end_CELL end_ROW end_ARG ) . Using āj=1N(biā ej)2=1superscriptsubscript1superscriptā subscriptsubscript21 _j=1^N(b_iĀ· e_j)^2=1āj = 1N ( bitalic_i ā eitalic_j )2 = 1, it follows that Īā¢Wā¢WTā¢ĪT=μā¢IDĪsuperscriptsuperscriptĪsubscript W^T ^T=μ I_DĪ W Witalic_T Īitalic_T = μ Iitalic_D. Since Ī Ī is orthogonal, we deduce that Wā¢WT=μā¢IDsuperscriptsubscriptWW^T=μ I_DW Witalic_T = μ Iitalic_D as required. Showing that every saturating case is achievable: We want to show that for every tuple of real numbers (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) with 0ā¤Ciā¤10subscript10⤠C_i⤠10 ⤠Citalic_i ⤠1 and āi=1NCi=Dsuperscriptsubscript1subscript _i=1^NC_i=Dāi = 1N Citalic_i = D, we can find w1,ā¦,wNāāDsubscript1ā¦subscriptsuperscriptāw_1,ā¦,w_N ^Dw1 , ⦠, witalic_N ā blackboard_RD such that Ci=(wiā wi)2āj=1N(wiā wj)2.subscriptsuperscriptā subscriptsubscript2superscriptsubscript1superscriptā subscriptsubscript2C_i= (w_iĀ· w_i)^2 _j=1^N(w_iĀ· w_j)^2.Citalic_i = divide start_ARG ( witalic_i ā witalic_i )2 end_ARG start_ARG āj = 1N ( witalic_i ā witalic_j )2 end_ARG . A tuple (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is feasible if there exists an NĆNĆ N Ć N unitary matrix U such that if we let U^ Uover start_ARG U end_ARG denote the first D rows of U and define u1,ā¦,uNāāDsubscript1ā¦subscriptsuperscriptāu_1,ā¦,u_N ^Du1 , ⦠, uitalic_N ā blackboard_RD by U^=(||u1ā¦uN||),^matrix|missing-subexpression|subscript1ā¦subscript|missing-subexpression| U= pmatrix|&&|\\ u_1&ā¦&u_N\\ |&&| pmatrix,over start_ARG U end_ARG = ( start_ARG start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW start_ROW start_CELL u1 end_CELL start_CELL ⦠end_CELL start_CELL uitalic_N end_CELL end_ROW start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL end_ROW end_ARG ) , then āuiā2=Cisuperscriptnormsubscript2subscript||u_i||^2=C_i| | uitalic_i | |2 = Citalic_i for each i=1,ā¦,n1ā¦i=1,ā¦,ni = 1 , ⦠, n. Note that if (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is feasible then for the corresponding uisubscriptu_iuitalic_i, if we denote their components by ukā¢ik=1Dsuperscriptsubscriptsubscript1\u_ki\_k=1^D uitalic_k i k = 1D, we have (uiā ui)2āj=1N(uiā uj)2superscriptā subscriptsubscript2superscriptsubscript1superscriptā subscriptsubscript2 (u_iĀ· u_i)^2 _j=1^N(u_iĀ· u_j)^2divide start_ARG ( uitalic_i ā uitalic_i )2 end_ARG start_ARG āj = 1N ( uitalic_i ā uitalic_j )2 end_ARG =(uiā ui)2āj=1Nāk,l=1Duiā¢kā¢ujā¢kā¢uiā¢lā¢ujā¢labsentsuperscriptā subscriptsubscript2superscriptsubscript1superscriptsubscript1subscriptsubscriptsubscriptsubscript = (u_iĀ· u_i)^2 _j=1^N _k,l=1^Du_% iku_jku_ilu_jl= divide start_ARG ( uitalic_i ā uitalic_i )2 end_ARG start_ARG āj = 1N āk , l = 1D uitalic_i k uitalic_j k uitalic_i l uitalic_j l end_ARG =(uiā ui)2āk,l=1Dukā¢iā¢ulā¢iā¢Ī“kā¢labsentsuperscriptā subscriptsubscript2superscriptsubscript1subscriptsubscriptsubscript = (u_iĀ· u_i)^2 _k,l=1^Du_kiu_liĪ“% _kl= divide start_ARG ( uitalic_i ā uitalic_i )2 end_ARG start_ARG āk , l = 1D uitalic_k i uitalic_l i Ī“italic_k l end_ARG =(uiā ui)2āk=1Dukā¢iā¢ukā¢i=āuiā2=Ciabsentsuperscriptā subscriptsubscript2superscriptsubscript1subscriptsubscriptsuperscriptnormsubscript2subscript = (u_iĀ· u_i)^2 _k=1^Du_kiu_ki=||u_i% ||^2=C_i= divide start_ARG ( uitalic_i ā uitalic_i )2 end_ARG start_ARG āk = 1D uitalic_k i uitalic_k i end_ARG = | | uitalic_i | |2 = Citalic_i so we see that (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is a valid set of capacities by taking wi=uisubscriptsubscriptw_i=u_iwitalic_i = uitalic_i for each i. Hence it suffices to show that all the relevant tuples are feasible. Lemma 2 Suppose that (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is a feasible tuple. Then 1. any permutation of (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is feasible; 2. for any CNā²,CN+1ā²ā„0subscriptsuperscriptā²subscriptsuperscriptā²10C _N,C _N+1ā„ 0Cā²italic_N , Cā²italic_N + 1 ā„ 0 such that CNā²+CN+1ā²=CNsubscriptsuperscriptā²subscriptsuperscriptā²1subscriptC _N+C _N+1=C_NCā²italic_N + Cā²italic_N + 1 = Citalic_N, the tuple (C1,ā¦,Cnā1,CNā²,CN+1ā²)subscript1ā¦subscript1subscriptsuperscriptā²subscriptsuperscriptā²1(C_1,ā¦,C_n-1,C _N,C _N+1)( C1 , ⦠, Citalic_n - 1 , Cā²italic_N , Cā²italic_N + 1 ) is feasible; 3. the tuple (1āC1,ā¦,1āCN)1subscript1ā¦1subscript(1-C_1,ā¦,1-C_N)( 1 - C1 , ⦠, 1 - Citalic_N ) is feasible, with D replaced by NāDN-DN - D. Proof: Let U be an NĆNĆ N Ć N unitary matrix corresponding to (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) as above. Then (i) is immediate by permuting the columns of U, and (i) follows by exchanging the first D and last NāDN-DN - D rows of U, noting that the squared norm of each column is 1. To prove (i), consider extending U to an (N+1)Ć(N+1)11(N+1)Ć(N+1)( N + 1 ) Ć ( N + 1 ) unitary matrix Uā² by placing U in the upper nĆnĆ n Ć n quadrant and placing a 1 at the bottom right position. Then write Uā²=(U001)=(|||u1ā²ā¦uNā²uN+1ā²|||),superscriptā²matrixmatrixmissing-subexpressionmissing-subexpressionmissing-subexpressionmissing-subexpressionmissing-subexpressionmissing-subexpression0missing-subexpression0missing-subexpressionmatrix1matrix|missing-subexpression||subscriptsuperscriptā²1ā¦subscriptsuperscriptā²subscriptsuperscriptā²1|missing-subexpression||U = pmatrix matrix&&\\ &U&\\ && matrix& &0\\ 0& & matrix1 matrix pmatrix= pmatrix|&&% |&|\\ u _1&ā¦&u _N&u _N+1\\ |&&|&| pmatrix,Uā² = ( start_ARG start_ROW start_CELL start_ARG start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL U end_CELL start_CELL end_CELL end_ROW end_ARG end_CELL start_CELL end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL end_CELL start_CELL start_ARG start_ROW start_CELL 1 end_CELL end_ROW end_ARG end_CELL end_ROW end_ARG ) = ( start_ARG start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL start_CELL | end_CELL end_ROW start_ROW start_CELL uā²1 end_CELL start_CELL ⦠end_CELL start_CELL uā²italic_N end_CELL start_CELL uā²italic_N + 1 end_CELL end_ROW start_ROW start_CELL | end_CELL start_CELL end_CELL start_CELL | end_CELL start_CELL | end_CELL end_ROW end_ARG ) , for vectors uiā²āāN+1subscriptsuperscriptā²ā1u _i ^N+1uā²italic_i ā blackboard_RN + 1. Now we may rotate the final pair of vectors together by an arbitrary angle Īø and the resulting matrix remains orthogonal: UĪøā²=(u1ā²ā¦uNā²ā¢cosā”(Īø)+uN+1ā²ā¢sinā”(Īø)āuNā²ā¢sinā”(Īø)+uN+1ā²ā¢cosā”(Īø)),subscriptsuperscriptā²matrixmissing-subexpressionmissing-subexpressionmissing-subexpressionmissing-subexpressionsubscriptsuperscriptā²1ā¦subscriptsuperscriptā²subscriptsuperscriptā²1subscriptsuperscriptā²subscriptsuperscriptā²1U _Īø= pmatrix&&&\\ u _1&ā¦&u _N (Īø)+u _N+1 (Īø)&-% u _N (Īø)+u _N+1 (Īø)\\ &&& pmatrix,Uā²italic_Īø = ( start_ARG start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL uā²1 end_CELL start_CELL ⦠end_CELL start_CELL uā²italic_N cos ( Īø ) + uā²italic_N + 1 sin ( Īø ) end_CELL start_CELL - uā²italic_N sin ( Īø ) + uā²italic_N + 1 cos ( Īø ) end_CELL end_ROW end_ARG ) , Restricting to the first D rows of UĪøā²subscriptsuperscriptā²U _ĪøUā²italic_Īø, we see that the first nā11n-1n - 1 columns still have squared norms C1,ā¦,Cnā1subscript1ā¦subscript1C_1,ā¦,C_n-1C1 , ⦠, Citalic_n - 1 respectively (inherited from U). Therefore, as Īø varies the sums of the squared norms of the final two columns must be CNsubscriptC_NCitalic_N. Moreover, the split between the two columns varies continuously between (CN,0)subscript0(C_N,0)( Citalic_N , 0 ) and (0,CN)0subscript(0,C_N)( 0 , Citalic_N ) as Īø ranges between 00 and Ļ/22Ļ/2Ļ / 2. Therefore we can achieve any split (CNā²,cN+1ā²)subscriptsuperscriptā²subscriptsuperscriptā²1(C _N,c _N+1)( Cā²italic_N , cā²italic_N + 1 ) between the final two columns, proving part (2). Finally, we show that every tuple (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) satisfying 0ā¤Ciā¤10subscript10⤠C_i⤠10 ⤠Citalic_i ⤠1 and āi=1NCi=msuperscriptsubscript1subscript _i=1^NC_i=māi = 1N Citalic_i = m is feasible. Suppose not, for a contradiction. Then we may pick such a tuple with minimal n. Clearly all such tuples with nā¤11n⤠1n ⤠1 are feasible, so we may assume nā„22nā„ 2n ā„ 2. If there are any Ci,CjsubscriptsubscriptC_i,C_jCitalic_i , Citalic_j with Ci+Cjā¤1subscriptsubscript1C_i+C_j⤠1Citalic_i + Citalic_j ⤠1 then we may replace Ci,CjsubscriptsubscriptC_i,C_jCitalic_i , Citalic_j by Ci+CjsubscriptsubscriptC_i+C_jCitalic_i + Citalic_j to get another tuple satisfying the given conditions but with smaller n. By our minimality assumption, we conclude this new tuple must be feasible. But then our original tuple is feasible by Lemma 2.1 and 2.2. On the other hand, if there are no Ci,CjsubscriptsubscriptC_i,C_jCitalic_i , Citalic_j with Ci+Cjā¤1subscriptsubscript1C_i+C_j⤠1Citalic_i + Citalic_j ⤠1 then consider the tuple (1āC1,ā¦,1āCN)1subscript1ā¦1subscript(1-C_1,ā¦,1-C_N)( 1 - C1 , ⦠, 1 - Citalic_N ). We know that we must have (1āCi)+(1āCj)ā¤11subscript1subscript1(1-C_i)+(1-C_j)⤠1( 1 - Citalic_i ) + ( 1 - Citalic_j ) ⤠1 for any i,ji,ji , j. Replacing (1āCi),(1āCj)1subscript1subscript(1-C_i),(1-C_j)( 1 - Citalic_i ) , ( 1 - Citalic_j ) by (1āCi)+(1āCj)1subscript1subscript(1-C_i)+(1-C_j)( 1 - Citalic_i ) + ( 1 - Citalic_j ) to get a new tuple and following the argument of the previous paragraph, we conclude that the new tuple must be feasible, and so (1āC1,ā¦,1āCN)1subscript1ā¦1subscript(1-C_1,ā¦,1-C_N)( 1 - C1 , ⦠, 1 - Citalic_N ) must be feasible also. But then (C1,ā¦,CN)subscript1ā¦subscript(C_1,ā¦,C_N)( C1 , ⦠, Citalic_N ) is feasible too by Lemma 2.3. We are thus done in all cases. References [EHO+22a] Nelson Elhage, Tristan Hume, Catherine Olsson, Neel Nanda, Tom Henighan, Scott Johnston, Sheer ElShowk, Nicholas Joseph, Nova DasSarma, Ben Mann, Danny Hernandez, Amanda Askell, Kamal Ndousse, Andy Jones, Dawn Drain, Anna Chen, Yuntao Bai, Deep Ganguli, Liane Lovitt, Zac Hatfield-Dodds, Jackson Kernion, Tom Conerly, Shauna Kravec, Stanislav Fort, Saurav Kadavath, Josh Jacobson, Eli Tran-Johnson, Jared Kaplan, Jack Clark, Tom Brown, Sam McCandlish, Dario Amodei, and Christopher Olah. Softmax linear units. Transformer Circuits Thread, 2022. https://transformer-circuits.pub/2022/solu/index.html. [EHO+22b] Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. Toy models of superposition. Transformer Circuits Thread, 2022. https://transformer-circuits.pub/2022/toy_model/index.html. [OCS+20] Chris Olah, Nick Cammarata, Ludwig Schubert, Gabriel Goh, Michael Petrov, and Shan Carter. Zoom in: An introduction to circuits. Distill, 2020. doi:10.23915/distill.00024.001. https://distill.pub/2020/circuits/zoom-in. [OMS17] Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017. doi:10.23915/distill.00007. https://distill.pub/2017/feature-visualization.