Continual Learning Using Task Conditional Neural Networks

Honglin Li, Payam M. Barnaghi, Shirin Enshaeifar, Frieder GanzarXiv 2020

Abstract

Conventional deep learning models struggle with sequential learning, often suffering from "catastrophic forgetting" where new information overwrites previously learned tasks. We propose Multi-view Task Conditional Neural Networks (Mv-TCNN), a framework designed for "task-unknown" scenarios where the model must autonomously identify and adapt to changing data distributions. By integrating a probabilistic layer with a multi-view data approach, Mv-TCNN effectively learns new tasks and recalls old ones without explicit task labels. Evaluations on standard benchmarks (MNIST, CIFAR) and real-world healthcare data (TIHM) demonstrate that our model outperforms state-of-the-art solutions in continual learning.

The Challenge of Catastrophic Forgetting

Deep learning models typically assume a static data distribution. When trained on a sequence of tasks, they often experience interference, losing the ability to perform earlier tasks—a phenomenon known as catastrophic forgetting. Most existing Continual Learning (CL) methods operate in a "task-known" setup, requiring external signals to identify task boundaries. In real-world applications, such as remote health monitoring, changes in data patterns (tasks) occur sporadically and without labels, necessitating a model that can detect these shifts autonomously.

Methodology: Multi-view Task Conditional Neural Networks

The Mv-TCNN architecture utilizes an expandable set of "expert" networks. Each expert is optimized for a specific task identified by the system.

Architecture and the Probabilistic Layer

The core of the network features a specialized Probabilistic Layer. Unlike standard layers, it uses kernels to represent data patterns and calculates a task likelihood ($P(t|x, \cdot)$). This allows the model to determine how well a new input aligns with the training distribution of existing experts. Simultaneously, the Output Layer provides the final classification ($P(y|x, \cdot)$).

The Mv-TCNN architecture featuring a probabilistic layer for task likelihood estimation and a classification output.

Multi-view Functions for Robust Detection

To enhance task identification, Mv-TCNN employs Multi-view Functions. Instead of relying on a single input, the model generates multiple augmented "views" (e.g., rotations, shifts, ZCA whitening). By averaging predictions across these views, the model achieves higher certainty in task identification, effectively distinguishing between known tasks and novel data distributions.

Examples of multi-view data augmentations used to increase certainty in task identification.

Automatic Task Detection and Optimization

The system monitors task likelihood in real-time. If the likelihood falls below a dynamic threshold for three consecutive batches, the model assumes a new task has emerged and initializes a new expert. During training, a joint loss function balances classification accuracy with task-identification precision, ensuring the model remains efficient and accurate.

Experimental Results

Mv-TCNN was benchmarked against several state-of-the-art models:

  • Split MNIST: Achieved 96.50% accuracy, nearly matching "offline" models that have access to all data simultaneously.
  • Split CIFAR-100: In a complex 20-task sequence, Mv-TCNN reached 30.06% accuracy, significantly outperforming the CN-DPM baseline (20.10%).
  • Healthcare (TIHM): On real-world sensor data from dementia patients, the model achieved 78.80% accuracy in detecting routine changes, demonstrating its versatility beyond image processing.

Conclusion

Mv-TCNN provides a robust solution for task-unknown continual learning. By leveraging multi-view certainty and a probabilistic architecture, it effectively mitigates catastrophic forgetting while maintaining computational efficiency. Future research will explore specialized "views" for low-dimensional time-series data to further improve performance in healthcare and streaming environments.

Summary updated

BibTeX
@misc{li2020continual,
  author = {Honglin Li and Payam M. Barnaghi and Shirin Enshaeifar and Frieder Ganz},
  title = {{Continual Learning Using Task Conditional Neural Networks}},
  year = {2020},
  eprint = {2005.05080},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.05080},
}
Figure