Manuscript Offprint

arXiv:2610.22906

FederatedBytes: Tokenizer-Free, Byte-Level Small Language Models for Efficient Multimodal Federated Learning

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.

Keywords: Federated Learning, small language models, byte-level transformers, tokenizer-free, linear attention, multimodal classification.

1. Introduction

Federated learning (FL) is a machine learning approach that allows training global machine learning models from multiple clients in a decentralized environment, while preserving the data privacy of the clients McMahan et al. (2017). This makes FL ideal for multi-client settings where both a global model and data privacy are required, such as in digital agriculture, healthcare, mobile communications, electric vehicles and many other use cases where data is sensitive, network bandwidth and computational resources are limited, and data sources are inherently distributed. For instance, a collaborative agricultural project might require training a global model for optimal harvesting by combining data from multiple farms, each with potentially different languages, data types (e.g., text reports, images and sensor readings), and low-resource edge devices.

Among contemporary AI workloads, natural language processing (NLP) plays a special role for its ability to automatically extract useful information from text written in a multitude of languages. The field of NLP has recently been revolutionized by the widespread adoption of language models such as ChatGPT, Gemini and Claude, that have been successfully applied to a range of tasks such as sentiment classification, machine translation, document summarization, question answering and reasoning.

However, these models typically rely on a processing step known as tokenization, which entails breaking the input text into predefined units roughly corresponding to individual words or part thereof. Tokenization is a substantial process requiring large, language-specific or multilingual vocabularies, struggling with out-of-vocabulary words, and hindering the use of non-textual inputs such as images and videos. These challenges are particularly acute for edge devices where computational resources are intrinsically limited, and magnified by FL environments with their heavy communication requirements over networks with limited bandwidth.

To mitigate vocabulary issues, byte-level language models such as ByT5 Xue et al. (2022) and bGPT Wu et al. (2024) have recently been proposed to operate directly on raw UTF-8 bytes, effectively removing the tokenizer and using a fixed vocabulary of only 256 entries. While this improves flexibility, the existing token-free models are not optimized for tight memory and computational constraints of edge devices in a decentralized, multimodal setting. For this reason, in this paper we propose FederatedBytes - a novel byte-level, small language model specifically designed for federated learning. By operating directly on raw UTF-8 bytes, FederatedBytes eliminates the need for tokenization, naturally handling any language or data format that can be represented as a sequence of bytes. In addition, its architecture incorporates a linear attention mechanism, which abates the quadratic complexity of a standard Transformer (the core module of all language models), making it feasible to process long sequences on resource-constrained devices. Our work is motivated by the need for a versatile, effi-

∗^{*}Corresponding author

Email address: ali.sarabadani@student.uts.edu.au (Ali Sarabadani) client, and private model for multi-client industrial applications, where previous models such as ByT5 and bGPT prove inadequate due to their high resource consumption. To this aim, the novelty of FederatedBytes lies in its unique combination of tokenizer-free byte-level processing, a memory-efficient linear attention mechanism, small size, and seamless integration into a privacy-preserving federated learning framework. Overall, this paper makes a threefold contribution:

  • We propose FederatedBytes, a byte-level, small language model tailored for federated NLP capable of handling multilingual and multimodal data on edge devices.

  • We integrate into the model an efficient linear-attention mechanism that significantly lowers memory usage and extends the context window for processing long byte sequences - a critical requirement in many real-world applications.

  • We perform ample experiments and comparisons on the Multilingual Amazon Reviews and ScienceQA multimodal datasets, showing that FederatedBytes has been able to achieve superior accuracy compared to an established byte-level model such as ByT5 and the LSTM, while substantially reducing training time, communication and computational overheads.

References (28)