Interaction Matching for Long-Tail Multi-Label Classification.

Sean MacAvaney, Franck Dernoncourt, Walter Chang, Nazli Goharian, Ophir Frieder

TL;DR

This paper introduces "Interaction Matching," a novel method to improve multi-label text classification, especially for rare labels (the "long tail"). By matching natural language descriptions of labels with text content using soft n-gram matching, it significantly boosts performance on challenging tasks like medical coding and software tool identification, even for labels not seen during training.

What Problem Does This Paper Address?

Multi-label text classification, where a piece of text can have multiple labels assigned to it, is crucial for many applications like medical coding or categorizing software tutorials. Existing methods, while effective for common labels, struggle with "long-tail" labels – those that appear infrequently in training data. This leads to poor performance on these rare but potentially important labels, and these models often fail to identify labels that don't appear in the training set at all. This paper aims to bridge this gap by developing a method that can effectively identify and rank these infrequent labels.

Methods

The core of the paper's contribution is the "Interaction Matching" approach. It leverages the natural language descriptions often associated with labels (e.g., the description of a medical code). The method works by:

  1. Soft n-gram Interaction Matching: It creates a similarity matrix between tokens in the label's description and tokens in the document. Then, it applies square convolutional kernels (akin to image processing) over this matrix to capture "soft" n-gram interactions. This means it can find approximate matches, not just exact ones.
  2. Fixed Sequential Convolution: Unlike some information retrieval models, this approach uses a fixed, sequential convolution kernel, simplifying the process for multi-label classification.
  3. Max Pooling for Label Scores: To generate a final score for each label, the method uses max pooling over the interaction scores. This allows the soft n-grams to match anywhere in the document and makes the score robust to document length.
  4. Integration with Existing Models: The Interaction Matching method is designed to enhance existing multi-label classification models (like FastText, CNNs, and RNNs). It's trained jointly with these models, and the final label score is often a combination of the original model's score and the interaction matching score.

Datasets

The authors evaluate their approach on two challenging datasets:

  • MIMIC-III: A large, de-identified dataset of clinical reports. The task is to assign top-level ICD-9 codes (diagnoses and procedures) to patient discharge notes. This dataset contains 112k reports and 1,159 top-level ICD-9 codes, with an average of 7.6 codes per report.
  • Software Tutorial Dataset: A collection of sentences from online software tutorials, where the task is to label the tools used to accomplish a step. This dataset has 40k sentences and 831 tool labels, with an average of 1.2 tools per sentence.

Key Insights and Ideas

  • Leveraging Label Descriptions is Key: The paper highlights that the natural language descriptions of labels are a rich source of information that can be exploited for better classification, especially for infrequent labels.
  • Soft Matching for Robustness: The "soft" nature of the n-gram matching allows the model to find relevant terms even if they aren't exact matches, which is crucial for real-world text where phrasing can vary.
  • Long-Tail Performance Boost: The most significant improvements are seen for labels that appear infrequently in the training data, directly addressing the "long-tail" problem.
  • Handling Unseen Labels: The approach shows promise in identifying labels that might not have appeared in the training data at all, a significant limitation of many existing methods.

Key Results

  • Medical Coding: The Interaction Matching approach, when combined with the state-of-the-art CAML model, achieved a 3-5% relative improvement in macro-averaged F1 score. When combined with a weaker CNN baseline, it yielded an impressive 8-11% improvement. These gains were primarily for infrequent labels.
  • Software Tutorial Labeling: On the tutorial dataset, combining Interaction Matching with FastText led to a 6% relative improvement in average precision on the test set. This improvement was largely driven by better performance on less frequent labels, with a notable increase in perfect scores for these labels.

Limitations and Future Work

  • Dependence on Label Descriptions: The effectiveness of the approach relies on labels having meaningful natural language descriptions that can be matched to text. Labels without such descriptions might not benefit as much.
  • Potential for Lower Recall: In some cases, like with the bi-directional RNN on the medical coding task, the interaction matching improved precision but slightly decreased recall. This suggests a trade-off that might need careful tuning.
  • Future Work: The authors suggest that their method can be easily integrated with other classification techniques. They also note that the model's ability to incorporate new labels after training is a valuable feature for dynamic classification systems. Further exploration into how to handle general codes that are difficult to match even with advanced reasoning could be a future direction.

Summary updated

Abstract

We present an elegant and effective approach for addressing limitations in existing multi-label classification models by incorporating interaction matching, a concept shown to be useful for ad-hoc search result ranking. By performing soft n-gram interaction matching, we match labels with natural language descriptions (which are common to have in most multi-labeling tasks). Our approach can be used to enhance existing multi-label classification approaches, which are biased toward frequently-occurring labels. We evaluate our approach on two challenging tasks: automatic medical coding of clinical notes and automatic labeling of entities from software tutorial text. Our results show that our method can yield up to an 11% relative improvement in macro performance, with most of the gains stemming labels that appear infrequently in the training set (i.e., the long tail of labels).
BibTeX
@inproceedings{macavaney2020interaction,
  author = {Sean MacAvaney and Franck Dernoncourt and Walter Chang and Nazli Goharian and Ophir Frieder},
  title = {{Interaction Matching for Long-Tail Multi-Label Classification.}},
  booktitle = {National},
  year = {2020},
}

Loading related content...

Figure