Introduction
Standard Deep Neural Networks (DNNs) are computationally rigid, executing the same sequence of operations for every input regardless of its difficulty. This "one-size-fits-all" approach is inefficient, as simple inputs are overprocessed while complex ones may lack specialized attention. CARN (Complexity-Aware Routing Network) introduces a dynamic framework that routes inputs to appropriate sub-networks based on their inherent complexity, achieving significant gains in efficiency with minimal accuracy loss.
Problem Statement
Traditional dynamic inference methods like Mixture-of-Experts (MoE) or Early-Exit strategies often suffer from "expert starvation," where only a few sub-networks are utilized. Additionally, most research focuses on reducing FLOPs, ignoring the critical bottleneck of Parameter Movement, which significantly impacts energy consumption and latency on edge devices.
Methods
CARN optimizes inference by treating it as a dynamic routing problem. The architecture consists of three core components:
- Complexity Estimation Module: It calculates a complexity score ($C_{ij}$) for an input $x_i$ relative to a module $M_j$ using confidence ($P_{ij}$), entropy ($H_{ij}$), and computational cost ($E_{ij}$): $C_{ij} = (1 - P_{ij}) + \alpha H_{ij} + \beta E_{ij}$.
- The Router: A lightweight network that predicts the best task module from early feature representations ($z_i$).
- Self-Supervised Training: The router is trained using complexity scores as pseudo-labels, with an exploration term ($\gamma p_{ij} \log p_{ij}$) to ensure all experts are utilized during training.
Datasets
The framework was validated on CIFAR-10, CIFAR-100, and Tiny-ImageNet, covering a range of classification challenges from simple to fine-grained and large-scale.
Key Results
CARN demonstrates substantial improvements in both computational and hardware efficiency:
- Efficiency & Speed: On CIFAR-100 with ResNet50, CARN reduced FLOPs by 75% (from 2.61B to 0.65B) and achieved up to a 4.01× speedup.
- Hardware Optimization: Average parameter movement was reduced by over 10×, directly benefiting low-power edge deployment.
- Adaptive Routing: The system effectively distributes samples across modules of varying complexity (e.g., VGG19_p00, p50, p90) based on the input's difficulty. This is evidenced by the distribution of samples and complexity scores across different classes.
Discussion
CARN successfully addresses the inefficiencies of static DNNs and the limitations of previous dynamic methods. By incorporating parameter movement into its optimization, it provides a practical solution for efficient AI on resource-constrained devices. Future work will explore its application to Transformer architectures and more complex vision tasks like object detection.
Summary updated