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.

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

$$s_{w,b}:\Rspace^2\to\Rspace,\qquad x\mapsto w\cdot x+b.$$

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

$$(w,b)\longmapsto(w,b)+y_i(x_i,1).$$

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.

[Cornell, Lecture 3, Classifier, augmentation identity]

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.

2D inputs

Figure H2(a). Blue and rose mark the positive and negative affine regions. Small dots mark inputs; + and − give their fixed labels. Select a dot to follow its lift. A gold ring marks the selection.

3D lifted inputs

Figure H2(b). The affine line is the intersection of the grey separator with \(z=1\). The gold segment lifts the selected input from \(z=0\) to \(z=1\).

We sample five points uniformly from \([-1,1]^2\) and label them by the sign of \(X_1+0.65X_2-0.1\). Keep the labels fixed and move the separator.

The same data cut 3D weight space into regions

Hold the lifted inputs fixed and vary \(\widetilde w=(w_1,w_2,b)\). Each input defines a zero-score plane

$$H_i=\{\widetilde w\in\Rspace^3:\widetilde w\cdot\widetilde x_i=0\}.$$

These planes divide weight space into cones, one per realizable sign vector. We show their intersections with the unit sphere, since positive rescaling preserves every sign.

Figure H3. Blue contains the current weight. Gold marks the selected input’s plane.

Input space and weight space

Figure H2 uses input coordinates \((X_1,X_2,z)\): the current weight is normal to the grey separator. Figure H3 uses parameter coordinates \((w_1,w_2,b)\): each input is normal to its own zero-score plane. Crossing \(H_i\) changes the prediction of input \(i\). [Cover, Thm. 2 and dual arrangement, p. 327]

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.

2D points

Figure H4(a). Move \(x_3\) onto the line through \(x_1,x_2\).

3D lifted vectors

Figure H4(b). Gold spans the origin and the lifted points; blue marks the slice at \(z=1\). Collinear inputs flatten the cone into a plane.

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