Exploring Collaborative Distributed Diffusion-Based AI-Generated Content (AIGC) in Wireless Networks

Hongyang Du, Ruichen Zhang, Dusit Niyato, Jiawen Kang, Zehui Xiong, Dong In Kim, Xuemin Shen, H. Vincent Poor

TL;DR

This paper introduces a novel framework for collaborative, distributed AI-generated content (AIGC) using diffusion models in wireless networks. By enabling devices to share denoising steps, it addresses the significant energy and privacy challenges of running these computationally intensive models on resource-constrained devices like smartphones, paving the way for more efficient and accessible AIGC services.

What Problem Does This Paper Address?

The rapid advancement of generative AI, particularly diffusion models, has led to an explosion in AI-generated content (AIGC) across various modalities. However, deploying these powerful models, especially on mobile devices, is hampered by their immense computational and energy demands. Running AIGC tasks locally on smartphones can quickly drain battery life and raise privacy concerns if data needs to be sent to centralized servers. Existing research often focuses on isolated server environments, neglecting the potential of collaborative computing among edge devices. This paper aims to bridge this gap by proposing a distributed AIGC framework that leverages collaboration among wireless devices to optimize resource utilization and enhance user experience.

Methods

The core of the proposed solution is a collaborative distributed diffusion-based AIGC framework. This framework breaks down the diffusion model's iterative denoising process into shared and local steps.

Here's how it works:

  • Shared Denoising Steps: A portion of the denoising steps, which are computationally intensive, are performed collaboratively. This can be done either on an edge server (Edge-to-Multiple Devices architecture) or directly between two devices (Device-to-Device architecture). The choice of architecture depends on factors like latency, privacy, and resource availability.
  • Local Denoising Steps: After the shared steps, the intermediate results are transmitted to individual user devices. These devices then complete the remaining denoising steps locally, tailored to their specific task requirements.
  • Knowledge Graph-Aided Semantic Analysis: To effectively group users for collaborative denoising, the system uses a knowledge graph to analyze the semantic similarity of user prompts. This allows for more efficient grouping and customized shared denoising steps.
  • Implementation on Mobile: The paper demonstrates the practical feasibility by implementing the Stable Diffusion v1-4 model on a Redmi K40 smartphone, running entirely offline using the ncnn framework.

Datasets

The paper does not explicitly mention specific datasets used for training the diffusion models. However, it refers to the training of AIGC models using "large datasets" and mentions that the Stable Diffusion v1-4 model was trained on a dataset of "11 million images and 1.1 billion masks" for its segmentation capabilities. The evaluation of the proposed framework relies on the performance of the implemented Stable Diffusion model on user-generated prompts.

Key Insights and Ideas

  • Distributed Denoising is Key: The fundamental insight is that the iterative denoising process of diffusion models can be effectively partitioned. Sharing the most computationally demanding initial steps across multiple devices or an edge server significantly reduces the burden on individual end-user devices.
  • Privacy and Energy Win-Win: By offloading some computation and allowing local completion, the framework offers a compelling balance between energy efficiency and enhanced user privacy, as sensitive data doesn't necessarily need to leave the user's device for the entire process.
  • Semantic Grouping is Crucial for Efficiency: Simply distributing tasks isn't enough. The paper highlights the importance of grouping users based on the semantic similarity of their prompts to maximize the effectiveness of shared denoising steps and avoid wasted computation.
  • Mobile Deployment is Achievable: The successful implementation of Stable Diffusion on a smartphone without an internet connection is a strong validation of the framework's practical viability for edge computing.

Key Results

  • Demonstrated Mobile Implementation: The paper successfully implemented Stable Diffusion v1-4 on a Redmi K40 smartphone, showcasing its offline operation.
  • Robustness to Wireless Errors: Figure 3 demonstrates that even with up to 2% bit error probability in wireless transmission of intermediate results, the distributed AIGC computing approach can still produce high-quality images, indicating good robustness.
  • Performance Impact of Shared Steps: Figure 5 illustrates that an optimal balance in the number of shared denoising steps is crucial. Too few shared steps might not offer significant benefits, while too many can lead to suboptimal results if the local steps are insufficient to correct for the shared processing. The paper suggests that with optimal configuration, the collaborative approach can outperform centralized systems.

Limitations and Future Work

  • Optimal Balance of Shared Steps: The paper acknowledges that finding the "sweet spot" for the number of shared denoising steps is critical to balance resource utilization and image quality. This requires further experimentation and analysis for different use cases.
  • Semantic Variation Impact: Figure 6 shows a "failure example" where significant semantic differences between user prompts lead to ineffective utilization of distributed AIGC computing. Future work should focus on more sophisticated user clustering and potentially caching mechanisms to mitigate this.
  • Incentive Mechanisms: The paper suggests that designing incentive mechanisms for collaborative AIGC tasks is a promising research direction, considering the unique challenges of latency, synchronization, and resource availability in distributed AIGC.
  • Joint Optimization: Future research could explore jointly optimizing diffusion models with channel coding and adaptive modulation to further enhance throughput and reliability in wireless transmission.
  • Security: The paper briefly mentions integrating security measures like data encryption and physical layer security, but a deeper exploration of secure scheme designs for distributed AIGC computing, potentially involving blockchain, is highlighted as a future direction.

Summary updated

BibTeX
@article{du2024exploring,
  author = {Hongyang Du and Ruichen Zhang and Dusit Niyato and Jiawen Kang and Zehui Xiong and Dong In Kim and Xuemin Shen and H. Vincent Poor},
  title = {{Exploring Collaborative Distributed Diffusion-Based AI-Generated Content (AIGC) in Wireless Networks}},
  journal = {IEEE Network},
  year = {2024},
  doi = {10.1109/mnet.006.2300223},
}
Figure