Parity Partition Coding for Sharp Multi-Label Classification

Christopher G. Blake, Giuseppe Castiglione, Christopher Srinivasa, Marcus A. BrubakerarXiv 2019

Multi-label classification—the task of identifying multiple attributes within a single image—is a cornerstone of modern computer vision. However, as the number of attributes ($K$) increases, the complexity of the label space grows exponentially ($2^K$). Traditional approaches often rely on training $K$ independent binary classifiers, which are prone to error propagation: a single misclassification in one attribute can render the entire predicted category incorrect.

This paper introduces Parity Partition Coding (PPC), a novel framework that treats image classification as a communication problem over a noisy channel. By applying error-correcting codes to label sets, the authors achieve higher accuracy and "sharpness"—consistent performance across all possible attribute combinations—with significantly fewer parameters than traditional ensemble methods.

Classification as a Communication Problem

The fundamental insight of this work is viewing the entire classification pipeline through the lens of information theory. The authors model the image generator and the subsequent classifier as a Binary Asymmetric Channel (BAC). In this framework, the ground-truth attributes represent the original message, while the classifier's inherent uncertainty acts as channel noise.

The proposed framework treats the classification process as a communication system, mapping the image generation and classification pipeline to a Binary Asymmetric Channel.

By adopting this perspective, the researchers can leverage Shannon’s coding theorems. They demonstrate that parity coding offers an $O(K)$ improvement in efficiency for reaching a target accuracy compared to simple repetition (standard ensembling). To ensure robust error correction, the authors use "Targeted Bagging," training different parity checks on distinct data splits to decorrelate errors across the classifier ensemble.

Methodology: Parity Partition Coding (PPC)

The PPC method moves beyond simple binary labels by introducing Parity Attributes. Instead of just predicting "Male" or "Smiling," the model is trained to recognize derived attributes, such as "Male XOR Smiling." These derived attributes function like parity bits in digital communication; if a primary attribute classifier fails, the parity bit provides the necessary redundancy to correct the error during decoding.

Overcoming the XOR Challenge

Learning XOR functions is historically difficult for standard neural network layers because XOR is not linearly separable. To address this, the authors implement a Quadratic Feature Transformation—an outer product of features—prior to the final classification layer. This architectural adjustment makes parity functions significantly easier for the model to learn, reducing training time by over 50% while improving convergence.

Experimental Evaluation

The authors evaluated PPC on two distinct benchmarks:

  1. MultiMNIST: A synthetic dataset where multiple MNIST digits are randomly placed in a single frame. The model must identify which of the 10 possible digits are present.
  2. CelebA: A real-world dataset of celebrity facial attributes, focusing on a 10-attribute template (e.g., "Gray hair," "Bald," "Eyeglasses").
Examples from the MultiMNIST dataset, where the task is to identify all digits present in a cluttered, randomly generated image.

Key Results

  • Superior Accuracy: On MultiMNIST, PPC achieved an F1-score of 0.847, outperforming the "Identity" baseline (0.736) and the "Repetition" ensemble (0.800).
  • Improved Sharpness: The authors define "sharpness" as the fraction of all possible attribute combinations classified accurately. In MultiMNIST, PPC ensured 74% of all possible digit combinations were accurate, compared to 64% for the repetition baseline.
  • CelebA Performance: PPC achieved a higher F1-score (0.732) and lower Hamming distance (0.308) than baselines, setting new state-of-the-art results for 8 out of the 10 tested attributes.

Limitations and Future Directions

While PPC shows significant promise, it currently assumes attribute independence. In real-world datasets like CelebA, attributes are often correlated (e.g., "Heavy Makeup" and "Male"), which may diminish the theoretical gains of parity coding. Furthermore, while the quadratic transformation mitigates training difficulty, it increases architectural complexity. Future research will focus on scaling this approach to hundreds or thousands of labels, where the decoding process—finding the "closest" valid attribute string—may present a computational bottleneck.

Summary updated

BibTeX
@misc{blake2019parity,
  author = {Christopher G. Blake and Giuseppe Castiglione and Christopher Srinivasa and Marcus A. Brubaker},
  title = {{Parity Partition Coding for Sharp Multi-Label Classification}},
  year = {2019},
  eprint = {1908.09651},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.09651},
}
Figure