RESEARCH · Evulgare · NOT OFFICIAL EVIULON DOCTRINE

Executive Summary

Research section 3 of 3

Runtime / Framework Strengths Weaknesses License Ecosystem Gaps AIR Could Fill
TensorFlow Lite (LiteRT) Official Google solution; runs on 4B+ devices across Android, iOS, Linux, microcontrollers. Mature tooling (TFLite Model Maker, converter) with support for quantization/QAT. Delegates for Hexagon DSP, Apple Core ML, OpenCL GPU. Steep learning curve for beginners. Limited support for some custom ops/RNNs. iOS integration requires TensorFlow dependency. Binary size can be large (especially with static libs). Apache 2.0 (open-source) Part of TensorFlow; large community; Google support; extensive docs. Tightly coupled to TensorFlow models by default. AIR could improve cross-framework portability or simplify operator support (e.g. auto-convert unsupported ops).
ONNX Runtime (ORT) Mobile Framework-agnostic (supports ONNX from PyTorch, TF, scikit-learn, etc.). Cross-platform (Windows, Linux, Android, iOS) and multi-language (C/C++, Python, C#, Java). Built-in graph optimizations and many hardware providers (CUDA, DirectML, ARM NN, etc.). Often faster than raw frameworks. Requires model export to ONNX which may drop custom ops or new layers. Debugging complex; inconsistent acceleration on different devices. Binary relatively heavy. MIT (open-source) Microsoft-backed; active community; integrates with Azure ML and Windows AI. AIR could unify ONNX with a lighter footprint, more seamless mobile integration, and extended built-in delegate support (especially for emerging NPUs).
Core ML (Apple) Deeply integrated on iOS/macOS. Unified API via Xcode. Highly optimized for Apple Silicon – automatically dispatches across CPU/GPU/Neural Engine. Thousands of apps use it. New versions speed up inference with OS updates. Locked to Apple ecosystem (iPhone, iPad, Mac). Model conversion requires coremltools; some ops may not be supported. Proprietary (no open code). Not cross-platform. Proprietary (free for Apple developers) Apple platform (Swift/Obj-C). Works with Vision, Metal, Create ML. AIR could bridge Core ML to non-Apple hardware (e.g. an abstraction to use iOS-calibrated models on other CPUs/NPUs) or offer Core ML–like ease on Android.
PyTorch Mobile (ExecuTorch) Natural for PyTorch users (TorchScript format). ExecuTorch provides a lightweight runtime with extension points for vendor delegates. Portable from Python training to C++/Java apps. Emphasis on portability and performance (leveraging DSP, NPU via partner SDKs). BSD license. Historically larger binary size and slower than TFLite for some models. Hardware support (beyond CPUs) is improving but lagged. Documentation is improving. New (2023) ExecuTorch is evolving. BSD (open-source) Backed by PyTorch (Meta); growing ecosystem (works with TorchLite, MNN). Integration with ML frameworks (HuggingFace, etc.). AIR could integrate PyTorch’s ease with more aggressive model compression or built-in quantization (PyTorch Mobile now supports quant but could be streamlined).
Apache TVM Highly flexible ML compiler. Can ingest models from many frameworks and optimize them for any hardware. Releases minimal runtime kernels after heavy graph and loop optimizations. Excels at wringing out performance, especially on new or custom accelerators. Not a turnkey runtime – requires expertise. The developer must write target-specific schedules or use auto-tuning. Longer compile times. Not a simple deployable library. Apache 2.0 (open-source) Academic and industry collaboration (Amazon, Google, community). Integration with other tools (Kubernetes, MLIR). AIR could bake TVM optimizations into a more user-friendly runtime (e.g. dynamic JIT or precompiled catalogs), combining TVM’s performance with easier workflows.
Arm NN Free, open-source SDK optimized for Arm architecture. Bridges common frameworks (TF, Caffe, ONNX) to Arm CPUs, Mali GPUs, Ethos NPUs using NNAPI. Excellent performance on Android devices (exploits NNAPI delegates). Primarily targets Arm-based Linux/Android devices. Requires a Linux environment and build tools – not a simple plug-in on Windows or macOS. Apache 2.0 (via Linaro) Arm’s ecosystem. Works well in custom embedded Linux or Android OEM builds. AIR could extend Arm NN’s approach to non-Arm hardware (e.g. similar abstraction for RISC-V or x86), and improve Windows/mobile integration.
Qualcomm SNPE (Neural Processing SDK) Optimized for Snapdragon SoCs. Supports TF, PyTorch, Keras, ONNX models. Runs on Android/Linux, accelerates on Hexagon DSP and Adreno GPU. Includes model conversion tools and profiling. Low overhead on Snapdragon devices. Restricted to Qualcomm hardware (Snapdragon only). Proprietary (free SDK but closed source). Limited community outside Qualcomm’s ecosystem. Proprietary (Qualcomm) Qualcomm developer community. Bundled with Hexagon SDK. AIR could generalize SNPE’s multi-processor scheduling to other vendors (e.g. an “Open Snapdragon-like” runtime), or integrate with non-Qualcomm chips.

Table: Comparison of current edge inference runtimes and frameworks. AIR would aim to unify the best traits (cross-platform flexibility, low overhead, broad hardware support) while closing gaps like heavy binaries, limited op support, or ecosystem lock-in.

Market Analysis: Trends and Drivers

Risks, Barriers, and Mitigations

  1. Hardware Fragmentation: The diversity of edge devices (ARM vs x86, Android vs iOS, many NPU architectures) is daunting. A single runtime may not support all devices equally. Mitigation: Embrace open standards (ONNX, NNAPI), modular design (delegate plugins), and auto-tuning. AIRs can focus on the largest segments first (Android phones, popular SoCs, etc.) and gradually cover niche hardware. Providing reference implementations and tutorials for porting to new chips also helps.

  2. Model Complexity: State-of-the-art models (large transformers, 3D convnets) still stress-device limits. There is a lag between cutting-edge AI research and its edge-friendliness. Mitigation: Promote model compression research (e.g. tinyML community), use cascade approaches (edge+cloud hybrid for the heaviest models), and invest in hardware trends (e.g. support 4-bit or binary NN accelerators). AIRs can guide developers on “model budgeting” (which models fit which class of device).

  3. Security and Trust: If AIR is compromised (e.g. malicious model updates or side-channel leaks), user safety is at risk. Mitigation: Implement secure boot for models (signed packages), sandboxed execution, and regular security audits. For high-risk applications, include runtime attestation or integrate with TPMs/TEEs. Also comply with AI safety regulations (logging inferences, explainability features) to build trust.

  4. Regulatory Compliance: Meeting GDPR, AI Act and industry-specific regulations may require extra documentation and controls (data minimization, bias audits). Mitigation: Embed privacy-by-design principles (not logging personal data), provide data governance features (model behavior logs), and obtain relevant certifications (e.g. ISO 13485 for medical AI, ISO 26262 for automotive).

  5. Developer Adoption: If AIR is hard to use, developers will stick with the cloud or vendor-specific tools. Mitigation: Offer familiar APIs, great documentation, and performance benchmarks. Community engagement (conferences, open-source contributions) and example projects can accelerate uptake.

In summary, while challenges remain, the combination of technological necessity (latency/privacy) and market demand strongly favors AIR. By addressing integration hurdles and aligning with standards and regulations, AIR is well-positioned to become a common paradigm for on-device AI.

Source: Evulgare/Autonomous on-device inference.md · SHA-256: f305ac61ee67445793d323c93b8830a40dbc06fe1bd3fd3603ffc17277000cd3