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

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

TL;DR

ApproxIFER is a model-agnostic framework that makes prediction serving systems resilient to slow "straggler" nodes and robust against malicious "Byzantine" workers. By leveraging rational interpolation instead of model-specific training, it achieves up to 58% higher accuracy than previous state-of-the-art methods while scaling efficiently to large batches of queries.

What Problem Does This Paper Address?

In Machine Learning as a Service (MLaaS), clients outsource inference tasks to cloud-based prediction serving systems. To maintain low latency, these systems distribute queries across multiple worker nodes. However, two major issues arise:

  1. Stragglers: Individual nodes may experience transient slowdowns, causing the entire system's "tail latency" to spike.
  2. Byzantine Workers: Malicious or faulty nodes may return incorrect predictions, compromising the integrity of the results.

Traditional solutions like replication (sending the same query to multiple workers) are resource-heavy. Recent learning-based approaches like Parity Models (ParM) reduce overhead by training specialized models to reconstruct missing results. However, ParM is model-specific (requiring expensive retraining for every new architecture), scales poorly with the number of queries, and offers no protection against adversarial workers.

Methods

ApproxIFER (Approximate Coded Inference) introduces a coding-theoretic approach that is entirely model-agnostic. Unlike ParM, which requires a custom parity model (see Figure 1), ApproxIFER allows every worker to run the exact same deployed model (see Figure 2).

Comparison of ParM (model-specific) vs ApproxIFER (model-agnostic) ApproxIFER architecture overview

The core technical innovation lies in its use of rational interpolation:

  • Encoding: The system uses Berrut’s rational interpolant to encode $K$ input queries into $N+1$ coded queries. By selecting Chebyshev points for the interpolation, the authors ensure numerical stability—a common pitfall for traditional polynomial-based coding.
  • Decoding: Once the fastest workers return their results, the decoder uses rational interpolation to recover the original predictions.
  • Byzantine Robustness: To handle malicious workers, the authors developed a novel error-locator algorithm inspired by the Berlekamp–Welch algorithm. It uses a majority vote across the "soft labels" (class probabilities) of the predictions to identify and exclude erroneous results before final decoding.

Datasets

The authors evaluated ApproxIFER across a diverse range of standard image classification benchmarks:

  • MNIST
  • Fashion-MNIST
  • CIFAR-10

These were tested on several state-of-the-art architectures, including VGG-16, ResNet (18, 34, 50, 152), DenseNet-161, and GoogLeNet, demonstrating the framework's versatility.

Key Insights and Ideas

  • Rational > Polynomial: Most coding-theoretic approaches rely on polynomials, which are notoriously unstable for high-degree interpolation. By switching to rational functions, ApproxIFER achieves much higher numerical stability and faster convergence.
  • Eliminating the Training Bottleneck: Because ApproxIFER doesn't require training "parity models," it can be deployed instantly on any pre-trained neural network. This makes it practical for real-world systems where models are updated frequently.
  • Efficient Redundancy: To tolerate $E$ Byzantine errors, ApproxIFER requires only $2K + 2E$ workers. In contrast, replication-based schemes require $(2E + 1)K$ workers, which becomes prohibitively expensive as the number of queries ($K$) grows.

Key Results

ApproxIFER significantly outperforms ParM, especially as the number of simultaneous queries ($K$) increases.

  • Accuracy Gains: For $K=12$ queries on CIFAR-10 using ResNet-18, ApproxIFER improved accuracy by 58% over ParM (see Figure 6).
  • Straggler Resilience: Even with multiple stragglers ($S=3$), the accuracy loss compared to a perfect "best case" scenario remained below 10% for all tested datasets (see Figure 7).
  • Byzantine Robustness: The error-locator algorithm proved highly effective; for $E=3$ adversarial workers, the accuracy loss was kept under 6% across all datasets.
Figure 6: Accuracy of ApproxIFER compared with the best case as well as ParM for ResNet-18, K = 12 and S = 1.

Limitations and Future Work

While ApproxIFER provides a robust and scalable framework, the authors note a few areas for improvement:

  • Privacy: The current encoding process does not guarantee data privacy. The authors suggest that extending ApproxIFER to preserve data privacy is a promising future research direction.
  • Approximation Error: As the name implies, the inference is "approximate." While accuracy is high, there is a small, inherent trade-off compared to running the base model on uncoded data.
  • Computational Overhead: Although it saves on worker resources compared to replication, the encoding and decoding steps (specifically solving the system of linear equations for error location) add a small amount of computational overhead to the client/master node.

Summary updated

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