Introduction
Deep neural networks have revolutionized real-time video understanding, yet their deployment in complex, real-world environments remains challenging. In applications such as autonomous driving or robotics, a vision model does not operate in isolation; it competes for limited computational resources with other critical processes like SLAM (Simultaneous Localization and Mapping), path planning, and sensor fusion.
While existing "dynamic" neural networks can adapt their complexity based on the difficulty of the input image (input-aware adaptation), they typically ignore the fluctuating health and load of the hardware itself. When a system becomes congested due to background tasks, even a simple input can suffer from significant processing delays. This paper introduces the System-status-aware Adaptive Network (SAN), a framework designed to monitor real-time hardware utility and adjust its computational demands to ensure high-quality predictions with minimal latency.
The SAN Framework
The proposed System-status-aware Adaptive Network (SAN) addresses the resource fluctuation problem through two primary components: a flexible backbone and an intelligent control agent.
1. Dynamic Main Module
To provide a range of computational trade-offs, the authors developed a ResNet-50 based encoder that supports two dimensions of adaptation:
- Dynamic Resolution: The model can resize input frames on the fly, reducing the initial computational load.
- Dynamic Depth: By incorporating "early exit" ports, the network can terminate processing after a subset of layers if the system status is critical, providing a faster but slightly less granular feature representation.
2. RL-based Agent
The "brain" of SAN is a lightweight Reinforcement Learning (RL) agent. For every incoming frame, the agent receives a state vector consisting of the previous hidden state and current system telemetry (CPU/GPU utility and memory usage). The agent then selects the optimal resolution-depth pair. The agent is trained using a reward function that balances accuracy against a strict 30ms delay threshold, incentivizing the model to stay within real-time constraints regardless of external system load.
Meta Self-supervised Adaptation (MSA)
A significant hurdle in deploying hardware-aware models is the diversity of target platforms. Training a specialized agent for every possible hardware configuration is computationally prohibitive and often impossible due to a lack of labeled data on edge devices.
To solve this, the authors propose Meta Self-supervised Adaptation (MSA). This method allows the model to adapt to unseen hardware at deployment time without manual labels. MSA leverages an auxiliary task: delay prediction. Because a model can measure its own execution time, it uses this self-supervised signal to "understand" the performance characteristics of the new hardware. Through meta-optimization, the model is pre-trained on various source devices so that learning to predict delay on a new target device (like an ARM-based Jetson TX2) automatically fine-tunes the RL agent’s policy for that specific architecture.
Experimental Evaluation
The authors evaluated SAN on two demanding video understanding tasks:
- Online Action Recognition: Using the 50Salads dataset (long-form kitchen activities).
- Online Pose Estimation: Using the Sub-JHMDB dataset.
Experiments were conducted across diverse hardware environments, including high-end workstations (NVIDIA RTX 3090), laptops (GTX 1080), and edge platforms (NVIDIA Jetson TX2). To simulate real-world conditions, background loads such as matrix multiplications and video compression were introduced during testing.
Key Results
- Real-time Consistency: On the 50Salads dataset, SAN achieved 95.4% real-time frames (maintaining a delay under 30ms), significantly outperforming the previous state-of-the-art, AR-Net, which only managed 62.1% under the same fluctuating conditions.
- Latency Stability: While standard models experienced delay spikes exceeding 100ms during high-load scenarios, SAN successfully suppressed these "tail delays," keeping maximum latency between 41-49ms without sacrificing competitive accuracy.
- Cross-Platform Success: The MSA method proved highly effective. When moving from an x86 desktop to a Jetson TX2, the meta-learned adaptation significantly outperformed direct transfer methods, proving that the model can effectively "learn" the constraints of new hardware on the fly.
Conclusion and Future Work
SAN represents a shift from purely input-centric model adaptation to a more holistic, system-aware approach. By treating hardware utility as a first-class feature and utilizing self-supervised delay prediction, the framework ensures robust performance in multi-tasking environments.
Currently, the implementation relies on specific Linux utilities for system monitoring, which may require adaptation for other operating systems. Future research directions include extending this system-aware logic to other modalities, such as real-time audio processing, and exploring the agent's robustness against even more chaotic, high-frequency resource fluctuations in complex embedded systems.
Summary updated