Cover’s approach and its relation
For fixed input vectors, how many assignments of positive and negative labels can one linear classifier realize, and why does the probability change near two inputs per parameter?
A symmetric memory asks each neuron to predict its own prescribed bit from the other bits, with one shared weight on each pair of neurons. Cover first answers the question for one classifier.
At one neuron, the other bits are the input and its own bit is the label. A count of possible classifications bounds what that neuron can fit. Symmetric storage also requires the fitted rows to agree on every shared weight. The one-neuron dictionary and network bound make this connection precise.
[Hillar–Sohl-Dickstein–Koepsell, network definition and Thm. 2, pp. 2–3]
Learning weights means choosing a classifier
We observe inputs \(x_i\in\Rspace^2\) and prescribed labels \(y_i\in\{-1,+1\}\). We keep these data fixed and adjust the weights \(w=(w_1,w_2)\) and bias \(b\). The score map is
Its sign is the prediction. To learn the labels, we seek parameters with \(y_i s_{w,b}(x_i)>0\) for every input. The line \(s_{w,b}(x)=0\) separates the two predictions; a point on it fails strict classification.
A learning rule tells us how to adjust the parameters. The experiment below uses a perceptron update: choose an input whose margin \(y_i(w\cdot x_i+b)\) is nonpositive, then set
The learning rate is one. The inputs and labels stay fixed during these updates. [Cornell, Lecture 3, Classifier and Perceptron Algorithm]
An extra coordinate absorbs the bias
Affine and homogeneous separation are equivalent
Let \(k,m\ge1\), let \(x_1,\ldots,x_m\in\Rspace^k\), and fix labels \(y_1,\ldots,y_m\in\{-1,+1\}\). Define the homogenization map
$$\Phi:\Rspace^k\to\Rspace^{k+1},\qquad x\mapsto(x,1),\qquad\widetilde x_i=\Phi(x_i).$$The following existence statements are equivalent:
A. Affine separation. There are \(w\in\Rspace^k\) and \(b\in\Rspace\) such that
$$y_i(w\cdot x_i+b)>0\qquad(1\le i\le m).$$B. Homogeneous separation. There is \(\widetilde w\in\Rspace^{k+1}\) such that
$$y_i(\widetilde w\cdot\widetilde x_i)>0\qquad(1\le i\le m).$$Proof
The parameter map \(J:\Rspace^k\times\Rspace\to\Rspace^{k+1}\), \((w,b)\mapsto(w,b)\), is a bijection. Its inverse takes the first \(k\) coordinates as \(w\) and the last as \(b\). For every input,
$$J(w,b)\cdot\Phi(x_i)=(w,b)\cdot(x_i,1)=w\cdot x_i+b.$$Thus \(J\) preserves each strict inequality and gives a bijection between the two solution sets. No general-position assumption is needed.
For \(k=2\), all lifted points lie on \(z=1\). The plane \(w_1X_1+w_2X_2+bz=0\) passes through the 3D origin; its intersection with \(z=1\) gives the original affine line.
General position survives the lift
In the plane, three distinct points are in exactly when they are not collinear. Lift them to \(z=1\): they are linearly independent exactly when no plane through the origin contains all three.
Points in \(\Rspace^k\) are in affine general position if every subset of at most \(k+1\) points is affinely independent. For distinct planar points this means no three are collinear. Affine independence means the only coefficients with \(\sum_i a_i x_i=0\) and \(\sum_i a_i=0\) are all zero.
Affine and linear general position correspond. For \(x_1,\ldots,x_m\in\Rspace^k\), every subset of at most \(k+1\) points is affinely independent if and only if every corresponding subset of \(\widetilde x_i=(x_i,1)\in\Rspace^{k+1}\) is linearly independent.
Proof
For any subset of indices \(I\),
$$\sum_{i\in I}a_i\widetilde x_i=0\quad\Longleftrightarrow\quad\sum_{i\in I}a_ix_i=0\ \text{ and }\ \sum_{i\in I}a_i=0.$$The left side defines a linear dependence of the lifts; the right side defines an affine dependence of the original points. Thus the two independence conditions agree for every subset. Although all lifts lie on \(z=1\), this affine plane misses the origin. In affine general position, Cover’s count therefore applies with \(d=k+1\). [Cover, §I, general position and Thm. 1, p. 326]
From classifiers to recurrent memory
A line makes a binary decision
Fix an input \(x\in\Rspace^2\). A weight vector \(w\in\Rspace^2\) gives a direction; a bias \(b\in\Rspace\) moves the dividing line. Define the classifier, including its boundary value, by
The sign is +1 for a positive score, −1 for a negative score, and 0 on the line. A prescribed label is +1 or −1; a zero score fails strict classification.
Example 1. Keep three planar inputs fixed:
$$x_1=(1,0),\quad x_2=(0,1),\quad x_3=(-1,1).$$The initial prescribed labels are +, +, −. Rotate a unit weight vector and vary the bias.
Predict which points change prediction as the line rotates. Then change its offset.
How the bias becomes a weight
Append a constant coordinate to the input and append the bias to the weight:
$$\widetilde x=(x_1,x_2,1),\qquad\widetilde w=(w_1,w_2,b).$$ $$\widetilde w\cdot\widetilde x=w\cdot x+b.$$An affine line in a plane has three adjustable real parameters. The next experiment fixes the bias at zero and varies two weights, so it uses two parameters. [Cover, §II, measurement map (7)–(8), p. 327]
Move the weights; keep the inputs fixed
Continue Example 1. Fix the first \(m\) vectors from the ordered list below; \(m\) ranges from one to six. The default uses the first three.
Set the bias to zero. For each input \(x_i\), its is
$$H_i=\{w\in\Rspace^2:w\cdot x_i=0\}.$$A hyperplane is the zero set of a nonzero linear functional. Here it is a line in the plane of weights, perpendicular to a fixed input. Crossing it changes that input’s predicted sign.
Predict how many labelings three distinct lines through the origin permit. Rotate the weight arrow and compare the two panels.
One region, one realizable labeling
Within a region every dot product has a fixed nonzero sign. Conversely, all weights with a prescribed strict sign vector form an intersection of open half-planes, hence a convex set. Thus one labeling cannot occupy two disconnected regions.
Proof
For labels \(y_i\in\{-1,+1\}\), the weights realizing them form
$$\{w:y_i(w\cdot x_i)>0\ \text{for every }i\}.$$Each defining inequality is linear, so any segment between two solutions remains a solution. Every path in a region avoids all zero-score lines, so continuity preserves each sign. These two observations give the correspondence. [Cover, Thm. 2 and its dual, p. 327]
For three inputs there are eight possible , and six are realized. The missing two cannot be reached by rotating or rescaling the weight.
A dichotomy assigns one of two labels to each fixed input. An ordered list of \(m\) inputs has \(2^m\) such assignments, whether or not any classifier realizes them.
This probability chooses each of the eight labelings equally often, independently of the fixed inputs.
The new hyperplane counts the new regions
The hyperplane and cross-section explorer shows which 3D regions split, why general position matters, and how the recurrence becomes Pascal’s sum.
Let \(d\ge1\) be the number of weight coordinates, and let \(m\ge1\) count fixed nonzero inputs in \(\Rspace^d\). Assume . Write \(\coverCount(m,d)\) for the number of strict labelings, equivalently the number of weight-space regions.
Every subset of at most \(d\) input vectors is linearly independent. In the planar experiment, every pair is nonparallel. This hypothesis makes the count depend only on \(m,d\). [Cover, §I and Thm. 1, p. 326]
Step 1. Restrict to the added hyperplane
$$\coverCount(m,d)=\coverCount(m-1,d)+\coverCount(m-1,d-1)\qquad(m,d\ge2).$$A region cut by the new hyperplane splits in two. The old hyperplanes divide the new one into exactly the pieces that count these splits.
Proof
Intersect each old open region with the new hyperplane. A nonempty intersection is a region of the restricted arrangement; conversely each such restricted region lies in exactly one old region. Because that old region is open, it contains points on both sides of the new hyperplane. Each nonempty intersection therefore adds one region. General position makes the restricted normals general-position vectors in dimension \(d-1\). The first term counts old regions; the second counts the added ones. In the planar widget, raising the input count from two to three gives four old wedges and two new ones. [Cover, proof of Thm. 3, Eq. (10), p. 328]
Step 2. Pascal’s identity solves the recurrence
$$\coverCount(1,d)=2,\qquad\coverCount(m,1)=2.$$ $$\boxed{\coverCount(m,d)=2\sum_{k=0}^{d-1}\binom{m-1}{k}.}$$Proof
A single hyperplane has two sides; all hyperplanes through the origin on a line leave two rays. These give the boundary values. Define a binomial coefficient to be zero when its lower index is negative or exceeds its nonnegative upper index. Pascal’s identity gives
$$\binom{m-1}{k}=\binom{m-2}{k}+\binom{m-2}{k-1}.$$Summing from zero to \(d-1\) splits the proposed expression into the two terms of Step 1. It matches both boundary values, so induction proves the formula. The coefficient counts the ways to choose \(k\) objects from \(m-1\). [Cover, Thm. 1, Eq. (5), p. 326]; [proof of Thm. 3, Eqs. (10)–(12), p. 328].
Fair labels put the transition near two
Hold the general-position inputs fixed. Choose their labels independently, each sign with probability one half. Write \(q(m,d)\) for the probability that a weight vector realizes all labels. If \(B\sim\operatorname{Bin}(m-1,1/2)\), then \(B\) counts heads in \(m-1\) independent fair tosses.
Proof
The independent fair labels give every sign vector mass \(2^{-m}\). Exactly \(\coverCount(m,d)\) vectors are feasible. A binomial variable has mass \(2^{1-m}\binom{m-1}{k}\) at \(k\); summing through \(d-1\) gives the final expression. [Cover, §V, Eqs. (21)–(25), p. 331]
Predict what increasing \(d\) does while \(m\) stays fixed. Then increase both while keeping the ratio near two.
Step 3. The midpoint is exactly two; the limiting step sharpens there
$$q(2d,d)=\frac12.$$For every fixed real \(u>0\), with \(u\ne2\), as \(d\) tends to infinity,
$$\lim_{d\to\infty}q(\lfloor ud\rfloor,d)=\begin{cases}1,&0<u<2,\\0,&u>2.\end{cases}$$Proof
At (m=2d), the binomial variable counts an odd number \(2d-1\) of fair tosses. The symmetry between \(k\) and \(2d-1-k\) puts exactly half its mass at or below \(d-1\).
For \(m=\lfloor ud\rfloor\), its mean and variance are
$$\mathbb E B=\frac{m-1}{2},\qquad\operatorname{Var}(B)=\frac{m-1}{4}.$$If \(0<u<2\), then for \(d\ge4/(2-u)\), the cutoff exceeds the mean by at least \((2-u)d/4\). Chebyshev’s inequality gives
$$1-q(m,d)\le\frac{4u}{(2-u)^2d}.$$If \(u>2\), the mean exceeds the cutoff by at least \((u-2)d/2\), so
$$q(m,d)\le\frac{u}{(u-2)^2d}.$$Both bounds tend to zero in their respective cases. These estimates apply when \(m\ge1\); for \(u<2\) take also \(d\ge1/u\). [Cover, §V, Eq. (25), p. 331]
The probability calculation uses independent fair labels. In a symmetric network, every neuron uses bits from the same patterns and shares weights with other neurons. The network transfer explains which bound follows from the single-classifier count.
Build the count for a new case
Four nonparallel inputs in a plane define four distinct zero-score lines through the weight-space origin. Predict the number of regions, the probability for independent fair labels, and whether allowing a free bias changes the dimension. Explain your reasoning.