Continual Learning with Evolving Class Ontologies

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

Introduction

As artificial intelligence systems are deployed over long periods, the environments they operate in—and our understanding of those environments—inevitably change. A common yet underexplored scenario in lifelong learning is dealing with class vocabularies that continually refine and expand. For instance, a human child learns to recognize a "dog" before learning to distinguish specific breeds.

This paper introduces LECO (Learning with Evolving Class Ontology), a formal framework for training models as class definitions become more specific over time. Surprisingly, the authors demonstrate that instead of the industry-standard practice of relabeling old data with new classes, it is far more effective to annotate new data and use hierarchy-aware semi-supervised learning to bridge the gap between old and new labels.

The Challenge of Evolving Ontologies

In practical settings, dataset versioning often introduces refinements to existing ontologies. An autonomous vehicle company might initially label all pedestrians and vehicles broadly. A year later, as operations expand, they may need to distinguish between "school buses," "shuttles," and standard "cars."

Evolving class ontologies in Mapillary and iNaturalist datasets.

Standard Class-Incremental Learning (CIL) assumes that new classes are entirely unrelated to old ones. However, in LECO, new classes are often refinements of old ones. When a dataset is updated (e.g., Mapillary V1.2 to V2.0), researchers usually face a budget allocation dilemma:

  1. RelabelOld: Spend the annotation budget re-labeling the old images with the new, finer labels.
  2. LabelNew: Spend the budget annotating brand-new images with the fine labels, leaving the old images with their original "coarse" labels.

The challenge with the LabelNew option is that it creates an aggregate dataset with inconsistent labels (some coarse, some fine), making it difficult for standard algorithms to learn effectively.

Methodology: Bridging Coarse and Fine Labels

The authors formalize the LECO protocol across multiple "Time Periods" (TPs), where each TP introduces a more granular ontology. To handle this evolution, they explore several strategies:

  • Annotation Strategy: Comparing the efficacy of RelabelOld versus LabelNew.
  • Training Strategy: Comparing training from scratch versus FinetunePrev (using the model from the previous time period as a starting point).
  • Exploiting Old Data: Since historical data only possesses coarse labels, the authors leverage Semi-Supervised Learning (SSL) to generate "pseudo-labels" for the fine classes.
  • Taxonomic Hierarchy: This is the core innovation. The authors utilize Learning-with-Partial-Labels (LPL). If an old image is labeled "dog," the model is penalized only if its fine-grained prediction falls outside the "dog" branch of the taxonomic tree. They employ filtering and conditioning to ensure that pseudo-labels for old data remain mathematically consistent with their known coarse labels.

To validate these methods, the researchers repurposed three major datasets to simulate evolving ontologies: CIFAR-LECO, iNat-LECO (moving from biological "Order" to "Species"), and Mapillary-LECO (a real-world semantic segmentation dataset that refined classes like "sidewalk" into "sidewalk" and "driveway").

Key Insights and Results

The extensive experiments yielded several surprising conclusions that challenge the current status quo in dataset versioning.

More Data Trumps Better Labels: The most significant finding is that LabelNew consistently outperforms RelabelOld. Even though the labels are inconsistent across the aggregate dataset, the sheer volume and diversity of unique images provide a stronger learning signal for the model than a smaller, perfectly labeled dataset.

Finetuning Acts as a Curriculum: Training a model from scratch on fine labels is demonstrably harder than finetuning a model that already understands coarse concepts. The coarse-to-fine evolution acts as a natural "curriculum," guiding the learner.

Performance comparison of LECO strategies across benchmarks.

Near-Oracle Performance: On the iNaturalist benchmark, simply finetuning the previous model yielded a 73.6% accuracy, significantly beating the 65.7% achieved by training from scratch. By combining Joint Training, SSL, and Taxonomic Hierarchy (LPL), the authors pushed this to 84.34% accuracy. This result is remarkably close to the "Oracle" (84.51%)—a theoretical upper bound trained on the entire dataset as if it had been exhaustively labeled with fine tags from the start. Essentially, the LECO framework achieves the performance of a fully labeled dataset without incurring the massive cost of exhaustive relabeling.

Limitations and Future Directions

While LECO presents a powerful paradigm for continual learning, the study notes a few limitations. First, it assumes the cost of relabeling an old image is identical to labeling a new one; in reality, relabeling might be cheaper if annotators are primed with the old label. Second, the framework assumes the underlying data distribution remains static over time, whereas real-world data often suffers from "temporal drift" (e.g., car designs changing over decades). Future work could address these dynamics and explore incorporating completely unlabeled data into the LECO pipeline.

Summary updated

BibTeX
@inproceedings{lin2022continual,
  author = {Zhiqiu Lin and Deepak Pathak and Yu-Xiong Wang and Deva Ramanan and Shu Kong},
  title = {{Continual Learning with Evolving Class Ontologies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=i7WqjtdD0u},
}
Figure