ApproxIFER: A Model-Agnostic Approach to Resilient and Robust Prediction Serving Systems

Mahdi Soleymani, Ramy E. Ali, Hessam Mahdavifar, Amir Salman Avestimehr

Abstract

ApproxIFER is a model-agnostic framework designed to make machine learning prediction services resilient to stragglers (slow servers) and Byzantine workers (malicious or faulty nodes). By leveraging rational function interpolation instead of traditional replication or model-specific parity models, ApproxIFER achieves significant accuracy improvements—up to 58% in degraded scenarios—without requiring additional training or model modifications.

Introduction

In modern cloud-based AI services, providers distribute prediction requests across a vast array of worker machines to maintain high throughput and low latency. However, this distributed architecture is inherently vulnerable to two major performance bottlenecks:

  1. Stragglers: Naturally occurring delays due to network congestion, hardware variability, or background processes that create a "tail latency" problem, where the entire system's speed is dictated by the slowest node.
  2. Byzantine Workers: Faulty or adversarial machines that return incorrect or noisy results, potentially compromising the integrity of the service.

The traditional remedy is replication—running the same task on multiple machines and taking a majority vote. While effective, replication is highly inefficient, often doubling or tripling the required computational resources. Recent research into "Parity Models" (ParM) attempted to solve this by using backup models to reconstruct missing data. However, ParM is model-specific, requiring the training of a new backup model for every architecture deployed, and it lacks robustness against malicious actors.

Methodology

ApproxIFER addresses these challenges through Approximate Coded Computing. It treats the underlying neural network as a black box, applying mathematical encoding to the input and output spaces rather than modifying the model weights.

The ApproxIFER architecture: $K$ prediction queries are encoded into $N$ coded queries ($ ilde{\mathbf{X}}$), processed by model instances to produce coded predictions ($ ilde{\mathbf{Y}}$), and finally decoded into $K$ approximate predictions.

The core innovation is the transition from polynomial to rational function interpolation, specifically using Berrut’s rational interpolant. Polynomial methods are often numerically unstable and "wiggly," leading to large errors when reconstructing predictions. In contrast, rational functions are much more "well-conditioned," ensuring that small computational variances do not explode into massive prediction errors.

During the encoding phase, $K$ input queries are transformed into $N$ coded queries using Chebyshev points. These are sent to $N$ workers, all running the exact same base model. To handle Byzantine robustness, the authors adapted the Berlekamp-Welch algorithm—a classic tool from error-correction coding—to work with rational functions. This allows the decoder to identify which workers are lying or returning noise by analyzing the "soft labels" (the probability distribution output by the model) across all classes. By performing a majority vote on the estimated error locations, the system can effectively filter out malicious contributions.

Evaluation and Results

The authors evaluated ApproxIFER across several standard computer vision benchmarks, including MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, and ImageNet. They tested these datasets on a wide variety of architectures, including VGG-16, ResNet (18, 34, 50, 152), DenseNet-161, and GoogLeNet.

Comparison of accuracy between the base model, ApproxIFER, and the state-of-the-art ParM across MNIST, FMNIST, and CIFAR-10 datasets.

Key Performance Metrics

  • Massive Accuracy Gains: In "degraded mode" (when servers fail or return errors), ApproxIFER outperformed the state-of-the-art ParM by 36% to 58% on the CIFAR-10 dataset.
  • Scalability: While ParM struggles when handling more than 4 queries at a time, ApproxIFER scales gracefully to 10 or 12 queries with minimal loss in precision.
  • Byzantine Robustness: Even when malicious workers added significant Gaussian noise to their predictions, the error-locator algorithm successfully identified and ignored them, maintaining near-baseline accuracy.
  • Resource Efficiency: To handle $E$ malicious workers, ApproxIFER only needs $2K + 2E$ workers. Traditional replication would require $(2E + 1)K$ workers. For a batch of 10 queries and 2 malicious attackers, ApproxIFER needs ~24 workers, while replication would need 50.

Discussion and Limitations

While ApproxIFER offers a significant leap in resilience, it does come with trade-offs. The end-to-end latency is slightly higher (about 4-7%) than ParM due to the computational overhead of rational interpolation. Additionally, because this is approximate coded computing, the reconstructed results are never 100% identical to the original model's output, though they remain very close.

Future work could extend this framework to preserve data privacy using Trusted Execution Environments (TEEs), as the current encoding does not inherently hide data from the workers.

Conclusion

ApproxIFER provides a robust, model-agnostic solution for reliable prediction serving in cloud environments. By moving from model-specific parity training to a stable mathematical framework, it offers a scalable way to handle both hardware failures and adversarial attacks. The elimination of per-model training overhead, combined with massive gains in resilience, makes it a compelling alternative for large-scale AI deployments.

Summary updated

BibTeX
@inproceedings{soleymani2022approxifer,
  author = {Mahdi Soleymani and Ramy E. Ali and Hessam Mahdavifar and Amir Salman Avestimehr},
  title = {{ApproxIFER: A Model-Agnostic Approach to Resilient and Robust Prediction Serving Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20809},
}
Figure