Recurrent Bayesian Classifier Chains for Exact Multi-Label Classification

Walter Gerych, Thomas Hartvigsen, Luke Buquicchio, Emmanuel Agu, Elke A. Rundensteiner

TL;DR

Recurrent Bayesian Classifier Chains (RBCC) improve "exact" multi-label classification by replacing arbitrary label orderings with a principled Bayesian network. By conditioning label predictions only on their direct "parents" in a learned dependency graph, RBCC reduces noise and mitigates cascading errors, consistently outperforming state-of-the-art methods in subset accuracy.

The Challenge of Exact Multi-Label Classification

In many real-world scenarios, multi-label classification isn't just about getting most labels right—it’s about getting the entire set exactly correct. This is known as Exact Multi-Label Classification (E-MLC). For instance, in medical diagnosis, missing a single symptom like "loss of taste" might lead a model to misdiagnose COVID-19 as a common cold.

The standard approach to capturing dependencies between labels is the Classifier Chain (CC), where labels are predicted one by one, each conditioned on the previous ones. However, standard CCs and their recurrent versions (RCCs) face two major hurdles:

  1. Arbitrary Ordering: Most models use an ad hoc order (e.g., most frequent to rarest), which may not reflect actual causal or logical dependencies between the labels.
  2. Noisy Conditioning: Recurrent versions of these chains typically condition a prediction on all previously predicted labels. If a label is actually independent of most others, this "kitchen sink" approach introduces noise and leads to "cascading errors," where one early mistake dooms the entire sequence.
Comparison of Recurrent Classifier Chains and Recurrent Bayesian Classifier Chains

The RBCC Approach

To solve these issues, the authors propose Recurrent Bayesian Classifier Chains (RBCC). Instead of relying on an arbitrary sequence, RBCC breaks the classification process into three distinct, structured steps:

1. Inter-class Dependency Network

Instead of guessing an order, the model learns a Bayesian network (a Directed Acyclic Graph) of label dependencies. Crucially, it fits this network to the residuals of the classes—the part of the label variance that the input features cannot explain. This ensures the graph captures true inter-label relationships rather than shared feature dependencies.

2. Recurrent Conditional Dependency Model

This component uses a Gated Recurrent Unit (GRU) to create a latent representation of the input features $x$ and the observed values of a label's parent nodes in the Bayesian network. By only looking at direct parents, the model enforces sparsity and ignores irrelevant labels.

3. Bayesian-Conditioning Classifier

A feed-forward network takes the GRU's output and predicts the probability of the current label. Unlike standard RNN-based classifiers that predict a continuous sequence and carry hidden states forward indefinitely, RBCC resets its hidden state for each class. It performs a "many-to-one" prediction to ensure it only conditions on relevant parents. For inference, the model uses a recursive algorithm to ensure parents are always predicted before their children in the graph.

Key Insights

  • The Power of Sparsity: The core "aha moment" is that conditioning on fewer things can lead to better results. By using the Bayesian network to ignore independent labels, the model avoids the noise that plagues standard recurrent chains.
  • Residual-Based Graph Learning: You cannot simply build a graph on raw labels, because labels might appear correlated simply because they both depend on the same input feature. By training on residuals, RBCC isolates the actual interaction between labels.
  • Mitigating Cascading Errors: Because the model only looks at parents, a mistake in a "cousin" or "unrelated" branch of the label tree doesn't propagate to the current prediction.

Experimental Results

The model was evaluated on three standard multi-label benchmarks: PASCAL VOC 2007 (natural images), Scene (scenery images), and Yelp (business reviews). RBCC was compared against five state-of-the-art methods, including standard Recurrent Classifier Chains (RCC) and Order-Free RCCs (OF-RCC).

Across all datasets, RBCC achieved the highest subset accuracy (the primary metric for E-MLC):

  • Yelp: 0.240 (RBCC) vs. 0.212 (RCC)
  • Scene: 0.653 (RBCC) vs. 0.610 (OF-RCC)
  • PASCAL VOC: 0.594 (RBCC) vs. 0.581 (BCC)

Furthermore, the authors tested different graph-learning algorithms (Hill Climbing, Constraint-Based, and Chow-Liu) and found that RBCC is remarkably robust. While Hill Climbing performed slightly better for subset accuracy, the choice of algorithm didn't drastically change the overall success of the method.

Limitations and Future Work

While RBCC represents a significant step forward, challenges remain in the E-MLC space:

  • The "Needle in a Haystack" Problem: As the number of possible labels ($L$) grows, the number of possible label sets grows exponentially ($2^L$). Predicting the exact set becomes significantly harder as the label space expands.
  • Greedy Inference: The current model uses a greedy search for the most likely label set. More sophisticated search strategies, like A* search or $\epsilon$-approximate search, could potentially yield even better results at the cost of computational complexity.
  • Scalability of Graph Learning: Learning the structure of a Bayesian network is NP-hard. While the heuristics used here work well for dozens of labels, extremely high-dimensional label spaces might require more efficient structure-learning techniques.

Summary updated

BibTeX
@inproceedings{gerych2021recurrent,
  author = {Walter Gerych and Thomas Hartvigsen and Luke Buquicchio and Emmanuel Agu and Elke A. Rundensteiner},
  title = {{Recurrent Bayesian Classifier Chains for Exact Multi-Label Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure