NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning convex polytopes with margin

Lee-Ad Gottlieb, Eran Kaufman, Aryeh Kontorovich, Gabriel Nivasch

In the realm of machine learning theory, the "margin" is a foundational concept. It provides the "breathing room" between data classes that makes linear classification—such as Support Vector Machines (SVMs)—robust and computationally tractable. But what happens when the decision boundary isn't a simple flat plane, but a complex, multi-faceted convex shape?

In their NeurIPS 2018 paper, Gottlieb et al. tackle the challenge of learning convex polytopes—shapes formed by the intersection of multiple halfspaces—from data that possesses a margin. They present a novel algorithm that learns convex polytopes in polynomial time relative to the number of facets ($t$), bridging the gap between "proper" learning (finding the exact shape) and "improper" learning (finding a messy approximation).

The Challenge of Learning Polytopes

Learning a single halfspace (a hyperplane) is a well-understood and solved problem. However, as soon as the task shifts to learning an intersection of just two halfspaces, the problem becomes NP-hard. In the standard PAC (Probably Approximately Correct) learning framework, learning an intersection of $n^\epsilon$ halfspaces is generally considered computationally intractable.

The saving grace in many geometric learning problems is the margin assumption: the premise that positive and negative examples are separated by some distinct distance $\gamma$. While previous research demonstrated that a margin makes learning polytopes theoretically possible, existing algorithms suffered from two major flaws:

  1. Exponentially slow runtimes in terms of the number of facets ($t$) or the margin ($\gamma$).
  2. Improper learning outputs, meaning they produced a complex function that didn't actually resemble a polytope, leading to poor sample efficiency.

Gottlieb et al. sought an algorithm that is both fast (polynomial in $t$) and produces a hypothesis that is "nearly" a polytope, keeping sample complexity low.

Methodology

The authors employ a multi-stage algorithmic strategy to bypass traditional computational bottlenecks:

  1. Dimension Reduction: They utilize the Johnson-Lindenstrauss (JL) transform to project high-dimensional data into a lower-dimensional space ($O(\gamma^{-2} \log n)$). Crucially, they prove that this projection preserves the distances to hyperplanes, thereby maintaining the margin.
  2. $\delta$-Nets: To avoid searching an infinite space of possible hyperplane orientations, they use a "net" of unit vectors. This discretizes the search space into a manageable set of candidate directions.
  3. The Greedy Relaxation: Instead of attempting to find the absolute best $t$ halfspaces (which is NP-hard), they use a greedy approach. They iteratively select a halfspace from their $\delta$-net that correctly classifies a significant portion of the remaining negative points while remaining consistent with all positive points.

Key Theoretical Insights

The "Envelope" vs. "Margin" Distinction

Comparison of the $\gamma$-envelope and $\gamma$-margin of a polytope

A major theoretical contribution of the paper is distinguishing between two geometric concepts: the traditional margin and the envelope. The traditional margin of a polytope is defined as the intersection of the margins of its individual facets, which can create sharp, extended corners. In contrast, the $\gamma$-envelope consists of all points strictly within a distance $\gamma$ of the polytope's boundary, resulting in rounded corners.

The authors prove a surprising link: in a unit ball, a $(\gamma^2/2)$-margin is always contained within a $\gamma$-envelope. This geometric translation allows them to apply margin-based algorithms to envelope-based problems seamlessly.

Trading Facets for Speed

The algorithmic breakthrough comes from relaxing the strictness of the output. The authors realized that if the learner is allowed to output a polytope with $O(t \log n)$ facets instead of exactly $t$, the problem shifts from NP-hard to polynomial time. They justify this with a new hardness-of-approximation proof, showing that an exponential dependence on $t\gamma^{-2}$ is unavoidable if one insists on finding a polytope with exactly $t$ facets.

Key Results

  • Improved Runtime: The proposed algorithm constructs a consistent polytope in $m^{O(1/\gamma^2)}$ time, where $m$ is the sample size. This is a massive improvement over previous work that scaled exponentially with $t$.
  • Sample Complexity: The approach achieves a polynomial sample complexity of $m = \tilde{O}(t/\gamma^2)$. This is significantly more efficient than previous "improper" learning methods that suffered from exponential dependencies in their sample bounds.
  • VC-Dimension Bounds: The authors provide tight bounds on the VC-dimension of "fat" polytopes (polytopes with a margin), establishing the definitive metric for determining how much data is needed to learn these concepts.

Limitations and Future Work

While a significant step forward, the research operates within specific constraints:

  • Realizable Setting: The paper focuses on the "realizable" case, assuming a perfect separating polytope exists. Extending these efficient runtimes to the agnostic setting (where data is noisy and no perfect separator exists) remains an open challenge.
  • Facet Inflation: The algorithm achieves its speed by producing a polytope with $O(t \log n)$ facets. In applications where a strictly sparse model (minimal $t$) is required for interpretability or hardware constraints, this "facet inflation" could be a drawback.
  • Unit Ball Constraint: Several geometric results relating envelopes to margins rely on the data being confined to a unit ball, an assumption that may require normalization steps for real-world data.

Reference: Gottlieb, L. A., Kaufman, E., Kontorovich, A., & Nivasch, G. (2018). Learning convex polytopes with margin. 32nd Conference on Neural Information Processing Systems (NeurIPS 2018).

Summary updated

BibTeX
@inproceedings{gottlieb2018learning,
  author = {Lee-Ad Gottlieb and Eran Kaufman and Aryeh Kontorovich and Gabriel Nivasch},
  title = {{Learning convex polytopes with margin}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=SkbXd_ZdZr},
}
Figure