奇偶模型:ML推理中基于编码的弹性的通用框架
Parity Models: A General Framework for Coding-Based Resilience in ML Inference
摘要:
机器学习模型正在成为许多应用程序的主要工具。生产服务通过预测服务系统部署模型,预测服务系统通过对机器学习模型执行推理来接收查询并返回预测。为了扩展到高查询速率,预测服务系统在集群设置中的许多机器上运行,因此容易出现减速和故障,从而增加尾部延迟并导致违反严格的延迟目标。当前减少尾部延迟的方法对于预测服务的延迟目标是不充分的,引起高资源开销,或者不适用于在推理期间执行的计算。我们提出了ParM,一个新的,通用的框架,利用擦除编码和机器学习的想法,以实现低延迟,资源高效的弹性预测服务系统的减速和故障。ParM将多个查询一起编码为单个奇偶校验查询,并使用奇偶校验模型对奇偶校验查询执行推理。解码器使用奇偶模型的输出来重构不可用预测的近似。ParM使用神经网络来学习奇偶校验模型,使简单,快速的编码器和解码器能够为各种推理任务(如图像分类,语音识别和对象定位)重建不可用的预测。我们建立ParM的开源预测服务系统之上,并通过广泛的评估表明,ParM提高了整体准确性,在面对不可用低延迟,同时使用2-4 $\times$比基于复制的方法减少额外的资源。与使用等量资源同时保持相同中值的方法相比,ParM将第99.9百分位数和中值延迟之间的差距减少了多达$3.5\times$。
英文摘要:
Machine learning models are becoming the primary workhorses for many applications. Production services deploy models through prediction serving systems that take in queries and return predictions by performing inference on machine learning models. In order to scale to high query rates, prediction serving systems are run on many machines in cluster settings, and thus are prone to slowdowns and failures that inflate tail latency and cause violations of strict latency targets. Current approaches to reducing tail latency are inadequate for the latency targets of prediction serving, incur high resource overhead, or are inapplicable to the computations performed during inference. We present ParM, a novel, general framework for making use of ideas from erasure coding and machine learning to achieve low-latency, resource-efficient resilience to slowdowns and failures in prediction serving systems. ParM encodes multiple queries together into a single parity query and performs inference on the parity query using a parity model. A decoder uses the output of a parity model to reconstruct approximations of unavailable predictions. ParM uses neural networks to learn parity models that enable simple, fast encoders and decoders to reconstruct unavailable predictions for a variety of inference tasks such as image classification, speech recognition, and object localization. We build ParM atop an open-source prediction serving system and through extensive evaluation show that ParM improves overall accuracy in the face of unavailability with low latency while using 2-4$\times$ less additional resources than replication-based approaches. ParM reduces the gap between 99.9th percentile and median latency by up to $3.5\times$ compared to approaches that use an equal amount of resources, while maintaining the same median.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。