Abstract
AI-Generated Everything (AIGX) represents the next evolution of Generative AI (GAI), moving beyond simple content creation to the design of complex systems, code, and network optimizations. However, deploying these resource-intensive models in mobile environments faces significant challenges due to device constraints and the "prompt gap"—the inefficiency caused by low-quality user inputs. This paper proposes a unified mobile-edge framework that redefines prompt engineering as a network optimization tool. By automatically refining user prompts, the system improves generation quality, reduces bandwidth waste, and lowers service latency. Experimental results from a VR-based interior design case study show an 11.85% increase in aesthetic quality and a drastic reduction in the number of re-generations required.
Introduction: The Problem of Resource Constraints and the Prompt Gap
The rise of Pretrained Foundation Models (PFMs) like GPT-4 and Stable Diffusion has ushered in the era of Generative AI. While early applications focused on AI-Generated Content (AIGC), the field is evolving toward AI-Generated Everything (AIGX), where AI facilitates system design and optimization solutions. Despite this potential, mobile users face two primary hurdles:
- Resource Constraints: Billions of parameters in PFMs require high-end GPUs unavailable on mobile devices.
- The Prompt Gap: Non-expert users often provide vague prompts, leading to poor results and frequent "re-generations" that strain mobile-edge network resources.
The Mobile-Edge-Cloud Architecture
To bridge the gap between resource-constrained users and powerful GAI models, the authors propose a three-layer architecture designed for efficient AIGX service delivery.
- Mobile Layer: Users initiate requests with raw, simple prompts.
- Edge Layer: Hosts AIGX Service Providers (ASPs) for local model execution and Prompt Engineering Service Providers (PESPs) that optimize user inputs before processing.
- Cloud Layer: Manages massive models and large-scale datasets for training and complex inference.
Prompt Engineering as a Network Optimization Tool
Traditionally viewed as a creative endeavor, prompt engineering is here treated as a formal optimization problem. By spending minimal compute at the edge to optimize a prompt, the system avoids the much higher cost of multiple failed generative cycles. The framework utilizes a ChatGPT-empowered prompt optimizer that enriches basic inputs across six dimensions: Objects & Relationships, Background Settings, Mood, Lighting, Quality Boosters, and Negative Prompts. This "PFM + Prompt" paradigm allows a single frozen model to handle diverse tasks efficiently, creating a 1-to-many mapping rather than the resource-heavy 1-to-1 mapping required by fine-tuning.
Case Study: VR-Based Interior Design
The framework was evaluated using Stable Diffusion v2.1 for a VR-based interior design task. Quality was quantitatively measured using the Neural Image Assessment (NIMA) framework.
The results demonstrate significant gains:
- Quality Improvement: The prompt optimizer increased the Quality of Generation (QoG) by an average of 11.85%, with some cases seeing improvements up to 20.5%.
- Efficiency Gains: Without optimization, users required 284 attempts to achieve 100 qualified results. With optimization, this dropped to 43 attempts.
- Resource Savings: This reduction in re-generations decreased network traffic from approximately 69 MB to 25 MB and cut service latency by nearly two-thirds.
Future Directions
While promising, AIGX faces several challenges. Security is a primary concern, as prompts are vulnerable to "injection" attacks that could bypass safety filters. Additionally, as prompts become valuable digital assets, collaborative management through Federated Learning and blockchain-based trading may be necessary. Finally, optimizing multimodal prompts (combining text, images, and user interactions) remains a complex, high-dimensional problem for future research.
Summary updated