Hybrid Edge-AI Framework for Intelligent Mobile Applications: Leveraging Large Language Models for On-device Contextual Assistance and Code-Aware Automation

The integration of large language models (LLMs) into mobile development workflows has been fundamentally constrained by three competing requirements: computational efficiency, contextual awareness, and real-time responsiveness. While cloud-based LLMs offer unparalleled reasoning capabilities, their reliance on remote infrastructure introduces prohibitive latency, privacy risks, and energy inefficiencies for mobile environments. Conversely, on-device models, though responsive and privacy-preserving, often lack the contextual depth required for complex code understanding and automation tasks. To address these challenges, we present SolidGPT, a hybrid edge-cloud framework that achieves an optimal balance between these competing demands through three key architectural innovations. First, we introduce a Markov Decision Process (MDP)-based dynamic routing system that intelligently allocates tasks between on-device lightweight models (DistilGPT, TinyLLaMA) and cloud-based LLMs (GPT-4). This system evaluates real-time parameters—including contextual complexity, hardware constraints, and network conditions—to minimize energy consumption (28.6% reduction) while maintaining high accuracy (91% diagnostic accuracy). Second, our deep integration with Android’s Model-View-ViewModel (MVVM) architecture enables semantic-aware analysis across UI layouts, business logic, and runtime logs, bridging the gap between static code analysis and dynamic mobile runtime environments. Third, a novel prompt engineering pipeline preserves codebase-specific context across execution boundaries, ensuring continuity between local and cloud processing. To validate our framework, we conducted a 12-week deployment with United Airlines’ Android application (128,500 LOC), involving 43 developers across six feature teams. The results demonstrate significant improvements: bug resolution time decreased by 64.1% (*p*<0.001), cloud API calls were reduced by 56.3%, and 87% of developer queries were resolved with sub-second latency. Notably, the system maintained a median energy consumption of 0.81mJ/token for on-device operations, outperforming cloud-only alternatives. These advancements highlight the framework’s ability to harmonize the strengths of edge and cloud computing while addressing critical challenges in energy efficiency, privacy preservation, and toolchain integration. Beyond mobile development, SolidGPT establishes a template for deploying LLM-powered assistants in resource-constrained edge environments, such as IoT devices and embedded systems. By combining adaptive task allocation, platform-aware semantic analysis, and context-preserving prompt design, our work paves the way for next-generation AI tools that are both powerful and pragmatic—capable of scaling across domains without compromising responsiveness or user trust.

Authors

Publication Details

Journal
Journal of Industrial Engineering and Applied Science
Published
2025-06-07
DOI
https://doi.org/10.70393/6a69656173.323935
Citations
16
Primary Topic
IoT and Edge/Fog Computing
Type
article
Field-Weighted Citation Impact
23.79
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hybrid Edge-AI Framework for Intelligent Mobile Applications: Leveraging Large Language Models for On-device Contextual Assistance and Code-Aware Automation

Liao Hu
16 citations
Journal of Industrial Engineering and Applied Science
IoT and Edge/Fog Computing
23.79
article

Hybrid Edge-AI Framework for Intelligent Mobile Applications: Leveraging Large Language Models for On-device Contextual Assistance and Code-Aware Automation

Liao Hu
article en
16 citations

Abstract

The integration of large language models (LLMs) into mobile development workflows has been fundamentally constrained by three competing requirements: computational efficiency, contextual awareness, and real-time responsiveness. While cloud-based LLMs offer unparalleled reasoning capabilities, their reliance on remote infrastructure introduces prohibitive latency, privacy risks, and energy inefficiencies for mobile environments. Conversely, on-device models, though responsive and privacy-preserving, often lack the contextual depth required for complex code understanding and automation tasks. To address these challenges, we present SolidGPT, a hybrid edge-cloud framework that achieves an optimal balance between these competing demands through three key architectural innovations. First, we introduce a Markov Decision Process (MDP)-based dynamic routing system that intelligently allocates tasks between on-device lightweight models (DistilGPT, TinyLLaMA) and cloud-based LLMs (GPT-4). This system evaluates real-time parameters—including contextual complexity, hardware constraints, and network conditions—to minimize energy consumption (28.6% reduction) while maintaining high accuracy (91% diagnostic accuracy). Second, our deep integration with Android’s Model-View-ViewModel (MVVM) architecture enables semantic-aware analysis across UI layouts, business logic, and runtime logs, bridging the gap between static code analysis and dynamic mobile runtime environments. Third, a novel prompt engineering pipeline preserves codebase-specific context across execution boundaries, ensuring continuity between local and cloud processing. To validate our framework, we conducted a 12-week deployment with United Airlines’ Android application (128,500 LOC), involving 43 developers across six feature teams. The results demonstrate significant improvements: bug resolution time decreased by 64.1% (*p*<0.001), cloud API calls were reduced by 56.3%, and 87% of developer queries were resolved with sub-second latency. Notably, the system maintained a median energy consumption of 0.81mJ/token for on-device operations, outperforming cloud-only alternatives. These advancements highlight the framework’s ability to harmonize the strengths of edge and cloud computing while addressing critical challenges in energy efficiency, privacy preservation, and toolchain integration. Beyond mobile development, SolidGPT establishes a template for deploying LLM-powered assistants in resource-constrained edge environments, such as IoT devices and embedded systems. By combining adaptive task allocation, platform-aware semantic analysis, and context-preserving prompt design, our work paves the way for next-generation AI tools that are both powerful and pragmatic—capable of scaling across domains without compromising responsiveness or user trust.

Journal of Industrial Engineering and Applied ScienceVol. 3(3)
Openalex Percentile: Top 1%
IoT and Edge/Fog Computing
23.79
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.