Context-Aware Multipath Networks

Dumindu Tissera, Kumara Kahatapitiya, Rukshan Wijesinghe, Subha Fernando, Ranga RodrigoarXiv 2019

Abstract

Traditional deep learning models often employ a rigid, single-path architecture that processes all inputs identically, leading to computational inefficiencies and "catastrophic forgetting" during sequential task learning. We present Context-Aware Multipath Networks (CAMNet), a novel architecture featuring parallel tensors and a learnable, data-dependent routing mechanism. CAMNet dynamically selects information paths based on input context, allowing for efficient resource sharing and specialized feature extraction. Our results demonstrate that CAMNet significantly outperforms standard convolutional networks in multi-domain classification and image-to-image translation tasks, maintaining high performance across sequential datasets.

Introduction

Standard deep neural networks follow a fixed sequence of layers, which can be inefficient when dealing with diverse data domains. A major hurdle in artificial intelligence is "lifelong learning" — the ability to acquire new skills without overwriting previous knowledge. Rigid architectures suffer from catastrophic forgetting because they lack the flexibility to isolate domain-specific features from shared general features. CAMNet addresses this by introducing a dynamic, multi-path structure that routes information based on the input's unique characteristics.

The CAMNet Architecture

The core of CAMNet lies in its ability to choose its own processing path. The architecture consists of two main elements: parallel tensors and data-dependent routing.

Instead of a single block of filters at each layer, CAMNet maintains multiple parallel tensors. The flow between these tensors is governed by a routing algorithm. As illustrated in the mechanism below, each tensor in a given layer predicts the "gate values" (probabilities) for the tensors in the subsequent layer using a softmax activation.

Detailed view of the data-dependent routing mechanism in CAMNet.

The routing process involves two phases:

  1. Prediction Phase: Each tensor generates a prediction for every tensor in the next layer.
  2. Construction Phase: The final tensors for the next layer are constructed as a weighted sum of these predictions, where the weights are the learned gate values.

To maintain depth without excessive computational cost, "Forward Layers" (standard convolutional or dense layers) are placed after routing steps to isolate path learning. For sequential tasks, the model can incorporate the Learning without Forgetting (LwF) algorithm to further stabilize performance.

Experimental Evaluation

The authors evaluated CAMNet on a wide range of benchmarks, including classification tasks (MNIST, Fashion MNIST, KMNIST, NotMNIST, CIFAR10, SVHN) and image-to-image translation tasks (CMP Facades, Cityscapes, and a custom drone-to-road topology dataset).

Results and Insights

CAMNet demonstrates superior performance in both static multi-domain learning and sequential learning scenarios. In joint training on four MNIST-like datasets, CAMNet4 achieved an error rate of 2.52%, outperforming existing multi-domain models.

A key advantage of CAMNet is its resistance to catastrophic forgetting. While standard CNNs (BaseCNN) show a sharp decline in accuracy on older tasks as new ones are introduced, CAMNet maintains significantly higher stability across sequential datasets.

Comparison of sequential learning performance across multiple datasets, showing CAMNet's superior retention.

Visual analysis of routing paths confirms that the network specializes its internal modules for different data contexts. For instance, different datasets trigger distinct internal paths, allowing the model to share low-level features while branching for high-level specialization. This resource efficiency is a marked improvement over simple model ensembles.

Conclusion

CAMNet provides a flexible framework for generalized intelligence by replacing rigid paths with dynamic, context-aware routing. While current implementations use a fixed number of parallel tensors, future work could explore adaptive widths to further optimize complexity. Additionally, scaling the architecture to massive datasets like ImageNet remains a key objective for proving industrial-scale viability.

Summary updated

BibTeX
@misc{tissera2019context,
  author = {Dumindu Tissera and Kumara Kahatapitiya and Rukshan Wijesinghe and Subha Fernando and Ranga Rodrigo},
  title = {{Context-Aware Multipath Networks}},
  year = {2019},
  eprint = {1907.11519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.11519},
}
Figure