arXiv:2609.07444cs.LGSep 2026

Manuscript Offprint

arXiv:2609.07444

TASTE: Throughput-Aware Batch Size Tuning for On-Device Edge Learning

Avik Bhatnagar, Federico Nicolas Peccia, Oliver Bringmann

Avik Bhatnagar, Federico Nicolás Peccia, Oliver Bringmann

FZI Research Center for Information Technology, University of Tübingen

Germany

bhatnagar@fzi.de, peccia@fzi.de, oliver.bringmann@uni-tuebingen.de

Abstract—The rise of privacy-preserving artificial intelligence (AI) has shifted the focus of model adaptation and personalization towards on-device learning, where deep learning models are fine-tuned directly on edge hardware using local user data. However, this shift requires optimization of deep learning training on resource-constrained hardware to maximize throughput while maintaining predictive accuracy. This paper introduces a novel technique for on-device model training that incorporates an efficient Bayesian optimization-based batch size tuning approach to maximize hardware throughput. To evaluate the impact of this hyperparameter on the learning dynamics, we investigated two distinct paradigms: standard supervised learning (SL) and online continual learning (CL). Experimental results across various edge devices demonstrate a throughput ceiling, beyond which increasing the batch size yields no additional throughput gains. The proposed tuning approach identifies the optimal batch size, which, when combined with gradient accumulation and linear learning rate scaling, achieves up to a 2X increase in training throughput on platforms such as Raspberry Pi 4 compared to maximum batch sizes, without compromising model accuracy. Furthermore, in the CL paradigm, we demonstrate that optimal batch sizes maintain the stability-plasticity balance required for incremental learning, effectively mitigating catastrophic forgetting while maximizing computational efficiency on edge-hardware.

Keywords—On-device learning, Throughput optimization, Resource-constrained hardware, Continual learning, Supervised learning, Gradient accumulation, Learning rate scaling

I. INTRODUCTION

The deployment of AI models in real-world environments frequently encounters the challenge of data distribution shifts, in which the operating conditions and environments can deviate significantly from the original training distribution. Such shifts are prevalent across speech recognition (acoustic variations, noise), computer vision (varying sensors, lighting, weather, sim-to-real gaps), and specialized fields like healthcare or activity monitoring (physiological traits, movement speeds). Overcoming these shifts requires robust adaptation strategies; to address this, on-device learning has emerged as an optimal solution. By facilitating model adaptation directly on edge hardware, this approach eliminates the need to transmit data to centralized cloud servers. Consequently, on-device learning reduces infrastructure and communication overhead, while enhancing data privacy by locally maintaining sensitive information. In addition, on-device learning enables highly personalized on-device AI experiences tailored to specific user contexts. For example, local learning capability has proven beneficial for enhancing the performance of keyword spotting systems for voice commands [1], achieving robust human pose estimation for nanodrones [2], enhancing battery power predictions in real-world electric vehicle scenarios [3], and achieving accurate human activity recognition through adaptation to user biometric data [4]. Within these applications, the learning process typically follows one of two primary paradigms: offline supervised learning, in which the model is fine-tuned on a locally stored dataset tailored to a specific user, or online continual learning, which enables the model to incrementally incorporate new data and tasks without losing previously acquired knowledge.

Regardless of the selected learning paradigm, batch size remains a critical hyperparameter that dictates both the memory requirements and computational overhead required for model training. On a server-class cloud infrastructure, it is believed that larger batch sizes lead to better resource utilization and faster convergence, primarily because of the highly parallelized execution capabilities of modern GPU architectures. However, while maximizing the batch size can increase hardware throughput, it can also significantly affect the learning performance. Larger batch sizes minimize the gradient variance, providing a more accurate gradient representation across the dataset and resulting in stable and faster convergence [5]. Conversely, the existing literature also indicates that excessively large batch sizes may lead to a generalization gap in which the model converges toward sharper minima [6]. In contrast, smaller batch sizes introduce stochastic gradient noise, which encourages convergence toward flatter minima and often results in a more robust and well-generalized solution [6].

Existing research has extensively explored methods for maximizing hardware utilization and throughput for deep neural network (DNN) workloads. One such method is DyNet [7], a foundational work that supports dynamic batching in natural language processing. DyNet unifies model declaration with on-the-fly computational graph construction for every new input. Although this strategy allows highly flexible network structures, it requires continuous resource utilization to rebuild the graph for each instance. In addition, such dynamic declarations miss global optimizations that can be performed on static computational graphs. There are also high data movement

This research was funded by the German Federal Ministry of Research, Technology, and Space (BMFTR), and the EU ChipsJU as part of the project RIGOLETTO under Grant 16MEE0547 and 101194371, respectively.

©2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

costs, as it relies on explicit memory gather/scatter operations, as demonstrated in the ED-Batch work [8]. ED-Batch utilizes finite state machines (FSMs) integrated with reinforcement learning (RL) to find specialized batching policies for DNN workloads. Additionally, it includes a policy-aware tree-based algorithm for memory planning that reduces data movement overheads. By utilizing a predefined static graph, ED-Batch substantially outperforms DyNet by minimizing graph construction and runtime latencies. More recently, ACROBAT [9], built upon the TVM framework [10], employs a hybrid static (compiler) and dynamic (runtime) analysis to generate optimized tensor kernels for auto-batching dynamic deep learning workloads. However, because the framework was developed for Nvidia GPUs, the optimizations are highly hardware-specific, such as reducing CUDA API runtime overheads.

A critical limitation of these existing works is their primary focus on server-class hardware and inference-only DNN workloads. The recurring computational costs associated with graph construction, data movement overheads, and the complexity of the underlying optimization algorithms (such as reinforcement learning or tree-based planning) make these approaches less suitable for resource-constrained edge-CPU devices. Crucially, unlike inference batching, training batching must account for intermediate activation storage required for backpropagation. In such environments, a static, pre-compiled alternative that accounts for strict memory and energy constraints during throughput optimization is often more viable.

Therefore, it is critical to investigate the inherent relationship between batch size and maximum achievable hardware performance and its direct implications on model accuracy during training. In particular, this is relevant to resource-limited embedded hardware frequently utilized in edge computing environments. In these environments, limited processing power is not the only hurdle; unlike cloud- or server-based training, edge devices cannot support the storage of massive datasets required for large-batch training. Furthermore, high-bandwidth memory architectures and rapid data transfer mechanisms, as observed in high-end GPUs, are absent in embedded systems.

We introduce Throughput-Aware Batch Size Tuning for On-Device Edge Learning (TASTE). The TASTE technique is designed to achieve two primary objectives: (i) a systematic approach to determining an optimal batch size that maximizes computational throughput, which is not necessarily the maximum size supported by the hardware, and (ii) adaptively adjusting the training regimes to prevent the degradation in learning performance that can occur when throughput-optimized configurations replace initial batch size implementations. This dual approach is particularly advantageous for edge devices deployed in dynamic real-world environments because it enables accelerated training cycles without significant accuracy loss that can arise from differences between the original cloud-based training parameters and the proposed max-throughput on-device configuration. The main contributions of this paper are summarized as follows:

  • We propose an on-device model-training technique with a Bayesian optimization-based batch size tuning method designed to maximize the training throughput on resource-constrained hardware.

  • We identified a throughput ceiling across diverse edge-CPUs and determined the optimal batch sizes, resulting in significant speedups of up to 2X in training throughput compared with the standard practice of using the maximum possible batch size.

  • We validate the approach via image classification across two distinct training paradigms: offline supervised and online continual learning, demonstrating that with tailored training regimes, the optimized max-throughput batch sizes achieve learning performance comparable to reference implementations.

To our knowledge, this study is the first to present the feasibility to maximize training throughput on resource-constrained edge-CPU devices, complemented by appropriate changes to training regimes for two distinct learning paradigms. This methodology ensures efficient on-device training without compromising learning performance in an image classification task. The demonstrated methodology can also be seamlessly transferred to various other combinations of deep learning models, applications, and specialized hardware devices.

The remainder of this paper is organized as follows. Section II discusses the methodology for enabling on-device model training on resource-constrained hardware, the proposed batch size tuning approach for throughput optimization, and the evaluation of training performance. Sections III and IV detail the experimental setup and discuss results, respectively. Finally, Section V presents conclusions and outlines future work.

References (25)