arXiv:2608.30923cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30923

Towards Stream Learning on Embedded Systems: Benchmarking the Memory Consumption of Stream Learning Methods

Sebastian Buschjäger, Nuwan Gunasekara, Heitor Murilo Gomes

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Stream learning is commonly evaluated through predictive performance and adaptation to concept drift. However, sustained operation of a stream learner also requires predictable and bounded resource usage even on long streams. This requirement becomes even more critical when learning moves from servers to near-sensor embedded systems where memory and processing are scarce resources. In state-of-the-art stream learning, however, we perceive a strong focus on concept drift adaptation, whereas resource usage is often an evaluation byproduct. To close this gap, we benchmark seven representative stream classifiers on 13 real and synthetic streams under model-size budgets from 128 KiB to approximately 8 MiB. Our benchmark comprises a total of 6,463 experiments. We measure failure-aware accuracy, peak model size, time to budget exhaustion, and prediction-plus-update latency. The results reveal two distinct resource failure modes. Adaptive ensembles can exceed small budgets almost immediately because of their initial footprint, even when their size remains stable thereafter. Incremental trees can fit initially but grow throughout a long stream, with HoeffdingTrees (HT) and Extremely Fast Decision Trees (EFDT) increasing by median factors of 7.37 and 5.87. This growth is often, but not invariably, accompanied by increasing latency. Explicitly compact methods remain the only viable option under the smallest budgets, but are usually overtaken as larger budgets make adaptive ensembles competitive. These findings show that being incremental or drift-aware does not make a learner automatically resource-bound. Hence, many state-of-the-art methods are only partially applicable in embedded systems or for long-running systems. We therefore call on the stream-learning community to make bounded resource usage a first-class design objective alongside drift adaptation, and propose concrete steps toward this goal, including an API through which stream learners can explicitly expose and respect resource budgets.

Introduction

Data stream learning addresses settings in which examples arrive continuously, predictions must be made before labels are observed, and models are updated incrementally under limited computational resources. This setting is especially natural for near-sensor processors such as the microcontroller units (MCUs) used in wearables, industrial sensors, environmental monitors, and low-power medical devices. See Table 1 for an overview of devices. On such devices, memory

Table 1: Representative embedded platforms. RAM denotes total platform memory, of which only a fraction is available to the learner after accounting for the runtime, application, buffers, and operating system. Values are taken from reference documentation of each device.

Platform ExamplesTypical RAM
Arduino Uno, Mega1–8 KB
Arduino Uno R4, Raspberry Pi Pico 232–512 KB
ESP32-S3, nRF54H200.5–4 MB
i.MX RT1170, STM32H7/N61–4 MB
Raspberry Pi Zero 2 W, Raspberry Pi 50.5–16 GB
NXP i.MX 93, TI AM62A + NPU2–4 GB
Jetson Orin Nano / AGX Orin8–64 GB

is typically measured in kilobytes to a few megabytes rather than gigabytes. The hardware therefore enforces the classical streaming assumptions: each example is processed once, historical data cannot be retained, and the learner must remain memory bounded. This is in stark contrast to larger embedded Linux boards and edge servers, which typically have gigabytes of memory and thus allow for buffering, replay, or offloading.

A stream learner is expected not only to adapt online but also to remain usable over long time horizons. This requires bounded model size, stable update and prediction time, and robust predictive performance even after millions of updates. These requirements were already explicit in early stream-mining systems. For example, Bifet et al. describe MOA as enabling experiments on tens of millions of examples under explicit memory limits (Bifet et al. 2018). However, much of the empirical practice in stream learning focuses on adaptation to concept drift and predictive accuracy as opposed to sustained resource behavior. Hoeffding-style trees (Domingos and Hulten 2000; Bifet and Gavalda 2009; Manapragada, Webb, and Salehi 2018), and their ensembles (Gomes et al. 2017; Gomes, Read, and Bifet 2019) can refine their structure as data arrive and react to change. The same mechanisms can also cause continued growth under noise, recurring drifts, or persistent improvements in split criteria. Ensembles present a complementary risk: even when replacement mechanisms of individual trees stabilize their long-run size, maintaining multiple learners and drift detectors can impose a large initial

∗^{*} Corresponding author.

footprint (Bifet and Gavalda 2007; Gomes et al. 2017). Last, and maybe most severe, short experiments on only a few thousand data items may conflate online update capability with sustained deployability, overlooking either immediate infeasibility or growth over the deployment horizon. While memory-aware stream learning is not absent from the literature (see e.g. (da Costa et al. 2018; Buschjäger, Hess, and Morik 2022; Köbschall et al. 2026)), resource usage is still often a reported statistic or an implementation safeguard rather than a first-class experimental constraint. The software ecosystem reflects the same separation. MOA (Bifet et al. 2018), CapyMOA (Gomes et al. 2025), and River (Montiel et al. 2021) provide convenient research interfaces for prediction and incremental updates, but do not define a common, portable interface through which every learner can report its size, accept a changing budget, and actively enforce that budget. This matters for embedded deployment as much as for deployment on servers and the development of novel methods.

In this paper, we study the current state-of-the-art of stream-learning on long-horizon streams with explicit memory constraints. Our benchmark protocol is motivated by MCU-class deployment constraints, where memory available to a learner is often limited to kilobytes or a few megabytes. We evaluate representative online classifiers on seven real-world and six synthetic streams ranging from approximately 14 thousand to 11 million examples. The protocol combines prequential predictive performance with model size, update time, prediction time, and compliance with fixed memory budgets. Our goal is not to introduce a new learner, but to characterize the empirical baseline under a setting that stream learning was originally designed to address: sustained online learning under finite memory. Importantly, we do not claim to benchmark execution on a particular MCU, since such a comparison is currently difficult to perform systematically. We therefore tackle the prerequisite research question of whether current algorithms and their current reference implementations exhibit memory behavior compatible with MCU-class devices. Most importantly, the lack of MCU-capable streaming frameworks is not merely a matter of having the right software framework, but, as this work identifies, a matter of designing MCU-ready learning algorithms that can handle hard constraints. As a way forward, we present a potential API design that treats resource consumption as a primary design target and can serve as a basis for the next generation of stream learning algorithms.

Our contributions are as follows: we (i) identify a missing abstraction between stream-learning algorithms and resource-constrained deployment; (ii) define a framework-independent evaluation protocol that approximates deployment readiness using initial footprint, peak model size, budget exhaustion, failure-aware accuracy, and latency development; (iii) apply this protocol to seven representative learners and expose two distinct resource-failure modes; and (iv) derive a concrete resource-aware learner interface intended to make future evaluation and MCU deployment systematic.

Table 2: Representative stream-learning methods. We distinguish whether concept drift, memory constraints, and latency are targeted by design or reported in the empirical evaluation. ✓\checkmark = yes; ∘\circ = partial/secondary; X\mathbf{X} = no

MethodDesignReport
DriftMem.Lat.DriftMem.Lat.
HT/VFDT(Domingos and Hulten 2000)✕○✓✕○○
CVFDT(Hulten, Spencer, and Domingos 2001)✓○✓✓○○
HAT(Bifet and Gavalda 2009)✓○○✓✓✓
ARF(Gomes et al. 2017)✓✕○✓✓✓
EFDT(Manapragada, Webb, and Salehi 2018)✕✕✕✓✕✕
SVFDT(da Costa et al. 2018)○✓✓✓✓✓
SRP(Gomes, Read, and Bifet 2019)✓○✕✓✓✓
CS-ARF(Bahri et al. 2020)○✓○✓✓✓
GAHT(Garcia-Martin et al. 2021)○✓✓✓✓✓
Shrubs(Buschjäger, Hess, and Morik 2022)○✓✓✓✓✓
EFHAT(Manapragada, Salehi, and Webb 2022)✓✕✕✓✕✕
SGBT(Gunasekara et al. 2024)✓✕○✓✓✕
PLASTIC(Heyden et al. 2024)✓○○✓✓✓