Abstract: Empirical risk minimization is perhaps the most influential idea in statistical learning, with applications to nearly all scientific and technical domains in the form of regression and classification models. To analyze massive streaming datasets in distributed computing environments, practitioners increasingly prefer to deploy regression models on edge rather than in the cloud. By keeping data on edge devices, we minimize the energy, communication, and data security risk associated with the model. Although it is equally advantageous to train models at the edge, a common assumption is that the model was originally trained in the cloud, since training typically requires substantial computation and memory. To this end, we propose STORM, an online sketch for empirical risk minimization. STORM compresses a data stream into a tiny array of integer counters. This sketch is sufficient to estimate a variety of surrogate losses over the original dataset. We provide rigorous theoretical analysis and show that STORM can estimate a carefully chosen surrogate loss for the least-squares objective. In an exhaustive experimental comparison for linear regression models on real-world datasets, we find that STORM allows accurate regression models to be trained.
1. Introduction
Modern machine learning typically follows a "train in the cloud, deploy on the edge" pipeline. This approach is necessitated by the high computational and memory intensity of training algorithms. However, this paradigm faces three critical challenges: high energy costs for data transmission, privacy vulnerabilities when moving sensitive data off-device, and high latency preventing real-time adaptation.
We introduce STORM (Sketches Toward Online Risk Minimization), a novel framework that enables training directly on resource-constrained edge devices. STORM compresses streaming data into tiny arrays of integer counters using Locality Sensitive Hashing (LSH), allowing for accurate linear regression and classification without storing raw data or transmitting it to the cloud.
2. The STORM Framework
STORM is built upon the Repeated Array of Count Estimators (RACE) technique. Instead of storing a data point $x$, STORM passes it through a set of LSH functions that map similar points to the same "bucket" in a 2D array, where an integer counter is incremented.
A core innovation is the use of asymmetric hashing, employing different hash functions for data and model parameters ($\theta$). This allows the sketch to estimate loss functions by querying counters associated with the current model state. For linear regression, we developed Paired Random Projections (PRP), ensuring the resulting surrogate loss is convex and shares the global minimum with the standard least-squares objective. Optimization is performed via a derivative-free strategy, querying the sketch at random points in a small sphere around the current parameters to estimate the descent direction.
3. Experimental Results
STORM was evaluated on real-world regression datasets from the UCI repository, including Airfoil, Autos, and Parkinsons, as well as synthetic 2D data. Key findings include:
- Memory Efficiency: STORM estimates losses within a 1% error margin using a sketch as small as 4 MB, independent of the total number of data points processed.
- Accuracy and Convergence: STORM performs competitively with sophisticated sampling techniques like Leverage Score Sampling. We mathematically and experimentally demonstrate that STORM's surrogate loss converges to the same optimal solution as traditional least-squares methods.
- Robustness: Unlike standard sampling, STORM avoids the "double descent" phenomenon because it incorporates information from every data point in the stream.
- Mergeability: STORM sketches are "embarrassingly parallel," allowing multiple devices to create local sketches that can be summed to form a global model.
4. Discussion and Future Work
STORM demonstrates that capturing data density via LSH counters is sufficient for effective empirical risk minimization. While currently limited to "STORM-approximable" losses and requiring derivative-free optimization, it provides a foundation for privacy-preserving, low-energy edge training. Future research will explore extending this sketching approach to deep neural network architectures by sketching layer activations.
Summary updated