NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Virtual Networks for Memory Efficient Inference of Multiple Tasks.

Eunwoo Kim, Chanho Ahn, Philip H. S. Torr, Songhwai Oh · DOI

TL;DR

This paper introduces Deep Virtual Networks (DVNs), a novel architecture that allows a single neural network to perform multiple tasks with varying memory budgets. DVNs achieve this by creating specialized, hierarchical sub-networks for each task, enabling flexible inference tailored to available resources and significantly reducing overall memory footprint and training effort.

What Problem Does This Paper Address?

Modern deep neural networks, while powerful, are notoriously memory-hungry. This high memory footprint limits their deployment on resource-constrained devices like mobile phones or autonomous vehicles. While techniques exist to create "memory-efficient" networks for a single task (allowing for different performance-accuracy trade-offs based on memory budget), applying this to multiple tasks simultaneously has been a significant challenge. Existing multi-task learning approaches often use a single architecture for all tasks, or require training separate networks for different memory budgets, leading to increased training costs and storage. This paper tackles the problem of achieving both multi-task learning and memory-efficient inference within a single, unified framework.

Methods

The core innovation is the Deep Virtual Network (DVN) architecture. A DVN is built upon a shared "backbone" network. This backbone's parameters are divided into disjoint sets called units. A DVN for a specific task is then constructed by organizing these units hierarchically.

  • Hierarchical Structure: Each DVN has multiple levels of hierarchy. A lower level might use fewer units (and thus less memory), while higher levels incorporate more units. This allows a single DVN to perform inference at different memory budgets.
  • Shared Units: Crucially, units can be shared across DVNs for different tasks. This enables a single backbone network to house multiple DVNs, facilitating multi-task learning. Shared units can also implicitly transfer knowledge between tasks.
  • Configuration Rule: The paper proposes a rule for configuring these hierarchical structures, particularly for tasks with related domains, to ensure efficient learning and parameter sharing.
  • Optimization: The training objective is a sum of loss functions across all tasks and all hierarchy levels within the DVNs, allowing the backbone to learn parameters that support all these configurations.

Datasets

The authors evaluated their approach on several standard computer vision datasets:

  • CIFAR-10
  • CIFAR-100
  • STL-10
  • Tiny-ImageNet

They organized experiments into scenarios for:

  • Joint Learning: Combining tasks from different datasets (e.g., CIFAR-10 and CIFAR-100, or a mix of CIFAR-100, Tiny-ImageNet, and STL-10).
  • Hierarchical Classification: Using CIFAR-100, which has a natural coarse-to-fine class structure.
  • Sequential Learning: Learning tasks one after another, simulating scenarios where new tasks are added without forgetting old ones.

Key Insights and Ideas

  • Unified Multi-Task and Memory Efficiency: The most significant insight is the successful integration of two previously somewhat separate research areas: multi-task learning and memory-efficient inference. DVNs provide a single framework that addresses both.
  • Hierarchical Specialization: The hierarchical structure within each DVN is key. It allows for flexible "anytime prediction" – choosing the right level of detail (and thus memory usage) based on the current computational budget for a given task.
  • Implicit Knowledge Transfer: Sharing units between DVNs for different tasks naturally leads to knowledge transfer. This is particularly beneficial in multi-task learning, where related tasks can inform each other, potentially improving generalization.
  • Reduced Training Overhead: By training a single backbone network that supports multiple DVNs, the authors significantly reduce the training effort and storage requirements compared to training individual networks for each task or each memory configuration.

Key Results

The proposed DVN approach demonstrated strong performance across various scenarios:

  • Joint Learning: DVNs outperformed or matched existing methods like PackNet+ and NestedNet on datasets like CIFAR-10/100 and Tiny-ImageNet, while offering multiple inference outputs for different memory budgets. For instance, on CIFAR-10/100, their approach achieved accuracies of 95.1% (single unit) and 97.3% (all units) with significantly reduced parameter counts compared to baselines.
  • Memory Efficiency: The paper highlights practical speed-ups. For example, on STL-10, their DVN achieved inference times of 0.65ms (7.5M parameters) to 1.51ms (29.8M parameters), demonstrating efficient inference across different memory levels.
  • Sequential Learning: DVNs showed superior performance in sequential learning tasks, outperforming methods like LwF and NestedNet, especially when using stand-alone units, indicating effective knowledge preservation and new task learning.
  • Hierarchical Classification: DVNs also performed well in hierarchical classification, outperforming other methods and providing more inference outputs than NestedNet.

Limitations and Future Work

  • Configuration Rule: While a rule for configuring DVNs is proposed, it's based on assumptions about domain similarity between sequential tasks. The paper doesn't extensively explore how this rule might need adaptation for more disparate tasks.
  • Parameter Sharing Strategy: The paper focuses on dividing feature maps into disjoint subsets. Future work could explore more sophisticated parameter sharing or pruning strategies.
  • Scalability: While demonstrated on several benchmarks, the scalability of this approach to extremely large-scale, diverse multi-task learning problems could be a subject for further investigation.
  • Real-world Deployment: The authors mention the practicality for memory-limited devices, but further real-world deployment studies on specific edge devices would be valuable.

Summary updated

BibTeX
@inproceedings{kim2019deep,
  author = {Eunwoo Kim and Chanho Ahn and Philip H. S. Torr and Songhwai Oh},
  title = {{Deep Virtual Networks for Memory Efficient Inference of Multiple Tasks.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00282},
}
Figure