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

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

Abstract

Cloud-based Machine Learning as a Service (MLaaS) faces significant challenges from "straggler" nodes and malicious "Byzantine" workers. Traditional solutions like replication are resource-intensive, while learning-based parity models lack scalability and model-agnosticism. We present ApproxIFER, a framework that leverages stable rational interpolation to provide resilient and robust inference. ApproxIFER achieves up to 58% higher accuracy than existing parity-based methods and requires no model retraining, making it a versatile solution for large-scale distributed AI systems.

Introduction

As AI workloads move to the cloud, distributed inference systems must contend with two primary issues: tail latency caused by slow "straggler" nodes and incorrect results from "Byzantine" workers (due to hardware faults or adversarial attacks). Existing redundancy techniques, such as simple replication, are inefficient. Recent "learning-based" approaches like Parity Models (ParM) require training specialized helper models for every deployed architecture, which hinders scalability and flexibility.

Methodology: Approximate Coded Inference

ApproxIFER (Approximate Coded Inference) treats the distributed inference problem as a numerical interpolation task. Unlike previous coding-theoretic methods that rely on unstable high-degree polynomials, ApproxIFER utilizes Berrut’s rational interpolant to ensure numerical stability.

High-level architecture of the ApproxIFER framework.

Encoding and Decoding

The system takes $K$ input queries and "smears" them across $N+1$ coded queries using a rational function. During inference, the system collects the fastest responses and reconstructs the original predictions through interpolation. This approach is inherently model-agnostic; every worker node runs the identical base model (e.g., ResNet, VGG), eliminating the need for specialized parity model training or retraining when models are upgraded.

Byzantine Robustness

To defend against malicious actors, ApproxIFER incorporates a custom error-locator algorithm inspired by the Berlekamp-Welch algorithm. This allows the decoder to identify and exclude noisy or incorrect data from Byzantine workers, ensuring the integrity of the final reconstructed predictions even under adversarial conditions.

Evaluation and Key Results

The framework was evaluated using standard computer vision benchmarks (MNIST, Fashion-MNIST, CIFAR-10) across diverse architectures, including VGG-16, ResNet variants, DenseNet-161, and GoogLeNet.

Accuracy comparison between the base model, ApproxIFER, and the ParM baseline.

Performance Gains

  • Accuracy: ApproxIFER significantly outperforms ParM, especially as batch sizes increase. For $K=12$ on CIFAR-10, it demonstrated a 58% accuracy improvement over the ParM baseline.
  • Resilience: The system maintains high accuracy even in the presence of stragglers. With three stragglers ($S=3$), the accuracy drop remained under 10% across all tested datasets.
  • Robustness: Against Byzantine attacks (e.g., random Gaussian noise), performance remained stable with only a 5-6% drop in accuracy.
  • Efficiency: ApproxIFER requires only $2K + 2E$ workers to tolerate $E$ malicious nodes, a substantial reduction compared to the $(2E + 1)K$ workers required by traditional replication.

Conclusion and Future Work

ApproxIFER provides a scalable, model-agnostic solution for resilient cloud inference. While the reconstruction is an approximation, the numerical gap is negligible for classification tasks. Future research will explore integrating privacy-preserving techniques to protect raw input data from cloud providers while maintaining the system's robustness and efficiency.

Summary updated

BibTeX
@inproceedings{soleymani2022approxifer,
  author = {Mahdi Soleymani and Ramy E. Ali and Hessam Mahdavifar and 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