Hierarchical Classification Using Binary Data

Denali Molitor, Deanna Needell · DOI

Introduction

In many real-world classification tasks, data naturally follows a hierarchical structure. For instance, distinguishing between broad categories like "animals" and "vehicles" is generally simpler than distinguishing between specific sub-classes like "Labradors" and "Golden Retrievers." Despite this, standard "flat" classification models often ignore these relationships, applying the same level of computational rigor to every decision regardless of its inherent difficulty.

This paper introduces a hierarchical adaptation of the Simple Classification Scheme (SCB). By structuring the classification process as a tree and utilizing lower-complexity models for broad distinctions, the authors achieve significant computational speedups using only binary representations of data (1-bit measurements) without sacrificing accuracy.

Methodology: Adaptive Binary Classification

The foundation of this work is the Simple Classification Scheme (SCB), which operates in two main steps:

  1. Binary Projection: High-dimensional data $X$ is projected onto random hyperplanes, and only the sign is retained ($Q = \text{sign}(AX)$), creating a memory-efficient 1-bit representation.
  2. Hyperplane Tuples: To handle non-linearly separable data, the algorithm analyzes $l$-tuples of hyperplanes. While increasing the "level" (number of hyperplanes in a tuple) improves accuracy, it also causes computational costs (FLOPs) to grow exponentially.

The Hierarchical Innovation

Instead of a flat multiclass approach, the authors propose a tree-based structure that employs Adaptive Complexity. At the root of the tree, the model uses a low level (fewer hyperplane combinations) to make easy, broad distinctions. Data points are only passed to more computationally intensive branches when a finer, "harder" distinction is required. Crucially, the initial random projections are reused across different nodes of the tree, minimizing overhead.

Hierarchical tree structure for 2D synthetic data classification, separating isolated clusters from more complex groups.

Experimental Evaluation and Results

The authors evaluated the hierarchical SCB against a flat multiclass baseline using synthetic datasets and the MNIST handwritten digit database.

Synthetic Data Performance

In 2D and 3D synthetic tests, the hierarchical approach demonstrated a clear advantage. For a 2D dataset featuring two spatially isolated clusters (red and yellow) and four clustered in an arc, the hierarchical model quickly identified the isolated groups using low-level tuples, reserving high-level "computational sledgehammers" for the arc-shaped distribution.

2D synthetic data distribution (left) and accuracy vs. total testing FLOPs (right), showing the hierarchical method reaching peak accuracy faster than flat classification.

MNIST Results

When applied to digits 1 through 5 of the MNIST dataset, the hierarchical approach achieved a ~20% reduction in total testing FLOPs. The model successfully identified the digit "1"—which is statistically easier to distinguish—using only 5 levels, while utilizing up to 10 levels for more similar digits like 2 through 5. In all tests, the hierarchical method matched or slightly exceeded the accuracy of the flat model, proving that efficiency does not necessitate a performance trade-off.

Insights and Future Directions

The primary strength of this approach lies in Efficiency through Imbalance. The strategy is most effective when the classification tree is imbalanced regarding difficulty, allowing the model to "prune" the search space early for easy classes. Furthermore, the use of 1-bit binary data is inherently optimized for modern hardware and storage.

However, challenges remain, particularly regarding Error Propagation. In a hierarchical model, a misclassification at the root node cannot be corrected by lower nodes. Future work will focus on mitigating these downstream errors and developing algorithms to automatically discover the most efficient tree structures from data confusion matrices, rather than relying on predefined hierarchies.

Summary updated

BibTeX
@article{molitor2019hierarchical,
  author = {Denali Molitor and Deanna Needell},
  title = {{Hierarchical Classification Using Binary Data}},
  journal = {AI Mag.},
  year = {2019},
  doi = {10.1609/aimag.v40i2.2846},
}
Figure