Upper bound on α₊
There are \(n\) neurons and \(m\) prescribed patterns; a stored pattern must give every neuron its prescribed sign.
Proposition. The nonstorage endpoint satisfies \(\alpha_+\le2\)
For uniform sets of m distinct spin patterns, with n ≥ 2 and 1 ≤ m ≤ 2ⁿ:
$$p_n(m)\le \underbrace{2^{1-m}\sum_{k=0}^{n-1}\binom{m-1}{k}}_{q_{m,n}}+\underbrace{\binom m2\,2^{-n}}_{\text{collision bound}}.$$ $$u>2\quad\Longrightarrow\quad p_n(\lfloor un\rfloor)\longrightarrow0,\qquad \alpha_+\le2.$$Each limit fixes the load u as n grows; click α₊ for its endpoint definition.
Attempt 4 lowers this bound: R3 proves \(p_n(\lfloor(2-10^{-6})n\rfloor)\to0\), hence \(\alpha_-\le\alpha_+\le1.999999\).
Vertical axis: the full right-hand side \(B_n(m)=q_{m,n}+\binom m2\,2^{-n}\), an upper bound on \(p_n(m)\).
Horizontal axis: load \(u\); each point uses \(m=\lfloor un\rfloor\) at the chosen n.
Step 1. Turn the storage condition at one neuron into a separation problem
Fix neuron \(i\): use the other spins as its input and its own prescribed spin as the label to predict.
The equation \(H_i(s_{-i})=0\) is the decision boundary: positive labels must lie on its positive side and negative labels on its negative side.
The \(h_i\) moves this boundary.
Here \(h_i\in\mathbb R\) is a parameter fitted together with the weights, constant across all patterns; it is neither a random field nor a separate value for each pattern.
$$H_i(s_{-i})=\sum_{j\ne i}J_{ij}s_j+h_i,\qquad\text{threshold }t_i=-h_i.$$For \((J_{ij})_{j\ne i}\ne0\), changing \(h_i\) translates the boundary without rotating it; \(h_i=0\) would force it through the origin.
$$z_i^\mu=(s_{-i}^\mu,1),\qquad\theta_i=((J_{ij})_{j\ne i},h_i),\qquad\theta_i^\top z_i^\mu=\sum_{j\ne i}J_{ij}s_j^\mu+h_i.$$The constant coordinate turns an affine problem in \(n-1\) input dimensions into a homogeneous problem in \(n\) dimensions.
Thus \(E_i\) is the event that one freely chosen row fits all \(m\) input–label pairs at neuron \(i\).
The purpose of this reformulation is to apply Cover’s theorem to a necessary condition for storage: any storing network supplies such a row.
Set \(i=1\): the whole pattern is \((s_1,s_2,s_3)\), the input is \((s_2,s_3)\), and the prescribed label is \(s_1\).
(a) Whole patterns: the 3-cube
Filled = selected; hollow = omitted. Click a vertex to toggle it.
(b) Neuron 1 sees only a square
Blue + = label +1; red − = label −1. Violet = zero-field boundary.
Change
A three-neuron row has two input coordinates plus a bias, hence Cover dimension \(n=3\); an unrestricted affine classifier on a three-dimensional input cube would instead have dimension four after adding its bias.
Why can no row fit all eight patterns?
Each input \((s_2,s_3)\) occurs twice, with opposite prescribed labels:
$$s_1=+1\Rightarrow H_1(s_2,s_3)>0,\qquad s_1=-1\Rightarrow H_1(s_2,s_3)<0.$$A single value cannot satisfy both inequalities; the conflicting-pair preset isolates this obstruction.
Visualize all spin patterns for n = 4, 5 and 6.
Step 2. Count separable labels for fixed inputs
Cover’s theorem and its probability consequence
Fix \(m\ge1\) inputs \(z^1,\ldots,z^m\in\mathbb R^n\), with \(n\ge1\); choose \(y\) uniformly from the \(2^m\) sign vectors.
$$\mathcal Y(Z)=\{y\in\{-1,1\}^m:\exists\theta\in\mathbb R^n,\ y^\mu\theta^\top z^\mu>0\ \forall\mu\}.$$If every subset of at most \(n\) inputs is linearly independent (homogeneous general position), then
$$|\mathcal Y(Z)|=C(m,n)=2\sum_{k=0}^{n-1}\binom{m-1}{k},\qquad\Pr_y\{y\in\mathcal Y(Z)\}=q_{m,n}=\frac{C(m,n)}{2^m}.$$For arbitrary inputs these are upper bounds; use \(\binom{m-1}{k}=0\) for \(k>m-1\).
$$q_{\lfloor un\rfloor,n}\longrightarrow\begin{cases}1,&0<u<2,\\0,&u>2,\end{cases}\qquad q_{2n,n}=\frac12.$$This limit fixes the load \(u\) and sends \(n\to\infty\) in the general-position random-label experiment.
For \(z^\mu=(x^\mu,1)\), general position means that every subset of at most \(n\) points in \(\mathbb R^{n-1}\) is .
Two points must be distinct; three must not be collinear; four must not lie in one plane.
Full column rank of the input matrix alone does not ensure this condition.
Proof of the affine condition and a full-rank counterexample
$$\sum_{r=1}^k a_r(x^r,1)=0\iff\left(\sum_{r=1}^k a_rx^r=0\quad\text{and}\quad\sum_{r=1}^k a_r=0\right).$$Linear independence of the lifted vectors is therefore exactly affine independence of the original points, subset by subset.
For \(n=3\), take \(x^1=(0,0),x^2=(1,0),x^3=(2,0),x^4=(0,1)\):
$$Z=\begin{pmatrix}0&0&1\\1&0&1\\2&0&1\\0&1&1\end{pmatrix},\qquad\operatorname{rank}Z=3,\qquad z^1-2z^2+z^3=0.$$Rows 1, 2 and 4 have determinant one, but rows 1, 2 and 3 are dependent; full rank checks existence of a basis, whereas general position checks every small subset.
Proof of the count, the binomial limit, and the value at m = 2n
Why does Cover’s count hold?
Step 1. Two extensions mean a separator through the new input
Let \(z^1,\ldots,z^{m-1},z^m\) be in homogeneous general position, with \(m,n\ge2\). For fixed signs \(y^1,\ldots,y^{m-1}\), both choices \(y^m=\pm1\) are strictly separable if and only if some \(\theta\in\mathbb R^n\) satisfies $$\begin{aligned}y^\mu \theta^\top z^\mu&>0\quad(\mu<m),\\\theta^\top z^m&=0.\end{aligned}$$
Proof
If \(u\) realizes the positive extension and \(v\) the negative one, the positive combination $$\theta=(-v^\top z^m)u+(u^\top z^m)v$$ satisfies $$\theta^\top z^m=0,\qquad y^\mu \theta^\top z^\mu>0\quad(\mu<m).$$ Conversely, if such a \(\theta\) exists, finitely many strict inequalities remain strict for sufficiently small \(\varepsilon>0\), while $$(\theta\pm\varepsilon z^m)^\top z^m=\pm\varepsilon\|z^m\|^2.$$ Thus the two perturbations realize the two extensions.
Step 2. Adding an input gives a recurrence
For \(m,n\ge2\), $$\begin{aligned}C(m,n)&=C(m-1,n)\\&\quad+C(m-1,n-1).\end{aligned}$$
Proof
Every old separable labeling has at least one extension: if its separator is orthogonal to \(z^m\), perturb it slightly. Step 1 counts the extra extensions by separators in \(L=(z^m)^\perp\). Let \(\pi_L:\mathbb R^n\to L\) be orthogonal projection. For \(\theta\in L\), $$\theta^\top z^\mu=\theta^\top\pi_L(z^\mu).$$ The projected inputs are in homogeneous general position in the \((n-1)\)-dimensional space \(L\): a dependence among at most \(n-1\) of them lifts to a dependence among those original inputs and \(z^m\), contradicting general position. Hence there are exactly \(C(m-1,n-1)\) old labelings with two extensions. Count one extension for every old labeling and one extra for each of these.
Step 3. The recurrence gives the binomial sum
For all \(m,n\ge1\), $$C(m,n)=2\sum_{r=0}^{n-1}\binom{m-1}{r}.$$
Proof
The initial values are $$C(1,n)=2,\qquad C(m,1)=2.$$ One nonzero input admits either sign. In one dimension every input is nonzero and only the sign of the scalar weight can change the labeling. The proposed sum has these initial values and satisfies the recurrence by Pascal’s identity $$\binom{m-1}{r}=\binom{m-2}{r}+\binom{m-2}{r-1}.$$ Induction on \(m+n\) proves the formula, taking negative lower indices to contribute zero.
Step 4. Uniform labels give the transition at two
For \(m\ge2\), let \(B\sim\operatorname{Bin}(m-1,1/2)\). Then $$q_{m,n}=\frac{C(m,n)}{2^m}=\Pr\{B\le n-1\}.$$ Consequently, $$\lim_{n\to\infty}q_{\lfloor u n\rfloor,n}=\begin{cases}1,&0< u <2,\\0,& u >2,\end{cases}\qquad q_{2n,n}=\frac12.$$
Proof
All \(2^m\) label vectors have equal probability, so division of the count by \(2^m\) gives the probability. For a binomial random variable, $$\Pr(B=k)=\binom{m-1}{k}2^{-(m-1)},\qquad q_{m,n}=\sum_{k=0}^{n-1}\Pr(B=k).$$ With \(m=\lfloor u n\rfloor\) and fixed \( u >0\), put $$T=\frac{B}{m-1},\qquad a_n=\frac{n-1}{m-1}\longrightarrow\frac1 u .$$ For sufficiently large \(n\), \(m\ge2\), and $$\mathbb ET=\frac12,\qquad\operatorname{Var}(T)=\frac1{4(m-1)}.$$ Chebyshev’s inequality gives, for every fixed \(\eta>0\), $$\Pr\{|T-\tfrac12|\ge\eta\}\le\frac{1}{4(m-1)\eta^2}\longrightarrow0.$$ If \(0< u <2\), choose \(0<\eta<1/ u -1/2\); eventually \(a_n>1/2+\eta\), hence $$1-q_{m,n}=\Pr(T>a_n)\le\Pr(|T-\tfrac12|\ge\eta)\to0.$$ If \( u >2\), choose \(0<\eta<1/2-1/ u \); eventually \(a_n<1/2-\eta\), hence $$q_{m,n}=\Pr(T\le a_n)\le\Pr(|T-\tfrac12|\ge\eta)\to0.$$ At \(m=2n\), \(B\sim\operatorname{Bin}(2n-1,1/2)\) and \(B\) has the same law as \(2n-1-B\). The disjoint events \(B\le n-1\) and \(B\ge n\) exhaust all outcomes and have equal probabilities, so $$q_{2n,n}=\Pr(B\le n-1)=\frac12.$$
Cover’s symbols and ours
Cover’s \(N\) is our number of patterns \(m\); his homogeneous dimension \(d\) is our \(n\), including the bias coordinate; his weight vector is one row’s \(\theta_i\).
Vertical axis: \(q_{m,n}=2^{1-m}\sum_{k=0}^{n-1}\binom{m-1}{k}\).
Step 3. Spin inputs may realize fewer labelings
For \(n=2,m=2\), suppose the two inputs to neuron 1 both equal \(-1\):
$$z^1=z^2=(-1,1),\qquad C(2,2)=4.$$For independent fair labels, only \((+1,+1)\) and \((-1,-1)\) are realizable, so the success probability is \(2/4<q_{2,2}=1\).
The distinct whole patterns \((-1,-1)\) and \((+1,-1)\) impose opposite labels at this identical input, so neither can be fitted together at neuron 1.
Proof that arbitrary inputs still obey the upper bound
Choose one strict separator \(\theta_y\) for each realizable labeling \(y\); there are finitely many such witnesses.
$$\delta=\min_{y\in\mathcal Y(Z),\,\mu}y^\mu\theta_y^\top z^\mu>0.$$If no labeling is realizable the bound is immediate; otherwise choose a common perturbation with
$$\max_\mu\|\widetilde z^\mu-z^\mu\|<\frac{\delta}{2\max_y\|\theta_y\|}.$$ $$y^\mu\theta_y^\top\widetilde z^\mu\ge\delta-\|\theta_y\|\,\|\widetilde z^\mu-z^\mu\|>\delta/2.$$General-position configurations are dense: the forbidden dependence conditions are the zeros of finitely many nonzero polynomial conditions; their union has empty interior.
$$\mathcal Y(Z)\subseteq\mathcal Y(\widetilde Z)\quad\Longrightarrow\quad|\mathcal Y(Z)|\le C(m,n).$$Step 4. Explain each part of the storage bound
4a. Sample independently first, so inputs and labels separate
Temporarily draw \(s^1,\ldots,s^m\) independently and uniformly from \(\{-1,1\}^n\), allowing repetitions; write \(\Pr_{\mathrm{iid}}\) for this law.
After fixing all other coordinates \(X_i=(s_{-i}^1,\ldots,s_{-i}^m)\), the omitted coordinates \(s_i^\mu\) remain independent fair signs.
The equality counts the successful equally likely labels; the inequality uses the arbitrary-input form of Cover’s bound.
$$\Pr_{\mathrm{iid}}(E_i)=\mathbb E_{X_i}[\Pr_{\mathrm{iid}}(E_i\mid X_i)]\le q_{m,n}.$$Averaging a conditional bound preserves it because \(q_{m,n}\) does not depend on the input realization.
4b. Conditioning removes repetitions
Let \(D\) be the event that all sampled whole patterns are distinct, with \(1\le m\le2^n\); define \(\Pr_{\mathrm{distinct}}(A)=\Pr_{\mathrm{iid}}(A\mid D)\).
$$\Pr_{\mathrm{iid}}(D^c)\le\sum_{\mu<\nu}\Pr_{\mathrm{iid}}(s^\mu=s^\nu)=\binom m2\,2^{-n}.$$The inequality is the union bound over colliding pairs; each pair agrees with probability \(2^{-n}\).
Proof of the additive conditioning error
For any event \(A\), if \(0<\Pr_{\mathrm{iid}}(D^c)<1\), the law of total probability gives
$$\begin{aligned} \Pr_{\mathrm{iid}}(A)&=\Pr_{\mathrm{iid}}(D)\Pr_{\mathrm{iid}}(A\mid D)\\ &\quad+\Pr_{\mathrm{iid}}(D^c)\Pr_{\mathrm{iid}}(A\mid D^c),\\ \Pr_{\mathrm{iid}}(A\mid D)-\Pr_{\mathrm{iid}}(A)&=\Pr_{\mathrm{iid}}(D^c)\big[\Pr_{\mathrm{iid}}(A\mid D)-\Pr_{\mathrm{iid}}(A\mid D^c)\big]. \end{aligned}$$The bracket lies between −1 and 1, hence
$$\big|\Pr_{\mathrm{distinct}}(A)-\Pr_{\mathrm{iid}}(A)\big|\le\Pr_{\mathrm{iid}}(D^c).$$When the collision probability is zero, the two laws agree exactly; conditioning on \(D\) and forgetting order gives the uniform \(m\)-element set because each such set has exactly \(m!\) orderings.
4c. A whole network must fit this particular row
- Equality: \(F_n(m)\) is full symmetric storage; this is the definition of \(p_n(m)\).
- First inequality: a storing symmetric network supplies a feasible row at neuron \(i\), so \(F_n(m)\subseteq E_i\).
- Second inequality: changing from independent sampling to distinct sampling changes any event probability by at most the collision probability.
- Last inequality: insert the one-row bound from 4a and the collision union bound from 4b.
Both nonnegative terms vanish, so \(p_n(\lfloor un\rfloor)\to0\), proving \(\alpha_+\le2\).
Step 5. All rows must also share symmetric weights
Separately fitted rows may disagree on \(J_{ij}=J_{ji}\); full storage requires one compatible choice of all rows.
The row events depend on the same patterns; even successful individual rows do not automatically give a simultaneously feasible symmetric network.
$$\Pr(E^c)\le\sum_{i=1}^n\Pr(E_i^c).$$No: an upper bound on a necessary one-row event gives no lower bound on whole-network storage; Discrete input degeneracy, simultaneous row feasibility, and symmetry still need arguments.
Fix the neuron \(i\), and let the sampled patterns determine its inputs and labels:
$$s_{-i}^\mu=(s_j^\mu)_{j\ne i},\qquad s_i^\mu.$$ $$E_i=\{\exists((J_{ij})_{j\ne i},h_i):\ s_i^\mu(\sum_{j\ne i}J_{ij}s_j^\mu+h_i)>0\ \forall\mu\}.$$It is an event in the random patterns, not an energy or an expectation; the row may be chosen after seeing all patterns, without imposing reciprocal weights on other rows.
\(h_i\in\mathbb R\) is chosen with the row weights and used for every pattern at neuron \(i\).
$$H_i(s)=\sum_{j\ne i}J_{ij}s_j+h_i.$$Changing it shifts the decision boundary; its equivalent threshold is \(-h_i\).
Here \(m\) counts input–label pairs and \(n\) counts row parameters including the bias; this equals the success probability for general-position inputs and bounds it for arbitrary inputs.