This is an uncorrected proof.
Figures
Abstract
The brain can efficiently learn and form memories based on limited exposure to stimuli, often even in single trials. Two key factors are believed to support this ability: large synaptic plasticity to strongly encode new memories; and sparse coding, leading to low overlap between memory representations and to small interference. Therefore, increased sparseness can also improve memory capacity. However, it is not well understood how the strength of plasticity of synapses affects capacity. Here, we analyze the combined impact of population sparseness and strength of plasticity on memory capacity. Specifically, we explore how the strength of plasticity that maximizes capacity depends on the sparseness of the neural code. To this end, we study a feedforward network with Hebbian and homeostatic plasticity and a two-state synapse model. The network learns to associate sparse binary input-output pattern pairs. The strength of plasticity is modeled as the probability of synaptic changes. Our results are based on both network simulations and an analytical theory, predicting the expected memory capacity in dependence on strength of plasticity and population sparseness. For both perfect and noisy input patterns, we find that the optimal strength of plasticity increases with increasing pattern sparseness and that this effect is more pronounced for input than for output sparseness. Interestingly, the optimal strength of plasticity remains the same across different network sizes if the number of active units in an input pattern is constant. While the memory capacity obtained at the optimal strength of plasticity increases monotonically with output sparseness, its dependence on input sparseness is non-monotonic. Overall, we provide the first detailed investigation of the interactions between population sparseness, strength of plasticity, and memory capacity. Our findings suggest that differences in sparseness between brain regions may underlie observed differences in how strongly these regions adapt and how quickly they learn.
Author summary
The brain can efficiently learn and form memories based on limited exposure to stimuli. This ability is believed to be supported by the way neural circuits encode and organize information about the external world. High population sparseness refers to the phenomenon in which, in many brain regions, only a small subset of neurons is active at any given time or in response to a particular stimulus. Such sparse codes are believed to reduce overlap between representations and minimize interference and can thus enhance the storage capacity of a network. Here, we investigate the relation of population sparseness and the strength of plasticity when forming input-output associations in a network model with Hebbian learning. We find that the strength of plasticity that yields the maximal capacity increases with increasing sparseness. The maximal capacity increases for sparser input and output representations, but in the first case only up to a certain point before sparseness becomes destructive. These findings could contribute to explaining why some brain regions learn with higher plasticity than others.
Citation: Auer N, Chen L, Stubenrauch J, Lindner B, Kempter R (2026) Population sparseness determines strength of Hebbian plasticity for maximal memory lifetime in associative networks. PLoS Comput Biol 22(7): e1013235. https://doi.org/10.1371/journal.pcbi.1013235
Editor: Daniel Bush, University College London, UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND
Received: June 13, 2025; Accepted: June 15, 2026; Published: July 6, 2026
Copyright: © 2026 Auer et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The code written in support of this publication is publicly available at https://itbgit.biologie.hu-berlin.de/auer/sparseness_plasticity_lifetime.
Funding: This work was supported by the German Research Foundation (Deutsche Forschungsgemeinschaft [DFG], SFB 1315, project-ID 327654276 SFB 1315 –TP B01 to BL and RK; https://www.dfg.de). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Across many regions of the brain, information seems to be represented by the activity of small fractions of the total number of neurons — in contrast to the limiting cases of single neurons or whole populations of neurons. In particular, the dentate gyrus (DG) is known to be dependent on very sparse population activity; estimates of population sparseness based on the expression of immediate early genes in the DG of rodents propose a percentage of active cells in the one-digit range [1–3]. Other hippocampal subfields, such as Cornu Ammonis 1 (CA1) and Cornu Ammonis 3 (CA3), also use sparse coding, but their activity patterns are believed to be less sparse than in DG [2,4–6]. Outside the hippocampus, the population sparseness has been investigated most extensively in the visual system, because it can explain various visual response properties [7,8]. Estimates for the sparseness level cover a wide range of values, which may be due to different recording techniques, quantification measures, and behavioral paradigms. However, there is a consensus that only a fraction of the neurons available in principle in a particular visual area of the cortex is used to represent a visual stimulus [9–14]. Further, population sparseness has been quantified in the auditory system [15–17], the olfactory system [18–21], the somatosensory system [22], and the amygdala [23]. Insights into the sparseness of the human cortex are limited, but probabilistic reasoning based on single cell recordings predicts a population sparseness of approximately 2% in the human medial temporal lobe [24]. In general, representations appear to become sparser along the hierarchy of sensory processing [8,16,25–28].
In addition to the comprehensive experimental evidence for sparseness in many regions of the brain, there is one main reason why sparse coding is also favorable from a theoretical point of view: the reduced overlap between representations, which brings with it several advantages. Most famously, due to the reduced overlap between patterns, sparse representations can increase the memory capacity of associative neural networks. The dependence of the capacity on the fraction of active neurons was first shown by [29]. Later, [30] found that sparse patterns yield higher capacity than dense patterns also in the Hopfield net [31,32]. In 1987, [33] calculated the theoretical maximum capacity, and soon after [34] proposed a weight configuration that can achieve a capacity close to the theoretical optimum. The beneficial effect of sparseness on the storage capacity of different network structures has been studied extensively since then and has also been confirmed for palimpsest-like networks in which memory capacity is directly determined by memory lifetime [35–42].
Moreover, the reduced overlap and the reduced interference between sparser representations suggest that they are also favorable because they allow for an increased level of plasticity without compromising capacity. This consideration represents the basis for the central hypothesis of this manuscript. In contrast to the well-established increase in storage capacity, higher plasticity as a benefit of sparser coding is hardly discussed in the literature. Although various areas of the brain, in particular the hippocampus, are known for exhibiting sparse representations and rapid learning with high plasticity, the association between these features has not been properly analyzed so far.
In the present paper, we investigate the dependence of the optimal strength of plasticity on the sparseness of representations in a scenario with Hebbian and homeostatic plasticity; furthermore, we explain the combined impact of the strength of plasticity and sparseness on the memory capacity, which is here the same as the memory lifetime, and, in particular, we also determine the maximal memory lifetime. To simplify the approach as much as possible, we use a heteroassociative feedforward network of neurons with binary activations, connected by two-state synapses; the network learns pairs of input-output patterns in a supervised fashion. Based on the underlying assumption that the memory capacity of the network should be maximal, we examine the roles of the (input and output) fractions of active neurons and the probabilities of synaptic changes by means of numerical simulations and analytical derivations. Our theory is based on an extensive pool of work dealing with distributions of dendritic sums and the capacity of Willshaw-like networks (see, e.g., [29,43–52]), which greatly inspired the current study. The advancement of this paper lies in the description of dendritic sums for a strict homeostatic update rule and the quantification of the lifetime-based pattern capacity if the output patterns have a fixed sparseness level, as well as in the application of these findings to an investigation of the relationship between population sparseness, strength of plasticity, and memory lifetime.
This manuscript is organized as follows: We first introduce the model and the learning rule and explain how the capacity of the network is quantified. Then we explain the relationship between the optimal strength of plasticity and the sparseness of both the input and the output patterns. We also show how choosing the optimal strength of plasticity for each sparseness value impacts the maximal memory capacity. Then there is a section that provides a more intuitive understanding of these results based on analytical considerations. Further, we discuss the effect of a change in network size and analyze whether the fraction of active neurons or the absolute number of active neurons is the critical parameter. Finally, we add noise to the input pattern during retrieval in order to generalize our results to the biologically more realistic case of non-perfect retrieval cues. The Results section is followed by the Discussion that sets our results into context. Note that the Results and the Discussion can be read without knowing the methodological details about the theory and the numerical simulations as described in the Methods section.
Results
The Results described in this section are written so that the text is self-contained. For the interested reader, all further details regarding the theoretical derivations and the numerical simulations used to obtain the results are explained in the Methods section, which is also written in a self-contained way — independent of the Results.
Network model, learning paradigm, and quantification of capacity
We are interested in the effect of population sparseness on the optimal strength of plasticity in an associative network. One might hypothesize that sparse representations facilitate a large capacity when there is large synaptic plasticity. This hypothesis is based on the following considerations: In order to establish an association between two neuronal assemblies, the synapses between the neurons that are part of the first assembly and the neurons of the second assembly need to be strengthened. If f is the fraction of the total number of neurons that forms an assembly (activation ratio), the number of potential connections between neurons of the two assemblies scales with f2. A low activation ratio is interpreted as high population sparseness, while a large activation ratio means dense representations and hence a low population sparseness (Fig 1A). On the one hand, learning an association between two sparser assemblies involves only a smaller fraction of synapses. In this case, the memory capacity can be larger because each association affects fewer synapses; however, sparseness cannot be arbitrarily low. On the other hand, an association between denser assemblies involves the modification of a larger fraction of synapses, which can lead to catastrophic interference and lower capacity. For example, for sparser assemblies where only 1% of the cells are active (f = 0.01), only a fraction of the synapses is changed, while for denser assemblies with f = 0.5, a quarter (f2 = 0.25) of all synapses is updated; however, if synaptic plasticity is lower and not all synapses are updated, denser assemblies might generate higher memory capacity. Therefore, to test the hypothesis, the effect of this interaction needs to be quantified.
(A) In a network of neurons with an activation ratio f, which is the number of neurons in an assembly divided by the total number of neurons in the network, the number of connections potentially involved in an association between two assemblies scales with f2. The number of relevant connections is thus smaller for sparse representations (left) than for dense representations (right). (B) Illustration of the network model with an input layer (yellow) of size Nin (black circles) with input patterns x (indicated by gray discs and blue circles) of activation ratio fin and an output layer (green) of size Nout with output patterns y (gray discs and blue circles) of activation ratio fout that are connected by a binary weight matrix J with a morphological connectivity (not sketched) and a functional connectivity c (lines between input and output layer) (both normalized per output unit). During learning, the connections between active units are turned on with transition probability
; a homeostasis mechanism maintains the functional connectivity c. (C) Schematic illustration of the learning and retrieval processes. After learning the k-th pattern, P additional patterns are learned. In order to determine the memory signal quality of the k-th pattern at time P, input pattern
is presented to the network again to calculate an output pattern
, which can then be compared to the target output pattern
. (D) The quality of the memory signal (signal quality) is defined as
(green line). It decays with the number of subsequently stored patterns P. The average Hamming distance
between two random fout-sparse vectors of length Nout (dashed gray line) is an upper bound of the average signal quality. The retrieval threshold is marked as
(dashed magenta line). The capacity of the network is defined as the number of patterns P for which the signal quality reaches the retrieval threshold
.
We thus investigate the interplay between sparseness and plasticity in a hetero-associative one-layer feed-forward network with Nin input and Nout output units (1B), similar to the architecture of a Willshaw network [29]. This type of hetero-associative network and its storage capacity for both dense and sparse patterns have been of interest for many decades and have been studied extensively [43,44,47,48,52]. The new contribution of our work is an elaboration of the relationship between the sparseness of input and output patterns and the strength of the network’s plasticity as well as their joint effect on the network’s capacity to store memories, especially when this capacity should be as large as possible.
In our setup, a memory is a one-way association between an input pattern x and an output pattern y. Units have two states and can be either active (1) or inactive (0). The input and output activation ratios fin and fout are defined as the fraction of active units in the input representation and the output representation, respectively. We denote the number of active input units in an input pattern x as ; similarly, the number of active output units in a target output pattern y is
. We typically assume
and
. Input and output layers of the network are connected by a weight matrix J with binary entries. For the construction of J, we distinguish between morphological and functional connectivity. In biological neural systems, the number of morphological (or structural) synapses per unit is constrained. Therefore, we assume a morphological connectivity
. The morphological connectivity is normalized per output unit, and thus each output unit is targeted by exactly
morphological connections chosen randomly among all possible connections from input units. Entries of the weight matrix J that do not correspond to a morphological connection are permanently set to zero. We have a total number of
morphological connections between the input and the output units, and each connection can be functional (on, value 1) or silent (off, value 0). The weight matrix is initialized such that each output unit is targeted by exactly cNin connections that are functional (thin gray lines in Fig 1C top), and we call c the functional connectivity. Note that the functional connectivity is bounded by the morphological connectivity:
.
The network learns a sequence of uncorrelated input and output pattern pairs , which are pairs of randomly drawn binary vectors that meet the sparseness constraint given by fin or fout. Since there is no explicit time component, presenting one pattern pair to the network can be interpreted as one step in time. For each pattern, the weights of the connection matrix J are updated in the following way: First, we consider a connection between an active input unit (filled gray circle in yellow layer in Fig 1C top) and an active output unit (filled gray circle in green layer in Fig 1C top). Such a connection can change only if there is a morphological connection. A connection that was already functional stays on, i.e., it is not changed (thin blue line originating from last input unit in Fig 1C top). A connection that was silent is turned on with some transition probability
. These connections are depicted as thick blue lines in Fig 1C top. We interpret the transition probability
as the strength of plasticity (or degree of plasticity) of the network. It is this plasticity parameter that determines how plastic the network connections are. For a high transition probability
, many connections are updated at once, and the memory is strongly engraved into the network. Note that, even though it is often true that higher plasticity leads to more rapid learning, we do not investigate the speed of learning, e.g., in terms of how many trials are needed for a satisfactory outcome (also see Section ‘Strength of plasticity and related concepts’ in the Discussion). Each pattern pair is presented only once and learned in one shot — regardless of the plasticity parameter
.
Furthermore, a homeostasis mechanism maintains the functional connectivity c. Connections that were previously functional are turned off in order to balance the additional connections turned on during a learning step. Otherwise, all morphological connections would eventually become functional. In principle, there are many possible ways to normalize the number of functional connections and provide homeostatic stabilization. Inspired by studies suggesting that neurons monitor the total excitation that they receive and that the summed synaptic surface area per length of dendritic segment is conserved over time [53,54], we apply a post-synaptic homeostasis step after each learning step: The functional connectivity c is maintained per output unit by randomly silencing the necessary number of connections from inactive input units to active output units. To this end, we must assume (see Methods, Section ‘Hebbian and homeostatic update rules from a probabilistic perspective’ for details). Connections targeting inactive output units are not changed. This combination of Hebbian potentiation and homeostatic depression realizes a learning rule that is similar to the ones suggested by [36] and by [37]. In summary, the matrix update
is performed in two steps: First, a Hebbian update is performed with success probability
,
where has entries of 1 for predefined morphologically existing connections, thus
, and
is a random binary matrix with independent entries. Second, a random homeostatic step is performed which masks away excess connections,
where the mask is a random binary matrix with Nout constraints
.
To assess memory capacity, we quantify changes of the memory trace of the k-th pattern pair after learning P subsequent pattern pairs. With increasing P, the memory trace deteriorates more until the memory is no longer retrievable according to some criterion. We always understand the time point P as relative to the k-th pattern. So after learning the k-th pattern, P additional patterns (illustrated for P = 1 in Fig 1C center; units active in the k + 1st pattern are shown as filled gray circles, units active in the k-th pattern are shown as circles with dark blue stroke) are learned by turning on connections that are relevant for these patterns and turning others off, potentially also connections that were relevant for the k-th pattern. Connections that are turned on in this step are shown as dashed orange lines and connections that are silenced are shown as light blue lines that are crossed out. The network hence realizes a palimpsest memory system [55] where older memories are erased by newer memories due to the homeostasis mechanism.
In order to quantify memory capacity, we follow the line of work started by [46] (see also [45]) but now include not only the plasticity parameter but also the homeostatic update (cf. Eq (2)). As before, we distinguish two types of output units: Output units are either genuine with respect to the k-th pattern, hence active in the original target output
or spurious with respect to the k-th pattern, hence inactive in the target output
. During retrieval, there are errors because genuine output units might become inactive and spurious units might become active. At any time step P after learning the k-th pattern, the retrieval of the k-th input-output pattern pair can be tested by presenting the original input pattern and calculating the output with the current weight matrix J[k+P] (Fig 1C bottom). Some of the relevant connections of the k-th pattern are still functional (blue lines) and provide input to the genuine output units (blue output units in Fig 1C, bottom). Other connections from the same input units might be functional due to learning subsequent patterns (dashed orange lines) or due to the initial weights before learning the k-th pattern. These connections provide input to spurious output units (red output unit in Fig 1C bottom).
Output units are modeled as McCulloch-Pitts neurons [56], which sum the weighted inputs and compare them against an activation threshold . Their output is calculated by
where
is the Heaviside step function. The activation threshold is adjusted in every time step such that the calculated output pattern has the same activation ratio fout as the target output. This phenomenologically describes latent competition where
winners take all and the rest is deactivated. Note that this choice of threshold is motivated by the comparability of results based on fixed sparseness values. It is not necessarily an optimal activation threshold in that it maximizes capacity or other performance metrics. The difference between the output
obtained with the weight matrix J[k+P] at time (or pattern) P and the original target output
of this input pattern is measured by the absolute number of bit flips between
and
, termed the Hamming distance
The larger the number of subsequent patterns P that have been learned since the one that is being tested for retrieval, the more the obtained output will differ from the target output because the summed inputs to the genuine units become too small compared to the summed inputs of the spurious units.
To quantify the strength of the memory after P time steps, we define the signal quality
where the first term is the average Hamming distance between two random fout-sparse patterns (Fig 1D, dashed gray line) and the second term is the Hamming distance between the calculated output representation
and the target
(Fig 1D). For two random fout-sparse patterns, an error occurs if either the bit of the first pattern is 1 (with probability fout) and the bit of the second pattern is 0 (with probability
) or the first bit is 0 (with probability
) and the second one is 1 (with probability fout); the probability for a deviation between the two entries is thus the sum over the probabilities of the two distinct events. Summed over all Nout entries, this gives Havg.
We define the memory capacity of the network as the lifetime of a memory stored in the network, which is the time that passes until the signal of the memory has decayed to the point that the memory cannot be successfully retrieved anymore. Alternatively, it is the number of patterns that can be stored in addition to the first pattern, without destroying the retrieval of the first pattern. We note that defining capacity in this way has limitations because it does not take into account the information-theoretic efficiency of synapse use [47,52,57] (see ‘Capacity measures’ for a discussion of these limitations). However, a preliminary analysis suggests that the main results of this manuscript are mostly maintained for synaptic (information) capacity (see S8 Appendix).
Practically, the pattern capacity here is determined by introducing a retrieval threshold
(Fig 1D, dashed magenta line), which represents the error tolerance between the obtained output and the target. The number of subsequently stored patterns for which the signal quality reaches the retrieval threshold can be interpreted as the lifetime of the memory or the memory capacity
of the network, defined by the equation
We define the threshold
with , as a fraction of the maximal signal quality, which is the Hamming distance
between two random fout-sparse vectors. A fixed number of wrongly activated units thus has a more severe destructive effect if the total number of active output units
is small. Whenever not further specified, we choose
and thus
.
Theory on distributions of dendritic sums and calculation of capacity
The memory capacity of the network can be calculated numerically in simulations, but it can also be described analytically in a probabilistic sense. We follow an approach that is similar to the one proposed and promoted by an extensive line of research by Willshaw, Buckingham, Palm, Sommer, Knoblauch, and others (see, e.g., [45–50]) and use the distributions of dendritic sums to calculate the retrieval error, which is expressed by the Hamming distance between the target pattern and the calculated output pattern (see also our Eq (5)). The present work extends and complements previous findings by considering an explicit parameter for the strength of plasticity. Furthermore, we include a synaptic homeostasis rule that maintains the number of functional connections per output unit cNin. Both the strength of plasticity and the homeostasis considerably affect the distributions of dendritic sums. Moreover, assuming a fixed output sparseness fout affects the placement of the retrieval threshold and makes the quantification of the capacity more involved. Finally, we analyze the role of sparseness for the optimal transition probability and the maximal capacity (see Sections ‘Effect of activation ratio on optimal strength of plasticity and (maximal) capacity’, ‘Role of network size and number of active units’ and ‘Noisy input patterns during retrieval’) and provide an intuitive understanding of the effect of a change in activation ratios on the memory capacity (see Section ‘Activation ratios in the distributions of dendritic sums’).
Let us now first turn to the definition dendritic sums, which is very similar to many previous approaches: Given a particular input pattern , the summed input that an output unit receives is called the dendritic sum of this output unit. Output units can potentially be either genuinely or spuriously active in the calculated output
depending on whether they are active or inactive in the target output
. For each output unit, the dendritic sum hence follows either the distribution of dendritic sums of spurious output units (red distribution in Fig 2A, will be called spurious distribution) or the distribution of dendritic sums of genuine output units (blue/green distributions in Fig 2A, will be called genuine distribution).
(A) The smaller the transition probability , the closer the probability mass function (PMF) of the dendritic sums of genuine output units (
, blue/green) is to the PMF of the dendritic sums of spurious output units (
, red). (B) The probability of a functional connection to a genuine output unit decays with the output unit usage u. The probability
that an output unit is active u times across P patterns is the weight of the corresponding binomial PMF in Eq (11). Different shades of blue/green represent different transition probabilities
(same as in (A)). In (A) - (B), P = 20. (C) Spurious units with a dendritic sum larger than the activation threshold
are wrongly activated (red area, false positive); genuine units with a dendritic sum smaller than
are wrongly not activated (blue area, false negative). (D) shows a histogram of the dendritic sums of output units. The expected Hamming distance is the sum of falsely deactivated genuine units (blue area) and falsely activated spurious units (red area). In (E), the PMFs of dendritic sums of genuine (blue) and spurious (red) units are scaled by fout and
, respectively. To respect the Balance Equation, the mass of the part of the genuine distribution left of the activation threshold
(blue area) must correspond to the mass of the part of the spurious distribution right of
(red area). (F) At capacity
, the activation threshold
corresponds to the
-quantile of the spurious distribution and to the
-quantile of the genuine distribution. In (C) – (F), P = 108. Further parameters:
.
The probability mass function (PMF) of the dendritic sum of a spurious unit is
(see Fig 2A red, derived in Methods, Section ‘Probabilistic description of dendritic sums’ and S1 Appendix, see Eqs (36) and (40)), where denotes a binomial distribution with n trials and success probability p. The spurious distribution is centered at Minc where
. We note that Minc remains constant when P is changed due to the constant functional connectivity c that ensures a fixed number of functional connections per output unit; when a random input pattern is applied, on average, a fraction fin of the cNin connections receives input. The spurious distribution does not change when new uncorrelated patterns are learned, and thus the spurious distribution
does not depend on the number of patterns P.
In contrast, the PMF of the distribution of the dendritic sums of genuine units depends on P; it is given by
(see Fig 2A blue/green) where the probability for a connection to a genuine unit to be functional given that the output unit is active u times across the whole pattern set is
(see Fig 2B blue/green, derived in Methods, Section ‘Probabilistic description of dendritic sums’ and S1 Appendix, see Eqs (36) and (41)). Immediately after learning a specific pattern, the probability of the relevant connections to a genuine output unit to be functional is larger than the average functional connectivity c, i.e., in Eq (12) we have . Due to the homeostatic plasticity, the probability
is reduced every time this output unit is active in subsequent patterns, which is reflected in the term
where u is the output unit usage. For
, we have
. The probability
enters Eq (11) in
, which is the distribution of the dendritic sums if the output unit was active u times in the other patterns. The distribution of the output unit usage u, hence the number of times that an output unit is active across a set of P patterns, explains the weight
of a binomial distribution in Eq (11) (see Fig 2B black). For
, the genuine distribution converges to the spurious distribution. The distributions of dendritic sums obtained from numerical simulations match the distributions in Eqs (10) and (11) very well (see the example in S5 Fig).
For an analytical description of the expected Hamming distance between a target output pattern
and the corresponding output pattern
calculated during retrieval, we need to calculate the expected number of output neurons that are in the wrong state in
compared to
. We note that the output activation ratio of the calculated output pattern should be the same as the activation ratio fout of the target output pattern. The activation threshold Tin should be chosen accordingly. This constraint is different from other works (e.g., [47,58,59]) and provides an additional challenge to the derivation of the storage capacity (for example, Eq (15) needs to be respected; see below and Methods, Section ‘Analytical Hamming distance’ for more details). The activation threshold Tin (vertical dashed gray line in Fig 2C) determines which output units are activated and which are not. If the distributions of dendritic sums of genuine and spurious output units are far apart and do not overlap, which can be the case during the first steps after learning a pattern, hence for small P, the activation threshold Tin can perfectly separate the two distributions, and then the calculated output is identical with the target output. If the two distributions are close to each other, a part of the spurious output units is wrongly activated (red area under red distribution in Fig 2C, false positive) and a part of the genuine output units is wrongly inactivated (blue area under blue distribution in Fig 2C, false negative). These two errors both contribute to the Hamming distance between the target output pattern and the calculated output pattern but they are weighted differently, as will be explained in the following (see Methods for a detailed derivation). In order to derive an actual error contribution from these distributions, we have to consider how many units have dendritic sums following either of the two distributions. As mentioned, there are Mout active units in the target output pattern. There are hence Mout output units whose dendritic sum follows the genuine distribution and
output units whose dendritic sum follows the spurious distribution. The false negative error and the false positive error thus have to be weighted by Mout and
, respectively. It follows that the expected Hamming distance can be expressed as
where efn and efp denote the error probabilities due to false negatives (blue area) and false positives (red area), respectively.
Let and
denote the cumulative distribution functions (CDF) of the distributions of dendritic sums of genuine units and spurious units, respectively. Then, we can express the expected Hamming distance as
see Fig 2D (derived in Methods).
As discussed in the previous section, we always adjust the activation threshold such that the output activation ratio of the target output pattern
is maintained in the calculated output
. This restriction is respected if the Balance Equation
is fulfilled (see Fig 2E), i.e., if the contribution to the Hamming distance of the wrongly inactive genuine units equals the contribution of the wrongly active spurious units
(see derivation in Methods).
With the Balance Equation, we can express in terms of
, and the expected Hamming distance simplifies to
To calculate the capacity, we need to determine the number of patterns P for which the signal quality , as defined in Eq (7), equals the retrieval threshold
(see Methods for details), i.e., we have to solve the equation
which can be simplified to
Using this relation in the form in the Balance Equation yields
We now have two equations, Eq (18) and Eq (19), in two variables P and . Solving them gives us the number of patterns P (and the corresponding activation threshold
) for which the signal quality
equals the retrieval threshold. This P is the capacity (or memory lifetime)
.
Since the dendritic sums follow discrete distributions (see Eqs (10) and (11)), their CDFs and
are not invertible over a continuous domain. If we approximate the distributions by appropriate continuous distributions, Eqs (19) and (18) can be reduced to a single equation
in . The capacity
corresponds thus to the number of patterns P for which the
-quantile of the spurious distribution equals the
-quantile of the genuine distribution (Fig 2F). An analytical solution to Eq (20) is derived in the Methods.
Effect of activation ratio on optimal strength of plasticity and (maximal) capacity
Let us now quantify how the memory capacity depends on the activation ratio of the input pattern fin, the activation ratio of the output pattern fout, and on the transition probability
. While many earlier works (e.g., [29,38,43,44,46]) have already analyzed how activation ratios impact the capacity of similar networks, we extend these earlier works by adding the strength of plasticity as an additional parameter. We can thus investigate the new triangular relationship between activation ratios, strength of plasticity, and capacity. This allows us to derive and discuss an optimal strength of plasticity and to define a maximal capacity.
Fig 3A shows the signal quality as a function of the number of patterns P for several transition probabilities . The signal quality always decays with time, i.e., with the number P of subsequently stored patterns. The larger the transition probability, the faster the decay because the number of connections that is updated in each time step is larger and the old memories are thus overwritten more quickly. In the long run, the signal quality decays to zero. The initial signal quality (shown at P = 0 in Fig 3A) strongly depends on the transition probability because it determines how many connections are used for the initial memory storage. For a higher transition probability, the memory is more strongly engraved into the system and, initially, can be retrieved better. If the transition probability is too low, too few connections are updated to recall a memory even right after storing it (gray circles in Fig 3A). The transition probability that yields the highest capacity, which we call the optimal transition probability, hence depends on a trade-off between a high initial encoding and a slow decay of the memory signal (Fig 3A).
(A) Signal quality decaying with number of patterns P for various transition probabilities
. While small
cause low initial signal quality, large
cause a fast decay. A transition probability of
yields the largest memory capacity because it reaches the retrieval threshold (magenta dashed line), which is chosen as half of the maximal signal quality (gray dashed line), for the largest number of patterns P. For approximately
, the initial signal quality is lower than the threshold and the capacity is zero (gray circles, see also gray circles in (B) and (C)). Fixed parameters:
. (B) For a given transition probability
, the memory capacity increases with decreasing input activation ratio fin until it reaches a maximum and then quickly decays to zero for smaller fin. The optimal
, which is defined as the transition probability that results in the largest memory capacity for a given fin, increases with decreasing fin until it reaches and stays at its largest value of 1 (black squares). The solid gray line shows the analytically derived optimal
as a function of fin. The signal-quality traces of the column marked by ‘I’ are shown in (A). White area indicates a capacity of zero. Fixed parameter: fout = 0.025. (C) Same as (B) for output activation ratio fout instead of input activation ratio fin. The memory capacity and the optimal
increase with decreasing fout. Column ‘I’ is shown in (A). Fixed parameter: fin = 0.025. In (D), the maximal capacity (obtained with the optimal transition probability
shown in (E)) for each combination of input activation ratio fin and output activation ratio fout is shown. For a fixed fin, the maximal capacity increases monotonically with decreasing fout. For a fixed fout, the maximal capacity has a maximum at a small but nonzero fin. Columns ‘II’ and ‘III’ are obtained from the results shown in (B) and (C), respectively. (E) Optimal transition probability
increases with decreasing fin and with decreasing fout. The slope is larger for fin than fout. Columns ‘II’ and ‘III’ are shown in (B) and (C), respectively. Further fixed parameters in (A) -(E):
, Navg = 200 (see Methods for details on averaging).
Fig 3B summarizes how the memory capacity depends on the input activation ratio fin and the transition probability
— for fixed fout. The capacity values of Fig 3A are visible in the marked column (fin = 0.025) of Fig 3B. In each column of Fig 3B, hence for a fixed fin, the largest capacity value that thus corresponds to the optimal transition probability is marked by a black square. The corresponding analytical estimate of the optimal transition probability is displayed by the gray line (Eq (103) in Methods, discussed in Section ‘Role of network size and number of active units’). For a fixed transition probability
(single row in Fig 3B), the capacity
is non-monotonic as a function of fin, i.e., it increases with increasing input activation ratio fin and then decreases again. As known from the literature [34,36,38], denser representations (higher fin) can lead to lower capacity values. However, if the input representations become too sparse (too small fin), the maximal possible capacity also drops and goes to zero for very sparse input patterns. This non-monotonic dependence of the capacity on the sparseness of the patterns has also been known for decades [37,38,45,52,60] and is confirmed here. The drop in capacity for very small input activation ratios can be explained by the fact that it is not possible for too few active input units to sufficiently excite the respective output units. In this case, a slight change of the weight matrix due to the storage of additional patterns can lead to very different units being activated in the output. In extreme cases — especially if both the transition probability
and the input activation ratio fin are too small — the pattern is not well enough imprinted from the very beginning (cf. Fig 3A, gray circles, and 3B, white region) and the capacity is zero. This issue is particularly severe if the error tolerance
is small, hence if the retrieval threshold
is high, i.e., is close to its maximum Havg. In this case, the capacity can be zero even for high transition probabilities
if the initial signal quality lies below
. In the following section ‘Activation ratios in the distributions of dendritic sums’, we provide an intuitive understanding of the role of the input activation ratio in the distributions of dendritic sums and its impact on the capacity.
Fig 3C summarizes how the memory capacity depends on the output activation ratio fout and the transition probability
— for fixed fin. The marked column in Fig 3C shows the same capacity values as the marked column in Fig 3B. For a constant transition probability (single rows in Fig 3C), we find that the capacity increases with decreasing output activation ratio fout. A smaller output activation ratio fout is beneficial for the capacity because a specific output unit is less likely to be active in subsequent patterns; hence relevant connections are turned off with lower probability. Nevertheless, if the transition probability
is too small, as before, the memory is not sufficiently well imprinted from the beginning and the capacity is zero (Fig 3C, white region). Previous work showed that, due to a collapse of the retrieval reliability for high output sparseness as soon as some noise is present in the system, also the output activation ratio can have a non-monotonic effect on the capacity in that capacity decreases again if the activation ratio becomes too small [46,52,60]. However, in the parameter ranges investigated in this study, the capacity always showed a monotonic decrease with the output activation ratio. For an attempt at an intuitive explanation of the dependence of the capacity on the output sparseness via an analysis of the role of the output activation ratio in the distributions of dendritic sums, we refer again to the following section ‘Activation ratios in the distributions of dendritic sums’.
In summary, we find that in our network the sparseness values of the input and the output patterns have differential effects on the capacity of the network. While the smallest output activation ratio achieves the highest capacity values (Fig 3C), there is a non-monotonic dependence of the capacity on the input activation ratio (Fig 3B).
While capacity as a function of sparseness has been extensively investigated in earlier work (e.g., [34,37,38,45,52,60]), we can, in our setup, now extend these dependencies to the maximal capacity obtained with the optimal strength of plasticity: The non-monotonic dependence of the capacity on fin and its monotonic dependence on fout are also maintained for the maximal capacity. Fig 3D summarizes the maximal capacity for various pairs of input and output activation ratios fin and fout, which is obtained by using the optimal transition probability for each pair. As for the capacity for a fixed in Fig 3B,3C, Fig 3D shows an asymmetric effect of fin and fout on the maximal capacity.
Finally, the quantification of the capacity in dependence of the strength of plasticity allows us to derive the optimal strength of plasticity, which is the transition probability that yields the largest capacity — for fixed input and output activation ratios. A central result of our study is that the optimal strength of plasticity depends on the input and output activation ratios. The sparser the patterns (smaller fin or fout), the larger the transition probability that allows for the largest capacity (depicted by black squares in Fig 3B,3C). This effect is monotonic and has a larger gradient for the input activation ratio (Fig 3B) than for the output activation ratio (Fig 3C). This behavior is summarized in Fig 3E for a wider range of pairs of fin and fout.
In S6 Appendix, we compare our results that were obtained with a homeostasis based post-synaptic normalization to results obtained for a pre-synaptic normalization and for a normalization averaged over all connections. We find that the qualitative dependencies of the optimal transition probability and the maximal capacity on the activation ratios (compare Fig 5D,5E to S6 Appendix) remain unchanged.
(A) Distributions of dendritic sums of genuine (blue) and spurious (red) output units. In the bottom panel, the input activation ratio fin is four times larger than in the top panel. For a larger fin, the difference between the means of the distributions (black arrows) is larger (note the different scales of the x-axes in the two panels). The standard deviations (red and blue arrows) are also larger for larger fin but the coefficients of variation are smaller. Also the overall overlap of the two distributions is smaller for larger fin. (B) The probability of a connection to a genuine output unit to be functional as a function of the output unit usage u.
always decays as a function of u and approaches
(red) for large u. The decay is faster for larger input activation ratio fin. (C) The weight distribution
moves to the right if fout is increased (black: fout four times larger than in orange). The largest weights hence affect binomials
(in Eq (11)) with smaller
values (blue). Further parameters:
.
Activation ratios in the distributions of dendritic sums
While the benefit of sparseness for the capacity for large to moderate activation ratios and the decrease of capacity for small activation ratios (in particular small input activation ratios) were already well-established in the literature (e.g., [37,38,45,52,60]), we provide here a new intuitive analysis of these effects based on the distributions of dendritic sums.
The intuitive understanding of the effects of the input and the output activation ratios on the capacity can be strengthened by having a closer look at the distributions of the dendritic sums, which determine the signal quality of the memory. We again distinguish distributions of dendritic sums of spurious and genuine units (red and blue/green, respectively, in Fig 2A) as given in Eq (10) and Eq (11), respectively. These explicit expressions for dendritic sums of spurious and genuine units allow us to understand why fin and fout affect the capacity of the network in different ways.
We first explain the role of fin, while fout is assumed to be fixed: A fixed fout implies that the weighting of the individual binomial mass functions in Eq (11) is fixed for a given P. We can hence discuss the role of fin in the individual binomials without considering the weighting. The capacity’s non-monotonic dependence on fin is a combination of two separate effects working together. In the following, we discuss via what dominating mechanism fin can positively correlate with the capacity, which is the case for very small fin (left of the gray line in Fig 3B), and what mechanism has to dominate such that fin is negatively correlated with the capacity, which is the case for larger fin (right of the gray line in Fig 3B). First, the input activation ratio occurs in the number of trials of the individual binomial distributions in
and the number of trials Min of the spurious distribution
. Let us assume for the moment that fin was increased only in the number of trials of the binomials, and we ignore the dependence of
on fin in Eq (12). Such an increase of fin in the number of trials pulls the distributions
and
farther apart since both mean values are proportional to fin. They are also stretched out more (higher standard deviation
with p = c or
) but the overall overlap of the two distributions is reduced because the means grow with Min and the standard deviations grow only with
(also see left hand side of Eq (91) for P = 0). This is illustrated in Fig 4A (top: smaller fin, bottom: larger fin). Due to the smaller overlap of the two distributions, the Hamming distance is reduced and this yields a larger capacity. For fin increasing from zero, this increase of the capacity can be seen for the values left of the gray line in Fig 3B. However, the input activation ratio fin also occurs in the probabilities
(Eq (12)) of the individual binomials in the genuine distributions. If only changed at this place, an increased fin leads to a faster decay of the probability with increasing u (Fig 4B) and hence with the number of patterns P. For larger fin, each of the individual binomials
in Eq (11) and hence also the total genuine distribution converges faster to the spurious distribution, which implies a deteriorative effect on the capacity. This can be seen for the capacity values right of the gray line in Fig 3B. In summary, these two effects dominate in different ranges of fin, which can explain the intermediate value of fin that yields the optimal capacity. For input activation ratios fin close to zero, the effect of the change of fin in the number of trials of the distributions (10) and (11) dominates over the effect of the change of fin in (12). The capacity hence increases with increasing fin if fin is small (derived in S5 Appendix). This confirms the detrimental effect of a very small fin on the network capacity that we discussed in the previous section: If fin becomes very small, the number of active input units becomes too low to reliably activate the respective output units. For very large input activation ratios fin, the effect of a change of fin via the probability
(Eq (12)) is stronger than the effect via the number of trials and the capacity decreases with increasing fin.
The upper limit of fin is c (see first section on condition ). The capacity for this upper limit of the input activation ratio fin can be derived for the special case
. If fin takes its maximal value c, the probability
(Eq (12)) equals c and the genuine (Eq (11)) and spurious distributions (Eq (10)) become identical. This makes it impossible to differentiate between genuine and spurious units and the capacity is hence zero. In total, the intuition that we have developed here thus matches the numerical results discussed in the previous section.
Let us now turn to the output activation ratio fout, which affects the capacity also in two ways. We now assume a fixed fin. First, fout is the success probability of the binomial distribution, which constitutes the weights in the genuine distribution (Eq (11)). An increased fout pushes the center of mass of the distribution to larger values of u (Fig 4C). The largest weights thus are given to larger u values, which correspond to binomials with smaller probabilities . This emphasizes the parts of
that are more to the left of
, which culminates in a shift to the left of the center of mass of the overall genuine distribution. In this sense, increasing fout increases the overlap of the genuine distribution with the spurious distribution and hence decreases the capacity of the network. At the same time, fout directly impacts the placement of the activation threshold because we are always enforcing
active output units. This is discussed in detail in the Methods, Section ‘The activation threshold and balancing tails of the distributions’. The effect on the capacity of a change of the activation threshold due to an increase of fout is unknown (also see Methods, Section ‘Deriving the Hamming distance from dendritic sums’). We speculate that this effect is small in the parameter range that we investigated numerically and that the effect of fout via the weight distribution discussed above dominates the dependence of the capacity on fout.
Role of network size and number of active units
So far, we have considered a fixed network size. We have seen how the capacity and the optimal transition probability depend on the input and the output activation ratio. Here, we discuss how these results depend on network sizes.
The following results are derived in detail in the Methods, Section ‘Analytical calculation of the capacity of the network’. Assuming that the average number of functional connections per output unit is large () but not too large (
) and
, the capacity
of the network can be analytically approximated as
with A and B being two functions that are defined in Eqs (93) and (94) in the Methods section (see also Eq (98)). Note that both A and B are independent of the input and output network size Nin and Nout. They only depend on the number of active input units Min and the output activation ratio fout.
Under the assumption , the optimal transition probability can be approximated by
(black line in Fig 5A, derived in Methods, Section ‘Optimal transition probability and maximal capacity’, see Eq (103)). It is independent of the input layer size Nin and the output layer size Nout. The maximal capacity for a fixed set of network parameters is obtained by using the optimal transition probability
in Eq (21):
We find analytically and numerically that the size of the input layer strongly impacts the maximal capacity of the network (see Fig 5B): The capacity scales linearly with the input layer size Nin. Since
is independent of Nin (5A), the maximal capacity
also scales linearly with Nin (Eq (21) and Fig 5B). The maximal capacity
depends non-monotonically on the number of active input units Min. We find that, for any sufficiently large input layer size, the highest capacity is reached for the same number of active input units Min (Fig 5B, gray line). According to Eqs (21) and (23), the maximum over Min of the maximal capacity
depends on the output activation ratio fout, the functional and morphological connectivities c and
and of course, via
, also on the retrieval threshold
. Since, for a fixed network size Nin, the input activation ratio
is simply a scaled version of Min, the maximal capacity
also depends non-monotonically on fin. We have seen examples of this non-monotonic dependence on fin in Fig 3D.
In most figures, we show results for a morphological connectivity and a retrieval threshold
. However, our theory also holds for smaller, more realistic morphological connectivities of a few percent and more stringent retrieval criteria, as well as for a combination of the two. The main dependencies between activation ratios, optimal transition probability, and capacity are qualitatively robust to such changes. An increase of the retrieval threshold
yields a larger optimal transition probability and, of course, a smaller capacity (S1 Fig). If the morphological connectivity
decreases,
increases, while
decreases (S2 Fig). The minimal number of active input units Min that is necessary to store patterns and achieve non-zero capacity increases with a decrease in morphological connectivity
. An increase in functional connectivity c increases both
and
, at least for sufficiently large Min (S3 Fig).
As a probability, the optimal transition probability is bounded between zero and one. It is a monotonically decreasing function of Min. For small values of Min, it takes the maximal value one. When Min becomes large enough, the expression becomes smaller than one and
becomes strictly decreasing as a function of Min (Fig 5A). This monotonicity of
as a function of Min could not be formally shown with our theory but has been confirmed in all evaluations of Eq (22) and all numerical simulations that were performed. In the range where
, the maximal capacity
is monotonically decreasing as a function of Min (shown in the Methods, Section ‘Dependence on input parameters’) (compare Fig 5A and 5B). It follows that, if the maximal capacity has a maximum as a function of Min (for any given network size), it is reached within the range where we have
(Fig 5A, the gray line marks the Min that yields the largest capacity). Note that, depending on the network parameters and the retrieval criterion, it can occur that there is no
for which
. In this case, the dependence of the maximal capacity on Min (as well as fin) is monotonic and the largest capacity is obtained for Min = 1. The special role of the number of active input units for the optimal transition probability as well as for the maximal capacity is remarkable and we speculate that it is related to the fact that we choose the number c Nin of functional connections per output neuron to scale with the input network size.
As can be seen from Eqs (21) and (23) and as discussed in previous sections, the capacity depends on the output activation ratio fout. For adequately large Nout, the size of the output layer, on the other hand, does not affect the storage capacity of the network (Eq (21) and Fig 5C, also see Discussion, Section ‘Role of the output size and retrieval criterion’).
Noisy input patterns during retrieval
We previously (Fig 3A) found that the transition probability that leads to the largest capacity depends on a balance between a large initial signal quality and a slow decay of the signal quality with the number of subsequently stored patterns. The top panel of Fig 6A also shows the signal quality as a function of the number of patterns but for a different set of input and output parameters () than Fig 3A. Let us now investigate the effect of noisy input patterns during retrieval on the optimal transition probability and the maximal capacity of the network.
The input pattern that is presented to the network during the retrieval phase does not necessarily have to be the same pattern that was used for training. From a biological perspective, it makes sense to assume that the input during retrieval is not exactly the same but a noisy version of the original input pattern. We follow a similar approach as [46,47]. The noisy input patterns are created by deactivating a particular fraction of the active input units while activating the same number of inactive input units. The input activation ratio fin is hence maintained. Adding noise to the input pattern during retrieval reduces the memory capacity by deteriorating the signal quality right from the beginning (Fig 6A, top vs bottom). This shift in the initial signal quality is particularly strong for small transition probabilities
because the memory relies on few connections to provide a strong input to the output units. If some of the input units that are supposed to be active in a pattern are inactive and others are activated instead, it is likely that many of the genuine output units are not activated anymore. The effect is less drastic for large transition probabilities for which the memory is more reliably imprinted into many connections and does not get lost just because some input units are wrongly activated. However, we find that the change in the signal quality due to noise can neither be explained by a constant shift nor by a constant multiplicative scaling. The change depends on the number of patterns in a more complex way, see S3 Appendix. There we derived an analytical description of the factor that has to be applied to the signal quality
calculated without noise during retrieval to obtain an estimate of the signal quality
with noise.
Despite the complex relationship between and
, the qualitative dependence of the optimal transition probability
on the input and output activation ratios remains the same as without noise (Fig 6B, compare to Fig 3E) — it increases with decreasing activation ratios. Further, adding noise to the input pattern during retrieval maintains the non-monotonic effect of the input activation ratio and the monotonic effect of the output activation ratio on the maximal capacity (Fig 6C, compare to Fig 3D).
We extend our theory to retrieval with noisy input patterns and find that the optimal transition probability can again be described as
where and
(Eqs (112) and (113)) now additionally depend on the noise level
(derived in Methods, Section ‘Extension to noisy input patterns during retrieval’). For a fixed set of parameters, noise during retrieval increases the optimal transition probability:
(Fig 6D, compare solid line to dashed line). It can be approximated as a scaled version of the optimal transition probability without noise:
(Fig 6D, dash-dotted lines, also see S4 Fig. As discussed previously, the optimal transition probability corresponds to a sweet spot that realizes both a good initial encoding of the memory and a slow decay of the memory trace. The additional noise impacts both aspects but since we find that , the noise has a more detrimental effect on the initial signal quality than on the decay of the signal quality.
The maximal capacity can again be theoretically described as
(Fig 6E, solid lines, derived in Methods, Section ‘Extension to noisy input patterns during retrieval’, see also S4 Fig). It can further be approximated by
where is the capacity without noise (Eq (21)) evaluated for
and the last approximation step assumes
and
(Fig 6E, dash-dotted lines, see also S4 Fig; derived in S4 Appendix). Hence, the maximal capacity with noise during retrieval is the maximal capacity without noise (evaluated at
) shifted down by a fixed amount that scales linearly with
. The Min that yields the highest capacity is again independent of Nin but it increases with the noise level
(Fig 6E, vertical dashed lines, see also S4 Fig).
We can conclude that in a system with noisy input patterns, the capacity is lower than in a system without noise. However, with noise, it is beneficial for the capacity to learn with a higher transition probability.
Discussion
We studied the effect of population sparseness on the optimal transition probability of synaptic weights for maximum memory capacity in an associative network. We quantified this storage capacity in a heteroassociative feedforward network, where the capacity is based on a threshold of the Hamming distance between the target patterns and the calculated output patterns, as illustrated in Figs 1 and 2. Furthermore, we determined the transition probability that maximizes the capacity (see Eqs (21)–(23)). Analytical derivations and numerical simulations show that this optimal transition probability increases with the sparseness of both the input and the output patterns, but the impact of the input sparseness is stronger (Fig 3B,3C,3E). The maximum capacity is largest for the lowest output activation ratio, whereas it depends non-monotonically on the input activation ratio (Fig 3B,3C,3D). These results are accompanied by a theoretical analysis based on the distributions of the dendritic sums that provides an intuitive understanding of the mentioned dependencies (Fig 4). Moreover, the maximum capacity is extensive with respect to the input layer size, but the optimal transition probability is independent of the network size (Fig 5). The crucial parameter that determines the optimal transition probability is the actual number of active input units and not the input activation ratio (Fig 5A). The number of active input units that yields the largest possible capacity is also independent of the network size (Fig 5B,5C). All results hold for recall with perfect input patterns as well as with noisy input patterns. As expected, the maximal capacity decreases as a function of the noise level but, interestingly, the optimal transition probability increases (Fig 6). Together, our in-depth numerical and analytical analysis of memory capacity based on Hebbian and homeostatic learning presents a substantial advancement, as it reveals the distinct effects of input and output sparseness as well as network size and input noise on the optimal strength of plasticity while relying on a very simple network and pattern structure.
From a methodological perspective, the theoretical derivations in this manuscript build on previous work on the capacity of binary networks (see, e.g., [43,44,47,48,52]) that was derived via the distributions of dendritic sums (see, e.g., [45–47,49–51]). These earlier approaches use setups that have some similarities with the one analyzed here — like sparse patterns [46,47,49], clipped Hebbian learning [46,49], or imperfect retrieval cues [46,47]. However, the homeostatic effect of a predefined in-degree and of a fixed output sparseness, which complicate the analytical description of the network capacity, were not considered before. In other regards, the present work has a different focus than previous work, which, for example, investigated the specific statistical properties of distributions of dendritic sums [50,51,61], compared different thresholding strategies [45,46], or used a bidirectional memory structure [49]. The new analytical contributions of the present work can thus be summarized as follows: Distributions of dendritic sums are derived for a learning rule where the number of functional connections per output neuron is fixed. To our knowledge, the effect of such a homeostasis rule on the behavior of the distributions of dendritic sums has not been analyzed in detail before. Furthermore, the memory capacity is derived for an activation threshold that is chosen self-consistently so that the output activation ratio is maintained. This introduces a Balance Equation (Eq (15)) that needs to be fulfilled by a certain activation threshold. Moreover, and most importantly, the current work includes a parameter that describes the strength of plasticity of the network and, therefore, allows for an analytical investigation of how the input and output activation ratios impact the optimal strength of plasticity and the maximal capacity.
Palimpsest memory and homeostatic plasticity
The architecture of the network used in this manuscript is similar to the Willshaw network [29] in that it is a feedforward one-layer network that learns associations between binary input and output patterns in a Hebbian way (see Section ‘Network model, learning paradigm, and quantification of capacity’). In contrast to a classical Willshaw network in which all memories disappear when the capacity is reached, our network realizes a palimpsest memory system in which older memories are erased by newer memories due to a homeostasis mechanism (see, e.g., Fig 3A). This degradation of older memories allows for an online learning regime where an in principle infinite sequence of patterns can be learned — new patterns always gradually replacing older ones [36,38]. The signal quality of a memory pattern hence does not only passively decay over time due to the interference between patterns, but also decays actively due to the deactivation or depression of synaptic connections. The underlying heterosynaptic plasticity, which is characterized by an input-unspecific change of synaptic efficacies [62,63], has been found, e.g., in the hippocampus and the neocortex [64,65]. Heterosynaptic plasticity can provide an effective homeostatic constraint on Hebbian plasticity [66,67]. In the presented work, a combination of Hebbian homosynaptic and homeostatic heterosynaptic learning was used (see Section ‘Network model, learning paradigm, and quantification of capacity’). Hebbian plasticity increases connection weights with a predefined probability if both the pre- and the postsynaptic units are active, and homeostatic plasticity decreases weights with another predefined probability if only the postsynaptic unit is active (details in Methods, Section ‘Hebbian and homeostatic update rules from a probabilistic perspective’). The update probabilities, which represent the strength of plasticity, are balanced such that the total number of functional connections per output unit remains constant. This special rule of heterosynaptic plasticity is inspired by experimental evidence of a constant total summed synaptic weight on a dendritic branch [54,68].
In general, variations in the implemented homeostatic plasticity are possible. For example, in contrast to our approach, the total number of functional connections per input unit could be conserved to achieve presynaptic homeostasis by depressing connections from active input neurons to inactive output neurons (as suggested by [36], e.g., reported by [69]). Alternatively, the number of functional connections could be conserved only throughout the network, i.e., not normalized per input or per output unit; such a normalization could be achieved by randomly silencing connections that are not involved in a given association of patterns [37]. Numerical simulations based on either of these two variations suggest that the qualitative dependence of the optimal strength of plasticity on the sparseness of the patterns is the same as for the learning rule analyzed in detail in this paper (see S6 Appendix). Finally, a change in synaptic efficacies could occur due to synaptic aging where connections that have not been involved in a pre- and postsynaptic co-activity for a long time might be more likely to be depressed than those that have been strengthened more recently [70]. Such an age-dependent homeostasis rule requires synapses with metaplasticity, which could have a beneficial effect on the storage capacity of the network [38,40,71] even though not necessarily for sparse codes [38]. Furthermore, models that incorporate structural plasticity focus not only on changes in connection strength but also on the formation and elimination of synapses and the remodeling of dendritic spines [72,73]. Such models have been shown to be capable of increasing storage capacity, in particular for sparse patterns in sparsely connected networks [74,75]. It is beyond the scope of this manuscript to analyze in detail the impact of metaplasticity or structural plasticity.
Input sparseness vs output sparseness and morphological connectivity
In our heteroassociative network, both a change in the input and the output sparseness value affect the optimal strength of plasticity and the corresponding maximum memory capacity (Figs 3, 5, and 6, Eqs (21)–23)). The optimal transition probability monotonically decreases with an increase in the input activation ratio as well as with an increase in the output activation ratio, but the gradient is steeper for the input activation ratio (see Figs 3E, 6B, 13). In order to learn with high plasticity, sparseness in the input representations is thus more beneficial than sparseness in the output representations.
Results from numerical simulations are depicted by dots, and theoretical results are depicted by solid lines. (A) The optimal transition probability as a function of Min monotonically decreases from a plateau at one to zero.
does not depend on the input layer size Nin. The overall highest capacity for a fixed network size is obtained for an Min which yields an optimal
of one (vertical gray dashed line). (B) shows the maximal capacity
as a function of the number of active input units
for Nin = 1000, 2000, 4000, 8000 and 16000. The size of the output layer is fixed to Nout = 1000 in the simulations. The maximal capacity as a function of Min scales linearly with Nin. The vertical gray dashed line marks the number of active input units Min that yields the highest capacity. The highest capacity for a fixed network size is obtained at the same Min for any network size. In (C), the output layer size Nout (=1000, 2000, 4000, 8000) is varied instead of the input layer size Nin. The number of input units Nin is fixed to 1000. The size of the output layer Nout does not have an impact on the maximal memory capacity
of the network. Further parameter values in (A)–(C):
.
The noise level is set to in the entire figure. (A) The memory signal quality
decays with the number P of patterns learned by the network. For smaller transition probabilities
, the signal quality
starts lower but decays more slowly than for larger
. Top: No noise during retrieval; the largest capacity is attained for
. Bottom: With noise on the input patterns during retrieval; the signal quality
is lower than without noise, particularly for small transition probabilities
. All capacity values with noise are slightly smaller than the corresponding ones without noise. The largest capacity is now attained for
. In (A) the solid curves show results from simulations. The dotted curves are an approximation of the signal quality with noise
where the signal quality without noise
is multiplied by a factor obtained from theory (see S3 Appendix). Fixed parameters in (A):
. (B),(C) The optimal transition probability
and the maximal memory capacity
obtained with noise during retrieval as functions of input and output activation ratios fin and fout.
and
behave qualitatively similar to the maximal memory capacity
and the optimal transition probability
obtained without noise (cf. Fig 3D,3E). In (A)–(C):
. (D) The optimal transition probability
with noise (solid curve, Eq (24)) is slightly higher than without noise (dashed curve, Eq (22)). The dash-dotted curve (which aligns closely with the solid curve) shows an approximation of
as a multiple of
(Eq (26)). The vertical dark gray and light gray dashed lines mark the Min that yields the highest capacity with and without noise, respectively. With noise, the optimal Min is larger than without noise. All black curves are derived from theoretical considerations, the colored dots show results from simulations (Nout fixed to 1000). (E) Noise on the input patterns during retrieval reduces the maximal capacity
. Furthermore,
scales with the input layer size Nin. Dashed curves show the maximal capacity without noise (Eq (23)), solid curves show the maximal capacity with noise (Eq (27)), dash-dotted curves (which align closely with the solid curves) show an approximation of the maximal capacity with noise for small
(Eq (28)), and dots show numerical results (Nout fixed to 1000). Further parameter values in (A)–(E):
.
Analytical probability mass functions of dendritic sums after storing P = 0, 10, 20, 30, 40, 50 patterns (Eqs (44) and (46)). Spurious units in red; genuine units in blue shades, for several transition probabilities . With an increasing number of subsequent patterns P, the distributions of the dendritic sums of genuine units approach the distribution of the dendritic sums of spurious units. The genuine distributions are multimodal, in particular for large transition probabilities
and small numbers of patterns P > 0. Other parameters:
.
Analytical probability mass functions of dendritic sums with noise on the input patterns during retrieval after storing P = 0, 10, 20, 30, 40, 50 patterns (Eq (56) with (41) and (53); Eq (36) with (40)). Spurious units in red; genuine units in blue shades, for several transition probabilities . With an increasing number of subsequent patterns P, the distributions of the dendritic sums of genuine units approach the distribution of the dendritic sums of spurious units. Compared to the noise-less case (see Fig 7), the genuine distributions are closer to the spurious distribution. Other parameters:
. The same figure but with
can be found in S6 Fig.
The Hamming distance between the target and the calculated output pattern (salmon line) increases with an increasing number of patterns P and approaches Havg (gray line) for
. The signal quality
(green line) decreases with increasing P and approaches 0.
(A) Distributions of dendritic sums of genuine (blue) and spurious (red) output units. Output units with a dendritic sum larger than the activation threshold are activated. (B) Distributions of dendritic sums scaled by the number of units whose dendritic sums follow the respective distributions. The sum of the number of genuine (blue) and the number of spurious (red) units that have a dendritic sum larger than the threshold
corresponds to the predefined number of active output units Mout. (C) Distributions of dendritic sums of genuine (blue) and spurious (red) units scaled by fout and
, respectively. The mass of the part of the genuine distribution left of the activation threshold
(blue area) must correspond to the mass of the part of the spurious distribution right of
(red area). (D) Same as (C) but for larger number of patterns P = 114 instead of P = 68. The threshold
(
) moves to the left in order to maintain the balance of the tails, which ensures the right amount of active output units.
(A) Hamming distance is the sum of falsely deactivated genuine units (blue area) and falsely activated spurious units (red area). (B) If fout is changed, the threshold needs to be adapted such that the ratio of the red area to the blue area corresponds to the ratio
. Upper:
, lower:
and hence the red area is much smaller compared to the blue area in the lower panel than in the upper panel. This is achieved by a larger
, which can also affect the Hamming distance.
The activation threshold corresponds to the
-quantile of the spurious distribution and to the
-quantile of the genuine distribution.
As known from the literature [29,33,34,36], the capacity of an associative network benefits from sparse representations. We find that the same is true for the maximum capacity, which is obtained by learning with the optimal transition probability for each combination of parameters. While enforcing sparser output patterns decreases the overlap in the output space and hence decreases the likelihood of retrieval errors up to extreme sparseness values of only one active output unit, using too sparse input patterns can be detrimental to the capacity. If the input representations contain a too small number of active units Min, it is difficult for the signal, which scales as Min, to overcome the noise, which scales as (Fig 3A,3B and Fig 5B). In other words, a too small number of active input units cannot reliably drive the respective output units. If Min is smaller than some optimal value, the initial signal quality approaches the retrieval threshold and the capacity decreases, and if Min becomes even smaller, the initial signal quality can be below the retrieval threshold and therefore the capacity is zero [37,38,46,52]. This collapse of the maximal capacity for too sparse input patterns occurs only in the range of Min-values where the optimal transition probability has already reached its maximal value 1 (Fig 5A; details in Methods, Section ‘Dependence on input parameters’). Therefore, for too sparse input patterns, a decrease in Min cannot be compensated by an increase in the transition probability.
A similar limitation may arise in networks with strongly diluted morphological connectivity . Such connectivity values are substantially more biologically realistic than the fully connected case
(used in many figures of this manuscript), since anatomical connectivity in cortical networks is typically sparse [76]. In terms of the approximation of the distributions of dendritic sums by a binomial distribution,
is the worst-case scenario (see S4 Appendix for details). The analytical approximation of the capacity derived in this manuscript hence improves significantly for more realistic values of
. However, in the case
, particularly for very sparse input representations, the number of active feedforward inputs contributing to the signal can become too small for reliable retrieval. As discussed in previous work on sparse associative memories [74,75], very sparse morphological connectivity can therefore further reduce the robustness of sparse representations and lead to vanishing capacities. To address this point, we evaluated the model for a wide range of small morphological connectivity values
. As expected, reduced connectivity decreases the achievable capacity and increases the optimal transition probability to compensate for the reduced number of available synapses. However, even for very small morphological connectivities
and strict retrieval criteria (
close to 1), many patterns can be learned and successfully retrieved if the number of active input units Min is sufficiently large — and the qualitative dependencies of the capacity and strength of plasticity on sparseness are maintained (S1 Fig and S2 Fig).
Choice of the activation threshold and optimized capacity
The central purpose of this work is to establish a relationship between the population sparseness of the patterns and the optimal strength of plasticity of the network to maximize its capacity. This requires quantifying the capacity, i.e., the lifetime of a pattern; therefore, the setup must allow for a meaningful comparison of the target and calculated output patterns. As a measure, we used the Hamming distance between the target and the calculated output patterns. This measure is most robust if the number of active output units Mout is fixed, which is implemented by choosing the activation threshold of the McCulloch-Pitts output neurons accordingly (Eq (3)). The maximum capacity calculated in this framework (Eq (23)) represents the highest capacity obtained under the given constraints using the optimal transition probability. In other approaches, the beneficial effect of sparseness on capacity has been extensively studied in different settings. For example, [34] could increase the capacity by using an optimized covariance-based learning rule. Moreover, [46] found that the capacity can be optimized by individually adjusting the threshold of each neuron, and [77] suggested the use of a numerically optimized activation threshold in a setup that is very similar to ours. A general model that unifies earlier Willshaw- and Hopfield-type networks provides optimal synaptic weights as well as an optimal firing threshold for each neuron [78]. In our manuscript, such aspects have been excluded in an attempt to keep the model as simple as possible to allow for a detailed analysis of the effect of sparseness on the strength of plasticity.
Capacity measures
A limitation of the present work is the use of the performance measure “pattern capacity”, which is defined as the number of subsequent associations that can be stored before losing retrievability of a pattern. As an alternative, network capacity is commonly also defined through information-theoretic measures that optimize resource use, such as synaptic capacity (see, e.g., [29,43,52,57]). For sparse patterns, it has been shown that parameters that yield optimal pattern capacity do not necessarily also optimize synaptic (information) capacity [47,52,57], implying an under-utilization of synaptic resources. In addition, outside the very sparse regime, when the number of active neurons per pattern becomes sufficiently large, optimizing pattern capacity may in principle overestimate the amount of synaptic memory required to store a given number of associations. In this case, the information content of the stored sparse patterns exceeds the minimal information necessary to distinguish between P memories, and alternative memory models could therefore encode lighter-weight representations using fewer synaptic resources. In our work, pattern capacity is employed as a functional measure of memory performance, focusing on the ability of the network to reliably retrieve stored patterns. It is not intended to quantify the information-theoretic optimality of synaptic storage. The results are thus best understood as characterizing the retrieval performance for different activation ratios and transition probabilities under the given homeostatic constraints of the network—and not as statements about how efficiently synapses are used in terms of information storage.
In S8 Appendix, we provide a translation of our main results into the information-theoretic measure of synaptic capacity. These preliminary results suggest that the decrease of the optimal transition probability with increasing activation ratios, which is the core result of the present work, is maintained for synaptic capacity. The synaptic capacity obtained with the optimal transition probability decreases with increasing input and output activation ratios. A detailed information-theoretic analysis of these results is beyond the scope of this study, but provides an interesting direction for future work.
Role of the output size and retrieval criterion
The analytical description of memory capacity relies on the distributions of dendritic sums, which are based on the synaptic connections of single output units (Eqs (10) and (11)). For the Hamming distance (Eq (14)) and thus also for the signal quality (Eq (7), also see Methods, Section ‘Signal quality after P subsequent patterns’), the number of output units Nout has to be taken into account because the probabilities of output units being in the wrong state are scaled by the respective number of units. We defined memory capacity as the number of subsequent patterns that can be learned until the signal quality
reaches the retrieval threshold
(Eq (8) and Eq (17)). The retrieval threshold
, with a fixed
, is chosen as a fraction of
, which is the average Hamming distance between two random fout-sparse patterns of size Nout (Eq (9)). For most figures in this manuscript, we chose
as an exemplary retrieval ratio, where up to half of the units of a pattern are allowed to be wrong. However, network simulations as well as the analytical theory show that the main results, such as the monotonic decrease of the optimal transition probability as a function of the activation ratios and the non-monotonic dependence of the maximal capacity on the number of active input units, are robust with respect to changes in the retrieval threshold (see S1 Fig). The qualitative results hold also for much less permissive retrieval criteria with high values of
that allow only for a small percentage of wrong units.
Due to the choice of the retrieval threshold as a multiple of Havg, the number of wrong output units that are accepted for the pattern to be classified as retrievable depends on Nout and fout. This dependence accounts for the fact that a fixed number of wrongly activated units has a more severe destructive effect if the total number of active output units is small. For example, if in a pattern with Mout = 100 active output units nine are wrong, the pattern is still very similar to the original one; if Mout = 10, nine wrong units are detrimental. The capacity is obtained by comparing the signal quality
to the retrieval threshold
or, equivalently, by comparing the normalized signal quality
to the retrieval ratio
. Since the normalized signal quality
does not depend on Nout (derived in Methods, Section ‘Signal quality after P subsequent patterns’) but only on the distributions of the dendritic sums and fout (see Eqs (59) and (61) as well as S3 Appendix), the capacity does not depend on Nout either.
As an alternative, which has not been explored in this manuscript, the retrieval threshold could be defined independently of Havg and thus independently of Nout, e.g., implementing the retrieval criterion that a maximum of two units may be wrongly activated or that at least ten units must be correctly activated. In such alternative cases, the capacity could depend on the output network size Nout.
Furthermore, the output size as well as the input size in combination with the output and input activation ratios, respectively, pose an upper limit to the representational capacity, i.e., the maximal number of distinct patterns. If every input pattern and every output pattern should occur maximally once, the number of distinct input-output pattern pairs is bounded by .
In general, however, even if the size of the output layer is negligible for the storage capacity under specific circumstances, it plays an important role in a potential additional readout layer, e.g., a classification of the output representations. In [79], it has been shown that an increase in the number of output units increases the performance of a readout unit that performs a binary classification.
Strength of plasticity and related concepts
In the context of strength of plasticity, several distinct but related notions are used. Here, it seems useful to explain and compare the concepts of transition probability, weight step size, and learning rate, which could all be used to model the strength of synaptic plasticity. Apart from that, we make the distinction between the strength of plasticity and the speed of learning. The discussion of the speed of learning introduces the additional notions of number of trials and convergence time.
In this manuscript, we model the strength of plasticity by the transition probability, which refers to the likelihood that a synaptic weight increases during learning. Instead, a change in the strength of plasticity could also be realized by a change in the magnitude of synaptic weight updates (here called the weight step size). Weights could, for instance, be modeled to take on a number of discrete values. A high degree of plasticity could then be realized by a larger jump from a small weight value to a large weight value, while a low degree of plasticity would allow for updates from a small to an intermediate weight value. The transition probability and the weight step size are closely related as both affect changes in weights, and the average weight change in one learning step is proportional to the product of the two parameters. The qualitative results for the effect of sparseness on the optimal strength of plasticity of the present study are likely to also hold for models based on the weight step size or on a combination of both the transition probability and the weight step size. Note that while the assumption of only binary synaptic weights combined with a transition probability is a simplification of the state transitions that occur in real synapses, assuming a bounded number of discrete states is more realistic [80,81]. It therefore makes sense to assume that the strength of plasticity — e.g., in terms of the amount of potentiation experienced by synapses combined with a probability of potentiation — is bound to have an upper limit.
In this manuscript, we consider a time-discrete model of plasticity. In contrast, in time-continuous models, the strength of plasticity could be represented by the learning rate, which controls how fast the weights change. Again, we believe that a time-continuous model would yield qualitatively similar results to our time-discrete model relying on the transition probability if the number of connections in the network is large. It would generally be interesting to analyze more complex and more realistic synapse models (e.g., [38,40,71]) in this context, but all this is beyond the scope of the present work.
Furthermore, the strength of plasticity should be distinguished from the speed of learning. In our learning paradigm, the number of learning trials is kept constant and equal to one. Thus, each pattern pair is learned in one shot by changing a number of connections, which depends on the strength of plasticity. Although high plasticity and more rapid learning can often go hand in hand (also see next section ‘Sparseness and plasticity in the brain’), the speed of learning (one trial) is here fixed and thus not a parameter of investigation in this study.
Finally, we relate the so-called “convergence time” to the strength of plasticity, although the term “convergence” and its magnitude do not refer to how many or how much weights are altered, but it is a system-level outcome. Convergence refers to how quickly a neural network stabilizes or reaches its learning objective, e.g., a minimum in a gradient-descent learning algorithm. While very plastic synapses (e.g., in terms of transition probability, weight step size, or learning rate) can speed up appropriate weight updates, fast convergence is achieved by balancing these factors to ensure that the network efficiently settles into an optimal or stable solution. A high learning rate can accelerate updates towards a solution, but it does not necessarily relate to fast convergence. If the update steps are too large, they risk overshooting or instability. In [82] it is argued that sparse representations yield faster convergence because the learning rate can be increased without risking instabilities, but how this relates to the capacity of the network was not investigated. Furthermore, it is not clear how this translates to biologically more plausible local learning paradigms. In our model, convergence is not evaluated because every pattern is presented only once, and thus there is only one weight update step. It would be interesting to investigate the effect of sparseness on transition probability in combination with convergence speed in a network model that allows for both. Building on the results of this manuscript and the reasoning in [82], we believe that high sparseness would yield a high optimal transition probability (or learning rate) while converging fast because sparseness allows for large update steps without instability. A concrete possibility of introducing the concept of convergence into our model — when allowing repeated encoding of a pattern pair — is to analyze how many trials are necessary to perfectly imprint, in the sense that all connections from active input to active output units in the pattern are functional, the association into the network. For a transition probability of one, this is the case after one shot. For lower transition probabilities, it could take many more trials, i.e., the speed of learning would be slower.
Sparseness and plasticity in the brain
As already outlined in the Introduction, high population sparseness is prevalent throughout the brain [1–3,5,6,8,9,20]. Our work suggests that brain areas with higher sparseness could make use of more plastic synapses than brain areas with lower sparseness. The results of several experimental studies support this relation between increased sparseness and higher plasticity, which often goes together with more rapid learning.
The hippocampus, for example, is well known for its highly sparse representations and is also well known to be involved in rapid learning with high plasticity of synapses, serving episodic and spatial memory. A high turnover rate of dendritic spines as an indicator of high plasticity has been reported for the mouse hippocampus [83]. Studies using single-trial learning paradigms showed that the hippocampus can encode and store information after only a single exposure to an experience [84,85]. This is often called one-shot learning. Research with rodents [86–88] and humans [89–92] demonstrates that concept cells can develop very quickly (within seconds to minutes) and that hippocampal neurons can rapidly form and reorganize place fields or episodic representations during single learning episodes.
Compared to the hippocampus, the neocortex seems to have a lower population sparseness. According to the theory of complementary learning systems in the context of systems memory consolidation, the neocortex is assumed to be a slow learning system, which needs repetitive exposure to acquire a new memory, for example, in the form of repeated memory replay by the hippocampus during slow-wave sleep [93–95]. This feature is in line with the observation that plasticity in the neocortex is lower than in the hippocampus [96,97]. An artificial increase in plasticity in the neocortex has been reported to disrupt memory processes [98]. However, engrams can also form rapidly in the neocortex, either in parallel with engrams in the hippocampus or even without hippocampal support [84,99,100]. Fast memory formation was observed in the neocortex in rodents, for example, in combination with unusually high plasticity in neocortical regions for memories related to prior knowledge [101,102] and in humans during the learning of new words [103]. A recent analysis of a large set of fMRI data suggests that under specific conditions the human parahippocampal cortex (PHC), a part of the neocortex, can exhibit even higher plasticity than the hippocampus [104].
In light of these studies and our theoretical considerations, a deeper experimental investigation of the causal or functional relationship between sparseness and the strength of plasticity would be of great interest for the neuroscience community.
Optimal sparseness values
In terms of the capacity obtained with an optimized transition probability, our study predicts an optimal small but not too small input activation ratio fin and an optimal output activation ratio (Fig 3). The optimal fin depends on the input size Nin while the optimal number of active input units Min does not (Fig 5). Nevertheless, the optimal Min cannot be interpreted as a quantitative prediction of the optimal number of active units because it depends on the retrieval threshold
(see Methods, Section ‘Dependence on input parameters’). If
is increased, i.e., if the retrieval criterion becomes more strict, the optimal Min increases (and the corresponding maximum capacity decreases).
In addition, the quantification of the optimal strength of plasticity in our model is focused solely on optimizing the pattern capacity of the network. In reality, the brain might favor a trade-off of various properties instead of optimization for one purpose [105]. Although sparseness can be advantageous, e.g., in terms of energy efficiency [106], storage capacity [107], and downstream classification [79], it might be beneficial to avoid extreme sparseness because it can reduce the representational capacity [105,108], the information capacity per pattern [109,110], the generalization capacity [105,111]; and extreme sparseness is also not robust to noise or damage of neuronal structures [108, 105]. Moreover, sparse connectivity, which is also ubiquitous in the brain, seems to yield similar favorable effects as population sparseness and could be optimized in combination with sparse activity [105,112].
In general, it is therefore not reasonable to predict one optimal activation ratio or one optimal number of active neurons. Optimal (and actual) values are probably different for different brain regions, cell types, tasks, etc. First steps towards more concrete optimal sparseness values could combine experimentally measured values, obtained with modern sophisticated techniques such as Neuropixels recordings, and computational models that take into account the specific properties and presumed role(s) of particular brain regions.
Methods
In the following, we give a detailed account of the analytical derivations and numerical implementations used to obtain the results presented in the ‘Results’. In the first part of the Methods (section ‘Probabilistic description of dendritic sums’), we derive the distributions of dendritic sums, which provides the basis for the subsequent derivation of analytical expressions for memory capacity in the second part of the Methods (section ‘Analytical calculation of the capacity of the network’). Finally, in the third part of the Methods (section ‘Network simulations’), we describe the numerical implementation of the algorithm. Table 1 provides a summary of the main parameters.
The three parts of the Methods can be read independently. They are written in a self-contained way so that they can be read independently of the Results section. Therefore, we first briefly recap the network model and the learning paradigm. The network is presented with a sequence of input/output-pattern pairs ,
. Each pattern pair is learned in one shot. Input and output patterns are binary vectors of length Nin and Nout, respectively, and of activation ratio fin and fout, respectively. Hence, they consist of
or
active units and
or
inactive units, respectively.
The input and output layers of the network are connected by a weight matrix J. Per output unit, a number connections (
entries per row of the weight matrix) are randomly chosen to be morphologically available connections. They can be functional (‘on’, value 1) or silent (‘off’, value 0). The functional connectivity c is always normalized such that a fixed number cNin of morphologically available connections per output unit is functional.
In each learning step, the weight matrix is updated according to the presented pattern pair . Silent connections between active input and active output units are turned on with a transition probability
. In addition, we randomly silence the same number of functional connections from inactive input units to active output units such that the total number of functional connections per output unit is maintained. This update step transforms
into J[k]. The transition probability
represents the strength of plasticity (or degree of plasticity) of the network. While this plasticity parameter modulates how plastic the connections of the network are and, therefore, how long a memory lasts, it does not modulate how fast the network learns, since each pattern is always learned in a single shot.
For any pattern pair that has already been learned, retrieval can be tested by presenting the original input and calculating the output as
for , where P is the number of subsequent patterns that have been learned since pattern k, and the activation threshold
is chosen such that Mout output units are activated. To determine the decay of the memory signal, this calculated output
can be compared to the given output pattern
. The larger P, the larger the Hamming distance between the two vectors:
We define the signal quality after P subsequent patterns as
where is the average Hamming distance between two random fout-sparse vectors of length Nout.
The retrieval threshold is defined as
for a fixed . We call a pattern with
retrievable and a pattern with
not retrievable. The maximal number P for which
, if
is averaged across many patterns, is defined as the capacity
of the network.
Probabilistic description of dendritic sums
To better understand the learning dynamics of the network and the decay of the quality of the memory signal, which is used to quantify the capacity, we derive a probabilistic description of the dendritic sums of output units (see also, e.g., [45,46,49–51]). The dendritic sum of the j-th output unit is its net input
In accordance with [45], we introduce the following nomenclature: In general, a calculated output pattern differs from the target output pattern
. We call output units that are active (1) in the target output genuine output units and output units that are inactive (0) in the target output spurious units. In the calculated output, on the one hand, genuine units can be correctly active or incorrectly inactive. On the other hand, spurious units can be correctly inactive or incorrectly active. The terms genuine and spurious do not indicate whether the calculated activity of an output unit is 1 or 0, respectively, but whether it should be 1 or 0, respectively, to match the target output. In this section, we derive the distributions of the dendritic sums of genuine and spurious output units separately, and these dendritic sums are denoted by symbols
(spurious) and
(genuine). The shapes of these two distributions (especially their overlap) is related to the Hamming distance between target and calculated output and consequently also to the signal quality. These relationships will become clear later in the Methods, i.e., in section ‘Analytical calculation of the capacity of the network’.
With respect to a particular pattern pair, we further distinguish between four types of connections:
- genuine-genuine (g-g) connections connect active input to active output units,
- genuine-spurious (g-s) connections connect active input to inactive output units,
- spurious-genuine (s-g) connections connect inactive input to active output units, and
- spurious-spurious (s-s) connections connect inactive input to inactive output units.
Note that the neuronal activity that determines the connection type is here understood as the activity in the original pattern pair and not in the calculated output pattern
.
Distributions of dendritic sums
In what follows, we follow the work of [29,43,46] and calculate the distribution of the net input to an output unit j where
denotes a spurious (s) or a genuine (g) output unit. This input
is also called the dendritic sum of output unit j. The term
is the j-th line of the weight matrix obtained for P additional patterns after learning pattern k. To understand how the P subsequent patterns change the weight matrix, we have to take into account how often the output unit j is active across all P patterns, which is also called the output unit usage. As suggested by [45], we assume that the number r of times an output unit is active in P statistically independent patterns follows a binomial distribution
, thus
This describes the output unit usage more accurately than the assumption that each output unit is active exactly times across a pattern set of size P, as assumed in the original paper on the Willshaw network [29] (also see [61]).
The dendritic sum of the output unit j gets contributions only from connections that originate at one of the Min input units that are active in the k-th pattern. Independently of the state of a connection (functional or silent), connections from inactive input units do not contribute to the net input to an output unit. We define as the probability that a genuine-spurious connection to the output unit j is functional given that the output unit j is active u times in the pattern set. Similarly, the probability that a genuine-genuine connection is functional is called
. The functionality of a connection implicitly takes into account that the connection is available morphologically. We emphasize that
, for
, depends on whether the respective output unit is genuine (
), i.e., active in the target output, or spurious (
), i.e., inactive in the target output. The derivation of
and
is discussed in the S1 Appendix. Moreover, the probability that a spurious-spurious or a spurious-genuine connection is functional is less interesting because these connections do not contribute to dendritic sums due to lack of input. However, these probabilities must be considered implicitly in S1 Appendix to be able to determine
and
. Further, the probability of a functional spurious-genuine connection, called
, is important if the input pattern used for retrieval is noisy. This case will be discussed in Section ‘Noisy input patterns during retrieval’.
For a particular output unit usage u and statistically independent output units, the dendritic sums are binomially distributed with
for . In the extreme case where all connections from input units that are active in the k-th pattern to an output unit are functional, its dendritic sum equals the number of active input units Min. Combining Eq (34) and Eq (35), we obtain
for , as the distribution of the dendritic sums
. This probability is described here for the sake of completeness, but it is the same as derived in [46]. However, the probabilities of functional connections
in our work differ from those considered in [46] (see S1 Appendix).
In what follows, we abbreviate
and
Before including the probability of a single genuine-genuine or a single genuine-spurious connection being functional after storing a set of additional patterns in which the output unit was active u times (derived in S1 Appendix), we review the learning rule from a probabilistic perspective and determine important fractions of connections.
Hebbian and homeostatic update rules from a probabilistic perspective
We assume a morphological connectivity of connections per output unit and start from a random choice of
functional connections targeting each output unit. In each learning step k, only connections targeting output units that are active in the current pattern, i.e., genuine-genuine and spurious-genuine connections, are updated. We further can distinguish between four types of connections: They can be either silent or functional before learning the k-th pattern and they can either originate from an active or an inactive input unit in the k-th pattern. Two types of connections are not updated: If the connection is already functional and the corresponding input unit is active (in addition to the corresponding output unit being active), the connection is protected and remains functional. If the connection is previously silent and the input unit is inactive, the connection always remains silent. The other two types can transition between the two states (functional/silent): Genuine-genuine connections (a fraction fin of all connections to one output unit) of the k-th pattern that are previously silent (a fraction
) are made functional with a transition probability
, i.e., the fraction
of all connections becomes functional in one learning step.
For each genuine output unit in the k-th pattern, the same number of connections that were made functional is also silenced such that there is a constant fraction c of functional connections per output unit after Hebbian learning and homeostatic normalization. Only spurious-genuine connections of the k-th pattern (fraction ) that are previously functional (fraction c) could be silenced due to the homeostasis mechanism. This is a total fraction
of all connections. The probability that such a connection is silenced depends on the number of additional connections that became functional due to the Hebbian mechanism in the same learning step. As discussed above, a fraction
becomes functional in each step. The probability for a previously functional connection from an inactive input unit to be silenced due to homeostasis is
Normalization is possible in this way if this probability is less than or equal to one, which is always fulfilled if we assume that (regardless of the values of
and
).
In summary, the numerator in Eq 39 is the fraction of connections that are made functional in this step and the denominator is the fraction of connections available to be silenced; together, this is the probability to be newly silenced. Since the fraction of connections made functional, , equals the fraction of connections newly silenced,
, the overall fraction c of functional connections is maintained. Since patterns are uncorrelated, these probabilities remain the same for every pattern that is learned, and they will be used several times in the derivations in the following subsections.
Probabilities of functional connections
As derived in detail in S1 Appendix, the probability for a connection to a spurious unit to be functional is
It does not change with the number of times u the output unit was active in other patterns. The probability that a connection to a genuine unit is functional, however, does strongly depend on u. It is given by
Thus, we can fully characterize the distributions of dendritic sums for spurious and genuine output units. We insert the probability of a functional connection to a spurious unit into Eq (36), define
, and obtain the probability mass function (PMF) of the dendritic sum of a spurious output unit:
Since is constant as a function of the output unit usage u, the distribution of dendritic sums for spurious output units
simplifies to a single binomial distribution
with parameters n = Min and p = c, and
does not depend on the number of subsequently learned patterns P.
Analogously, we insert into Eq (36) and obtain the PMF of the dendritic sum of a genuine output unit
Thus, depends on the number of subsequent patterns P (in contrast to
). It is not a single binomial but a linear combination of binomial PMFs
, for
, see Fig 7. This multimodality is analyzed in more detail in S2 Appendix (also see [61] for a comparison to a binomial distribution). The relation between
and
and their dependence on the activation ratios fin and fout is discussed in the Results, Section ‘Activation ratios in the distributions of dendritic sums’. S5 Fig shows a comparison of Eqs (44) and (46) to distributions of dendritic sums obtained from numerical simulations.
Let us finally discuss some limiting cases. We have
because ,
, 0 < fin, and
. Note that the constraint
stems from the normalization condition as discussed previously in Section ‘Hebbian and homeostatic update rules from a probabilistic perspective’. For the term
in Eq (41), it thus follows that we either have
which implies
or, for ,
, and fin = c,
which implies
In the second case, the part of the memory stored in the connections targeting one output unit is completely lost as soon as this output unit is active one additional time for another pattern.
Noisy input patterns during retrieval
So far we always assumed that during recall the original input pattern is shown to the network. Due to the inherent presence of noise in biological systems, it makes sense to assume that the input pattern presented to the network during retrieval is not exactly the same as the input pattern used for training. In the following, we discuss the consequences on the previous derivations when a noisy cue is presented to the network by putting noise onto the input pattern (cf. [46,47]). To be able to compare the results in a fair way, the input activation ratio fin should not be changed, hence a fraction of the input units that are active in the original pattern (genuine input units) is deactivated while the same absolute number of input units that are inactive in the original pattern (spurious input units) is activated. Thus there is a number
of original input units (genuine input units) and a number
of wrong input units (spurious input units) active, in total we have
active units (see [45,46]). The parameter
is restricted to values that yield
. Note that, in the numerical simulations, we set each of the genuine input units to zero with probability
, count how many changed and flip the same amount of spurious input units to one. This means
and
are not fixed exact numbers but follow distributions. Only on average,
genuine units are deactivated. The additional variability coming from deactivating each genuine input unit with probability
would make the analytical description more involved while hardly affecting the expected result for large numbers. It is therefore neglected in the theory derived in this section. Instead, we assume that, for generating a noisy cue, exactly
of the genuine input units are deactivated and
of the spurious input units are activated. Note that, nevertheless, in both numerical simulations and theory, it is always ensured that the absolute number of active units Min in the noisy input pattern presented to the network does not change.
Noisy cues do not alter the distribution of dendritic sums of spurious output units, but they do alter the distribution of dendritic sums of genuine output units. Regarding the latter, the probability of a functional genuine-genuine connection is the same as before, that is, . But we now need to consider, in addition, the probability of a functional spurious-genuine connection, which is derived in S1 Appendix as
Similarly to , also
depends on the number of times u an output unit has been active across the pattern set. The probability of a functional spurious-genuine connection
is lower than the probability of a functional genuine-genuine connection
(and even lower than the functional connectivity c, see Figures in S1 Appendix).
For a particular output unit usage u, the dendritic sums are distributed following
where . In total, the probability of the dendritic sum
of a genuine output unit to have a particular value x can be described by
as derived in [45] but, as an extension, with the probabilities of functional connections and
derived in S1 Appendix that include the transition probability
and the homeostatic constraint of a fixed in-degree. Compared to the distribution of the dendritic sums for the noise-less input pattern, this distribution is shifted to the left. Thus, it is closer to the distribution of the dendritic sums of the spurious units, the Hamming distance between the target output and the calculated output pattern is larger, and thus the capacity decreases (compare Fig 8 and S6 Fig to Fig 7). The distribution of dendritic sums in Eq (56) will be used in Section ‘Extension to noisy input patterns during retrieval’ to derive the capacity for retrieval with noisy cues.
Analytical calculation of the capacity of the network
In what follows, our aim is to analytically quantify the capacity of the network. The capacity is defined as the number of subsequent patterns P for which the signal quality has declined to the retrieval threshold. Therefore, we first discuss the signal quality as a function of P. Before we enter the details, we briefly recap basic quantities: The difference between a calculated output pattern given a particular input pattern
after learning P subsequent pattern pairs and the corresponding target output pattern
is measured in terms of the Hamming distance between the two, denoted by
. This Hamming distance is always averaged across a large number of patterns, and it lies between 0 and the average Hamming distance between two random patterns of length Nout and activation ratio fout, which is
We define the memory signal quality at P patterns as the difference between
and the Hamming distance between the target output and the calculated output
:
see Fig 9, green curve. The signal quality can be expressed as a fraction of Havg
We call the normalized signal quality. With
, the Hamming distance reads as
(see Fig 9, salmon line), where we introduce the additional symbol
out of convenience for the derivations in this section.
Analytical Hamming distance
In this section, we derive the expected Hamming distance between the target output
and the output
calculated after learning P additional patterns. We follow a similar approach as several earlier works (e.g., [45–47,51,52,61]): The distributions of dendritic sums allow us to describe the error in retrieval (expressed by the Hamming distance) via the probabilities of wrongly active and wrongly inactive units. However, the constraint of a fixed output sparseness adds a layer of complexity to our derivations (see the following Subsection ‘The activation threshold and balancing tails of the distributions’).
The activation threshold and balancing tails of the distributions.
Since the Hamming distance depends on the activation threshold , we first discuss the choice of
, which is self-consistently defined such that the correct number of output units, Mout, is activated:
The activation of output unit j is calculated as
where is the Heaviside step function. The number of active output units is hence
Since the weight matrix J[k+P] is updated in every learning step and hence depends on the number of subsequently learned patterns P, the activation threshold also depends on P. It thus has to be newly determined in every update step in order to obtain the given number of active output units Mout.
The active output units can either be genuine, hence active in the target output pattern, or spurious, hence inactive in the target output pattern. The dendritic sum
of a genuine output unit j follows the genuine distribution (Eq (46)). A genuine output unit is activated if its dendritic sum is at least as large as the activation threshold
, hence if
(blue area in Fig 10A). There is a total amount of Mout genuine output units. Thus, if we assume , the number of genuine output units that are activated for a given threshold
can be approximated by using the law of large numbers as
where G is the set of indices of genuine output units. Analogously, assuming , the number of spurious units that are activated can be approximated as
where denotes the dendritic sum of the j-th output unit, which is spurious, and S is the set of indices of spurious output units (cf. red area in Fig 10A). In order to activate the right amount of output units, the activation threshold
thus has to be chosen such that
see Fig 10B. By basic computations, we have that
where and
are the cumulative distribution functions (CDF) of
and
, respectively (Fig 10C). We call the last equation the Balance Equation because it balances the false positive and the false negative errors.
With an increasing number of patterns P, the center of mass of the genuine distribution moves to the left, while the spurious distribution stays constant. For a fixed Tin, the left-hand side of Eq (73) would hence grow while the right-hand side would not, which would lead to an output activation ratio that is smaller than fout. In order to keep the Balance Equation fulfilled, the activation threshold
has to move to the left for increasing P; see Fig 10C for P = 68 and Fig 10D for P = 114.
Deriving the Hamming distance from dendritic sums.
The Hamming distance
is the sum of the number of genuine units that are wrongly set to 0 and the number of spurious units that are wrongly set to 1 in the calculated output :
In terms of the distributions and
, the expected Hamming distance reads as
see Fig 11A. The Hamming distance is hence the sum of the part of the genuine distribution that lies below the activation threshold and the part of the spurious distribution that lies above
— weighted by the corresponding number of units. Using the Balance Equation (73), we can express
in terms of
, and the expected Hamming distance simplifies to
The dependence on the number of patterns P is now solely contained in the activation threshold because
is constant in P. The Hamming distance increases with decreasing
and, as discussed in the previous Section ‘The activation threshold and balancing tails of the distributions’,
decreases with increasing P. Thus, the larger the number of subsequently learned patterns P, the larger the Hamming distance between target output and calculated output and, according to Eq (58), the smaller the signal quality
.
Note that the dependence of the Hamming distance on the output activation ratio fout is less straightforward. On the one hand, if fout is increased, the factor in Eq (78) yields a decrease in the Hamming distance. On the other hand, an increase of fout also decreases the activation threshold
and thus increases the factor
in Eq (78), which yields an increase in the Hamming distance (see Fig 11B). It is not easy to determine analytically which of these opposing effects is stronger. As mentioned in the Results in Section ‘Activation ratios in the distributions of dendritic sums’, we speculate that the combined effect on the Hamming distance is small in the parameter range that we investigated numerically.
Signal quality after P subsequent patterns
In order to derive the signal quality (see Eqs (58) and (59)) after P additional learning steps, we combine Eqs (60) and (78) and obtain
Inserting yields
Using Eq (80), we find that the Balance Equation (73) is fulfilled if and only if
Fig 12 illustrates the two equations. We can equate the right-hand sides of Eqs (81) and (83) to get rid of the explicit value of and obtain a single equation
which we call the Signal Quality Equation. If this equation is solved for , inserting its solution into Eq (59) with
determines the signal quality
. There is an explicit solution if
and
are easy to calculate.
Notably, since the CDF of a discrete probability distribution is a piecewise constant function, the CDFs in Eqs (81) and (83) are not generally invertible. A strict inverse such that
does not always exist because the same CDF value F(x) can correspond to multiple arguments x. Being aware of this fact, we use the notation
and
here anyway. Later in this section, the binomial distributions (see Eqs (44) and (46)) are approximated by normal distributions (also see S4 Appendix), and their approximated CDFs become strictly increasing and continuous, and thus invertible.
Details regarding an approximate analytical solution and a numerical solution of the Signal Quality Equation (84) are provided in S3 Appendix.
Memory capacity of the network
Instead of calculating the signal quality at any P subsequent patterns (see S3 Appendix), which can then be used for finding the P for which the signal quality reaches the retrieval threshold, the network capacity can be determined by directly equating the signal quality to the retrieval threshold (expressed in terms of ) and solving the resulting equation for P.
We are searching for the number of patterns P for which the signal quality as defined in Eq (58) equals the retrieval threshold , which can be expressed as a fraction
of Havg:
with . In analogy to
, we define
for convenience. Instead of calculating
for a given P, we now use the Signal Quality Equation (84) to find the number of patterns P for which
(which is equivalent to
) and
is given. We thus want to solve the Capacity Equation
for P, which is the only unknown in this equation for a fixed set of network parameters. Notably, the Signal Quality Equation (84) and the Capacity Equation (86) are of the same form but, in the first, the number of patterns P is given and the fraction is unknown, which determines the signal quality
while, in the second, the retrieval ratio
is given and the number of patterns P is unknown, which corresponds to the capacity.
In order to solve the Capacity Equation (86), we first approximate the linear combination of binomial PMFs in by a single binomial PMF and we then approximate this binomial distribution as well as
by normal distributions (see S4 Appendix for details). Regarding the first approximation step, [61] provides conditions for when this type of distribution converges to a binomial distribution and finds that a binomial distribution is a good approximation for a wide range of parameters, even though it can slightly overestimate storage capacity due to an underestimation of retrieval errors. In S4 Appendix, we present an empirical analysis of the quality of this approximation in dependence of the parameters of the model used here. For the second approximation step, the two assumptions
need to be respected (more details in S4 Appendix). We define the function
and introduce the abbreviations
and
Then the mentioned approximation steps allow us to express Eq (86) as
Solving Eq (91) for P (for details see S4 Appendix) yields the capacity
where
If and
are known, this expression allows us to directly calculate the capacity of the network. The approximation of the error function used for calculating
and
can be found in S4 Appendix.
Optimal transition probability and maximal capacity
From Eq (92), we can derive the optimal transition probability and therewith the maximal capacity
for a fixed set of network parameters.
We assume and use the Taylor series of
at x = 0 to approximate
The capacity as a function of then reads as
with A and B as defined in Eqs (93) and (94) and
In the following, we will ignore the rounding of to an integer value in (96) and allow the capacity to take any (non-negative) real value. We then have
as also stated in the Results in Eq (21). Next, we calculate the optimal transition probability by differentiating
with respect to
and solving
This is a global maximum of because
The optimal transition probability must be bounded to (0,1]. We can assume that (otherwise there is no real solution for (92)). If
, we have
. If
, the capacity as a function of the transition probability
is monotonically increasing in the range
that we are interested in because we have shown that
has a global maximum at
. We thus have
as also displayed in Eq (22) in the Results. Fig 13 shows as a function of the input and output activation ratios fin and fout.
The maximal capacity that can be obtained for a given set of network parameters by optimizing the transition probability is then defined as
Comparisons of the analytical approximation of the optimal transition probability (Eq (103)) and the maximal capacity
(Eq (104)) with results obtained from numerical network simulations (cf. Section ‘Network simulations’) are presented in Figs 3B, 3C, 5.
Dependence on input parameters.
Since in Eq (104) only depends on Nin while A and B do not (see also Eqs (93)–(97)), the capacity is proportional to the input layer size Nin (Figs 5B, 14 bottom row). Further, we note that the optimal transition probability
in Eq (103) does not depend on the input layer size Nin, but it does depend on the number of active input units
(Figs 5A, 14 top row).
Optimal transition probability (Eq (103)), color coded, as a function of fin and fout. The probability
decreases both as a function of fin and as a function of fout but the slope is larger for fin. For comparison, in Fig 3E in the Results, the corresponding optimal transition probability
obtained from numerical simulations is shown. (Other parameters:
.).
Dependence of optimal transition probability (top) and maximal capacity (bottom) on number of active input units () for various input layer sizes (
). Dots: numerical simulations; solid lines: optimal
obtained from Eq (103) and maximal capacity calculated with Eq (98); dashed lines: maximal capacity calculated with Eq (92), i.e., without the Taylor approximation (95). In (A), fout = 0.1, in (B), fout = 0.025 and in (C), fout = 0.006. Other parameters:
.
We further observe that the maximal capacity as a function of the number of active input units Min has a maximum that is independent of Nin. In the range where , the maximal capacity as a function of Min
is strictly monotonically decreasing: For , we have
where we used that because A is monotonically increasing as a function of Min (due to
for fout<0.5) and that A has to be positive in order to yield a real valued number for the capacity in Eq (92). Thus, if there is a maximum of
, it must occur within the range of Min values that have an optimal transition probability of 1 (see Fig 14A,14B,14C). In order to find this maximum, we set
in Eq (98), and then we set the derivative (with respect to Min) of the maximal capacity
to zero:
This equation can be solved numerically for fixed values of , and
. For example, for
and
, we obtain an optimal number of active input units Min = 13, which yields a maximal capacity
(see Fig 14C).
The fit between the theoretical approximation and the actual capacity obtained in numerical simulations improves for increasing input layer size Nin, increasing input activation ratio fin, and increasing output activation ratio fout (see comparison in Table 2). As discussed before, we need and
in order to approximate the distributions of the dendritic sums by Gaussian distributions. A large fout reduces the multimodality of the genuine distribution and hence also allows for a better approximation (see Discussion in S4 Appendix).
Extension to noisy input patterns during retrieval
An extension of the derivation of the memory capacity to the case of noisy input patterns during retrieval with noise level (see the earlier section ‘Noisy input patterns during retrieval’ for details on the distributions of dendritic sums with noisy cues) yields the following capacity (see S4 Appendix for details on the derivation):
with
and
The optimal transition probability and hence the maximal capacity
of the network can be calculated in the same way as without noise (compare to Section ‘Optimal transition probability and maximal capacity’). The only difference lies in the expressions
and
that were previously called A and B. Expression
remains the same as in Eq (97). We have
and
as also stated in Eqs (24) and (27) in the Results (Section ‘Noisy input patterns during retrieval’). In the range where , we thus can express the maximal capacity as
We can assume that , where
is the maximal capacity for
defined in Eq (98), because the additional noise on the input patterns during retrieval naturally has a detrimental effect on the capacity. In the range of parameters where
(see Eq (105)) and
, we thus have
since C > 0 and we can assume A/B > 0 and in order to obtain a real-valued capacity.
The optimal transition probability with noise during retrieval can be further approximated (details in S4 Appendix) as a multiple of the optimal transition probability without noise
by
and the maximal capacity by
For and
, we thus obtain the approximation
A comparison of and
and its approximation given in Eq (118) as well as of
and
and its approximation given in Eq (120) is shown in Fig 6D,6E (also see S4 Fig).
Network simulations
In this section, we describe the network simulations performed to obtain the numerical results presented in this paper. First, we report how the main parameters were sampled. Then, we explain the simulation paradigm in detail. Last, we clarify how we average across results for different patterns before briefly broaching the issue of enforcing the output activation ratio.
All simulations were performed in python 3.9. All code written in support of this publication will be made publicly available at https://itbgit.biologie.hu-berlin.de/auer/sparseness_plasticity_lifetime before publication.
Parameter sampling
Unless stated otherwise, we perform all simulations for transition probabilities
and define the value for which the capacity is the largest as the optimal transition probability. For the reference network size of , the activation ratios are typically sampled as
For larger network sizes, smaller values fin and fout are added to achieve minimal Min and Mout values comparable to those of the small reference network.
The simulation paradigm
We now describe how patterns are sampled and how the weight matrix is initialized as well as how a simulation step is executed and how many steps are carried out in total. As also explained in the Results, Section ‘Network model, learning paradigm, and quantification of capacity’, we aim at quantifying the memory capacity of the network by tracking the signal quality, which depends on the Hamming distance between a calculated output vector and the corresponding target output vector. The capacity is defined as the number of subsequently learned patterns for which the signal quality reaches a specific value. In each simulation step the association between one pattern pair is learned, and in order to calculate the capacity we need a number of simulation steps that is larger than the capacity itself.
Input and output patterns.
Input patterns are generated as vectors x of length Nin by randomly choosing Min entries to be one while the others are zero. Analogously, output patterns are random vectors y of length Nout with Mout entries equal to one. One random input pattern x together with one random output pattern y constitute a pattern pair . Note that we do not explicitly exclude the possibility of generating the same vector twice as an input or as an output pattern, but for
and
,
, this is very unlikely.
If noisy input patterns are used as retrieval cues, they are generated based on the noise-less input patterns in the following way: Each originally active input unit is deactivated with probability . We count the number of deactivated units and randomly choose the same number of originally inactive input units to be activated. The number of active input units Min is thus maintained.
Initialization of the weight matrix.
First, we generate a matrix that represents the morphological connections with connectivity
. In every row of
, we set
randomly chosen entries to one, and the other entries are zero. The binary matrix
acts as a mask on the actual weight matrix J in every update step such that only the entries in J that correspond to a one in
can be altered. The weight matrix J of size
is initialized such that per row cNin entries of those that are morphologically available (i.e., have a value of one in
) are set to one, the rest is set to zero.
One simulation step.
Each simulation step k corresponds to one pattern pair being learned. In one simulation step k, the weights of the matrix in the previous step,
, are first updated according to Hebbian learning and then updated according to the homeostatic mechanism (described in the Results, Section ‘Network model, learning paradigm, and quantification of capacity’). This corresponds to transforming
into J[k].
Then, for a fixed J[k], we evaluate the output of the network for all input patterns of pairs that have been learned up to this point; the input patterns are presented to the network again one after the other with plasticity off, and the corresponding output patterns are calculated. By
we denote the output of the i-th input pattern calculated after learning j subsequent pattern pairs. To summarize, the outputs
for each of the input patterns
are calculated and compared to the original target outputs
respectively. The k + 1 Hamming distances
between target and calculated output are stored. Note that these Hamming distances that are stored after one particular simulation step belong to different numbers of additional pattern pairs that are stored after the pattern that is tested. With respect to pattern 0, the maximum number k of additional pattern pairs have been stored, while with respect to pattern k, no additional pattern pair has been stored.
Number of simulation steps.
The average Hamming distance between two random fout-sparse vectors of length Nout is
To define a threshold for the successful retrieval of an output pattern, we use a certain fraction of
,
where . If not stated otherwise, the retrieval threshold is chosen as
and hence, .
The degradation of the calculated output vector is quantified by means of the signal quality S, which is defined as the difference between the average Hamming distance of two random vectors, , and
:
For a successful retrieval of the calculated output, we then require . This translates to the assumption that an output pattern can be recovered if the Hamming distance
between the target output y and the calculated output
is smaller than the threshold
. In this case, the output, which is typically degraded by subsequent storage of other input-output pairs, is still close enough to the original output pattern. To be more specific, let us consider the example of input-pattern pair 0 and k subsequent learning steps. The signal quality is then
which is based on the Hamming distance of the target output
of the very first pattern pair and its output
calculated with weight matrix J[k].
The maximum number of simulation steps for a particular parameter combination was determined by the observed degradation of calculated output patterns. Once the signal quality for the first time is less than (or equivalently, when the Hamming distance is above
), 200 additional patterns are learned before the simulation is stopped.
We denote the total number of patterns that have been learned by the network at the end of a simulation by K.
Averaging
The signal quality that is shown in various figures in this manuscript is always averaged across many patterns. Recall that the number of subsequently learned patterns P is understood as relative to the pattern number . For each pattern
that the network learns, we compute the Hamming distance of the target output and the calculated output after
patterns additionally learned after the k-th pattern, hence with weight matrix J[k+P]. For a fixed P (always relative to a particular pattern), we average across all patterns for which we have learned at least P subsequent patterns:
All simulation data shown in this manuscript are obtained by averaging across at least Navg = 200 patterns. This means, if the largest P shown in a figure is , simulations ran for at least
steps.
Whenever we investigate the distributions of dendritic sums for a particular number of subsequent patterns P, two kinds of averaging are done: First, we pool the dendritic sums of all genuine output units and of all spurious output units of one pattern after learning P subsequent patterns, respectively. In addition, we pool a certain number of patterns. A comparison of distributions of dendritic sums obtained from numerical simulations and from theory (Eqs (44) and (46)) is shown in S5 Fig.
A note on the output sparseness
During retrieval, the activation of the output units is calculated as
where is the Heaviside step function. Note that, due to the discrete nature of the dendritic sums of the output units, it is unlikely that an activation threshold
exists that allows to activate exactly Mout output units. Most of the times, there is a group of units with identical dendritic sums that are exactly at the critical value. If the threshold is chosen larger than these dendritic sums, too few units are activated, if it is chosen smaller, too many units are activated. Since we want to keep Mout fixed, we have to find a way to enforce the exact output sparseness. Hence, we typically randomly choose the right number of these units to be activated and the rest to be inactive. On average, this has a slightly deteriorative effect on the capacity of the network because spurious units might be chosen to be activated even though some genuine units have the same dendritic sum. In S7 Appendix, we discuss in more detail for which parameters this might have significant effects on the capacity of the network and how the enforcement of the output sparseness level could be handled differently in order to avoid this problem.
Supporting information
S1 Fig. Comparison of optimal transition probability
and maximal capacity
for different retrieval thresholds
.
https://doi.org/10.1371/journal.pcbi.1013235.s001
(PDF)
S2 Fig. Comparison of optimal transition probability
and maximal capacity
for different morphological connectivity levels
.
https://doi.org/10.1371/journal.pcbi.1013235.s002
(PDF)
S3 Fig. Comparison of optimal transition probability
and maximal capacity
for different functional connectivity levels c.
https://doi.org/10.1371/journal.pcbi.1013235.s003
(PDF)
S4 Fig. Comparison of optimal transition probability
and maximal capacity
for different input noise levels
during retrieval.
https://doi.org/10.1371/journal.pcbi.1013235.s004
(PDF)
S5 Fig. Comparison of distributions of dendritic sums obtained from network simulations and from theory.
https://doi.org/10.1371/journal.pcbi.1013235.s005
(PDF)
S6 Fig. Distributions of dendritic sums with noise (
).
https://doi.org/10.1371/journal.pcbi.1013235.s006
(PDF)
S1 Appendix. Probabilities of functional connections.
Derivation of probabilities of functional connections used in the distributions of dendritic sums.
https://doi.org/10.1371/journal.pcbi.1013235.s007
(PDF)
S2 Appendix. Analysis of shape of distributions.
Discussion of the multimodality of the distributions of dendritic sums.
https://doi.org/10.1371/journal.pcbi.1013235.s008
(PDF)
S3 Appendix. Solution of the Signal Quality Equation.
Numerical and analytical calculation of the signal quality as a function of P, including an analytical approximation of the signal quality with noisy input patterns.
https://doi.org/10.1371/journal.pcbi.1013235.s009
(PDF)
S4 Appendix. Solution of the Capacity Equation.
Details regarding the derivation of the memory capacity for noise-less and noisy input patterns.
https://doi.org/10.1371/journal.pcbi.1013235.s010
(PDF)
S5 Appendix. Monotonicity of capacity for small fin. Showing monotonic increase of capacity for input activation ratios close to zero.
https://doi.org/10.1371/journal.pcbi.1013235.s011
(PDF)
S6 Appendix. Comparison to other versions of homeostasis.
Optimal transition probability and maximal capacity for fixed number of functional connections per input neuron and fixed number of functional connections averaged across the whole network.
https://doi.org/10.1371/journal.pcbi.1013235.s012
(PDF)
S7 Appendix. Can the output activation ratio be enforced?
Derivation of an upper bound for the error in activating the right number of output units and discussion of practical solutions for when the exact output activation ratio cannot be achieved.
https://doi.org/10.1371/journal.pcbi.1013235.s013
(PDF)
S8 Appendix. Information-theoretic synaptic capacity.
Translation of main results from pattern capacity to an information-theoretic measure of synaptic capacity.
https://doi.org/10.1371/journal.pcbi.1013235.s014
(PDF)
Acknowledgments
We thank Natalie Schieferstein and Andreas Kofler for helpful discussions and valuable comments on the manuscript.
References
- 1. Chawla MK, Guzowski JF, Ramirez-Amaya V, Lipa P, Hoffman KL, Marriott LK, et al. Sparse, environmentally selective expression of Arc RNA in the upper blade of the rodent fascia dentata by brief spatial experience. Hippocampus. 2005;15(5):579–86. pmid:15920719
- 2. GoodSmith D, Chen X, Wang C, Kim SH, Song H, Burgalossi A, et al. Spatial Representations of Granule Cells and Mossy Cells of the Dentate Gyrus. Neuron. 2017;93(3):677-690.e5. pmid:28132828
- 3. Liu X, Ramirez S, Pang PT, Puryear CB, Govindarajan A, Deisseroth K, et al. Optogenetic stimulation of a hippocampal engram activates fear memory recall. Nature. 2012;484(7394):381–5. pmid:22441246
- 4. Rao-Ruiz P, Yu J, Kushner SA, Josselyn SA. Neuronal competition: microcircuit mechanisms define the sparsity of the engram. Curr Opin Neurobiol. 2019;54:163–70. pmid:30423499
- 5. Tayler KK, Tanaka KZ, Reijmers LG, Wiltgen BJ. Reactivation of neural ensembles during the retrieval of recent and remote memory. Curr Biol. 2013;23(2):99–106. pmid:23246402
- 6. Ramsaran AI, Wang Y, Golbabaei A, Aleshin S, de Snoo ML, Yeung B-RA, et al. A shift in the mechanisms controlling hippocampal engram formation during brain maturation. Science. 2023;380(6644):543–51. pmid:37141366
- 7. Beyeler M, Dutt N, Krichmar JL. 3D Visual Response Properties of MSTd Emerge from an Efficient, Sparse Population Code. J Neurosci. 2016;36(32):8399–415. pmid:27511012
- 8. Olshausen BA, Field DJ. Sparse coding of sensory inputs. Curr Opin Neurobiol. 2004;14(4):481–7. pmid:15321069
- 9. Froudarakis E, Berens P, Ecker AS, Cotton RJ, Sinz FH, Yatsenko D, et al. Population code in mouse V1 facilitates readout of natural scenes through increased sparseness. Nat Neurosci. 2014;17(6):851–7. pmid:24747577
- 10. Tang S, Zhang Y, Li Z, Li M, Liu F, Jiang H, et al. Large-scale two-photon imaging revealed super-sparse population codes in the V1 superficial layer of awake monkeys. Elife. 2018;7:e33370. pmid:29697371
- 11. Yoshida T, Ohki K. Natural images are reliably represented by sparse and variable populations of neurons in visual cortex. Nat Commun. 2020;11(1):872. pmid:32054847
- 12. Chen X, Zhu S, Bai K, Xia R, Kong NC, Norcia AM. Rapid selectivity to natural images across layers of primate V1. bioRxiv. 2022;:2022–01.
- 13. Weliky M, Fiser J, Hunt RH, Wagner DN. Coding of natural scenes in primary visual cortex. Neuron. 2003;37(4):703–18. pmid:12597866
- 14. Yen S-C, Baker J, Gray CM. Heterogeneity in the responses of adjacent neurons to natural stimuli in cat striate cortex. J Neurophysiol. 2007;97(2):1326–41. pmid:17079343
- 15. Hromádka T, Deweese MR, Zador AM. Sparse representation of sounds in the unanesthetized auditory cortex. PLoS Biol. 2008;6(1):e16. pmid:18232737
- 16. Feigin L, Tasaka G, Maor I, Mizrahi A. Sparse Coding in Temporal Association Cortex Improves Complex Sound Discriminability. J Neurosci. 2021;41(33):7048–64. pmid:34244361
- 17. Clemens J, Wohlgemuth S, Ronacher B. Nonlinear computations underlying temporal and population sparseness in the auditory system of the grasshopper. J Neurosci. 2012;32(29):10053–62. pmid:22815519
- 18. Perez-Orive J, Mazor O, Turner GC, Cassenaer S, Wilson RI, Laurent G. Oscillations and sparsening of odor representations in the mushroom body. Science. 2002;297(5580):359–65. pmid:12130775
- 19. Turner GC, Bazhenov M, Laurent G. Olfactory representations by Drosophila mushroom body neurons. J Neurophysiol. 2008;99(2):734–46. pmid:18094099
- 20. Ito I, Ong RC-Y, Raman B, Stopfer M. Sparse odor representation and olfactory learning. Nat Neurosci. 2008;11(10):1177–84. pmid:18794840
- 21. Miura K, Mainen ZF, Uchida N. Odor representations in olfactory cortex: distributed rate coding and decorrelated population activity. Neuron. 2012;74(6):1087–98. pmid:22726838
- 22. Ranjbar-Slamloo Y, Arabzadeh E. Diverse tuning underlies sparse activity in layer 2/3 vibrissal cortex of awake mice. J Physiol. 2019;597(10):2803–17. pmid:30932197
- 23. Gouty-Colomer LA, Hosseini B, Marcelo IM, Schreiber J, Slump DE, Yamaguchi S, et al. Arc expression identifies the lateral amygdala fear memory trace. Mol Psychiatry. 2016;21(3):364–75. pmid:25802982
- 24. Waydo S, Kraskov A, Quian Quiroga R, Fried I, Koch C. Sparse representation in the human medial temporal lobe. J Neurosci. 2006;26(40):10232–4. pmid:17021178
- 25. Lehky SR, Kiani R, Esteky H, Tanaka K. Statistics of visual responses in primate inferotemporal cortex to object stimuli. J Neurophysiol. 2011;106(3):1097–117. pmid:21562200
- 26. Rust NC, Dicarlo JJ. Selectivity and tolerance (“invariance”) both increase as visual information propagates from cortical area V4 to IT. J Neurosci. 2010;30(39):12978–95. pmid:20881116
- 27. Poo C, Isaacson JS. Odor representations in olfactory cortex: “sparse” coding, global inhibition, and oscillations. Neuron. 2009;62(6):850–61. pmid:19555653
- 28. Markind C, Kundu P, Barak M, Haddad R. Increased pattern similarity in two major olfactory cortices despite higher sparseness levels. bioRxiv. 2021;:2021–04.
- 29. Willshaw DJ, Buneman OP, Longuet-Higgins HC. Non-holographic associative memory. Nature. 1969;222(5197):960–2. pmid:5789326
- 30. Amit D, Gutfreund H, Sompolinsky H. Information storage in neural networks with low levels of activity. Phys Rev A Gen Phys. 1987;35(5):2293–303. pmid:9898407
- 31. Hopfield JJ. Neural networks and physical systems with emergent collective computational abilities. Proc Natl Acad Sci U S A. 1982;79(8):2554–8. pmid:6953413
- 32. Amari S-I. Learning Patterns and Pattern Sequences by Self-Organizing Nets of Threshold Elements. IEEE Trans Comput. 1972;C–21(11):1197–206.
- 33. Gardner E. Maximum Storage Capacity in Neural Networks. Europhys Lett. 1987;4(4):481–5.
- 34. Tsodyks MV, Feigel’man MV. The Enhanced Storage Capacity in Neural Networks with Low Activity Level. Europhys Lett. 1988;6(2):101–5.
- 35. Treves A, Rolls ET. What determines the capacity of autoassociative memories in the brain?. Network: Computation in Neural Systems. 1991;2(4):371.
- 36. Amit DJ, Fusi S. Learning in Neural Networks with Material Synapses. Neural Computation. 1994;6(5):957–82.
- 37. Ben Dayan Rubin DD, Fusi S. Long memory lifetimes require complex synapses and limited sparseness. Front Comput Neurosci. 2007;1:7. pmid:18946529
- 38. Leibold C, Kempter R. Sparseness constrains the prolongation of memory lifetime via synaptic metaplasticity. Cereb Cortex. 2008;18(1):67–77. pmid:17490993
- 39. Dubreuil AM, Amit Y, Brunel N. Memory capacity of networks with stochastic binary synapses. PLoS Comput Biol. 2014;10(8):e1003727. pmid:25101662
- 40. Benna MK, Fusi S. Computational principles of synaptic memory consolidation. Nat Neurosci. 2016;19(12):1697–706. pmid:27694992
- 41. Schönsberg F, Roudi Y, Treves A. Efficiency of Local Learning Rules in Threshold-Linear Associative Networks. Phys Rev Lett. 2021;126(1):018301. pmid:33480759
- 42. Feng Y, Brunel N. Storage capacity of networks with discrete synapses and sparsely encoded memories. Phys Rev E. 2022;105(5–1):054408. pmid:35706193
- 43. Palm G. On associative memory. Biol Cybern. 1980;36(1):19–31. pmid:7353062
- 44. Nadal J-P. Associative memory: on the (puzzling) sparse coding limit. J Phys A: Math Gen. 1991;24(5):1093–101.
- 45.
Buckingham JT. Delicate Nets, Faint Recollections: A Study of Partially Connected Associative Network Memories [PhD thesis]. University of Edinburgh; 1991.
- 46. Buckingham J, Willshaw D. Performance characteristics of the associative net. Network: Computation in Neural Systems. 1992;3(4):407–14.
- 47.
Palm G, Sommer FT. Associative Data Storage and Retrieval in Neural Networks. Physics of Neural Networks. Springer New York. 1996. p. 79–118. https://doi.org/10.1007/978-1-4612-0723-8_3
- 48. Bosch H, Kurfess FJ. Information storage capacity of incompletely connected associative memories. Neural Netw. 1998;11(5):869–76. pmid:12662789
- 49. Sommer FT, Palm G. Improved bidirectional retrieval of sparse patterns stored by Hebbian learning. Neural Netw. 1999;12(2):281–97. pmid:12662704
- 50. Knoblauch A. Statistical implications of clipped Hebbian learning of cell assemblies. Neurocomputing. 2005;65–66:647–52.
- 51. Knoblauch A. Closed-form Expressions for the Moments of the Binomial Probability Distribution. SIAM J Appl Math. 2008;69(1):197–204.
- 52. Knoblauch A, Palm G, Sommer FT. Memory capacities for synaptic and structural plasticity. Neural Comput. 2010;22(2):289–341. pmid:19925281
- 53. Davis GW, Bezprozvanny I. Maintaining the stability of neural function: a homeostatic hypothesis. Annu Rev Physiol. 2001;63:847–69. pmid:11181978
- 54. Bourne JN, Harris KM. Coordination of size and number of excitatory and inhibitory synapses results in a balanced structural plasticity along mature hippocampal CA1 dendrites during LTP. Hippocampus. 2011;21(4):354–73. pmid:20101601
- 55. Nadal JP, Toulouse G, Changeux JP, Dehaene S. Networks of Formal Neurons and Memory Palimpsests. Europhys Lett. 1986;2(4):343–343.
- 56. McCulloch WS, Pitts W. A logical calculus of the ideas immanent in nervous activity. 1943. Bull Math Biol. 1990;52(1–2):99–115; discussion 73-97. pmid:2185863
- 57. Palm G. On the Information Storage Capacity of Local Learning Rules. Neural Computation. 1992;4(5):703–11.
- 58. Willshaw D, Dayan P. Optimal Plasticity from Matrix Memories: What Goes Up Must Come Down. Neural Computation. 1990;2(1):85–93.
- 59. Dayan P, Willshaw DJ. Optimising synaptic learning rules in linear associative memories. Biol Cybern. 1991;65(4):253–65. pmid:1932282
- 60.
Palm G. Neural assemblies. Springer. 1982.
- 61. Knoblauch A. Neural Associative Memory and the Willshaw–Palm Probability Distribution. SIAM J Appl Math. 2008;69(1):169–96.
- 62. Lynch GS, Dunwiddie T, Gribkoff V. Heterosynaptic depression: a postsynaptic correlate of long-term potentiation. Nature. 1977;266(5604):737–9. pmid:195211
- 63. Abraham WC, Goddard GV. Asymmetric relationships between homosynaptic long-term potentiation and heterosynaptic long-term depression. Nature. 1983;305(5936):717–9. pmid:6633640
- 64. Jenks KR, Tsimring K, Ip JPK, Zepeda JC, Sur M. Heterosynaptic Plasticity and the Experience-Dependent Refinement of Developing Neuronal Circuits. Front Neural Circuits. 2021;15:803401. pmid:34949992
- 65. Chistiakova M, Volgushev M. Heterosynaptic plasticity in the neocortex. Exp Brain Res. 2009;199(3–4):377–90. pmid:19499213
- 66. Chen J-Y, Lonjers P, Lee C, Chistiakova M, Volgushev M, Bazhenov M. Heterosynaptic plasticity prevents runaway synaptic dynamics. J Neurosci. 2013;33(40):15915–29. pmid:24089497
- 67. Chistiakova M, Bannon NM, Chen J-Y, Bazhenov M, Volgushev M. Homeostatic role of heterosynaptic plasticity: models and experiments. Front Comput Neurosci. 2015;9:89. pmid:26217218
- 68. Keck T, Toyoizumi T, Chen L, Doiron B, Feldman DE, Fox K, et al. Integrating Hebbian and homeostatic plasticity: the current state of the field and future research directions. Philos Trans R Soc Lond B Biol Sci. 2017;372(1715):20160158. pmid:28093552
- 69. Stanton PK, Sejnowski TJ. Associative long-term depression in the hippocampus induced by hebbian covariance. Nature. 1989;339(6221):215–8. pmid:2716848
- 70.
Henson R. Short-Term Associative Memories. University of Edinburgh. 1993.
- 71. Fusi S, Drew PJ, Abbott LF. Cascade models of synaptically stored memories. Neuron. 2005;45(4):599–611. pmid:15721245
- 72. Stepanyants A, Hof PR, Chklovskii DB. Geometry and structural plasticity of synaptic connectivity. Neuron. 2002;34(2):275–88. pmid:11970869
- 73. Chklovskii DB, Mel BW, Svoboda K. Cortical rewiring and information storage. Nature. 2004;431(7010):782–8. pmid:15483599
- 74. Knoblauch A, Sommer FT. Structural Plasticity, Effectual Connectivity, and Memory in Cortex. Front Neuroanat. 2016;10:63. pmid:27378861
- 75.
Knoblauch A. Elsevier. 2017. p. 361–86.
- 76.
Braitenberg V, Schüz A. Anatomy of the cortex: statistics and geometry. Springer Science & Business Media. 2013.
- 77. Wu Y, Maass W. A simple model for Behavioral Time Scale Synaptic Plasticity (BTSP) provides content addressable memory with binary synapses and one-shot learning. Nat Commun. 2025;16(1):342. pmid:39747916
- 78. Knoblauch A. Neural associative memory with optimal Bayesian learning. Neural Comput. 2011;23(6):1393–451. pmid:21395440
- 79. Babadi B, Sompolinsky H. Sparseness and expansion in sensory representations. Neuron. 2014;83(5):1213–26. pmid:25155954
- 80. Petersen CC, Malenka RC, Nicoll RA, Hopfield JJ. All-or-none potentiation at CA3-CA1 synapses. Proc Natl Acad Sci U S A. 1998;95(8):4732–7. pmid:9539807
- 81. Bartol TM, Bromer C, Kinney J, Chirillo MA, Bourne JN, Harris KM, et al. Nanoconnectomic upper bound on the variability of synaptic plasticity. Elife. 2015;4:e10778. pmid:26618907
- 82. Schweighofer N, Doya K, Lay F. Unsupervised learning of granule cell sparse codes enhances cerebellar adaptive control. Neuroscience. 2001;103(1):35–50. pmid:11311786
- 83. Attardo A, Fitzgerald JE, Schnitzer MJ. Impermanence of dendritic spines in live adult CA1 hippocampus. Nature. 2015;523(7562):592–6. pmid:26098371
- 84. Piette C, Touboul J, Venance L. Engrams of Fast Learning. Front Cell Neurosci. 2020;14:575915. pmid:33250712
- 85. Liao Z, Losonczy A. Learning, Fast and Slow: Single- and Many-Shot Learning in the Hippocampus. Annu Rev Neurosci. 2024;47(1):187–209. pmid:38663090
- 86. Lee D, Lin B-J, Lee AK. Hippocampal place fields emerge upon single-cell manipulation of excitability during behavior. Science. 2012;337(6096):849–53. pmid:22904011
- 87. Bittner KC, Milstein AD, Grienberger C, Romani S, Magee JC. Behavioral time scale synaptic plasticity underlies CA1 place fields. Science. 2017;357(6355):1033–6. pmid:28883072
- 88. Milstein AD, Li Y, Bittner KC, Grienberger C, Soltesz I, Magee JC, et al. Bidirectional synaptic plasticity rapidly modifies hippocampal representations. Elife. 2021;10:e73046. pmid:34882093
- 89. Viskontas IV, Quiroga RQ, Fried I. Human medial temporal lobe neurons respond preferentially to personally relevant images. Proc Natl Acad Sci U S A. 2009;106(50):21329–34. pmid:19955441
- 90. Rutishauser U, Mamelak AN, Schuman EM. Single-trial learning of novel stimuli by individual neurons of the human hippocampus-amygdala complex. Neuron. 2006;49(6):805–13. pmid:16543129
- 91. Ison MJ, Quian Quiroga R, Fried I. Rapid Encoding of New Memories by Individual Neurons in the Human Brain. Neuron. 2015;87(1):220–30. pmid:26139375
- 92. Horner AJ, Doeller CF. Plasticity of hippocampal memories in humans. Curr Opin Neurobiol. 2017;43:102–9. pmid:28260633
- 93. McClelland JL, McNaughton BL, O’Reilly RC. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological Review. 1995;102(3):419.
- 94. Remme MWH, Bergmann U, Alevi D, Schreiber S, Sprekeler H, Kempter R. Hebbian plasticity in parallel synaptic pathways: A circuit mechanism for systems memory consolidation. PLoS Comput Biol. 2021;17(12):e1009681. pmid:34874938
- 95. Squire LR, Genzel L, Wixted JT, Morris RG. Memory consolidation. Cold Spring Harb Perspect Biol. 2015;7(8):a021766. pmid:26238360
- 96. Yang G, Pan F, Gan W-B. Stably maintained dendritic spines are associated with lifelong memories. Nature. 2009;462(7275):920–4. pmid:19946265
- 97. Castro-Alamancos MA, Connors BW. Distinct forms of short-term plasticity at excitatory synapses of hippocampus and neocortex. Proc Natl Acad Sci U S A. 1997;94(8):4161–6. pmid:9108122
- 98. Navarro Lobato I, Aleman-Zapata A, Samanta A, Bogers M, Narayanan S, Rayan A, et al. Increased cortical plasticity leads to memory interference and enhanced hippocampal-cortical interactions. Elife. 2023;12:e84911. pmid:37252780
- 99. Hebscher M, Wing E, Ryan J, Gilboa A. Rapid Cortical Plasticity Supports Long-Term Memory Formation. Trends Cogn Sci. 2019;23(12):989–1002. pmid:31703929
- 100. Brodt S, Gais S, Beck J, Erb M, Scheffler K, Schönauer M. Fast track to the neocortex: A memory engram in the posterior parietal cortex. Science. 2018;362(6418):1045–8. pmid:30498125
- 101. Tse D, Langston RF, Kakeyama M, Bethus I, Spooner PA, Wood ER, et al. Schemas and memory consolidation. Science. 2007;316(5821):76–82. pmid:17412951
- 102. Tse D, Takeuchi T, Kakeyama M, Kajii Y, Okuno H, Tohyama C, et al. Schema-dependent gene activation and memory encoding in neocortex. Science. 2011;333(6044):891–5. pmid:21737703
- 103. Hofstetter S, Friedmann N, Assaf Y. Rapid language-related plasticity: microstructural changes in the cortex after a short session of new word learning. Brain Struct Funct. 2017;222(3):1231–41. pmid:27449063
- 104. Solomon SH, Kay K, Schapiro AC. Semantic plasticity across timescales in the human brain. eLife. 2024;13.
- 105. Spanne A, Jörntell H. Questioning the role of sparse coding in the brain. Trends in Neurosciences. 2015;38(7):417–27.
- 106. Yu L, Yu Y. Energy-efficient neural information processing in individual neurons and neuronal networks. J Neurosci Res. 2017;95(11):2253–66. pmid:28833444
- 107.
Fusi S. Memory capacity of neural network models. The Oxford Handbook of Human Memory, Two Volume Pack: Foundations and Applications. Oxford University Press. 2024. p. 740–64.
- 108. Földiák P. Forming sparse representations by local anti-Hebbian learning. Biol Cybern. 1990;64(2):165–70. pmid:2291903
- 109.
Rolls E, Treves A. Neural Networks and Brain Function. Oxford University Press. 1997.
- 110.
Sharma S, Chandra S, Fiete I. Content addressable memory without catastrophic forgetting by heteroassociation with a fixed scaffold. In: International Conference on Machine Learning. PMLR; 2022. p. 19658–19682.
- 111. Beyeler M, Rounds EL, Carlson KD, Dutt N, Krichmar JL. Neural correlates of sparse coding and dimensionality reduction. PLoS Comput Biol. 2019;15(6):e1006908. pmid:31246948
- 112. Thom M, Palm G. Sparse activity and sparse connectivity in supervised learning. The Journal of Machine Learning Research. 2013;14(1):1091–143.