Abstract
On-device Artificial Intelligence (AI) models operating directly on mobile and edge devices face unpredictable runtime constraints including memory pressure, thermal throttling, and unvalidated user inputs. Existing mobile testing paradigms lack specialized fault injection mechanisms tailored for AI inference runtimes. In this work, we present SATE AI, a fault injection and evaluation framework for Flutter applications that systematically evaluates model robustness across seven key failure modes.
1. Software Architecture
SATE AI enforces a decoupled architecture isolating fault injectors, model adapters, and orchestration runners. This allows model runtimes (such as ONNX Runtime and TensorFlow Lite) to be evaluated under simulated stress scenarios without modifying the core model execution engine.
The framework features seven core fault injectors capable of targeting memory pressure, thermal degradation, quantization drift, latency spikes, input corruption, model swapping, and confidence validation.
2. Fault Injection Workflow
During stress execution, the StressRunner coordinates sequential or grouped fault injections against an AIModelAdapter instance. Each injector alters internal model state, monitors inference outputs, measures latency overhead, and asserts error handling compliance.
3. Implementation & Example Usage
SATE AI provides a clean programmatic Dart API for developers to wrap custom on-device runtimes, define targeted injection thresholds, and process structured StressReport outputs in JSON or Markdown format.
4. Availability & Downloads
SATE AI is open-source and published on pub.dev. Full LaTeX sources, bibliography data, and research artifacts are accessible via the repository.
- PDF Paper: docs/assets/pdf/paper.pdf
- LaTeX Source: docs/assets/pdf/paper.tex
- BibTeX References: docs/assets/pdf/paper.bib