Small byte level language models cut memory use for private ai training
FederatedBytes: Tokenizer-Free, Byte-Level Small Language Models for Efficient Multimodal Federated Learning
Computation and LanguageDistributed, Parallel, and Cluster ComputingMachine Learning
Summary
Training AI models on private data without sharing it directly is hard because it usually needs lots of computing power and communication. The authors created a small AI model called FederatedBytes that reads data as simple byte sequences instead of complex text formats, making it easier to handle text and images together. Their model also uses a lightweight way to focus on important parts of the data, which saves memory and speeds things up. Testing showed it works better and uses fewer resources than similar models for tasks like understanding reviews in many languages and answering science questions.
What this means in practice
- •For mobile app developers: Develop privacy-preserving language apps that handle multiple languages and modalities efficiently with reduced device memory and network use.
- •For cloud service teams: Deploy AI services that aggregate client data without compromising privacy while lowering communication costs and resource demands during training.$Commercial implications: Enables selling more efficient federated AI training platforms that save bandwidth and computation for privacy-conscious service providers.
Authors
Ali Sarabadani, Massimo Piccardi, Mehran Abolhasan, Farzad Tofigh, Ian Zhou, Justin Lipman
Abstract
Federated Learning (FL) is a powerful machine learning framework that allows building a global model from the contributions of multiple, distributed clients, while ensuring the privacy of their local data. However, its heavy computational and communication overheads challenge its use for contemporary AI workloads such as natural language processing (NLP) and multimodal analysis. For this reason, this paper presents a novel small language model that leverages byte-level text and multimodal data processing, enhanced by a linear attention mechanism, to enable manageable Federated Learning of NLP and multimodal analysis tasks. The proposed model, nicknamed FederatedBytes, manages to process text and any other data types, including images, by treating its input as a mere sequence of bytes, while its lean linear attention mechanism allows abating the overall memory and computational footprint. To prove the effectiveness of the proposed model we have carried out an extensive performance evaluation on sentiment analysis tasks in multilingual and multimodal settings over the Multilingual Amazon Reviews and ScienceQA datasets. The experimental results show that FederatedBytes has been able to outperform comparable models such as ByT5 and LSTM, achieving higher accuracy while significantly reducing memory and communication overheads.