# EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities

DevFeed: [EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities](<https://devfeed.tech/articles/engineagent-agentizing-on-device-llm-inference-engines-with-inference-stack-hierarchy-awareness-and-hardware-abilities-128424.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14356>)

Author: Zhengxiang Huang, Yujie Sun, Shengheng Chen, Zhaode Wang, Chaoyue Niu, Zeyu Zhao, Chengfei Lv, Fan Wu, Guihai Chen

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [backends](<https://devfeed.tech/tags/backends.md>), [build](<https://devfeed.tech/tags/build.md>), [builder](<https://devfeed.tech/tags/builder.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [completeness](<https://devfeed.tech/tags/completeness.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cpus](<https://devfeed.tech/tags/cpus.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-os](<https://devfeed.tech/tags/cs-os.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [device](<https://devfeed.tech/tags/device.md>), [engines](<https://devfeed.tech/tags/engines.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [hierarchy](<https://devfeed.tech/tags/hierarchy.md>), [inference](<https://devfeed.tech/tags/inference.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-inference](<https://devfeed.tech/tags/llm-inference.md>), [on-device](<https://devfeed.tech/tags/on-device.md>)

## AI overview

EngineAgent automates enabling new LLMs in on-device inference engines by separating reusable engine and hardware knowledge from model-specific work. It builds an index of engine layers and their dependencies, validates backend workflows with supported models, then uses a builder to coordinate changes and an auditor to check completeness and debug through device-side validation. In 12 tasks across three mobile LLMs and four engine-backend pairs on CPUs, GPUs, and NPUs, it achieved 75% end-to-end success with either of two underlying LLMs, compared with 33.3% for the strongest coding-agent baseline. Success required compilation, on-device execution, and output-logit agreement with reference implementations. The abstract also reports lower average task time and model-API cost than baselines using the same underlying LLMs.

## Source excerpt

arXiv:2611.14356v1 Announce Type: cross Abstract: Rapidly evolving LLM architectures and heterogeneous mobile hardware make supporting new models in on-device inference engines a recurring and costly system challenge. Each model may require coordinated changes across conversion, graph construction, operators, and hardware backends. Existing coding agents often miss these cross-layer dependencies and struggle to diagnose failures across host--device execution paths. We present EngineAgent, an agentic system for automating on-device LLM model enablement. Its key insight is to separate reusable engine and hardware knowledge from model-specific implementation. Before enablement, EngineAgent constructs a hierarchy-aware engine index that captures engine abstraction layers and cross-layer dependencies, and pre-validates backend-specific build, execution, and debugging workflows using already supported models. For each new model, a builder uses this knowledge to coordinate cross-layer changes, while an auditor checks implementation completeness and drives iterative debugging through device-side validation. Across 12 tasks spanning three mobile LLMs and four engine--backend pairs on CPUs, GPUs, and NPUs, EngineAgent achieves 75% end-to-end success with either of two underlying LLMs, versus 33.3% for the strongest coding-agent baseline. Success requires compilation, on-device execution, and output-logit agreement with reference implementations. EngineAgent also reduces average per-task time and model-API cost relative to baselines using the same underlying LLMs.