TL;DR
This paper introduces a novel framework for Mobile Edge Generation (MEG) that enables high-resolution image generation on mobile devices by splitting Latent Diffusion Models (LDMs) between the edge and the device. By combining a "feature merging" compression technique with a constrained reinforcement learning algorithm (MEG-CVPO), the authors achieve over a 40% reduction in latency while strictly satisfying device energy and timing constraints.
What Problem Does This Paper Address?
Generative AI (GAI) models like Stable Diffusion are computationally "heavy," often requiring billions of parameters and intensive denoising iterations. While high-performance cloud servers can run these models, the resulting latency and bandwidth costs for high-resolution images are often prohibitive for real-time mobile applications.
Conversely, running these models directly on User Equipment (UE)—like smartphones—is limited by restricted battery life and processing power. Existing solutions like "edge inference" (offloading to a nearby server) still struggle with transmitting large volumes of data over unstable wireless channels. The authors identify a critical gap: how to dynamically balance image quality against the hard constraints of mobile battery life and network latency in a fluctuating wireless environment.
Methods
The authors propose a multi-layered approach to accelerate generation:
- Distributed LDM Architecture: They split the Latent Diffusion Model. The Edge Server (ES) handles the heavy VAE encoding and U-Net denoising, while the UE runs a lightweight VAE decoder to render the final image.
- Dynamic Diffusion & Feature Merging:
- Dynamic Diffusion: Instead of a fixed number of denoising steps, the system chooses an optimal number ($\alpha_t$) based on current channel conditions.
- Feature Merging: Unlike traditional "pruning" (which simply deletes neurons/tokens), this method identifies and merges similar features. This retains more semantic information in a lower-dimensional space, reducing transmission overhead without destroying image details.
- Two-Stage Protocol:
- Offline Distillation: They train a "backbone" model that is specifically distilled to handle variable denoising steps and compressed features.
- Online Prediction (MEG-CVPO): They model the resource allocation as a Constrained Markov Decision Process (MDP). To solve it, they develop MEG-CVPO (Constrained Variational Policy Optimization). This RL algorithm uses a "trust region" approach to improve image quality while ensuring the policy stays within the "feasible" bounds of latency and energy budgets.
Datasets
The researchers evaluated their framework using:
- LAION-COCO-Aesthetic: A subset of high-resolution images (20,000 for training, 2,000 for testing).
- Task: Text-to-image generation, specifically targeting $1024 \times 1024$ resolution outputs.
- Baselines: They compared their results against Centralized Generation, MEG-Split (no fine-tuning), and MEG-Pruning.
Key Insights and Ideas
- Merging > Pruning: A major "aha" moment is that generative models are hypersensitive to neuron pruning. By merging similar tokens instead of discarding them, the model preserves the "essence" of the image, leading to significantly lower Mean Square Error (MSE) at high compression ratios.
- Variational Safety: Standard Lagrangian-based RL methods often fluctuate wildly and violate constraints (like battery limits) during the learning process. By using a variational approach (CVPO), the system finds a "safe" policy distribution that respects hardware limits even in stochastic (random) wireless environments.
- Feature vs. Pixel Transmission: By transmitting low-dimensional latent features from the ES to the UE rather than raw pixels, the system inherently preserves user privacy and slashes bandwidth requirements.
Key Results
- Latency Reduction: The framework achieved over 40% latency reduction compared to conventional generation schemes. High-quality $1024 \times 1024$ images were reconstructed within 3 to 7 seconds over noisy channels.
- Constraint Guarantee: In tests with a strict 3-second latency cap, the MEG-CVPO algorithm successfully maintained the constraint, whereas standard PPO-Lagrangian methods suffered from frequent violations.
- Quality Trade-off: The system demonstrated a flexible "Pareto front," allowing users or service providers to trade off a small amount of image fidelity for massive gains in energy efficiency or speed.
Limitations and Future Work
- Point-to-Point Focus: The current study focuses on a single Edge Server and a single User Equipment. The authors acknowledge that real-world edge environments are multi-user and multi-task.
- Future Outlook: The authors suggest extending the framework to handle parallel multi-user AIGC applications and exploring more complex edge resource management (e.g., managing multiple servers or moving users).
- Model Scope: While tested on Stable Diffusion XL (SDXL), the generalizability to other architectures like large-scale Transformers for video generation remains an open area for exploration.
Summary updated