Apparate: Rethinking Early Exits to Tame Latency-Throughput Tensions in ML Serving

Yinwei Dai, Rui Pan, Anand Iyer, Kai Li, Ravi Netravali

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Machine learning (ML) inference platforms are tasked with balancing two competing goals: ensuring high throughput given many requests, and delivering low-latency responses to support interactive applications. Unfortunately, existing platform knobs (e.g., batch sizes) fail to ease this fundamental tension, and instead only enable users to harshly trade off one property for the other. This paper explores an alternate strategy to taming throughput-latency tradeoffs by changing the granularity at which inference is performed. We present Apparate, a system that automatically applies and manages early exits (EEs) in ML models, whereby certain inputs can exit with results at intermediate layers. To cope with the time-varying overhead and accuracy challenges that EEs bring, Apparate repurposes exits to provide continual feedback that powers several novel runtime monitoring and adaptation strategies. Apparate lowers median response latencies by 40.5 - 91.5% and 10.0 - 24.2% for diverse CV and NLP classification workloads, and median time-per-token latencies by 22.6 - 77.9% for generative scenarios, without affecting throughputs or violating tight accuracy constraints.

Original languageAmerican English
Title of host publicationSOSP 2024 - Proceedings of the 2024 ACM SIGOPS 30th Symposium on Operating Systems Principles
PublisherAssociation for Computing Machinery, Inc
Pages607-623
Number of pages17
ISBN (Electronic)9798400712517
DOIs
StatePublished - Nov 15 2024
Event30th ACM Symposium on Operating Systems Principles, SOSP 2024 - Austin, United States
Duration: Nov 4 2024Nov 6 2024

Publication series

NameSOSP 2024 - Proceedings of the 2024 ACM SIGOPS 30th Symposium on Operating Systems Principles

Conference

Conference30th ACM Symposium on Operating Systems Principles, SOSP 2024
Country/TerritoryUnited States
CityAustin
Period11/4/2411/6/24

ASJC Scopus subject areas

  • Computational Theory and Mathematics
  • Computer Science Applications
  • Software

Fingerprint

Dive into the research topics of 'Apparate: Rethinking Early Exits to Tame Latency-Throughput Tensions in ML Serving'. Together they form a unique fingerprint.

Cite this