arXiv:2611.01377cs.AINov 2026

Manuscript Offprint

arXiv:2611.01377

A Self-Exploring and Self-Evolving Paradigm for Adaptive Edge AI Development

Leming Shen, Qiang Yang, Xinyu Huang, Zijing Ma, Yuanqing Zheng, Chris Xiaoxuan Lu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Leming Shen, Qiang Yang, Xinyu Huang, Zijing Ma, Yuanqing Zheng, Chris Xiaoxuan Lu

Abstract—Large Language Models (LLMs) exhibit powerful code generation abilities, fostering agentic systems to automate edge AI application development. However, existing agents typically operate via fixed agentic workflows and predefined design spaces, struggling to handle rapidly evolving demands of real-world scenarios (e.g., heterogeneous data modalities, diverse task pipelines). Unlike prior systems that treat LLMs mainly as code generators following rigid workflows, we fully exploit their reasoning capabilities to allow agents to determine their own workflows on the fly. To this end, we propose SE², a self-exploring and self-evolving paradigm for adaptive edge AI development. Inspired by human learning processes, we distill development into four atomic operations (retrieve, reason, code, test), and empower agents to explore workflows by dynamically and adaptively selecting an appropriate next operation based on the current context. Extensive evaluations show that, with adaptive workflows, the synthesized programs achieve up to 26% higher accuracy and consume 28% lower resources than state-of-the-art baselines, while maintaining superior adaptability to unforeseen edge AI scenarios. This highlights the potential of reasoning-driven adaptive agentic workflow in edge AI development.

Index Terms—Autonomous coding, LLM, agent

I. Introduction

Edge AI integrates AI techniques with heterogeneous mobile devices to enable perception and actuation in real-world environments [1], [2], [3], [4], [5], [6], facilitating various applications such as smart sensing [7], healthcare [8], [9], and autonomous driving [10], [11], [12], [13].

Developing such applications, however, relies on substantial domain expertise among developers, who must analyze multimodal datasets, design complex signal-processing pipelines, train AI models under diverse constraints, and deploy them on heterogeneous mobile devices [14], [15], [16], [17], [18], [19], [20]. Therefore, recent works [21], [22], [23] build LLM-based agentic systems to automate this process by leveraging LLMs' code generation capabilities and embedded domain expertise. These systems can translate user requirements into executable edge AI programs based on handcrafted, predefined agentic workflows, chaining modules such as knowledge retrieval,

Figure

Fig. 1. Previous works handcrafted fixed agentic workflows to synthesize programs. SE² autonomously explores and selects the next atomic operation in program synthesis to meet diverse edge AI requirements.

task planning, code generation, and iterative refinement [24], [25].

Fixed agentic workflows, however, often struggle to handle diverse edge AI tasks in real-world scenarios (Fig. 1, left). In practice, edge AI tasks may span numerous mobile devices, heterogeneous runtime environments, and dynamic performance and resource constraints. As our study reveals (§ II-A), even well-engineered agentic systems may struggle to accommodate such variability, suffering from inflexibility, limited adaptability, and high maintenance costs.

The root cause is that fixed workflows are often constrained by the specific assumptions and development experiences of workflow designers. In practice, developers must explicitly enumerate workflow steps and handcrafted detailed prompts that regulate agent actions for each. As a result, LLMs solely function as code generators following predefined instruction flows. Yet, a key strength of LLMs remains under-explored: their reasoning capabilities, i.e., the ability to make decisions in response to dynamic context information. This gap motivates a key research question: Can we harness LLMs' reasoning capabilities to autonomously construct adaptive workflows to meet the ever-changing requirements of edge AI development? If successful, we could shift the burden of workflow design from developers to AI agents, enabling more flexible, adaptive, and scalable edge AI application development.

Moving toward such a self-exploring and self-evolving agentic paradigm, we propose SE² that leverages LLMs' reasoning abilities to autonomously construct distinct workflows for various edge AI tasks. The core insight is inspired by human learning processes, which involve iterative knowledge acquisition, reasoning, practice, and reflection on accumulated experiences. Likewise, an SE² agent explores its workflow and evolves through iterations

L. Shen, X. Huang, Z. Ma, and Y. Zheng are with the Department of Computing, The Hong Kong Polytechnic University, Hong Kong SAR, China. E-mail: leming.shen@connect.polyu.hk, unixy-xinyu.huang@connect.polyu.hk, zijing.ma@connect.polyu.hk, and csyszheng@comp.polyu.edu.hk.

Q. Yang is with the Department of Computer Science and Technology, University of Cambridge, Cambridge, UK. E-mail: qiang.yang@cl.cam.ac.uk.

C. Lu is with the Department of Computer Science, University College London, UK. E-mail: xiaoxuan.lu@ucl.ac.uk.

of reflection and exploration. Building upon this vision, we distill edge AI development into four atomic operations (retrieve, reason, code, test), which serve as meta building blocks of agentic workflows (Fig. 1, right). The SE² agent autonomously selects the next appropriate atomic operation based on its reasoning about the accumulated context, thereby flexibly adapting to diverse edge AI scenarios. In addition, our SE² agent evolves through self-reflection, rather than blindly adhering to rigid workflows.

Nevertheless, three unique technical challenges needed to be addressed, calling for novel design and implementation:

① Limited long-context reasoning capability. It is inefficient and impractical to rely on a single agent to perform all the atomic operations due to the limited long-context reasoning abilities of current LLMs, even if they have large context windows [26]. To tackle this, we adopt a coordinator-actor agentic architecture, where a coordinator agent maintains a global view and autonomously orchestrates four task-specific atomic agents, i.e., retriever, reasoner, programmer, and tester. As detailed in § IV, this modular division of cognitive tasks effectively reduces reasoning complexity over long contexts, fostering interpretable and traceable decision-making.

② Lack of in-depth understanding of edge devices. Our feasibility study (§ II-B) found that, even augmented with detailed device specifications, LLMs still struggle to generate executable and performant edge AI programs. The root cause is that LLMs lack runtime feedback from real-world mobile devices. Consequently, the generated code often overlooks critical operational semantics and hardware constraints (e.g., CPU architectures, environment affinity, and memory allocation). To address this issue, we propose a mobile runtime feedback mechanism that encodes grounded, runtime-level semantics and conveys them to SE² agents as actionable feedback, thereby closing the loop for optimization and iteration.

③ Inability to adapt to evolving Edge AI tasks. Simply relying on vanilla LLMs for decision-making cannot cope with the emerging and evolving edge AI environments and tasks. To enhance the adaptability of the coordinator as well as the atomic agents, we adopt reinforcement fine-tuning (RFT) [27] with an ensemble mutual-actor-critic strategy to improve their domain-specific reasoning abilities. In addition, we design several continuously self-evolving graders to assess the reasoning quality in edge AI contexts and provide adaptive feedback to the RFT loop. This approach enables agents to acquire new domain knowledge over time and agilely adjust their workflows to handle unseen scenarios and edge cases.

We fully implement SE² and comprehensively evaluate it against 8 SOTA baselines on an edge AI code-generation benchmark and three representative multimodal edge AI applications (human activity recognition, vision-language understanding, and autonomous driving), spanning distinct modalities, reasoning complexity, and real-world constraints. Extensive experiments reveal that baseline coding agents cannot consistently generate performant

Figure

Fig. 2. A typical agentic workflow of existing work with detailed step 2.

code (40% success rate lower than SE²). In contrast, SE² achieves up to 26% higher accuracy and 28% reduction in resource consumption compared to SOTA methods, while retaining superior generalizability across tasks. These results validate the effectiveness of our reasoning-driven adaptive workflow construction paradigm.

In summary, we make the following contributions:

  • SE² exploits LLMs' reasoning capabilities to autonomously construct agentic workflows via self-exploration and self-evolution, addressing the limitations of fixed workflows in heterogeneous and evolving edge AI environments.
  • We design a reasoning enhancement framework featuring atomic-operation-level adaptive agentic workflow construction, runtime-grounded probe synthesis, and continual multi-agent reasoning evolution.
  • We implement and extensively evaluate SE² against eight SOTA agents on a public benchmark, three representative multimodal edge AI applications, and through a user study, demonstrating its superior accuracy and generalizability.

References (74)