On the Perceptron's Compression

Shay Moran, Ido Nachum, Itai Panasoff, Amir Yehudayoff

Introduction

The Perceptron algorithm stands as one of the foundational pillars of machine learning. Despite its age, its properties continue to yield profound insights into the nature of learning and geometry. In "On the Perceptron’s Compression," the authors revisit this classic algorithm through the lens of "sample compression"—the principle that a model's state can be entirely defined by a small, informative subset of the training data. By leveraging this property, the paper introduces new algorithmic variants that achieve near-optimal margins without prior knowledge of data scale, simplifies complex proofs in learning theory, and provides empirical evidence for the efficacy of margin-based training in neural networks.

The Problem: Beyond Simple Separability

The classic Perceptron is a "lazy" learner. While it is guaranteed to find a separating hyperplane for linearly separable data, it does not prioritize the margin—the distance between the decision boundary and the nearest data points. In contrast, Support Vector Machines (SVMs) explicitly maximize this margin to improve generalization.

Existing Perceptron variants that attempt to improve the margin often suffer from two limitations: they require prior knowledge of the data's maximum norm ($R$), or they are not "online," requiring access to the entire dataset simultaneously. This research seeks to bridge the gap, maintaining the Perceptron's simplicity and online nature while achieving the performance characteristics of large-margin classifiers.

Algorithmic Innovations

The authors propose two primary modifications to the standard Perceptron update rule to address these limitations:

1. The $R$-Independent Perceptron (Algorithm 3)

Traditional margin-enforcing Perceptrons require a fixed margin parameter $\beta$ that depends on the radius $R$ of the data. Algorithm 3 removes this requirement by adaptively updating $\beta$ based on the points encountered during training. This version is proven to guarantee a margin of at least $\epsilon^*/3$, where $\epsilon^*$ is the optimal margin, without ever needing to know the scale of the input space beforehand.

2. The $\infty$-Perceptron (Algorithm 4)

To push the margin closer to the theoretical optimum, the authors introduce a time-dependent $\beta$ that increases as the algorithm progresses. By tuning a growth parameter $\alpha$, this variant can achieve a margin within $(1-\delta)$ of $\epsilon^*$. While this comes at the cost of increased computational iterations, it allows the Perceptron to asymptotically approach the performance of a hard-margin SVM.

Theoretical Framework: Compression and Geometry

The core of the paper’s theoretical contribution is the Sample Compression Framework. Because the Perceptron only updates its weight vector when it makes a mistake, the final model is essentially a "summary" of the most difficult examples in the dataset.

This perspective leads to several key insights:

  • Sparse Separation Lemma: The authors prove that any two convex sets can be separated by a hyperplane whose normal vector is "sparse," meaning it is a linear combination of only a few representative points from the sets.
  • Simplified Generalization Bounds: Using compression limits, the authors derive generalization bounds that are often more intuitive and easier to prove than those relying on Rademacher complexity. They show that the number of possible $\epsilon$-separated partitions of $n$ points is bounded by $(2(n+1))^{1/\epsilon^2}$.
  • Dimension Reduction: The compression property implies that a single random projection (such as Johnson-Lindenstrauss) can preserve all possible well-separated classifications of a dataset simultaneously.

Experimental Results on MNIST

To test these theoretical ideas in a practical setting, the authors applied adaptive margin parameters to a simple Multi-Layer Perceptron (MLP) with one hidden layer (300–800 neurons) on the MNIST dataset.

They found that using a time-dependent $\beta$—inspired by the $\infty$-Perceptron—significantly improved performance. This approach achieved a 1.35% test error, notably outperforming the standard cross-entropy loss (1.6%) and a fixed margin requirement of $\beta=1$ (1.5%). These results provide a formal justification for the use of hinge loss in training individual neurons, as the $\beta=1$ case is mathematically equivalent to the hinge loss gradient.

Conclusion and Future Work

"On the Perceptron’s Compression" demonstrates that the oldest tricks in the machine learning book still have much to teach us. By focusing on the compression property, the authors unify various geometric and learning-theoretic results while providing practical algorithmic improvements.

While the current work focuses largely on linearly separable data and shallow architectures, it opens several avenues for future research. The trade-off between margin quality and training speed in Algorithm 4 suggests a need for more efficient optimization paths. Furthermore, extending the concept of "internal clocks" (adaptive $\beta$ per neuron) to deep, modern architectures could potentially offer a robust alternative to standard loss functions in complex visual and linguistic tasks.

Summary updated

BibTeX
@inproceedings{moran2020perceptron,
  author = {Shay Moran and Ido Nachum and Itai Panasoff and Amir Yehudayoff},
  title = {{On the Perceptron's Compression}},
  booktitle = {CiE},
  year = {2020},
  doi = {10.1007/978-3-030-51466-2\_29},
}
Figure