Open Vocabulary Extreme Classification Using Generative Models

Daniel Simig, Fabio Petroni, Pouya Yanki, Kashyap Popat, Christina Du, Sebastian Riedel, Majid Yazdani · DOI

Introduction

Extreme Multi-label Classification (XMC) is a critical task in modern information retrieval and content management, involving the assignment of relevant labels to an object from a candidate pool of millions. Traditionally, XMC models have operated under a "closed-world" assumption, where the set of possible labels is fixed and pre-defined during training. However, real-world taxonomies are dynamic; new products emerge, and human curators constantly refine categories.

This paper, presented by researchers at Meta AI, introduces Open Vocabulary Extreme Multi-label Classification (OXMC). To address this, the authors propose GROOV (Generative Out-Of-Vocabulary), a generative framework designed to not only predict known labels but also to "invent" meaningful new labels that may be missing from existing taxonomies.

The Problem: The Static Taxonomy Constraint

Existing XMC models, including state-of-the-art zero-shot approaches, typically require the entire universe of possible labels to be known at training time. If a label does not exist in the pre-defined list, the model is structurally incapable of predicting it. This creates a significant gap in applications like Wikipedia tagging or e-commerce categorization, where the data often evolves faster than the underlying metadata structures. The authors argue that a truly robust model should be able to analyze a document and propose a label that should exist, even if it has never been seen by the system before.

Methodology: The GROOV Framework

GROOV is built upon a fine-tuned T5 encoder-decoder architecture. By treating labels as natural language strings (e.g., "eyebrow pencils") rather than arbitrary numerical IDs, the model leverages the semantic knowledge embedded in pre-trained language models. This allows the system to understand the conceptual meaning of a label, facilitating generalization to unseen terms.

Overcoming the "Set vs. Sequence" Problem

A primary challenge in using generative models for multi-label tasks is that labels constitute a set, whereas sequence-to-sequence (seq2seq) models produce tokens in a specific order. Standard training typically forces a model to learn a rigid, arbitrary sequence (such as alphabetical order). This can penalize the model for predicting a valid label "too early" in the sequence, leading to training inefficiencies and reduced performance.

To solve this, the authors introduced the Multi-Softmax Loss (MSM). Instead of enforcing a single correct token at each step, the MSM loss considers the entire set of "gold" labels that have not yet been generated. If the model predicts a token that could lead to any valid remaining label, it is not penalized. This allows the model to treat the output as a flexible set of sequences rather than a single, rigid string.

Experimental Setup and Datasets

The researchers evaluated GROOV across three major benchmarks to test its performance on both known and novel labels:

  1. EURLex-4.3K: A dataset of European Union legal documents.
  2. Wikipedia-1M: A large-scale dataset where many labels in the test set are absent from the training data.
  3. AmazonCat-OV: A novel dataset created for this research. The authors modified the standard AmazonCat13K by intentionally removing 1,000 labels from the training set to evaluate the model's ability to "re-discover" them during inference.

Key Results and Insights

Performance on Known and Novel Labels

GROOV demonstrated competitive performance against specialized state-of-the-art models like AttentionXML on standard XMC metrics for known labels. More importantly, it showed a unique capability for label discovery. On the AmazonCat-OV dataset, GROOV successfully re-invented nearly 24% of the labels that were completely hidden during the training phase.

Human Evaluation and "Sensible" Errors

Because XMC datasets are often under-annotated, many of the model's "false positives" were found to be qualitatively accurate. A manual review of 142 novel labels generated by GROOV revealed that 65% were sensible and 26% were both sensible and informative. In many cases, the model generated more granular or precise tags than the human-provided gold labels (e.g., identifying a specific product type where the human curator used a broader category).

Label Synthesis Strategies

Analysis showed that the model primarily uses a two-step strategy for novel labels: identifying a meaningful n-gram within the source text and converting it into a standardized label format (e.g., transforming the phrase "kitchen sink" in the text into the label "Kitchen Sinks"). While most novel labels were derived directly from the input, approximately 11% involved "creative synthesis," where the model composed information from different parts of the document.

Limitations and Future Directions

Despite its success, GROOV faces several challenges:

  • Precision Gaps: While the model can generate novel labels, the precision for these unseen tags remains lower than for known tags, with a notable rate of "hallucination" (generating plausible but irrelevant tags).
  • Inference Latency: As a generative model, GROOV is computationally more expensive at inference time than traditional sparse linear classifiers, which may impact its use in real-time, massive-scale deployments.
  • Creative Limits: The majority of novel labels are currently extractive rather than abstractive.

Conclusion

The introduction of OXMC and the GROOV model represents a shift toward more flexible, open-ended classification systems. By moving away from fixed taxonomies, these models can act as "taxonomist assistants," suggesting new, high-quality categories to human curators and ensuring that large-scale classification systems remain as dynamic as the data they organize.

Summary updated

BibTeX
@inproceedings{simig2022open,
  author = {Daniel Simig and Fabio Petroni and Pouya Yanki and Kashyap Popat and Christina Du and Sebastian Riedel and Majid Yazdani},
  title = {{Open Vocabulary Extreme Classification Using Generative Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.123},
}
Figure