Skip to main content
QUICK REVIEW

[Paper Review] Neural Message Passing for Multi-Label Classification

Jack Lanchantin, Arshdeep Sekhon|arXiv (Cornell University)|Apr 17, 2019
Text and Document Classification TechnologiesComputer Science48 references5 citations
TL;DR

This paper proposes Label Message Passing (LaMP) Neural Networks, a novel attention-based message passing framework that models joint label dependencies in multi-label classification by treating labels as nodes on a fully connected graph. By iteratively updating label representations through feature-to-label and label-to-label message passing with self-attention, LaMP achieves state-of-the-art performance across seven datasets while enabling interpretable, parallelizable, and structure-agnostic predictions for dense label sets.

ABSTRACT

Multi-label classification (MLC) is the task of assigning a set of target labels for a given sample. Modeling the combinatorial label interactions in MLC has been a long-haul challenge. We propose Label Message Passing (LaMP) Neural Networks to efficiently model the joint prediction of multiple labels. LaMP treats labels as nodes on a label-interaction graph and computes the hidden representation of each label node conditioned on the input using attention-based neural message passing. Attention enables LaMP to assign different importance to neighbor nodes per label, learning how labels interact (implicitly). The proposed models are simple, accurate, interpretable, structure-agnostic, and applicable for predicting dense labels since LaMP is incredibly parallelizable. We validate the benefits of LaMP on seven real-world MLC datasets, covering a broad spectrum of input/output types and outperforming the state-of-the-art results. Notably, LaMP enables intuitive interpretation of how classifying each label depends on the elements of a sample and at the same time rely on its interaction with other labels. We provide our code and datasets at https://github.com/QData/LaMP

Motivation & Objective

  • To address the challenge of modeling combinatorial label interactions in multi-label classification (MLC), which is NP-hard and often ignored by existing methods.
  • To develop a method that jointly models label dependencies conditioned on input features, enabling accurate and scalable predictions for dense label sets.
  • To create a model that is interpretable, parallelizable, and applicable to diverse input and output data structures without requiring predefined label interaction structures.
  • To overcome the limitations of sequential models like RNN-based classifier chains, which suffer from error propagation and poor scalability in dense label settings.
  • To enable intuitive visualization of label-to-feature and label-to-label dependencies through attention mechanisms for model interpretability.

Proposed method

  • LaMP treats labels as nodes in a fully connected label-interaction graph and uses neural message passing to update each label's hidden representation based on input features and neighboring labels.
  • The model employs multi-head self-attention to dynamically assign importance to neighboring labels during message passing, learning conditional label dependencies per input.
  • Feature-to-Label message passing updates label representations by attending over input features, while Label-to-Label message passing refines them by attending over other label states.
  • The final prediction is generated via a readout function applied to the final label embedding states after multiple message passing steps.
  • The method supports both structure-agnostic learning (fully connected graph) and structure-aware learning (when a known label graph is provided), with attention restricted to known neighbors.
  • The architecture is fully differentiable and end-to-end trainable, enabling parallel training and inference, unlike sequential models such as RNN-based classifier chains.

Experimental results

Research questions

  • RQ1Can attention-based neural message passing be effectively extended to model joint representations of output labels in multi-label classification?
  • RQ2Can such a method achieve state-of-the-art performance while remaining interpretable and scalable for dense label sets?
  • RQ3How do label-to-label and label-to-feature attention mechanisms contribute to improved prediction accuracy and model interpretability?
  • RQ4To what extent does LaMP outperform sequential models like RNN Seq2Seq in terms of accuracy and inference speed?
  • RQ5Can the model automatically learn conditional label dependency structures from data without requiring prior knowledge of the label graph?

Key findings

  • LaMP achieves state-of-the-art or competitive performance across five evaluation metrics on seven real-world multi-label classification datasets, including text, image, tabular, and molecular data.
  • On the SIDER dataset, LaMP achieved a 21x speedup during testing compared to RNN Seq2Seq, which relies on beam search for inference.
  • The model demonstrated a 4.2x speedup on the TFBS dataset during testing, highlighting its scalability and parallelizability.
  • Visualizations revealed that labels such as 'web design', 'design', and 'html' significantly increased in predicted confidence after label-to-label message passing, indicating learned dependencies.
  • Attention weights showed that the 'web design' label attended to features like 'pick', 'smart', and 'version' during initial feature-to-label updates, explaining early prediction patterns.
  • The model successfully captured higher-order label interactions in later message passing steps, with attention patterns in the second step reflecting complex label dependencies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.