Learning with an Evolving Class Ontology

Zhiqiu Lin, Deepak Pathak, Yu-Xiong Wang, Deva Ramanan, Shu Kong

Abstract

Lifelong learners must recognize concept vocabularies that evolve over time. A common yet underexplored scenario is learning with class labels that continually refine/expand old classes. For example, humans learn to recognize ${\tt dog}$ before dog breeds. In practical settings, dataset $\textit{versioning}$ often introduces refinement to ontologies, such as autonomous vehicle benchmarks that refine a previous ${\tt vehicle}$ class into ${\tt school-bus}$ as autonomous operations expand to new cities. This paper formalizes a protocol for studying the problem of $\textit{Learning with Evolving Class Ontology}$ (LECO). LECO requires learning classifiers in distinct time periods (TPs); each TP introduces a new ontology of "fine" labels that refines old ontologies of "coarse" labels (e.g., dog breeds that refine the previous ${\tt dog}$). LECO explores such questions as whether to annotate new data or relabel the old, how to leverage coarse labels, and whether to finetune the previous TP's model or train from scratch. To answer these questions, we leverage insights from related problems such as class-incremental learning. We validate them under the LECO protocol through the lens of image classification (CIFAR and iNaturalist) and semantic segmentation (Mapillary). Our experiments lead to surprising conclusions; while the current status quo is to relabel existing datasets with new ontologies (such as COCO-to-LVIS or Mapillary1.2-to-2.0), LECO demonstrates that a far better strategy is to annotate $\textit{new}$ data with the new ontology. However, this produces an aggregate dataset with inconsistent old-vs-new labels, complicating learning. To address this challenge, we adopt methods from semi-supervised and partial-label learning. Such strategies can surprisingly be made near-optimal, approaching an "oracle" that learns on the aggregate dataset exhaustively labeled with the newest ontology.

Introduction

In real-world machine learning applications, the target ontology is rarely static. As systems mature, the need for granularity increases—a generic "vehicle" label in an autonomous driving dataset might later be split into "sedan," "truck," and "emergency vehicle." Standard Class-Incremental Learning (CIL) typically treats new classes as disjoint from old ones. In contrast, the Learning with Evolving Class Ontology (LECO) framework addresses scenarios where new labels refine or expand existing ones over multiple Time Periods (TPs).

Visualizing the LECO protocol across Mapillary (segmentation) and iNaturalist (classification) benchmarks.

The LECO Protocol and Benchmarks

The LECO protocol evaluates how models adapt as their "vocabulary" evolves. The researchers established three primary benchmarks to simulate this evolution:

  • CIFAR-LECO: Transitions from 20 superclasses to 100 fine-grained classes.
  • iNat-LECO: Leverages the biological hierarchy of iNaturalist, moving from "Order" to "Species" across 2 or 4 time periods.
  • Mapillary-LECO: A real-world segmentation case study based on the versioning of Mapillary Vistas (V1.2 to V2.0), where classes like "road" are refined into specific functional areas.

Strategies for Ontology Evolution

The paper investigates two fundamental axes of model updates:

1. Annotation Strategy: RelabelOld vs. LabelNew

When a new ontology is introduced, should we spend our budget relabeling the existing dataset (RelabelOld) or labeling a fresh set of images with the new fine-grained labels (LabelNew)? While RelabelOld maintains a consistent dataset, LabelNew increases the total volume of data, albeit with heterogeneous labels (some coarse, some fine).

2. Training Strategy: FinetunePrev vs. TrainScratch

Does starting from a model trained on coarse labels provide a beneficial "curriculum," or is it better to train on the new fine-grained data from scratch?

To bridge the gap in the LabelNew scenario, the authors employ Semi-Supervised Learning (SSL) to pseudo-label coarse data, and Learning with Partial Labels (LPL), which uses the taxonomic hierarchy as a prior (e.g., a "bird" label constrains the fine-grained prediction to avian subclasses).

Key Results

The experimental results yield several counter-intuitive insights. Most notably, LabelNew consistently outperforms RelabelOld. Despite the label inconsistency, the increased diversity and volume of data provide a stronger learning signal.

Performance comparison across benchmarks showing the superiority of the LabelNew annotation strategy and FinetunePrev training strategy.

As shown in the results table, FinetunePrev significantly outperforms TrainScratch in most settings. For instance, on iNat-LECO, finetuning achieved 73.64% accuracy compared to 65.69% for training from scratch. This suggests that coarse-to-fine evolution acts as a natural curriculum for neural networks. Furthermore, by combining joint training with taxonomic priors, the proposed methods approach the performance of an "Oracle" model trained on a perfectly labeled aggregate dataset.

Conclusion

LECO formalizes a critical yet common challenge in long-term model deployment. The findings suggest that practitioners should prioritize collecting and labeling new data with refined ontologies rather than exhaustively relabeling legacy datasets. By leveraging hierarchical relationships and semi-supervised techniques, models can effectively integrate heterogeneous labels to reach near-optimal performance. Future work may explore these dynamics under temporal distribution shifts or automated hierarchy discovery.

Summary updated

Abstract

Lifelong learners must recognize concept vocabularies that evolve over time. A common yet underexplored scenario is learning with class labels that continually refine/expand old classes. For example, humans learn to recognize ${\tt dog}$ before dog breeds. In practical settings, dataset $\textit{versioning}$ often introduces refinement to ontologies, such as autonomous vehicle benchmarks that refine a previous ${\tt vehicle}$ class into ${\tt school-bus}$ as autonomous operations expand to new cities. This paper formalizes a protocol for studying the problem of $\textit{Learning with Evolving Class Ontology}$ (LECO). LECO requires learning classifiers in distinct time periods (TPs); each TP introduces a new ontology of "fine" labels that refines old ontologies of "coarse" labels (e.g., dog breeds that refine the previous ${\tt dog}$). LECO explores such questions as whether to annotate new data or relabel the old, how to leverage coarse labels, and whether to finetune the previous TP's model or train from scratch. To answer these questions, we leverage insights from related problems such as class-incremental learning. We validate them under the LECO protocol through the lens of image classification (CIFAR and iNaturalist) and semantic segmentation (Mapillary). Our experiments lead to surprising conclusions; while the current status quo is to relabel existing datasets with new ontologies (such as COCO-to-LVIS or Mapillary1.2-to-2.0), LECO demonstrates that a far better strategy is to annotate $\textit{new}$ data with the new ontology. However, this produces an aggregate dataset with inconsistent old-vs-new labels, complicating learning. To address this challenge, we adopt methods from semi-supervised and partial-label learning. Such strategies can surprisingly be made near-optimal, approaching an "oracle" that learns on the aggregate dataset exhaustively labeled with the newest ontology.
BibTeX
@inproceedings{lin2022learning,
  author = {Zhiqiu Lin and Deepak Pathak and Yu-Xiong Wang and Deva Ramanan and Shu Kong},
  title = {{Learning with an Evolving Class Ontology}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=i7WqjtdD0u},
}
Figure