Edge AI/完全オフライン運用編 — オンデバイス / エッジ / ローカル / オフライン / エアギャップを分離し、端末推論から完全オフライン運用までの成立条件を定義する
- 最終確認日
- 2026-10-11
- 提供元・モデル・プラン・利用環境
- 記事ID
- EA-010
要点
「オンデバイス推論は完全オフライン運用の必要条件になり得るが、十分条件ではない。完全オフラインは、モデル、runtime、accelerator/driver、アプリケーション、認証・ライセンス、更新、telemetry、外部サービスまで含む対象system boundaryにruntime network dependencyがないことを実測して初めて主張できる。air-gappedはさらに強く、単なるoffline modeやegress遮断と同義ではない。」
現在の判断
- 用語境界を固定する。
- ON-DEVICE: inference executionが対象端末上で行われる。network dependencyの有無は含意しない。
- EDGE: centralized cloud/data centerより利用地点・sensor/actuatorに近い計算配置。on-deviceを含み得るが、gateway/edge serverやcloud control planeと併用し得る。
- LOCAL: 組織または利用者が管理する近傍のランタイムで処理するという運用上の用語です。物理的な配置やネットワーク分離の強さは別途記録します。
- OFFLINE-CAPABLE: 特定の運用期間・機能についてWAN/Internet無しで成立する。初期provisionやupdateがonlineでもよい場合があるためscopeを明記する。
- FULLY OFFLINE: 必要artifactが事前配置された後、対象業務のruntime pathがnetworkに依存せず成立することを実測で確認した状態。どこまでをsystem boundaryに含めたか必須。
- AIR-GAPPED: NIST/CNSSI系定義に沿い、物理接続なし・自動logical connectionなし、移送が人手管理される強い分離。単なるfirewall/egress deny/offline modeをair-gapと呼ばない。
どこまで当てはまるか
hardware: CPU/GPU/NPU/DSP capability、RAM/VRAM/shared memory、storage、thermal design、power budget。 software: OS/BSP、driver/firmware、runtime version、delegate/EP/operator support、compiler/export toolchain。 artifact: model size/license、tokenizer/preprocessor、quantization format、signature/hash。 ネットワーク/オフライン: オンラインでのアクティベーション、モデル/パッケージのダウンロード、識別子/トークンの更新、外部API/RAG、およびテレメトリ/アップデートエンドポイントの有無が必要。 運用:オフラインミラー、署名済みメディア、時刻/証明書ポリシー、パッチ適用期間、ロールバック用成果物、ログ回収経路。 physical: device custody、ports、removable media、debug interfaces。air-gapを主張する場合はnetwork topology自体を別監査する。
詳しく理解する
対象範囲と前提
- Enterprise AI Core: デプロイ構成 / 可用性 / 失敗の許容範囲 / ライフサイクル / 観測性
- implementation: on-device runtime、AOT/export、accelerator/backend、artifact packaging
- non-LLM component: CV/ASR/TTS/classic ML/GenAIを含むedge inference全般
- security/governance: egress、supply chain、offline update、device custody、audit
- benchmark: latency / memory / energy / quality / sustained thermal behavior
検討ポイント
Q1. on-device inferenceが成立しても、完全オフライン運用が成立したとは言えないのではないか。 Q2. エッジ / ローカル / オフライン / エアギャップを、どの運用境界で分離すべきか。 Q3. 完全オフラインを証明するにはmodelだけでなく、runtime・driver・application・licensing・update・telemetry・external serviceまで何を試験すべきか。 Q4. エッジアクセラレータの最適化は、移植性、精度、電力、熱、更新性に対して、どのような追加の確認工程(gate)を生じさせるか。
根拠資料
[E10-01] 資料の種類:公式実装文書 exact title: Welcome to the ExecuTorch Documentation / How ExecuTorch Works 著者・組織:PyTorch / Linux Foundationの関連組織・技術 canonical URL: https://docs.pytorch.org/executorch/stable/ 公開・更新・参照:ExecuTorch 1.3 文書 / 参照日 2026-09-11 version/release: documentation 1.3 supporting locator: edge devices; export -> compile to ExecuTorch Program -> execute on target; CPU/GPU/NPU/DSP backends; mobile/embedded/microcontroller support label: 仕様確認済み / OSS_PRACTICE relation: support/context establishes: edge inferenceはmodel weights単体ではなく、事前export/compile、target-specific backend、runtimeというdeployment chainを持つ。 成立しない事項: ExecuTorchを採用したシステムがネットワークに依存せず、エアギャップ環境であり、安全であること。
[E10-02] 資料の種類:公式実装文書 exact title: LiteRT: High-Performance On-Device Machine Learning Framework author/org: Google canonical URL: https://developers.google.com/edge/litert 公開・更新・参照:最終更新日 2026-07-17 UTC / 参照日 2026-09-11 version/release: current LiteRT docs as-of 2026-09-11 supporting locator: lines 123-125 on-device framework; 160-179 obtain/optimize/run; 182-205 mobile-to-IoT and CPU/GPU/NPU-oriented paths label: 仕様確認済み / 製品情報は要再確認 relation: support/context establishes: on-device frameworkはmodel conversion/optimization、runtime、accelerator選択を含み、edge deployment自体は複数platform/hardware経路を持つ。 does_not_establish(立証されていない事項): モデルの取得、初期プロビジョニング、アップデート、テレメトリ(遠隔測定)に至るまで、オフラインであること。
[E10-03] 資料の種類:公式実装文書 exact title: ONNX Runtime for Inferencing / Get started with ONNX Runtime Mobile 著者・組織:Microsoft / ONNX Runtimeプロジェクト canonical URL: https://onnxruntime.ai/inference 公開・更新・参照:現行文書 / 参照日 2026-09-11 version/release: current documentation as-of 2026-09-11 supporting locator: cloud/edge/mobile/browser support; Mobile runs inference on Android/iOS; execution providers expose device-specific acceleration label: 仕様確認済み / OSS_PRACTICE relation: support/context establishes: 共通runtime APIでも、device acceleratorはExecution Providerやplatform package等の追加dependencyを持つ。 does_not_establish: 全operator/modelが全EPで同一挙動・性能になること、完全offline成立。
[E10-04] 資料の種類:公式の製品・基盤文書 exact title: NVIDIA JetPack / JetPack SDK Downloads and Notes author/org: NVIDIA canonical URL: https://developer.nvidia.com/embedded/jetpack 公開・更新・参照:参照日 2026-09-11; ダウンロードページの現行版: JetPack 7.2.1 / Jetson Linux 39.2.1 バージョン/リリース: JetPack 7シリーズ; ダウンロードページには7.2.1、CUDA 13.2.1、TensorRT 10.16.2が記載されている supporting locator: JetPack is official software stack for Jetson; OS/kernel/drivers/AI compute stack are part of the edge platform label: 仕様確認済み / 製品情報は要再確認 relation: support/context 規定事項:エッジデバイスは、モデルの実行環境だけでなく、BSP、カーネル、ドライバ、CUDA、TensorRTなどのバージョン管理されたスタックとして管理すべきである。 does_not_establish: Jetsonがデフォルトでair-gapped、またはonline dependencyを一切持たないこと。
[E10-05] 資料の種類:公式用語・セキュリティ用語集 exact title: air gap - Glossary | CSRC 作成者/組織:NIST CSRC;出典:CNSSI 4009-2022 / IETF RFC 4949 Ver 2 canonical URL: https://csrc.nist.gov/glossary/term/air_gap 公開・更新・参照:原資料 CNSSI 4009-2022 / 参照日 2026-09-11 version/release: glossary definition current as-of access 補足的な参照先:システムは物理的に接続されておらず、論理的な接続も自動化されていない。転送は人による確認・承認の下で手動で行われる。 根拠の区分:仕様で確認済み relation: boundary/counter establishes: 「offline」と「air-gapped」は同義ではない。air gapは接続関係そのものに強い条件を置く。 does_not_establish: air gapだけでendpoint/supply-chain/insider riskが消えること。
[E10-06] 資料の種類:比較評価の仕様・結果 exact title: Benchmark MLPerf Inference: Tiny 著者・組織:MLCommons canonical URL: https://mlcommons.org/benchmarks/inference-tiny/ 公開・更新・参照:参照日 2026-09-11 version/release: page lists latest suite version v1.3 supporting locator: single-stream latency; task-specific quality thresholds; optional energy benchmarking label: RESEARCH / 仕様確認済み relation: support/limit establishes: constrained edge評価ではlatencyだけでなくqualityを維持し、energyも独立計測軸にできる。 does_not_establish: MLPerf Tiny結果がLLM/GenAIや特定企業端末の実性能を保証すること。
セキュリティとプライバシー
raw dataをdevice外へ送らない構成はdata minimizationに有利だが、local logs/cache/model prompt historyのretentionと端末紛失時保護が必要。 監査:オフライン期間中の追記専用のローカル監査、クロックソース、ログの完全性、および後日の制御されたエクスポートを設計する。中央監査への即時送信が行われないことを明示する。
コストと運用負荷
cloud token/API feeだけでなくdevice acquisition、accelerator、storage、電力、fleet patching、交換、現地保守をTCOへ含める。
OPERABILITY
golden image、artifact manifest、offline package mirror、signed update bundle、rollback bundle、health check、capacity/thermal monitoringを運用単位にする。
Current primary evidence
- https://developer.apple.com/documentation/coreml
- https://developer.apple.com/documentation/coreml/downloading-and-compiling-a-model-on-the-user-s-device
- https://developer.apple.com/documentation/CoreAI/integrating-on-device-ai-models-in-your-app-with-core-ai
- https://developers.google.com/edge/litert/overview
- https://developers.google.com/edge/litert-lm/overview
- https://onnxruntime.ai/docs/tutorials/iot-edge/
decision
PASS_FOR_BOUNDED_BASE_REVISION.
確認できていること
完全オフラインは「モデル特性」ではなくend-to-end system propertyである。最低でも以下をdependency graph化する。 model artifact / tokenizer・pre/post processor / inference runtime / accelerator backend・driver・firmware / application assets / config・policy / identity・license・entitlement / secrets・certificates・clock / data store / external tool・API / telemetry・crash reporting / update・rollback / package repository。
ExecuTorch、LiteRT、ONNX Runtimeはいずれもon-device/edge inferenceを成立させる実装だが、backend/delegate/Execution Providerやplatform packageによりhardware dependencyが変わる。よって「runtime名」だけでは可搬性を表現できない。MODEL + RUNTIME + BACKEND/EP + DRIVER/FIRMWARE + DEVICE/OSをversion tupleとして保存する。
NVIDIA JetPackのようなedge stackではBSP/kernel/driver/CUDA/TensorRTまで連鎖する。edge applianceの再現性・rollbackはmodel versionだけでなくplatform stackのpinningが必要である。
Edge化の典型的利点(低latency、network loss時の可用性、raw dataを外へ出さない設計余地)は、ネットワークを使わないという事実から自動的にsecurity/privacy保証へ昇格しない。端末盗難、local privilege、malicious media、model/runtime supply chain、物理port、removable media、operator errorは残る。
edge性能評価はpeak benchmarkだけで閉じない。品質、TTFT/latency、throughput、memory、storage、energyに加え、長時間運転時のtemperature / clock / throttling / battery・power stateを記録する。MLPerf Tinyはlatency+quality+optional energyという測定分離の参考になるが、GenAIの業務保証には外挿しない。
Current edge/on-device runtimes reinforce the canonical distinction between “inference can run offline” and “the complete application/operation is air-gapped.”
Apple Core ML states that once a model is on-device, inference can run without a network connection, while separate documentation supports downloading/compiling models after installation; acquisition/update can remain an online dependency.
Apple's Core AI supports entirely on-device inference and can bundle or download model artifacts, separating inference locality from artifact-distribution dependency.
Google LiteRTは、複数のプラットフォーム上でデバイス上での推論を実行する。そのオフラインでのデモンストレーションはローカル実行を証明しているが、ランタイム、ツールチェーン、およびアクセラレータの互換性は、別途依存関係として残る。
ONNX Runtime's edge guidance lists offline operation as a benefit but also calls out model-size and hardware limitations.
“Edge”、“on-device”、“local”、“offline”、“air-gapped”は、それぞれ等価ではないデプロイメントに関する記述(claims)として扱う。
よくある失敗・反証
local inference成功だけではoffline証明にならない。初回model download、license check、SSO/token refresh、remote config、DNS、certificate validation、NTP/time、package fetch、telemetry/crash upload、RAG/DB/API/tool call、update checkerが隠れたonline dependencyになり得る。
「egressをfirewallで遮断して動いた」はair-gap証明ではない。
offline化によりcloud-side central logging/patching/policy distributionが弱くなり、端末ごとのconfiguration drift、未更新脆弱性、audit回収遅延が増える可能性がある。
アクセラレータのデリゲート/EPにおける未サポート操作のフォールバックにより、想定していたNPU/GPUではなくCPUに処理が落ち、レイテンシ、電力、熱設計が崩れる場合があります。対応表のみでは実端末の性能を保証しません。
量子化や最適化によってメモリ使用量と速度を改善しても、品質が低下する可能性があります。EA-009と同様に、元のモデルとの差分に関する受け入れ確認試験が必要です。
removable mediaでair gapを越える場合、その媒体が更新・data exfiltration・malware侵入のcontrol pointになる。
ローカル推論は、オフラインでのモデル取得、ライセンス/権限の検証、アップデート、テレメトリ、アイデンティティ、ツール/APIへのアクセス、または復旧を証明するものではありません。
An application that downloads its model or required runtime at first launch is not ready for a sealed air-gapped environment without pre-provisioning.
ハードウェアアクセラレーションは、デバイス/ランタイム/ドライバー/ツールチェーンの互換性に依存し、フォールバックまたは失敗する場合がある。
Offline operation requires local observability, artifact verification, clock/identity strategy, rollback media, and incident/recovery procedures.
No air-gapped hardware lab test was performed in this rescue.
実務での使い方
ExecuTorch 1.3: maintained edge runtime/documentation。mobile/embeddedからaccelerator backendまでproduction-oriented implementationあり。
LiteRT: Googleの現在のオンデバイスML/GenAIフレームワーク。TFLiteの系譜を継承し、モバイル、デスクトップ、ウェブ、組み込み、およびCPU/GPU/NPU向けの経路を提供します。
ONNX Runtime Mobile: maintained mobile/edge inference runtime。Execution Providerでplatform accelerationを分離。
NVIDIA JetPack/TensorRT: Jetson edge platformのversioned OS/driver/accelerated inference stack。
エアギャップ: これはデプロイメントモード/セキュリティアーキテクチャであり、AIランタイムの機能ではありません。
将来本文では「edgeが速い」ではなく最低限以下を同時に記録する。
task quality: accuracy/F1/WER/CER/Recall@kまたは業務golden-set score
コールドスタート / ウォームスタートのレイテンシ、生成AIの場合はTTFT/TPOT
sustained throughput and p95/p99
peak / steady memory、storage footprint
energy per inference / average power(測定可能時)
熱的な定常状態 / スロットリングの開始 / クロックの劣化
accelerator placementとCPU fallback率
network attempts count under blocked egress
offline functional completion rate MLPerf Tiny v1.3は、品質の閾値、シングルストリームのレイテンシ、およびオプションの消費電力を分離して示す参考規格としてのみ使用し、LLMや製品の保証へと外挿してはならない。
エグレス(データ転送)の削減と攻撃対象領域の削減を同一視しないでください。成果物の署名/ハッシュ、SBOM/出典・来歴、セキュアブート/OSパッチ、デバイス暗号化、最小権限、ポート/メディア制御は個別に管理してください。
まだ確認できていないこと
/ 再確認条件
- runtimeごとのtelemetry/update endpointや初回network requirementはplatform/package/buildによって異なるため、一律には閉じない。
- edge acceleratorのoperator fallback・精度・thermal挙動は具体device/model/runtime tupleなしでは確定しない。
- 「完全オフライン」のsystem boundaryは業務ごとに異なる。identity、RAG、logging、updateを境界外へ追い出して見かけ上offlineとする記述は禁止。
- デバイス固有のアクセラレータのフォールバックおよびパフォーマンス;
- offline entitlement/license validation for specific products;
- 組織固有のエアギャップ環境(オフライン環境)における、事前プロビジョニングおよび更新手順。
- 外部依存関係が長期間利用不能になった際の、失敗/復旧動作。
根拠資料
この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。
このページから探す
種類
主題
やりたいこと
読み終えたら、次の判断へ
この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。
最初の知見から実務判断まで、3つの読み方を見る