On-Device ML Latency Decomposition & Root-Cause Classification
When on-device neural network inferences degrade, standard benchmarks report a single scalar and cannot isolate the physical cause. Jitter isolates thermal clock curtailment, JIT warmup drift, silent delegate fallback, and OS thread scheduling through automated controlled reruns on real silicon.
Why Scalar Benchmarks Conceal Failures
In mobile and edge AI evaluation, models are almost universally reduced to a single execution average: "MobileNetV3 executes in 14.2 ms." This summary is comfortable for documentation, but it collapses the entire non-linear physical behavior of the device into a scalar that conceals critical production failures.
In reality, inference execution is bound to an active thermodynamic system. A model with an average latency of 14.2 ms across 300 iterations frequently behaves according to one of four destructive failure regimes:
The Four Controlled Reruns Architecture
Rather than guessing from a single run, Jitter formulates root-cause attribution as a controlled physical experiment. Borrowing principles from differential testing and hardware fault analysis, Jitter executes four orthogonal reruns against the model:
| Rerun Condition | Physical Manipulation | Decisive Evidence Isolated |
|---|---|---|
| 1. Cold vs Warm | Splits run data between initial iterations (1–5) and post-warmup steady-state iterations. | Isolates memory allocation overhead, weight paging, and shader compilation from compute. |
| 2. Cooldown Rest | Enforces a mandatory 240-second rest period to return battery thermistors to ambient baseline. | Proves whether latency increase recovers post-cooldown (thermal clock throttling) or persists (memory leak). |
| 3. Delegate Swap | Forces execution side-by-side across CPU, GPU (OpenCL/Vulkan), and NNAPI/DSP accelerators. | Calculates step-change delta between requested vs executed silicon to uncover silent CPU fallbacks. |
| 4. Quiet Device | Suppresses background daemons, enforces core affinity, and samples the device noise floor. | Separates intrinsic model jitter from OS context switches and background service pre-emption. |
Physical Hardware Telemetry: Google Pixel 10a
The following three production captures demonstrate Jitter running on physical hardware (Google Pixel 10a, Tensor G4 silicon, Android 17 API 37) under sustained LiteRT/TFLite workloads:
Decoupled Wire-Protocol Architecture
To ensure reproducible benchmarks across CI pipelines and field devices, Jitter uses a decoupled client-server architecture over USB and local network:
Hardware temperature is sampled directly via PowerManager.OnThermalStatusChangedListener and the Linux kernel thermal sysfs interface (/sys/class/thermal), ensuring that temperature rise is mathematically correlated with clock curtailment.
Reproducibility & Getting Started
1. Python Command-Line Interface
2. Android Standalone APK (v0.1.2-alpha)
The official Android APK is signed with a 2048-bit RSA release certificate using APK Signature Schemes v2 and v3. It contains zero third-party trackers, zero advertising SDKs, and zero invasive permissions: