Skip to main content
QUICK REVIEW

[Paper Review] Domain-Aware Dynamic Networks

Tianyuan Zhang, BoRui Wu|arXiv (Cornell University)|Nov 26, 2019
Domain Adaptation and Few-Shot LearningComputer Science51 references7 citations
TL;DR

This paper proposes Domain-Aware Dynamic Networks (DDN), a dynamic neural network that adapts its weights at inference time based on the input domain, enabling higher model capacity without increasing FLOPs or latency. By exploiting data locality—where input data remain within a single domain over short periods—DDN dynamically combines multiple expert weights into a specialized, low-complexity model per domain, achieving up to 2.6% higher AP50 on BDD100K compared to static networks.

ABSTRACT

Deep neural networks with more parameters and FLOPs have higher capacity and generalize better to diverse domains. But to be deployed on edge devices, the model's complexity has to be constrained due to limited compute resource. In this work, we propose a method to improve the model capacity without increasing inference-time complexity. Our method is based on an assumption of data locality: for an edge device, within a short period of time, the input data to the device are sampled from a single domain with relatively low diversity. Therefore, it is possible to utilize a specialized, low-complexity model to achieve good performance in that input domain. To leverage this, we propose Domain-aware Dynamic Network (DDN), which is a high-capacity dynamic network in which each layer contains multiple weights. During inference, based on the input domain, DDN dynamically combines those weights into one single weight that specializes in the given domain. This way, DDN can keep the inference-time complexity low but still maintain a high capacity. Experiments show that without increasing the parameters, FLOPs, and actual latency, DDN achieves up to 2.6\% higher AP50 than a static network on the BDD100K object-detection benchmark.

Motivation & Objective

  • Address the trade-off between model capacity and computational complexity in edge deployment.
  • Leverage data locality—where input data remain within a single domain over short time intervals—to improve generalization.
  • Design a dynamic network that maintains low inference-time complexity while achieving higher accuracy across diverse domains.
  • Enable high-capacity model performance without increasing parameters, FLOPs, or actual latency on edge devices.

Proposed method

  • Propose a dynamic network architecture where each layer contains multiple sets of weights (experts).
  • Use a controller network to compute dynamic fusion weights based on a domain representation extracted from input data.
  • Condition the final layer weights on the input domain via a learned linear combination of expert weights.
  • Extract domain representation using a backbone network and feed it to a controller to generate domain-specific fusion coefficients.
  • Reuse the same fused weight configuration across multiple inputs as long as the input domain remains unchanged, preserving low inference cost.
  • Train the network end-to-end with a loss function that encourages accurate predictions per domain while maintaining low computational overhead.

Experimental results

Research questions

  • RQ1Can we improve model capacity without increasing inference-time complexity by exploiting data locality?
  • RQ2How effectively can a dynamic network adapt its weights to different input domains while maintaining low computational cost?
  • RQ3Does the controller generalize across different domain split strategies, or is it sensitive to the training domain partitioning?
  • RQ4To what extent does domain-aware dynamic weighting improve performance on diverse, real-world benchmarks like BDD100K?

Key findings

  • DDN achieves up to 2.6% higher AP50 than static networks on the BDD100K object detection benchmark without increasing parameters, FLOPs, or actual latency.
  • When the domain split strategy during evaluation mismatches the training split, performance drops significantly (e.g., from 39.6% to 38.52% AP50), indicating controller sensitivity to domain partitioning.
  • t-SNE visualization confirms that images from the same domain are grouped together in the weight factor space, showing the controller learns meaningful domain-specific representations.
  • Weight factor visualization reveals that different domains—even with conflicting intuitive expectations—receive distinct fusion coefficients, demonstrating the model's ability to learn non-trivial domain-specific adaptations.
  • Even under mismatched domain splits, DDN outperforms a single static network (38.08% vs. 37.4% AP50), showing robustness to distribution shifts.
  • The controller fails to generalize to new domain splits when not explicitly trained on them, indicating that domain representation must be aligned with training strategy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.