Shared Knowledge Lifelong Learning

Yunhao Ge, Yuecheng Li, Di Wu, Ao Xu, Adam M. Jones, Amanda Sofie Rios, Iordanis Fostiropoulos, shixian wen, Po-Hsuan Huang, Zachary William Murdock, Kiran Lekkala, Gozde Sahin, Sumedh Anand Sontakke, Laurent IttiOpenReview 2022

TL;DR

This paper introduces "Shared Knowledge Lifelong Learning" (SKILL), a new paradigm where multiple agents learn tasks in parallel and share knowledge to master all tasks collectively. Their proposed Lightweight Lifelong Learning (LLL) agents achieve state-of-the-art accuracy and near-perfect parallelization speedup on a challenging new benchmark, SKILL-102.

What Problem Does This Paper Address?

Traditional Lifelong Learning (LL) typically involves a single agent learning tasks sequentially, which is inherently slow and requires complex machinery to prevent forgetting. Real-world scenarios, however, often involve parallel learning opportunities across different locations or agents. The authors identify a gap in existing LL research by proposing a decentralized, parallelized LL framework where multiple agents learn independently and then share their knowledge to achieve a common goal: mastering all tasks. This addresses the limitations of sequential learning and opens up possibilities for more efficient and scalable LL systems.

Methods

The core of the proposed solution is the Lightweight Lifelong Learning (LLL) agent. Key components include:

  • Frozen Backbone: A common, pre-trained, and fixed feature extractor (e.g., Xception) is shared across all agents. This represents task-agnostic knowledge.
  • Task-Specific Heads: For each new task, a small, learnable "head" module is trained. This head typically consists of a classification layer and Beneficial Biases (BB). BBs are lightweight, task-dependent adjustments to the backbone's biases, allowing it to adapt to domain shifts without altering its core weights.
  • Task Mapper: To eliminate the need for a task oracle (i.e., knowing which task an input belongs to), agents learn and share "task anchors." These are summary statistics of their training data. Two methods are explored:
  • Gaussian Mixture Model Classifier (GMMC): Agents cluster their task data into Gaussian distributions and share cluster parameters (means and covariances).
  • Mahalanobis Distance (MAHA): Agents learn class-conditional Gaussian distributions and share class means and a tied covariance matrix. Receiving agents consolidate these anchors into a task mapper, enabling them to identify the task of a new input.

Datasets

  • SKILL-102: A newly introduced, challenging benchmark dataset for LL and SKILL. It comprises 102 image classification tasks with a total of 5,033 classes and over 2 million training images. The dataset is designed to have significant inter-task variance, making it a more realistic representation of real-world LL scenarios compared to synthesized datasets.
  • Visual Domain Decathlon: Used for additional evaluation.

Key Insights and Ideas

  • Decentralized Parallel Learning is Key: The SKILL paradigm demonstrates that parallel learning across multiple agents, followed by knowledge sharing, can dramatically speed up LL and lead to better overall performance than sequential learning.
  • Lightweight Modules are Sufficient: The success of LLL agents hinges on keeping task-specific components (heads and biases) small and the backbone fixed. This minimizes communication and computation overhead.
  • Beneficial Biases (BB) Mitigate Domain Gaps: BBs prove effective in adapting the fixed backbone to new tasks, especially those with significant domain shifts from the pre-training data.
  • Task Mappers are Crucial for Oracle-Free LL: The GMMC and MAHA task mappers enable agents to identify tasks without explicit labels, a critical step for practical LL systems.
  • Task Overlap Can Be Leveraged: The paper explores how semantic similarity between class names (using CLIP embeddings) and reusing learned weights can further boost learning speed and accuracy for new, related tasks.

Key Results

  • State-of-the-Art Accuracy: The proposed LLL approach achieves higher accuracy than 8 LL baselines on the SKILL-102 dataset.
  • Near-Perfect Parallelization Speedup: The SKILL framework, with LLL agents, achieves speedup factors close to N (where N is the number of agents), significantly outperforming sequential baselines. For example, they report a speedup of >9,000x over single-agent EWC.
  • Robustness to Task Interference: The LLL approach demonstrates strong performance in maintaining accuracy on previously learned tasks, with most performance degradation attributed to the task mapper rather than catastrophic forgetting in the core model.
  • BB Improves Accuracy: The inclusion of Beneficial Biases consistently provides a performance boost, especially on tasks with large domain gaps.
  • Task Mapper Performance: The GMMC and MAHA task mappers achieve high accuracy (e.g., >84% for 102 tasks), demonstrating their effectiveness in identifying tasks without a perfect oracle.

Limitations and Future Work

  • Task Mapper Confusion: While effective, the task mapper can become confused as the number of tasks increases, leading to performance degradation. The authors suggest exploring more sophisticated task mapping mechanisms.
  • Domain Gap Adaptation: While BB helps, very large domain gaps might still pose challenges. Future work could explore connecting the head to intermediate layers of the backbone (Head2Toe) or using adversarial reprogramming.
  • Semantic Similarity for Task Matching: Currently, class matching relies on CLIP embeddings and class labels. Future work could leverage GMMC for visual semantic matching.
  • Communication Overhead: While minimized, communication still incurs costs. Further research could investigate more efficient sharing strategies.
  • Scalability to >500 Tasks: The authors believe their approach is scalable to over 500 tasks, but this remains an area for future exploration.

Summary updated

BibTeX
@misc{ge2022shared,
  author = {Yunhao Ge and Yuecheng Li and Di Wu and Ao Xu and Adam M. Jones and Amanda Sofie Rios and Iordanis Fostiropoulos and shixian wen and Po-Hsuan Huang and Zachary William Murdock and Kiran Lekkala and Gozde Sahin and Sumedh Anand Sontakke and Laurent Itti},
  title = {{Shared Knowledge Lifelong Learning}},
  year = {2022},
  url = {https://openreview.net/forum?id=7ZaJfk915b1},
  howpublished = {OpenReview},
}
Figure