Extreme Multi-label Completion for Semantic Document Labelling with Taxonomy-Aware Parallel Learning

Julien Audiffren, Christophe Broillet, Ljiljana Dolamic, Philippe Cudré-MaurouxarXiv 2024

TL;DR

TAMLEC is a novel framework for Extreme Multi-label Completion (XMLCo) that accurately predicts missing document labels by modeling taxonomies as flexible "Weak-Semilattices" rather than rigid trees. By breaking down massive label spaces into distinct, taxonomy-aware tasks and using a shared-transformer architecture with task-specific generators, TAMLEC outperforms state-of-the-art methods and excels at few-shot learning without forgetting previously learned concepts.

What Problem Does This Paper Address?

In the era of massive text corpora, automated document labeling is essential for search, discovery, and categorization. This paper tackles Extreme Multi-label Completion (XMLCo), where the goal is to fill in missing tags for a document from a pool of tens or hundreds of thousands of possible labels.

XMLCo faces two massive hurdles:

  1. The Scale Problem: The sheer volume of labels makes traditional classification algorithms impractical.
  2. The Scarcity Problem: Most labels have very few training examples.

While existing state-of-the-art methods leverage hierarchical taxonomies (like predicting paths from general categories to specific subcategories) to handle scale, they almost universally assume the taxonomy is structured as a strict tree. In reality, real-world concepts often have multiple parents—for instance, "Large Language Models (LLMs)" falls under both "Natural Language Processing" and "Machine Learning". Forcing these networks into a tree structure discards vital semantic relationships and limits performance.

Methods

The authors introduce TAMLEC (Taxonomy-Aware Multi-task Learning for Extreme multi-label Completion), which introduces three core innovations:

  • Weak-Semilattice Modeling: Instead of a tree, TAMLEC models the taxonomy as a Weak-Semilattice, naturally accommodating labels with multiple parents. Toy taxonomy represented as a Weak-Semilattice
Figure 1: Example of a toy taxonomy of scientific labels. An arrow from ℓ1 to ℓ2 represents ℓ1 ≤ℓ2. This taxonomy can be represented with a Weak-Semilattice, and not with a tree, as the label “LLMs” has multiple parents.
  • Taxonomy-Aware Tasks (TATs): The massive label space is mathematically partitioned into smaller, overlapping sub-tasks (TATs) based on the taxonomy's paths. This decomposition significantly improves the document-to-label ratio, mitigating data scarcity. Example of TAT decomposition
Figure 2: Example of a Weak Semilattice taxonomy with a Taxonomy Aware Tasks decomposition, represented by the different polygons.
  • Parallel Feature Sharing Architecture: TAMLEC uses a modified Seq2Seq transformer. It features 6 Encoder and 6 Decoder blocks whose weights are shared across all tasks to learn generalized text and path representations. Crucially, it appends Task-Specific Generators at the end. Each generator contains a task-specific decoder block that masks irrelevant labels, allowing the model to specialize per TAT. TAMLEC Architecture
Figure 3: TAMLEC’s architecture. The model is made of 6 En- coders and 6 Decoders with weights shared across tasks, as well as one Task Specific Generator per task, whose weights are task specific.

Additionally, the authors developed a TAT-aware loss function that applies dynamic label smoothing: tasks with a larger "width" (more choices/higher difficulty) receive less aggressive smoothing, favoring high-confidence predictions on easier, narrower sub-tasks.

Datasets

The authors evaluated TAMLEC on three benchmark datasets equipped with rich, real-world taxonomies:

  • MAG-CS: A subset of the Microsoft Academic Graph focused on Computer Science.
  • PubMed: Scientific papers from medical journals utilizing the highly interconnected MeSH taxonomy (a prime example of a non-tree structure).
  • EURLex: European Union legislative documents labeled with the EuroVoc taxonomy, featuring a very large number of high-level concepts (145 TATs).

Key Insights and Ideas

  • Embracing Multi-Parent Realities: Moving from trees to weak-semilattices isn't just a mathematical nuance; it prevents the model from hitting a performance ceiling when navigating complex, multidisciplinary taxonomies like MeSH.
  • The Power of Modular Architecture: By isolating task-specific knowledge into small generator blocks while sharing the heavy-lifting encoder/decoder layers, TAMLEC achieves an elegant balance. It retains broad semantic understanding while allowing fine-grained specialization.
  • Solving the Few-Shot Trade-off: In few-shot scenarios (where a new category is introduced with only a handful of examples), traditional models suffer from catastrophic forgetting or completely skew their predictions toward the new task. TAMLEC solves this because you only need to train the parameters of the new task's specific generator block, leaving the core shared network untouched.

Key Results

Standard Label Completion

TAMLEC consistently outperformed strong baselines (including HECTOR, MATCH, and AttentionXML) across almost all metrics (Precision@k and NDCG@k). Its performance was particularly dominant on the EURLex dataset, where its unique ability to handle a massive number of distinct TATs (145) gave it a substantial edge over tree-bound models.

Few-Shot XML

When a specific task/category was withheld during training and introduced later with only a few examples:

  • While other models achieved high accuracy on the new task, their Global Precision plummeted drastically (e.g., HECTOR's global precision dropped close to zero because it overfit entirely to the new task).
  • TAMLEC maintained remarkably stable global performance while remaining highly competitive on the new task, demonstrating the best trade-off between adaptability and stability.

Limitations and Future Work

While TAMLEC marks a significant step forward, the authors note a few areas for future exploration:

  1. Alternative TAT Decompositions: Currently, TATs are split starting from top-level concepts. Future work will explore starting decompositions from deeper, more specific concepts in the taxonomy.
  2. Advanced Weight Sharing: The authors plan to investigate more intricate parallel feature-sharing methods to embed the taxonomy even deeper into the shared neural network weights.

Summary updated

BibTeX
@misc{audiffren2024extreme,
  author = {Julien Audiffren and Christophe Broillet and Ljiljana Dolamic and Philippe Cudré-Mauroux},
  title = {{Extreme Multi-label Completion for Semantic Document Labelling with Taxonomy-Aware Parallel Learning}},
  year = {2024},
  eprint = {2412.13809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.13809},
}
Figure