Concepts / Homogeneous Halfspaces

Homogeneous Halfspaces

For homogeneous halfspaces in R^d, the VC dimension is d.

  • Programming

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.

xtraining vectorw dot xdot productpositiveone sidenegativeother sidezeroboundarycombine with w> 0< 0= 0
How does the sign of w dot x place a point on one side of the origin-centered hyperplane?
Definition

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.

Convex hulltraining pointswminimum normOriginSeparating hyperplaneclosest point in hullselectuse as weight vector
How does the minimum-norm point in the convex hull become a separating weight vector?
Worked example

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.

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

  2. 2
    Choose w

    The minimum-norm point is w = (0.5, 0.5).

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

Result

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.

Training sampleall pointsSelected pointsat most dConvex hullReconstructed wMinimum-norm pointwHomogeneousclassifierformchoose closest point to originrepresent usingconvex combinationuse w
How is the full training sample reduced to a subset, and how does that subset rebuild the classifier?
wpoint in convex hullp1coefficientp2coefficientpdcoefficientconvex combinationconvex combinationconvex combination
How does the face property reduce the number of training points needed to represent w?

Capacity Through Shattering

Definition

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.

HomogeneoushalfspacesVC dimension dd basis vectorsNon-homogeneoushalfspacesVC dimension d + 1Zero vector and dbasis vectorsd + 1 vectorslinear dependenced + 2 vectorsreduction to R^d+1 shatterscannot always shattershatterscannot always shatter
Why does adding a bias term increase the VC dimension by one?

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.

wweight vectorOrigin-centeredboundaryw and biasextra parameterShifted boundarydeterminesdetermines
What changes in the separating boundary and in the shattering proof when a bias term is added?
ClassBoundary restrictionVC dimension in RdLower-bound witness
Homogeneous halfspacesBoundary passes through the origindd standard basis vectors
Non-homogeneous halfspacesBias term allows a boundary not required to pass through the origind + 1Zero 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?

  • 2

  • 3

  • 4

  • It depends only on the number of training examples

Reveal answer
Answer:

3

Homogeneous halfspaces in Rd have VC dimension d, so in R3 the value is 3.

MEDIUM

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 like

    The classifier uses w, so w must be the compressed sample.

    Why it fails

    The construction compresses the training data into selected sample points that can be used to recover w.

    Do this instead

    Treat 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 like

    A point in the convex hull in R^d needs at most d + 1 points, so the construction needs d + 1 points.

    Why it fails

    The minimum-norm point lies on a face, and that additional property reduces the representation to d points in this construction.

    Do this instead

    Distinguish 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 like

    All halfspaces in R^d have VC dimension d.

    Why it fails

    Adding a bias term changes the shattering argument and raises the stated dimension to d + 1.

    Do this instead

    Check 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 like

    The d basis vectors can be shattered, so the VC dimension is d.

    Why it fails

    That establishes only that the VC dimension is at least d.

    Do this instead

    Also use linear dependence to show that d + 1 vectors cannot always be shattered by homogeneous halfspaces.

Key Takeaways

  1. 1
    A homogeneous halfspace classifies x using the sign of w dot x, and its boundary passes through the origin.
  2. 2
    The compression construction chooses the minimum-norm point of the training sample's convex hull.
  3. 3
    That point separates the training data because moving toward a point with a nonpositive dot product would contradict its minimum norm.
  4. 4
    Carathéodory's theorem gives d + 1 points in general, while the face property reduces the construction to d selected points.
  5. 5
    The selected points are the compressed description; reconstruction uses them to recover w and the classifier.
  6. 6
    Homogeneous 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.

Related concepts

More concepts starting with H