Abstract
Distributed machine learning inference systems are frequently hampered by "stragglers"—slow worker nodes that delay the completion of batch processing. NeRCC (Nested-Regression Coded Computing) is a novel framework that mitigates this latency by framing the encoding and decoding of data as a joint nested regression problem. Unlike traditional methods that prioritize exact interpolation, NeRCC utilizes natural cubic smoothing splines to ensure mathematical smoothness, reducing prediction errors by up to 23% compared to existing state-of-the-art techniques.
Introduction
Large-scale distributed systems for prediction serving face significant tail latency due to stragglers. While replication is a common fix, it is resource-intensive. Coded Computing (CC) offers a more efficient alternative by sending linear combinations of data to workers, allowing the master to recover results from a subset of responses. However, existing CC methods like BACC often suffer from high-frequency noise when applied to complex, non-linear deep learning models because they focus on exact mathematical interpolation.
The NeRCC Framework
NeRCC introduces a three-layer architecture designed to handle distributed inference with high resilience.
- Encoding Layer: The master node fits a regression function to the input batch and samples "coded" points.
- Computing Layer: Worker nodes execute the machine learning model on these coded points.
- Decoding Layer: The master node collects results from available workers and fits a second regression to approximate the original predictions.
Nested Regression and Smoothness
The core innovation of NeRCC is treating the system as a "nested regression" problem. The authors demonstrate that total system error is mathematically tied to two interconnected factors: the training error of the encoder and the generalization error of the decoder.
Instead of forcing the code to pass exactly through every data point—which often introduces high-frequency "wiggles" or noise—NeRCC utilizes natural cubic smoothing splines. By jointly optimizing two regularization parameters ($\lambda_{enc}$ and $\lambda_{dec}$), the system balances how closely it fits the data versus the smoothness of the resulting function. This smoothness is critical for deep neural networks, as it makes the approximation significantly more robust to the non-linearities of the models.
Experimental Evaluation
NeRCC was evaluated across three distinct model-dataset combinations to test its scalability and effectiveness:
- MNIST with LeNet5: A shallow network baseline.
- CIFAR-10 with RepVGG: A deep network (26M parameters) testing low-dimensional outputs.
- ImageNet-1K with Vision Transformer (ViT): A massive model (80M parameters) testing high-dimensional inputs and outputs.
Results
NeRCC consistently outperformed the previous state-of-the-art, BACC, across all tested models. It achieved an average reduction in Mean Square Error (MSE) of 22% for LeNet, 11% for RepVGG, and 15% for ViT.
Notably, the authors introduced NeRCC-Ag, a model-agnostic version that performs well even without specific hyperparameter tuning. In scenarios with a high number of stragglers, NeRCC maintained significantly higher relative accuracy than competing frameworks. Visual analysis also confirmed that NeRCC-coded samples lacked the high-frequency "salt-and-pepper" noise found in BACC-coded samples, leading to cleaner inputs for the worker nodes.
Conclusion
NeRCC demonstrates that for deep learning inference, mathematical smoothness is more critical than exact interpolation for resilient coded computing. By optimizing the "error chain" through nested regression, NeRCC provides a robust solution for straggler mitigation in large-scale distributed systems. Future research will focus on automating hyperparameter selection and exploring more complex regression models beyond cubic splines.
Summary updated