mobile-dl-inference-eval
Deep Learning Inference on Heterogeneous Mobile Processors: Potentials and Pitfalls — Sicong Liu et al. (arXiv:2405.01851, 2024)
What this evaluates
Evaluates the effectiveness of parallel deep learning inference strategies across heterogeneous mobile processors (CPU, GPU, DSP) under varying workloads and dynamic system conditions. It probes how operator support, scheduling granularity, and competing processes impact inference latency, resource utilization, and system responsiveness.
Datasets
- Standard DL Models (YOLOv2, VGG-16, PoseNet, FST, RetinaFace, ResNet-18, ResNet-50) — total ?; splits: test (-1)
Metrics
inference latency (ms) (primary) — range: ms
- Direct empirical measurement of wall-clock time to complete a single inference pass or frame processing on the target device.
speedup (%) — range: percent
- Calculated relative to a baseline strategy: (baseline_latency - method_latency) / baseline_latency * 100.
top accuracy (%) — range: percent
- Standard top-1 classification accuracy on the model's validation/test set.
frame drop rate (%) — range: percent
- Percentage of dropped frames during concurrent UI/video playback while running DL inference.
Input / output format
Input: Deep learning model architectures executed on mobile SoCs (Snapdragon 855/870, Kirin 985) under varying system states (competing processes, temperature, cache contention, data types).
Output: Measured inference latency in milliseconds, speedup percentage, top-1 accuracy percentage, memory usage in MB, and frame drop rate percentage.
Scoring recipe
def calculate_speedup(gold_baseline_latency_ms, pred_method_latency_ms):
return ((gold_baseline_latency_ms - pred_method_latency_ms) / gold_baseline_latency_ms) * 100
def calculate_frame_drop_rate(dropped_frames, total_frames):
return (dropped_frames / total_frames) * 100
# Accuracy is computed as standard top-1 classification ratio
accuracy = correct_predictions / total_predictions
Common pitfalls
- Assuming cross-processor parallel inference always yields lower latency; scheduling overhead and data transfer can make single-processor execution faster.
- Ignoring dynamic resource conditions (temperature throttling, competing processes, cache contention) which cause significant latency variance compared to offline benchmarks.
- Overlooking operator fallbacks to CPU when accelerators lack support, which negates hardware acceleration benefits and increases latency.
Evidence (verbatim from paper)
We compare the inference latency of six strategies: ① Mace framework executes inference on CPU, ② Mace on GPU with the buffer type, ③ Mace on GPU with the image type, ④ μ Layer on CPU+GPU, ⑤ CoDL on CPU+GPU in parallel with buffer type, and ⑥ CoDL on CPU & GPU in parallel with the image type. We test them on five models, i.e., YOLOv2, VGG-16, PoseNet, Fast Style Transfer (FST), and RetinaFace, across three mobile devices, i.e., Snakeragon 855 (D1), Snakeragon 870 (D7), and Kirin 985 (D2).
Citation
@misc{liu2024deeplearninginference,
title={Deep Learning Inference on Heterogeneous Mobile Processors: Potentials and Pitfalls},
author={Sicong Liu et al.},
year={2024},
note={arXiv:2405.01851}
}
1---2name: mobile-dl-inference-eval3description: Evaluates the effectiveness of parallel deep learning inference strategies across heterogeneous mobile processors (CPU, GPU, DSP) under varying workloads and dynamic system conditions. It probes how operator support, scheduling granularity, and competing processes impact inference latency, resource utilization, and system responsiveness. Use when the user wants to benchmark on Standard DL Models (YOLOv2, VGG-16, PoseNet, FST, RetinaFace, ResNet-18, ResNet-50), or asks about evaluating this task. Reports inference latency (ms).4---56# mobile-dl-inference-eval78> Deep Learning Inference on Heterogeneous Mobile Processors: Potentials and Pitfalls — Sicong Liu et al. (arXiv:2405.01851, 2024)910## What this evaluates1112Evaluates the effectiveness of parallel deep learning inference strategies across heterogeneous mobile processors (CPU, GPU, DSP) under varying workloads and dynamic system conditions. It probes how operator support, scheduling granularity, and competing processes impact inference latency, resource utilization, and system responsiveness.1314## Datasets1516- **Standard DL Models (YOLOv2, VGG-16, PoseNet, FST, RetinaFace, ResNet-18, ResNet-50)** — total ?; splits: test (-1)1718## Metrics1920- `inference latency (ms)` **(primary)** — range: ms21 - Direct empirical measurement of wall-clock time to complete a single inference pass or frame processing on the target device.22- `speedup (%)` — range: percent23 - Calculated relative to a baseline strategy: (baseline_latency - method_latency) / baseline_latency * 100.24- `top accuracy (%)` — range: percent25 - Standard top-1 classification accuracy on the model's validation/test set.26- `frame drop rate (%)` — range: percent27 - Percentage of dropped frames during concurrent UI/video playback while running DL inference.2829## Input / output format3031**Input**: Deep learning model architectures executed on mobile SoCs (Snapdragon 855/870, Kirin 985) under varying system states (competing processes, temperature, cache contention, data types).3233**Output**: Measured inference latency in milliseconds, speedup percentage, top-1 accuracy percentage, memory usage in MB, and frame drop rate percentage.3435## Scoring recipe3637```python38def calculate_speedup(gold_baseline_latency_ms, pred_method_latency_ms):39 return ((gold_baseline_latency_ms - pred_method_latency_ms) / gold_baseline_latency_ms) * 1004041def calculate_frame_drop_rate(dropped_frames, total_frames):42 return (dropped_frames / total_frames) * 1004344# Accuracy is computed as standard top-1 classification ratio45accuracy = correct_predictions / total_predictions46```4748## Common pitfalls4950- Assuming cross-processor parallel inference always yields lower latency; scheduling overhead and data transfer can make single-processor execution faster.51- Ignoring dynamic resource conditions (temperature throttling, competing processes, cache contention) which cause significant latency variance compared to offline benchmarks.52- Overlooking operator fallbacks to CPU when accelerators lack support, which negates hardware acceleration benefits and increases latency.5354## Evidence (verbatim from paper)5556> We compare the inference latency of six strategies: ① Mace framework executes inference on CPU, ② Mace on GPU with the buffer type, ③ Mace on GPU with the image type, ④ μ Layer on CPU+GPU, ⑤ CoDL on CPU+GPU in parallel with buffer type, and ⑥ CoDL on CPU & GPU in parallel with the image type. We test them on five models, i.e., YOLOv2, VGG-16, PoseNet, Fast Style Transfer (FST), and RetinaFace, across three mobile devices, i.e., Snakeragon 855 (D1), Snakeragon 870 (D7), and Kirin 985 (D2).5758## Citation5960```bibtex61@misc{liu2024deeplearninginference,62 title={Deep Learning Inference on Heterogeneous Mobile Processors: Potentials and Pitfalls},63 author={Sicong Liu et al.},64 year={2024},65 note={arXiv:2405.01851}66}67```6869- arXiv: 2405.01851