{"id":212108,"date":"2026-10-20T16:38:18","date_gmt":"2026-10-20T16:38:18","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/212108\/"},"modified":"2026-10-20T16:38:18","modified_gmt":"2026-10-20T16:38:18","slug":"bringing-visual-graph-debugging-to-custom-edge-compilers-with-model-explorer","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/212108\/","title":{"rendered":"Bringing Visual Graph Debugging to Custom Edge Compilers with Model Explorer"},"content":{"rendered":"<p data-block-key=\"6shzf\">Model Explorer goes beyond high-level model graphs. See how Arm plugs in custom compiler IRs, verifies NPU delegation side-by-side, and maps cycle-level profiling traces directly onto your execution graph.<\/p>\n<p data-block-key=\"6shzf\">Machine learning models run locally on a wide range of hardware, from low-power edge devices to gaming graphics and physical AI systems. Running models efficiently on these targets requires compilation steps such as quantization, graph lowering, operator fusion, and hardware delegation.<\/p>\n<p data-block-key=\"f0heg\">Arm used<a href=\"https:\/\/developers.google.com\/edge\/model-explorer\" rel=\"nofollow noopener\" target=\"_blank\"> Google AI Edge Model Explorer<\/a> to give developers visibility into these pipelines. With Model Explorer&#8217;s hierarchical graph visualization and plugin architecture, Arm built several open-source adapters that make edge model transformations easier to inspect.<\/p>\n<p>The Challenge<\/p>\n<p data-block-key=\"6d7hp\">When deploying a model to edge hardware, a framework change or operator constraint can alter the exported execution graph. Engineers often need to answer three questions:<\/p>\n<p>Structural integrity: Did graph lowering introduce unintended operators such as extra layout transposes?Hardware delegation: Is the model fully delegated to the NPU or GPU, or are unsupported subgraphs falling back to the CPU?Cycle-level bottlenecks: Which nodes in the lowered graph take the most compute cycles?<\/p>\n<p data-block-key=\"1dpr\">Answering these questions by reading raw flatbuffers or text logs takes time, especially for large language models (LLMs) and neural networks. Arm needed a visual tool to inspect Arm-specific intermediate representations and hardware profiling traces.<\/p>\n<p>How Arm Used Model Explorer&#8217;s Visual Debugging Workflows<\/p>\n<p data-block-key=\"bb9bt\">To address these deployment challenges, Arm developed custom adapters for Google AI Edge Model Explorer to support several model formats (i.e., <a href=\"https:\/\/www.mlplatform.org\/tosa\/tosa_spec.html\" rel=\"nofollow noopener\" target=\"_blank\">TOSA<\/a>, <a href=\"https:\/\/docs.pytorch.org\/executorch\/stable\/tutorial-arm-vgf.html\" rel=\"nofollow noopener\" target=\"_blank\">VGF<\/a>, and <a href=\"https:\/\/docs.pytorch.org\/executorch\/stable\/pte-file-format.html\" rel=\"nofollow noopener\" target=\"_blank\">PTE<\/a>), establishing a comprehensive visual workflow for on-device optimization. Using these extensions, engineering teams can validate exported pipelines, verify accelerator delegation, and pinpoint cycle-level performance bottlenecks directly on the model graph:<\/p>\n<p>1. Catching hidden export regressions in VGF<\/p>\n<p data-block-key=\"d2hpv\">Arm engineers used Model Explorer to validate a PyTorch-trained<a href=\"https:\/\/huggingface.co\/Arm\/neural-super-sampling\" rel=\"nofollow noopener\" target=\"_blank\"> Neural Super Sampling (NSS) model<\/a> exported through the ExecuTorch Arm backend as a VGF file for Vulkan ML Extensions. While inspecting the VGF graph, the team found unintended TRANSPOSE operators introduced by a change in the ExecuTorch Arm backend.<\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/figure1.original.png\" alt=\"figure1\"\/><\/p>\n<p>\n                        Figure 1: Overview of the exported NSS model in VGF format, showing the graph partition and its connections to the model inputs and outputs.\n                    <\/p>\n<p data-block-key=\"6shzf\">Model Explorer enables users to inspect individual nodes of the model graph, such as the rescale operator depicted below, which displays the operator&#8217;s attributes and SPIR-V tensor connections. This functionality assisted the Arm team in identifying and resolving the regression without requiring manual analysis of raw log files.<\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/figure2.original.png\" alt=\"figure2\"\/><\/p>\n<p>\n                        Figure 2: Detailed view of the NSS graph, showing a selected rescale operator with its attributes and SPIR-V input and output connections.\n                    <\/p>\n<p>    2. Verifying NPU delegation vs. CPU fallback with Split-Pane View<\/p>\n<p data-block-key=\"bq7dj\">To optimize vision models for accelerators like the<a href=\"https:\/\/www.arm.com\/products\/silicon-ip-cpu\/ethos\/ethos-u85\" rel=\"nofollow noopener\" target=\"_blank\"> Arm Ethos-U85 NPU<\/a>, Arm engineers used Model Explorer&#8217;s <a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/2.-User-Guide#split-pane-view\" rel=\"nofollow noopener\" target=\"_blank\">split-pane view<\/a> to compare CPU and NPU-delegated graphs side-by-side for a Ultralytics YOLO model.<\/p>\n<p data-block-key=\"1658g\">The split-pane view showed the structural difference: the CPU graph displays each individual layer, while the NPU graph groups the network into a single EthosUBackend block between quantize and dequantize nodes. For partially supported models in LiteRT or ExecuTorch, this view helps identify un-delegated operators and split subgraphs.<\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/figure3_CPU_1.original.png\" alt=\"figure3_CPU (1)\"\/><\/p>\n<p>\n                        Figure 3a: Ultralytics YOLO model CPU graph in split-pane view\n                    <\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/figure3_NPU.original.png\" alt=\"figure3_NPU\"\/><\/p>\n<p>\n                        Figure 3b: Ultralytics YOLO model NPU graph in split-pane view\n                    <\/p>\n<p>    3. Pinpointing Hardware Bottlenecks with Per-node Trace Overlays<\/p>\n<p data-block-key=\"91cch\">To find latency bottlenecks on the Ethos-U NPU, Arm ran their model on their <a href=\"https:\/\/www.arm.com\/products\/development-tools\/simulation\/fixed-virtual-platforms\" rel=\"nofollow noopener\" target=\"_blank\">Fixed Virtual Platform (FVP)<\/a> simulator and used Model Explorer&#8217;s <a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/4.-API-Guide#custom-node-data\" rel=\"nofollow noopener\" target=\"_blank\">node data plugin<\/a> to overlay cycle-accurate execution traces onto the graph. Color-coded heatmaps showed that a single TRANSPOSE node was the main latency bottleneck.<\/p>\n<p>                <img decoding=\"async\" class=\"regular-image\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/figure4.original.png\" alt=\"figure4\"\/><\/p>\n<p>\n                        Figure 4. Highlighted performance data overlay that clearly shows where the bottleneck is.\n                    <\/p>\n<p>    How to get started<\/p>\n<p data-block-key=\"bieir\">You can use Google AI Edge Model Explorer along with Arm&#8217;s open-source adapters today to inspect and optimize your own on-device models locally via PyPI or GitHub.<\/p>\n<p><a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/1.-Installation\" rel=\"nofollow noopener\" target=\"_blank\">Install Google AI Edge Model Explorer<\/a>Install adapter and launch Model Explorer for your model format.<a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/tree\/main\/src\/builtin-adapter\/adapters\/litert\" rel=\"nofollow noopener\" target=\"_blank\">LiteRT adapter<\/a> (built-in)<a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/blob\/main\/src\/server\/package\/src\/model_explorer\/builtin_pytorch_exportedprogram_adapter.py\" rel=\"nofollow noopener\" target=\"_blank\">PyTorch adapter<\/a> (built-in)<a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/tree\/main\/src\/server\/package\/src\/model_explorer\/hfgraph\" rel=\"nofollow noopener\" target=\"_blank\">Hugging Face Transformers adapter<\/a> (built-in)<a href=\"https:\/\/github.com\/arm\/tosa-adapter-model-explorer\" rel=\"nofollow noopener\" target=\"_blank\">TOSA adapter<\/a> (Arm plugin)<a href=\"https:\/\/github.com\/arm\/vgf-adapter-model-explorer\" rel=\"nofollow noopener\" target=\"_blank\">VGF adapter<\/a> (Arm plugin)<a href=\"https:\/\/github.com\/arm\/pte-adapter-model-explorer\" rel=\"nofollow noopener\" target=\"_blank\">PTE adapter<\/a> (Arm plugin)See <a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/2.-User-Guide\" rel=\"nofollow noopener\" target=\"_blank\">User Guide<\/a> and try out major features:<a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/2.-User-Guide#graph-navigation\" rel=\"nofollow noopener\" target=\"_blank\">Graph Navigation<\/a><a href=\"https:\/\/github.com\/google-ai-edge\/model-explorer\/wiki\/2.-User-Guide#split-pane-view\" rel=\"nofollow noopener\" target=\"_blank\">Split View Side by Side<\/a>Acknowledgements<\/p>\n<p data-block-key=\"3spov\">Special thanks to the contributors across the Arm and Google AI Edge teams for their work on these adapters and integrations:<\/p>\n<p data-block-key=\"e6a7t\">Engineers:<\/p>\n<p>ARM: Narumol Prangnawarat, Joshua Slater, Stefana Simion, Adam Hodson, Alona Enraght-Moony, \u00c1ron Virgin\u00e1s-Tar, Carey Williams, Gleb Vinnychenko, Hamza Arslan, Marco Domingo, Matthew Sloyan, Michael Mc Curtin, Mitch Bailey, Richard Burton, Robert Hughes, Robert Taylor, Tom\u00e1s Agust\u00edn Gonz\u00e1lez OrlandoGoogle: Alan Ma, Eric Yang, Jing Jin, Na Li<\/p>\n<p data-block-key=\"5r7qa\">Product manager: Charlie Stokes (ARM), Derek Bekebrede<\/p>\n<p data-block-key=\"4usd5\">Designers: Ami Kubota, Ioannis Politis (ARM), Kathleen Low, Philip Watson (ARM)<\/p>\n<p data-block-key=\"cua4j\">Senior Sponsors: Bala Gattu (ARM), Cormac Brick, Joe Alderson (ARM), Matthias Grundmann, Sharbani Roy (ARM)<\/p>\n","protected":false},"excerpt":{"rendered":"Model Explorer goes beyond high-level model graphs. See how Arm plugs in custom compiler IRs, verifies NPU delegation&hellip;\n","protected":false},"author":2,"featured_media":212109,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[24,132,1429],"class_list":["post-212108","post","type-post","status-publish","format-standard","has-post-thumbnail","category-google","tag-ai","tag-google","tag-google-ai"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/212108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=212108"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/212108\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/212109"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=212108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=212108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=212108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}