Ontologue: Declarative Benchmark Construction for Ontological Multi-Label Classification

Sean Yang, Bernease Herman, Bill HoweNeurIPS 2022

TL;DR: Researchers from the University of Washington introduce Ontologue, a declarative toolkit that allows users to generate custom, high-quality benchmarks for Hierarchical Multi-Label Classification (HMC) from DBpedia. By exposing the structural and statistical flaws in current HMC datasets—which often function more like accidental few-shot learning problems—the authors provide a path toward more generalizable and robust hierarchical models.

The Problem with Current Benchmarks

Hierarchical Multi-Label Classification (HMC) is a complex task where data items (like a Wikipedia abstract or a gene) are assigned multiple labels organized in a graph or tree. For example, a document labeled "Quantum Mechanics" must also implicitly carry the labels "Physics" and "Science."

The authors argue that the HMC field has been stagnating because it relies on a small set of roughly 20 "impoverished" benchmarks. These datasets suffer from three major issues:

  1. Context Poverty: Labels are often stripped of their text and replaced with integers, and features are pre-processed into static vectors. This prevents researchers from using modern techniques like Transformer-based embeddings.
  2. Hidden Few-Shot Challenges: In many common benchmarks, over 40% of labels have fewer than five training examples. This means models are being tested on their ability to handle extreme data scarcity rather than their ability to navigate hierarchies.
  3. Structural Simplicity: Many datasets are too small or lack the "Directed Acyclic Graph" (DAG) structure (where a label can have multiple parents) found in real-world ontologies.

The Ontologue System

The core contribution is Ontologue, a toolkit that turns the massive DBpedia knowledge graph into a playground for benchmark construction. Instead of manually curating a dataset, a researcher uses a declarative query interface to specify parameters tailored to their evaluation needs.

Ontologue Pipeline

Users can specify:

  • Topic: The root node (e.g., "Law" or "Comedy").
  • Depth (Max Hops): How specific the hierarchy should get.
  • Minimum Data: A threshold for the number of items per label to avoid the "accidental few-shot" trap.

Ontologue then performs a depth-first search through DBpedia’s skos:broader relationships to build a label space and attaches relevant Wikipedia abstracts as data items. It also includes a Visual Analysis suite to help researchers inspect the label distribution and hierarchy height before they start training.

Generated Datasets

The paper evaluates two categories of datasets:

  • Existing Benchmarks: ENRON (email), DIATOMS (images), ImCLEF (medical images), and the FUNCAT/Gene Ontology (GO) collections.
  • New Ontologue Benchmarks: Four new datasets extracted from DBpedia: Comedy, Engineering, Law, and Main.

Compared to the old benchmarks (which max out at ~11k items), the Ontologue datasets are significantly larger (up to 61k items) and offer a more balanced distribution of data across the hierarchy.

Key Findings and Results

Evaluating state-of-the-art (SOTA) models on both old and new benchmarks revealed significant discrepancies in how model performance is traditionally understood:

  • The "Naive" Paradox: On many older benchmarks, a simple Binary Cross Entropy (BCE) baseline actually outperforms SOTA hierarchical models. This suggests the old benchmarks are "artificially easy" or so noisy that complex architectural constraints actually hinder performance.
  • Trivial vs. Impossible Labels: The authors categorized labels as "trivial" (most models get them right) or "impossible" (no models get them right). They found that in older benchmarks, over 75% of labels fall into these two categories, leaving very little "interesting" space for models to actually compete. Ontologue benchmarks reduce this to 45–58%.
  • Context is King: By keeping the original text for labels, the authors showed that a SOTA model (Surj) significantly improves when it can "read" the labels using BERT embeddings, rather than treating them as abstract nodes in a graph.
  • Ranking Shifts: On the new Ontologue benchmarks, the performance rankings of SOTA models changed compared to older datasets. For instance, C-HMCNN and Surj emerged as clear leaders, whereas they were often indistinguishable from baselines on older, smaller datasets.
  • Hierarchy Violations: The authors measured "Global Hierarchy Violations" (where a child node is predicted with higher probability than its parent). They found that while newer models are better at respecting the tree structure, this doesn't always correlate with higher accuracy, highlighting a trade-off between structural logic and raw predictive power.

Limitations and Future Work

  • Source Bias: DBpedia and Wikipedia are known to have inherent biases regarding gender, culture, and geography. Benchmarks generated by Ontologue will inevitably inherit these "Neutral Point of View" (NPOV) failures.
  • Cherry-Picking: While the declarative interface is powerful, it also allows researchers to "cherry-pick" parameters that make their specific model look better.
  • Future Directions: The authors suggest that Ontologue could be extended to other data sources beyond DBpedia and that the HMC community should focus more on "context-aware" models that utilize the rich text available in modern ontologies.

Summary updated

BibTeX
@inproceedings{yang2022ontologue,
  author = {Sean Yang and Bernease Herman and Bill Howe},
  title = {{Ontologue: Declarative Benchmark Construction for Ontological Multi-Label Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=PQ5wVn2abr},
}
Figure