Upper bound on α₊

Q1. How does counting the labels one neuron can fit bound the probability that an entire symmetric network stores its patterns?

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.

Figure 1. For fixed \(u>2\), both terms in \(B_n(\lfloor un\rfloor)\) vanish, forcing \(p_n(\lfloor un\rfloor)\to0\).

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.

$$\underbrace{s^\mu=(s_1^\mu,\ldots,s_n^\mu)}_{\text{whole pattern}} \longmapsto\left(\underbrace{s_{-i}^\mu=(s_j^\mu)_{j\ne i}}_{\text{input in }\mathbb R^{n-1}},\quad\underbrace{s_i^\mu}_{\text{prescribed sign}}\right).$$ $$H_i(s_{-i})=\sum_{j\ne i}J_{ij}s_j+h_i,\qquad H_i:\mathbb R^{n-1}\to\mathbb R.$$

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.

$$z_i^\mu=(s_{-i}^\mu,1)\in\mathbb R^n,\qquad\theta_i=((J_{ij})_{j\ne i},h_i)\in\mathbb R^n.$$
$$s_i^\mu\theta_i^\top z_i^\mu=s_i^\mu\left(\sum_{j\ne i}J_{ij}s_j^\mu+h_i\right).$$ $$E_i=\left\{\exists\theta_i\in\mathbb R^n:\ s_i^\mu\theta_i^\top z_i^\mu>0\quad\text{for every }\mu\in\{1,\ldots,m\}\right\}.$$

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.

Q2. With three neurons, what does this separator do to the eight possible patterns?

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

Figure 2. The same boundary is a plane parallel to the \(s_1\)-axis in the cube and a line in neuron 1’s input square.

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.

[Cover (1965), Thm. 1 / Eq. (5), p. 326]

For \(z^\mu=(x^\mu,1)\), general position means that every subset of at most \(n\) points in \(\mathbb R^{n-1}\) is .

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?

  1. 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.

    Sources

    [Cover (1965), Lemma 1, pp. 327–328]

  2. 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.

    Sources

    [Cover (1965), proof of Thm. 3, Eq. (10), p. 328]

  3. 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.

    Sources

    [Cover (1965), Eqs. (10)–(12), p. 328]

  4. 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.$$

    Sources

    [Cover (1965), §V, Eqs. (22)–(25), p. 331]

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}\).

Figure 3. The binomial term \(q_{m,n}\) satisfies \(q_{2n,n}=\tfrac12\); the alternative view shows \(C(m,n)=2^m q_{m,n}\).

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

Q3. How does a random-label count for one row apply to a random set of distinct whole patterns?

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.

$$\Pr_{\mathrm{iid}}(E_i\mid X_i)=\frac{|\mathcal Y(Z_i)|}{2^m}\le\frac{C(m,n)}{2^m}=q_{m,n}.$$

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

$$\begin{aligned} p_n(m)&=\Pr_{\mathrm{distinct}}(F_n(m))\\ &\le\Pr_{\mathrm{distinct}}(E_i)\\ &\le\Pr_{\mathrm{iid}}(E_i)+\Pr_{\mathrm{iid}}(D^c)\\ &\le q_{m,n}+\binom m2\,2^{-n}. \end{aligned}$$
  1. Equality: \(F_n(m)\) is full symmetric storage; this is the definition of \(p_n(m)\).
  2. First inequality: a storing symmetric network supplies a feasible row at neuron \(i\), so \(F_n(m)\subseteq E_i\).
  3. Second inequality: changing from independent sampling to distinct sampling changes any event probability by at most the collision probability.
  4. Last inequality: insert the one-row bound from 4a and the collision union bound from 4b.
$$m=\lfloor un\rfloor,\ u>2:\qquad q_{m,n}\to0,\quad\binom m2\,2^{-n}\le\frac{u^2n^2}{2^{n+1}}\to0.$$

Both nonnegative terms vanish, so \(p_n(\lfloor un\rfloor)\to0\), proving \(\alpha_+\le2\).

Step 5. All rows must also share symmetric weights

$$E=E_n(m)=\bigcap_{i=1}^n E_i.$$ $$E:\quad\forall i\ \exists\theta_i\ \forall\mu:\ s_i^\mu\theta_i^\top z_i^\mu>0.$$ $$F_n(m):\quad\exists J=J^\top,\ h\ \forall i,\mu:\ s_i^\mu((Js^\mu)_i+h_i)>0,\quad J_{ii}=0.$$ $$F_n(m)\subseteq E\subseteq E_i.$$

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).$$
Q4. Does Cover’s limit of one below load two imply symmetric storage?

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.