Max-Margin Methods
The important idea in max-margin methods is that this apparently nonlinear polynomial rule can be rewritten as a linear rule after changing the representation of the input.
From Polynomial Scores to Classes
A separating polynomial takes an input x in Rd, evaluates a degree-r polynomial p(x), and then uses the sign of that value as the classification rule. In compact form, the function is sign(p(x)). The important idea in max-margin methods is that this apparently nonlinear polynomial rule can be rewritten as a linear rule after changing the representation of the input.
The polynomial itself produces a score. The classifier is obtained only after applying sign to that score. This distinction matters because the score can be rewritten as an inner product, while the final classification rule remains sign of that inner product.
Building the Feature Map
The representation change is the central step. Construct a feature map ψ(x) whose coordinates contain all monomials of x up to degree r. The coefficients of the polynomial are collected into a vector w. With this representation, the polynomial can be written as the inner product 〈w, ψ(x)〉. Thus the same score that was written as p(x) can also be written as 〈w, ψ(x)〉.
A Degree-Two Walkthrough
Rewriting a Two-Variable Polynomial
For illustration, consider the degree-two polynomial p(x₁, x₂) = 3 + 2x₁ − x₂ + 4x₁² + 5x₁x₂. Rewrite its score using a feature map and a coefficient vector.
- 1List the monomials
For degree two, use the degree-zero, degree-one, and degree-two monomials appearing in the representation. One possible ordered feature map is ψ(x) = (1, x₁, x₂, x₁², x₁x₂, x₂²).
- 2Collect coefficients
Match each monomial with its coefficient. The coefficient of x₂² is zero because that monomial does not appear in the chosen polynomial. This gives w = (3, 2, −1, 4, 5, 0).
- 3Take the inner product
The inner product 〈w, ψ(x)〉 multiplies corresponding entries and adds them, reproducing 3 + 2x₁ − x₂ + 4x₁² + 5x₁x₂.
- 4Apply the sign
The classifier is sign(〈w, ψ(x)〉), which is the same classification rule as sign(p(x)).
The polynomial classifier can be represented as sign(p(x)) = sign(〈w, ψ(x)〉) for the displayed feature map and coefficient vector.
This example shows the two levels of the construction. The feature map determines which monomial coordinates are available. The vector w supplies the coefficients used to combine those coordinates. Changing the order of the coordinates would require changing the order of the entries in w, but the inner-product representation would express the same polynomial when the pairing remains consistent.
Lifting the Compression Problem
After applying ψ, the polynomial score has the linear form 〈w, ψ(x)〉. Therefore, the polynomial classifier can be viewed as a halfspace classifier on the transformed inputs ψ(x). The original input lives in Rd, while the transformed representation lives in a higher-dimensional space Rd′. The source states that d′ = O(dr).
This is a reduction, not a claim that the original polynomial is linear in its original coordinates. The polynomial becomes linear in the transformed coordinates supplied by ψ. Consequently, constructing a compression scheme for separating polynomials can be reduced to constructing a compression scheme for halfspaces in Rd′.
The Role of the Vector w
The vector w has a dual role. Algebraically, it is the coefficient vector that forms the inner product 〈w, ψ(x)〉. Geometrically, the source identifies w as the direction of the max-margin solution. Thus the direction selected by the max-margin viewpoint supplies the direction used by the linear representation in feature space.
When reading a proof or compression argument, identify w before focusing on the final classifier. It is both the coefficient vector in the inner product and the direction associated with the max-margin solution.
Common Representation Mistakes
Common mistake Treating ψ(x) as the original vector x.
What it looks likeWriting ψ(x) = x even though the polynomial has degree greater than one.
Why it failsThe feature map contains all monomials of x up to degree r, not just the original coordinates.
Do this insteadList the monomial coordinates required by the chosen degree before forming the inner product.
Common mistake Saying that p(x) is linear in the original input coordinates.
What it looks likeCalling a term such as x₁x₂ a linear term in x.
Why it failsThe polynomial may be nonlinear in x. It is represented as a linear inner product only after the input is changed to ψ(x).
Do this insteadSay that p(x) becomes a linear expression in the transformed feature coordinates.
Common mistake Forgetting the sign operation.
What it looks likeIdentifying 〈w, ψ(x)〉 itself as the classifier.
Why it failsThe inner product is the polynomial score. The separating polynomial function is sign(p(x)), equivalently sign(〈w, ψ(x)〉).
Do this insteadSeparate the score from the final sign-based decision.
Common mistake Confusing the coefficient vector with an arbitrary feature.
What it looks likeDescribing w as one of the monomials in ψ(x).
Why it failsThe monomials are coordinates of ψ(x), while w supplies the coefficients used in the inner product.
Do this insteadKeep the roles distinct: ψ(x) contains monomial features and w weights them.
Common mistake Claiming that the compression reduction stays in Rd.
What it looks likeApplying a halfspace compression result directly without changing the representation.
Why it failsThe reduction uses the lifted representation in Rd′, where d′ = O(dr).
Do this insteadTrack the dimension change created by the feature map.
Practice the Reduction
Suppose p is a degree-r polynomial on Rd. Explain, in three linked statements, how to turn sign(p(x)) into a halfspace decision. Then state what the source says about the dimension of the transformed space and identify the role of w.
Hints
- Begin by describing what ψ(x) contains.
- Write the polynomial score as an inner product.
- Finish by connecting the transformed problem to halfspaces and the max-margin direction.
A strong answer should include the sequence: ψ(x) contains all monomials up to degree r; p(x) is written as 〈w, ψ(x)〉; sign(p(x)) becomes sign(〈w, ψ(x)〉), a halfspace decision in Rd′; and d′ = O(dr). It should also state that w is the direction of the max-margin solution.
Key Takeaways
- 1A separating polynomial is a function of the form sign(p(x)), with p a degree-r polynomial on Rd.
- 2The feature map ψ(x) contains all monomials of x up to degree r.
- 3The polynomial score can be rewritten as the inner product 〈w, ψ(x)〉.
- 4This representation turns the polynomial classification problem into a halfspace problem in Rd′, where d′ = O(dr), so compression for the polynomial reduces to compression for halfspaces in the lifted space.
- 5The vector w is the coefficient vector in the inner-product representation and the direction of the max-margin solution.
At a glance
- Separating polynomials classify inputs using sign(p(x)) for a degree-r polynomial p.
- The feature map ψ(x) records all monomials up to degree r, allowing p(x) to be written as 〈w, ψ(x)〉.
- The transformed classifier is a halfspace classifier in a higher-dimensional space Rd′ with d′ = O(dr).
- Compression for separating polynomials can therefore be approached through compression for halfspaces in the lifted space.
- The vector w supplies the inner-product coefficients and points in the direction of the max-margin solution.