Homogeneous Halfspaces
For homogeneous halfspaces in R^d, the VC dimension is d.
A Separator with No Bias
A homogeneous halfspace classifies a vector x by the sign of its dot product with a weight vector w. The resulting decision rule uses the sign of w dot x. The boundary consists of points whose dot product with w is zero, so the separating hyperplane passes through the origin. The central question in this article is how a classifier that seems to depend on an entire training sample can instead be represented using only a small subset of that sample.
A homogeneous halfspace is a classifier whose decision is determined by the sign of w dot x, with no separate bias term. Its separating hyperplane passes through the origin.
Finding the Special Vector
The compression construction begins with the convex hull of the training sample. Among all points in that convex hull, choose the point w with the smallest Euclidean norm. Geometrically, w is the point in the convex hull closest to the origin. Equivalently, it is the Euclidean projection of the origin onto the convex hull.
Why does this closest point define a separator? Suppose a training point xi had a nonpositive dot product with w. Moving a suitable amount from w toward xi would remain inside the same convex hull while producing a point closer to the origin. That contradicts the choice of w as the minimum-norm point. Therefore, the minimum-norm construction gives a vector whose dot product has the separating sign on the training points.
A Two-Dimensional Minimum-Norm Point
Consider the convex hull of the two points (1, 0) and (0, 1). Identify its minimum-norm point and explain how it can act as a separating vector for those points.
- 1Describe the hull
Every point in the hull is a convex combination of (1, 0) and (0, 1). The closest point to the origin occurs halfway between them.
- 2Choose w
The minimum-norm point is w = (0.5, 0.5).
- 3Check the dot products
The dot product of w with (1, 0) is 0.5, and the dot product of w with (0, 1) is also 0.5. Both have the same positive sign.
The vector w = (0.5, 0.5) is the closest point in the convex hull to the origin and gives the same separating sign for both sample points.
Compressing the Training Sample
The classifier is determined by w, but the compressed object is not w itself. The compressed object is a subset of training points from which w can be reconstructed. This distinction matters: the selected points are not merely examples that happen to be classified correctly. They form a compact geometric recipe for rebuilding the chosen separator.
Because w lies in the convex hull of the training sample, it can be written as a convex combination of sample points. Carathéodory's theorem gives a representation using at most d + 1 points in d-dimensional space. The construction has additional structure: the minimum-norm point lies on a face of the convex hull. The face property reduces the required representation to a convex combination of d sample points.
Capacity Through Shattering
VC dimension measures the capacity of a classification class by asking for the largest number of points that the class can shatter. A set is shattered when every possible binary labeling of those points can be produced by some classifier in the class.
For homogeneous halfspaces in Rd, the VC dimension is d. The lower bound comes from the d standard basis vectors. For any desired binary labeling, use those labels as the coordinates of w. Taking the dot product with a basis vector selects the corresponding coordinate of w, so every labeling can be realized.
The upper bound uses linear dependence. Any d + 1 vectors in Rd are linearly dependent, so there are coefficients, not all zero, whose weighted combination is the zero vector. Split the indices according to the signs of those coefficients. If the d + 1 vectors could be shattered, one weight vector would have to produce positive dot products on one group and negative dot products on the other. Applying that weight vector to the dependence relation creates incompatible sign conditions. If one coefficient-sign group is empty, the corresponding equality still yields the contradiction. Therefore, d + 1 points cannot always be shattered.
Adding a Bias Term
A non-homogeneous halfspace includes a bias term, so its separating boundary is not required to pass through the origin. That extra parameter changes the shattering argument. In Rd, non-homogeneous halfspaces have VC dimension d + 1 rather than d.
For the lower bound, consider the zero vector together with the d standard basis vectors. The source construction states that non-homogeneous halfspaces can shatter these d + 1 points. For the upper bound, if d + 2 vectors in Rd could be shattered by non-homogeneous halfspaces, the standard reduction would convert that situation into d + 2 vectors in Rd+1 shattered by homogeneous halfspaces. That contradicts the homogeneous result in dimension d + 1, whose VC dimension is d + 1.
| Class | Boundary restriction | VC dimension in Rd | Lower-bound witness |
|---|---|---|---|
| Homogeneous halfspaces | Boundary passes through the origin | d | d standard basis vectors |
| Non-homogeneous halfspaces | Bias term allows a boundary not required to pass through the origin | d + 1 | Zero vector together with d standard basis vectors |
The bias term adds one unit to the shattering capacity in the stated results.
Practice and Common Errors
What do you think happens?
In R3, how many points can homogeneous halfspaces have as their VC dimension?
Reveal answer
3
Homogeneous halfspaces in Rd have VC dimension d, so in R3 the value is 3.
Suppose a minimum-norm point w has been selected from the convex hull of a training sample in Rd. Explain, in two stages, how a compressed representation is produced and how the classifier is reconstructed. Then state the maximum number of sample points needed in this construction.
Hints
- First identify what is selected from the full sample.
- Then use the fact that w lies on a face of the convex hull.
- Do not describe w itself as the compressed object.
Common mistake Calling the weight vector w the compressed object.
What it looks likeThe classifier uses w, so w must be the compressed sample.
Why it failsThe construction compresses the training data into selected sample points that can be used to recover w.
Do this insteadTreat the selected subset as the compressed description and w as the reconstructed classifier parameter.
Common mistake Stopping at the d + 1 bound from Carathéodory's theorem.
What it looks likeA point in the convex hull in R^d needs at most d + 1 points, so the construction needs d + 1 points.
Why it failsThe minimum-norm point lies on a face, and that additional property reduces the representation to d points in this construction.
Do this insteadDistinguish the general Carathéodory bound from the stronger bound obtained using the face property.
Common mistake Using the homogeneous VC dimension for classifiers with a bias term.
What it looks likeAll halfspaces in R^d have VC dimension d.
Why it failsAdding a bias term changes the shattering argument and raises the stated dimension to d + 1.
Do this insteadCheck whether the boundary is required to pass through the origin before selecting the VC-dimension result.
Common mistake Proving only the lower bound when claiming an exact VC dimension.
What it looks likeThe d basis vectors can be shattered, so the VC dimension is d.
Why it failsThat establishes only that the VC dimension is at least d.
Do this insteadAlso use linear dependence to show that d + 1 vectors cannot always be shattered by homogeneous halfspaces.
Key Takeaways
- 1A homogeneous halfspace classifies x using the sign of w dot x, and its boundary passes through the origin.
- 2The compression construction chooses the minimum-norm point of the training sample's convex hull.
- 3That point separates the training data because moving toward a point with a nonpositive dot product would contradict its minimum norm.
- 4Carathéodory's theorem gives d + 1 points in general, while the face property reduces the construction to d selected points.
- 5The selected points are the compressed description; reconstruction uses them to recover w and the classifier.
- 6Homogeneous halfspaces in Rd have VC dimension d, while non-homogeneous halfspaces have VC dimension d + 1.
At a glance
- Homogeneous halfspaces use the sign of a dot product and have a boundary through the origin.
- The minimum-norm point in the convex hull supplies a separating vector.
- A small subset of training points can reconstruct that vector, with the face property reducing the count to d.
- VC dimension measures shattering capacity: homogeneous halfspaces have dimension d, while non-homogeneous halfspaces have dimension d + 1.
- The weight vector determines the homogeneous separator, while a bias term adds capacity by allowing a boundary not required to pass through the origin.