Saved in:
Bibliographic Details
Main Authors: Jhunjhunwala, Divyansh, Jali, Neharika, Joshi, Gauri, Wang, Shiqiang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2409.01420
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912012788826112
author Jhunjhunwala, Divyansh
Jali, Neharika
Joshi, Gauri
Wang, Shiqiang
author_facet Jhunjhunwala, Divyansh
Jali, Neharika
Joshi, Gauri
Wang, Shiqiang
contents Erasure-coded computing has been successfully used in cloud systems to reduce tail latency caused by factors such as straggling servers and heterogeneous traffic variations. A majority of cloud computing traffic now consists of inference on neural networks on shared resources where the response time of inference queries is also adversely affected by the same factors. However, current erasure coding techniques are largely focused on linear computations such as matrix-vector and matrix-matrix multiplications and hence do not work for the highly non-linear neural network functions. In this paper, we seek to design a method to code over neural networks, that is, given two or more neural network models, how to construct a coded model whose output is a linear combination of the outputs of the given neural networks. We formulate the problem as a KL barycenter problem and propose a practical algorithm COIN that leverages the diagonal Fisher information to create a coded model that approximately outputs the desired linear combination of outputs. We conduct experiments to perform erasure coding over neural networks trained on real-world vision datasets and show that the accuracy of the decoded outputs using COIN is significantly higher than other baselines while being extremely compute-efficient.
format Preprint
id arxiv_https___arxiv_org_abs_2409_01420
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Erasure Coded Neural Network Inference via Fisher Averaging
Jhunjhunwala, Divyansh
Jali, Neharika
Joshi, Gauri
Wang, Shiqiang
Machine Learning
Erasure-coded computing has been successfully used in cloud systems to reduce tail latency caused by factors such as straggling servers and heterogeneous traffic variations. A majority of cloud computing traffic now consists of inference on neural networks on shared resources where the response time of inference queries is also adversely affected by the same factors. However, current erasure coding techniques are largely focused on linear computations such as matrix-vector and matrix-matrix multiplications and hence do not work for the highly non-linear neural network functions. In this paper, we seek to design a method to code over neural networks, that is, given two or more neural network models, how to construct a coded model whose output is a linear combination of the outputs of the given neural networks. We formulate the problem as a KL barycenter problem and propose a practical algorithm COIN that leverages the diagonal Fisher information to create a coded model that approximately outputs the desired linear combination of outputs. We conduct experiments to perform erasure coding over neural networks trained on real-world vision datasets and show that the accuracy of the decoded outputs using COIN is significantly higher than other baselines while being extremely compute-efficient.
title Erasure Coded Neural Network Inference via Fisher Averaging
topic Machine Learning
url https://arxiv.org/abs/2409.01420