Skip to main content
QUICK REVIEW

[Paper Review] Collage Inference: Tolerating Stragglers in Distributed Neural Network Inference using Coding.

Krishna Giri Narra, Zhifeng Lin|arXiv (Cornell University)|Apr 27, 2019
Advanced Neural Network ApplicationsComputer Science32 references6 citations
TL;DR

This paper proposes Collage Inference, a coded inference approach that uses specially designed Collage-CNN models to tolerate straggler nodes in distributed neural network inference. By processing multiple input images as a single collage, the method reduces 99th percentile latency by 1.45X to 2.46X compared to replication-based approaches without sacrificing accuracy.

ABSTRACT

MLaaS (ML-as-a-Service) offerings by cloud computing platforms are becoming increasingly popular these days. Pre-trained machine learning models are deployed on the cloud to support prediction based applications and services. For achieving higher throughput, incoming requests are served by running multiple replicas of the model on different machines concurrently. Incidence of straggler nodes in distributed inference is a significant concern since it can increase inference latency, violate SLOs of the service. In this paper, we propose a novel coded inference model to deal with stragglers in distributed image classification. We propose modified single shot object detection models, Collage-CNN models, to provide necessary resilience efficiently. A Collage-CNN model takes collage images formed by combining multiple images as its input and performs multi-image classification in one shot. We generate custom training collages using images from standard image classification datasets and train the model to achieve high classification accuracy. Deploying the Collage-CNN models in the cloud, we demonstrate that the 99th percentile latency can be reduced by 1.45X to 2.46X compared to replication based approaches and without compromising prediction accuracy.

Motivation & Objective

  • To address the problem of straggler nodes in distributed machine learning inference, which increases latency and violates service-level objectives (SLOs).
  • To design a resilient inference system that maintains high accuracy while improving throughput and reducing latency in cloud-based MLaaS deployments.
  • To develop a novel neural network architecture—Collage-CNN—that can perform multi-image classification in a single forward pass using combined input images.
  • To evaluate the performance of the proposed method against traditional replication-based approaches in real-world distributed inference workloads.

Proposed method

  • The method introduces Collage-CNN, a modified single-shot object detection model trained to classify multiple images simultaneously when presented as a single composite image (collage).
  • Custom training collages are generated from standard image classification datasets by combining multiple images into one input tensor with spatial padding.
  • The model is trained end-to-end to predict class labels for all images in the collage in a single forward pass, enabling joint inference across multiple inputs.
  • The approach leverages coding theory principles by encoding multiple inference tasks into a single computation, allowing the system to tolerate stragglers through redundancy and recovery mechanisms.
  • The system uses a coded computation strategy where the computation of multiple inputs is encoded into a single, larger inference task, enabling recovery from slow or delayed nodes.
  • Deployment in cloud environments allows the system to complete inference using only the results from fast nodes, effectively ignoring stragglers by design.

Experimental results

Research questions

  • RQ1Can a coded inference approach reduce latency in distributed neural network inference without sacrificing prediction accuracy?
  • RQ2How effective is a multi-image classification model trained on synthetic collages in maintaining classification performance across individual inputs?
  • RQ3To what extent can Collage-CNN reduce 99th percentile latency compared to replication-based strategies in real-world distributed inference workloads?
  • RQ4How does the system handle straggler nodes by leveraging redundancy and partial computation completion?

Key findings

  • The Collage Inference approach reduces 99th percentile inference latency by 1.45X to 2.46X compared to replication-based methods in distributed inference workloads.
  • The method maintains high classification accuracy, with no degradation observed when compared to standard inference baselines.
  • The use of custom training collages enables the Collage-CNN model to generalize well across individual images within the composite input.
  • The system effectively tolerates straggler nodes by allowing completion of inference using results from fast-performing nodes, thus improving overall throughput.
  • The approach achieves significant latency reduction without requiring changes to existing model architectures or data distributions.
  • The results demonstrate that coded inference via collage processing is a viable and efficient alternative to replication for MLaaS workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.