[Paper Review] Understanding Time Variations of DNN Inference in Autonomous Driving
This paper provides a fine-grained analysis of time variations in DNN inference within autonomous driving systems, identifying six root causes across data, I/O, model, runtime, hardware, and end-to-end system factors. It reveals that DNN inference latency can exceed 4,000ms with 99th percentile delays over 1,000ms due to system-level interactions, especially in ROS-based middleware, and proposes insights to reduce variability for real-time scheduling.
Deep neural networks (DNNs) are widely used in autonomous driving due to their high accuracy for perception, decision, and control. In safety-critical systems like autonomous driving, executing tasks like sensing and perception in real-time is vital to the vehicle's safety, which requires the application's execution time to be predictable. However, non-negligible time variations are observed in DNN inference. Current DNN inference studies either ignore the time variation issue or rely on the scheduler to handle it. None of the current work explains the root causes of DNN inference time variations. Understanding the time variations of the DNN inference becomes a fundamental challenge in real-time scheduling for autonomous driving. In this work, we analyze the time variation in DNN inference in fine granularity from six perspectives: data, I/O, model, runtime, hardware, and end-to-end perception system. Six insights are derived in understanding the time variations for DNN inference.
Motivation & Objective
- To identify and analyze the root causes of non-negligible time variations in DNN inference for safety-critical autonomous driving systems.
- To understand how time variations in DNN inference impact real-time scheduling and system predictability.
- To investigate the cumulative effect of latency variations across multiple perception modules and communication middleware in end-to-end perception pipelines.
- To provide actionable insights for reducing DNN inference time variability to improve scheduling efficiency and safety.
Proposed method
- Conducted fine-grained analysis of DNN inference time variation across six dimensions: data, I/O, model, runtime, hardware, and end-to-end perception system.
- Measured inference latency across multiple DNN models (YOLOv3, Deeplabv3, LaneNet, etc.) under real-world autonomous driving workloads.
- Implemented an end-to-end perception system using ROS to evaluate system-level latency and synchronization delays.
- Recorded and analyzed message delays between perception modules and fusion nodes to quantify communication-induced variation.
- Evaluated the impact of buffer queue size in ROS synchronizers on latency variation and tail latency.
- Used statistical analysis (e.g., 99th percentile, coefficient of variation) to quantify time variation across different system components.
Experimental results
Research questions
- RQ1What are the primary sources of time variation in DNN inference within autonomous driving systems?
- RQ2How do concurrent tasks and communication middleware like ROS contribute to end-to-end latency variation?
- RQ3To what extent do time variations in individual perception modules accumulate in a multi-module end-to-end system?
- RQ4How does the choice of buffer size in message synchronizers affect latency variability in perception pipelines?
- RQ5What is the impact of system-level factors (e.g., I/O, hardware, runtime) on DNN inference time predictability?
Key findings
- DNN inference time variations exceed 100ms in most models, with some cases reaching up to 4,000ms, significantly impacting real-time safety.
- The 99th percentile latency for YOLOv3 and Deeplabv3 in end-to-end systems exceeds that of individual modules due to accumulated variation from concurrent tasks.
- ROS-based communication middleware introduces massive tail latency, with worst-case fusion message delays exceeding 10,000ms (10 seconds).
- The average and minimum delays for fusion messages were 773ms and 242ms respectively under a 100-buffer queue size, indicating severe unpredictability.
- Increasing the buffer size in the synchronizer from 100 to 1,000 reduced latency variation, demonstrating a mitigation strategy for communication-induced jitter.
- The coefficient of variation (Cv) analysis showed that DNN-based modules exhibit significantly higher latency variability than non-DNN systems like ORB-SLAM2.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.