Papers
Topics
Authors
Recent
Search
2000 character limit reached

FedYolo: Augmenting Federated Learning with Pretrained Transformers

Published 10 Jul 2023 in cs.LG and cs.DC | (2307.04905v1)

Abstract: The growth and diversity of machine learning applications motivate a rethinking of learning with mobile and edge devices. How can we address diverse client goals and learn with scarce heterogeneous data? While federated learning aims to address these issues, it has challenges hindering a unified solution. Large transformer models have been shown to work across a variety of tasks achieving remarkable few-shot adaptation. This raises the question: Can clients use a single general-purpose model, rather than custom models for each task, while obeying device and network constraints? In this work, we investigate pretrained transformers (PTF) to achieve these on-device learning goals and thoroughly explore the roles of model size and modularity, where the latter refers to adaptation through modules such as prompts or adapters. Focusing on federated learning, we demonstrate that: (1) Larger scale shrinks the accuracy gaps between alternative approaches and improves heterogeneity robustness. Scale allows clients to run more local SGD epochs which can significantly reduce the number of communication rounds. At the extreme, clients can achieve respectable accuracy locally highlighting the potential of fully-local learning. (2) Modularity, by design, enables $>$100$\times$ less communication in bits. Surprisingly, it also boosts the generalization capability of local adaptation methods and the robustness of smaller PTFs. Finally, it enables clients to solve multiple unrelated tasks simultaneously using a single PTF, whereas full updates are prone to catastrophic forgetting. These insights on scale and modularity motivate a new federated learning approach we call "You Only Load Once" (FedYolo): The clients load a full PTF model once and all future updates are accomplished through communication-efficient modules with limited catastrophic-forgetting, where each task is assigned to its own module.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (51)
  1. Federated learning based on dynamic regularization. arXiv preprint arXiv:2111.04263, 2021.
  2. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021.
  3. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
  4. Leaf: A benchmark for federated settings. arXiv preprint arXiv:1812.01097, 2018.
  5. Delta tuning: A comprehensive study of parameter efficient methods for pre-trained language models. arXiv preprint arXiv:2203.06904, 2022.
  6. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
  7. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021.
  8. Personalized federated learning with theoretical guarantees: A model-agnostic meta-learning approach. Advances in Neural Information Processing Systems, 33:3557–3568, 2020.
  9. Computation offloading in mobile edge computing networks: A survey. Journal of Network and Computer Applications, page 103366, 2022.
  10. Safelearn: Secure aggregation for private federated learning. In 2021 IEEE Security and Privacy Workshops (SPW), pages 56–62. IEEE, 2021.
  11. A survey on heterogeneous federated learning. arXiv preprint arXiv:2210.04505, 2022.
  12. Spreadgnn: Decentralized multi-task federated learning for graph neural networks on molecular data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 6865–6873, 2022.
  13. Scaling laws for autoregressive generative modeling. arXiv preprint arXiv:2010.14701, 2020.
  14. Scaling laws for transfer. arXiv preprint arXiv:2102.01293, 2021.
  15. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pages 2790–2799. PMLR, 2019.
  16. Parameter-efficient transfer learning for nlp, 2019.
  17. Lora: Low-rank adaptation of large language models, 2021.
  18. Learn from others and be yourself in heterogeneous federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10143–10153, 2022.
  19. Compressing speaker extraction model with ultra-low precision quantization and knowledge distillation. Neural Networks, 154:13–21, 2022.
  20. Fpt: Improving prompt tuning efficiency via progressive training. arXiv preprint arXiv:2211.06840, 2022.
  21. Visual prompt tuning, 2022.
  22. Scaffold: Stochastic controlled averaging for federated learning. In International Conference on Machine Learning, pages 5132–5143. PMLR, 2020.
  23. Object detection on tpu accelerated embedded devices. In Computer Vision Systems: 13th International Conference, ICVS 2021, Virtual Event, September 22-24, 2021, Proceedings 13, pages 82–92. Springer, 2021.
  24. Learning multiple layers of features from tiny images. 2009.
  25. Mtfl: Multi-task federated learning for classification of healthcare x-ray images. In Computer Vision and Image Processing: 7th International Conference, CVIP 2022, Nagpur, India, November 4–6, 2022, Revised Selected Papers, Part II, pages 572–585. Springer, 2023.
  26. The power of scale for parameter-efficient prompt tuning. arXiv preprint arXiv:2104.08691, 2021.
  27. Federated learning: Challenges, methods, and future directions. IEEE signal processing magazine, 37(3):50–60, 2020.
  28. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190, 2021.
  29. Fedrs: Federated learning with restricted softmax for label distribution non-iid data. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pages 995–1005, 2021.
  30. Federated learning in mobile edge networks: A comprehensive survey. IEEE Communications Surveys & Tutorials, 22(3):2031–2063, 2020.
  31. A federated learning multi-task scheduling mechanism based on trusted computing sandbox. Sensors, 23(4):2093, 2023.
  32. Federated learning for inference at anytime and anywhere. arXiv preprint arXiv:2212.04084, 2022.
  33. A state-of-the-art survey on solving non-iid data in federated learning. Future Generation Computer Systems, 135:244–258, 2022.
  34. Sok: Secure aggregation based on cryptographic schemes for federated learning. Proc. Priv. Enhancing Technol, (1):140–157, 2023.
  35. Realizing the heterogeneity: A self-organized federated learning framework for iot. IEEE Internet of Things Journal, 8(5):3088–3098, 2021.
  36. Rethinking architecture design for tackling data heterogeneity in federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10061–10071, 2022.
  37. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.
  38. Effect of scale on catastrophic forgetting in neural networks. In International Conference on Learning Representations, 2022.
  39. Adapterdrop: On the efficiency of adapters in transformers. arXiv preprint arXiv:2010.11918, 2020.
  40. Overcoming forgetting in federated learning on non-iid data. arXiv preprint arXiv:1910.07796, 2019.
  41. How to train your vit? data, augmentation, and regularization in vision transformers. arXiv preprint arXiv:2106.10270, 2021.
  42. Federated learning from pre-trained models: A contrastive learning approach. arXiv preprint arXiv:2209.10083, 2022.
  43. Compression of generative pre-trained language models via quantization. arXiv preprint arXiv:2203.10705, 2022.
  44. Edge cloud offloading algorithms: Issues, methods, and perspectives. ACM Computing Surveys (CSUR), 52(1):1–23, 2019.
  45. Pretrained models for multilingual federated learning. arXiv preprint arXiv:2206.02291, 2022.
  46. Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019.
  47. A survey on model compression for natural language processing. arXiv preprint arXiv:2202.07105, 2022.
  48. Scaling vision transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12104–12113, 2022.
  49. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107–115, 2021.
  50. When federated learning meets pre-trained language models’ parameter-efficient tuning methods. arXiv preprint arXiv:2212.10025, 2022.
  51. Reduce communication costs and preserve privacy: Prompt tuning method in federated learning. arXiv preprint arXiv:2208.12268, 2022.
Citations (6)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.