Simple Classification Using Binary Data

Deanna Needell, Rayan Saab, Tina Woolf

TL;DR

This paper introduces an extremely lightweight, non-iterative classification framework designed to work directly on 1-bit (binary) compressed measurements—the signs of random linear projections ($q = \text{sign}(Ax)$). By tallying how classes fall across random hyperplane intersections across multiple "levels," the method classifies non-linearly separable data with minimal computation and no parameter tuning, backed by provable exponential convergence guarantees in a 2D setting.

What Problem Does This Paper Address?

In power-constrained edge devices, sensor networks, and fast hardware converters (such as 1-bit Sigma-Delta ADCs), acquiring full high-precision measurements is costly. Often, signals are heavily compressed and quantized down to a single bit per measurement: merely whether the measurement fell above or below zero.

While classical compressed sensing focuses on reconstructing signals from such 1-bit data, real-world tasks often only require classification. Standard techniques struggle here: Support Vector Machines (SVMs) fail when data is not linearly separable unless an appropriate kernel is manually selected, and deep neural networks require substantial computation, parameter tuning, and energy. The authors set out to answer: Can we accurately classify complex, non-linearly separable data directly from low-dimensional binary sign patterns using simple, fast operations?

Methods

The authors propose a two-phase, multi-level geometric classification scheme:

  1. Random Hyperplane Embeddings: A signal $x \in \mathbb{R}^n$ is projected onto $m$ random hyperplanes via $A \in \mathbb{R}^{m \times n}$ (either i.i.d. Gaussian or structured fast transforms like subsampled 2D Discrete Cosine Transforms) to yield binary measurements $Q = \text{sign}(AX) \in \{\pm 1\}^{m \times p}$.
  2. Multi-Level Sign Pattern Scoring (Training):
  3. The algorithm runs across $L$ "levels." At level $\ell$, it draws subsets of $\ell$ hyperplanes $\Lambda_{\ell, i}$.
  4. The combinations of hyperplane orientations partition space into up to $2^\ell$ distinct sign patterns (cells).
  5. For each cell, it calculates a membership index $r(\ell, i, t, g)$, measuring both the proportion of class $g$ inside that cell and a balancing weight that penalizes ambiguous, evenly mixed regions while rewarding cells dominated by a single class.
  6. Voting / Accumulation (Inference):
  7. Given an unlabeled binary vector $q = \text{sign}(Ax)$, the algorithm determines its sign pattern index across all sampled subsets at each level.
  8. It accumulates the corresponding precomputed membership scores $\tilde{r}(g)$ for each class $g$.
  9. The predicted label is simply $\hat{b}_x = \text{argmax}_g \, \tilde{r}(g)$.

Datasets

The authors evaluated the method across synthetic and real-world benchmarks:

  • Synthetic 2D Gaussian Clouds: Stylized multi-cluster datasets in $\mathbb{R}^2$ with complex, non-linearly separable geometric arrangements (up to 8 Gaussian clouds and 2 to 4 classes).
  • MNIST Benchmark: Handwritten digit classification ($28 \times 28$ images, $n = 784$). Tested on pairwise tasks ("0" vs. "1", "0" vs. "5") and the full 10-class problem (using up to 5,000 training images per digit).
  • Extended YaleB Database: Facial recognition under extreme illumination variations ($32 \times 32$ cropped images, $n = 1024$), tested on 4 distinct subjects across varying lighting conditions.

Key Insights and Ideas

  • Geometry via Hyperplane Tessellations: Rather than learning boundary weights via gradient descent, the algorithm relies on the fact that random hyperplanes naturally dice the feature space into fine polyhedral cells. Dominant classes within each cell provide classification signal.
  • Multi-Level Hierarchy without Neural Architecture: Lower levels ($\ell = 1, 2$) capture broad global separations cheaply, while higher levels ($\ell > 2$) capture fine, localized clusters and complex cluster topologies.
  • Provable Guarantees from Combinatorics: For two disjoint conical classes in $\mathbb{R}^2$ with identical angular densities, the authors theoretically bounded the classification error. Under natural geometric separation conditions, the probability of correct classification converges to 1 exponentially fast as the number of random hyperplanes $m \to \infty$ ($P[\hat{b}_x = 1] \ge 1 - C e^{-c m}$).
  • Structured Matrices Work Just as Well: Replacing dense Gaussian projection matrices with subsampled 2D Discrete Cosine Transforms (DCT) with random column sign flips yields nearly identical empirical accuracy while cutting acquisition cost down to $O(n \log n)$.

Key Results

  • Full 10-Class MNIST: With $L = 18$ levels and 5,000 training points per class, the method achieved $>90\%$ accuracy using just $m = 200$ binary measurements—substantially fewer than the original signal dimension ($n = 784$).
  • Facial Recognition (YaleB): Achieved $>90\%$ correct classification with $m \ge 150$ binary projections for images of dimension $n = 1024$ using $L = 4$ levels.
  • MNIST Digits "0" vs. "1": Achieved near-perfect ($>98\%$) accuracy using a single level ($L=1$) and as few as $m = 40$ binary measurements.

Limitations and Future Work

  • Centering Around the Origin: The current derivation assumes the data is centered around the origin ($\mu = 0$) so that hyperplanes passing through zero divide the data effectively. Uncentered data requires pre-processing or the addition of affine dither thresholds ($\tau \in \mathbb{R}^m$).
  • Theoretical Scope: The rigorous proof is currently limited to 2D data, two classes, a single level ($\ell = 1$), and uniform angular distributions. Extending this proof to higher dimensions, multi-class settings, and multiple levels remains open.
  • Memory Scaling at Deep Levels: While only observed patterns need to be stored, combinatorial scaling at very high levels $\ell$ could pose storage bottlenecks if not appropriately pruned.

Summary updated

BibTeX
@article{needell2018simple,
  author = {Deanna Needell and Rayan Saab and Tina Woolf},
  title = {{Simple Classification Using Binary Data}},
  journal = {J. Mach. Learn. Res.},
  year = {2018},
  url = {https://openreview.net/forum?id=lNE5J5P5SZq},
}
Figure