Advances in edge-cloud collaboration and evolution for large-small models

Yongwei Wang, Tao Shen, Shengyu Zhang, Wu Fan, Zhou Zhao, Haibin Cai, Chengfei Lyu, Lizhuang Ma, Chenglei Yang, Fei WuJournal of Image and Graphics 2024

Abstract

Generative foundation models (GFMs) are driving a major transformation in AI, demonstrating general-purpose capabilities in natural language processing and multimodal synthesis. While cloud-based deployment offers powerful intelligence, it faces challenges in latency and personalization. Conversely, edge-based small models offer low latency but struggle with generalization. This paper explores the synergy between large and small models through "collaborative evolution." We review foundation model architectures, compression techniques like pruning and distillation, and propose a taxonomy for collaboration across training, inference, and planning. Finally, we analyze the current landscape and future trends in edge-cloud intelligence.

Introduction

The emergence of Generative Foundation Models (GFMs) has redefined the boundaries of artificial intelligence. However, a significant gap exists between the massive computational requirements of these models and the resource-constrained nature of edge devices. Cloud-only deployment introduces high communication latency and privacy risks, while edge-only deployment lacks the reasoning depth of large-scale models. The paradigm of large-small model collaboration seeks to bridge this gap, enabling a symbiotic relationship where cloud models provide broad knowledge and edge models offer specialized, real-time context. This "collaborative evolution" aims to combine the "emergent" reasoning abilities of large models with the efficiency and privacy of edge-based intelligence.

Foundation Model Architectures and Adaptation

Modern GFMs are primarily built upon the Transformer architecture, utilizing encoder-only, decoder-only, or encoder-decoder structures. The self-attention mechanism allows these models to capture complex dependencies in data, but it also contributes to their high computational cost.

The Transformer architecture and its core self-attention mechanism form the basis of modern foundation models.

To adapt these massive models to specific tasks without full retraining, Parameter-Efficient Fine-Tuning (PEFT) methods have become essential. Techniques such as LoRA (Low-Rank Adaptation), adapter tuning, and prompt tuning allow for high-performance adaptation by updating only a tiny fraction of the model's parameters, making it feasible to manage multiple task-specific versions of a model.

Model Compression for the Edge

To facilitate edge deployment, model compression remains a critical research area. The goal is to reduce the footprint of large models while preserving as much of their original performance as possible. Key techniques include:

  • Pruning: Identifying and removing redundant parameters. This can be unstructured (removing individual weights) or structured (removing entire neurons or channels).
  • Quantization: Reducing numerical precision (e.g., from FP32 to INT8 or even binary weights) to save memory and accelerate inference on specialized hardware.
  • Knowledge Distillation: A "teacher-student" framework where a large model transfers its learned representations to a smaller model. A key challenge here is ensuring that small models inherit "emergent" abilities, like chain-of-thought reasoning, which often diminish as parameter counts drop.

A Taxonomy of Collaborative Evolution

The research landscape of large-small model collaboration can be categorized into three main pillars: foundation models, model miniaturization, and collaborative synergy.

Research roadmap for the collaborative evolution of large and small models, spanning foundation models, compression, and collaborative strategies.

1. Collaborative Training

Techniques like Federated Learning allow models to be trained across distributed edge devices. This approach preserves data privacy by keeping raw data on-device while aggregating model updates in the cloud. Furthermore, dual-directional distillation allows small models to capture unique, personalized local data that can be distilled "upward" to improve the cloud model's understanding of specific user contexts.

2. Collaborative Inference

This involves splitting the computational graph between the edge and the cloud. For instance, an edge device might process initial layers (feature extraction) while the cloud handles the more complex reasoning layers. Modular designs, where specific functional modules are strategically placed across the cloud-edge continuum, help balance performance, latency, and resource usage.

3. Collaborative Planning

A newer frontier involves "Generative Agents"—LLM-centric entities that can decompose complex tasks into sub-tasks. These agents can then delegate specific roles to specialized small models or other large models. This multi-agent ecosystem allows for sophisticated problem-solving where different models cooperate or even "debate" to reach a conclusion.

Regional Progress and Future Outlook

The global AI landscape shows a dynamic interplay between international innovation and domestic (Chinese) application. While international research leads in original architectures and foundational theories (e.g., the initial wave of LLM agents like AutoGPT), domestic efforts have excelled in vertical domain models. Models like ChatGLM, Baichuan, and InternLM have shown significant progress, particularly in industrial integration for sectors like education, healthcare, and meteorology, leveraging China's rich industry-specific data resources.

Moving forward, the field must address several critical challenges:

  • Security and Trustworthiness: Mitigating hallucinations and defending against adversarial "jailbreaking" attacks in collaborative environments.
  • Communication Efficiency: Minimizing the "communication footprint" of data transfer between edge and cloud.
  • Efficient Architectures: Exploring alternatives to the standard Transformer, such as State Space Models or Mixture-of-Experts, for better long-sequence modeling with lower complexity.
  • Personalization vs. Privacy: Finding the "sweet spot" where models can learn from local user data without compromising sensitive information.

Conclusion

The collaborative evolution of large and small models represents a vital path toward ubiquitous, personalized, and efficient AI. By integrating the general intelligence of the cloud with the specialized agility of the edge, we can unlock the full potential of generative AI across diverse industries and daily applications.

Summary updated

BibTeX
@article{wang2024advances,
  author = {Yongwei Wang and Tao Shen and Shengyu Zhang and Wu Fan and Zhou Zhao and Haibin Cai and Chengfei Lyu and Lizhuang Ma and Chenglei Yang and Fei Wu},
  title = {{Advances in edge-cloud collaboration and evolution for large-small models}},
  journal = {Journal of Image and Graphics},
  year = {2024},
  doi = {10.11834/jig.240011},
}
Figure