Skip to main content
QUICK REVIEW

[논문 리뷰] INFaaS: Managed & Model-less Inference Serving

Francisco Romero, Qian Li|arXiv (Cornell University)|2019. 05. 30.
Cloud Computing and Resource ManagementComputer Science참고 문헌 31인용 수 14
한 줄 요약

INFaaS는 사용자가 지정한 성능 및 정확도 요구사항을 충족시키기 위해 최적의 모델과 자원을 자동으로 선택하는 관리형, 모델 없는 추론 인프라로서, 기존 시스템보다 2배 높은 처리량을 달성하고 지연 시간 SLO 위반 빈도를 3배 줄이며, 밀리초 단위 쿼리에서 12% 미만의 오버헤드로 높은 자원 활용도를 유지한다.

ABSTRACT

The number of applications relying on inference from machine learning models is already large and expected to keep growing. For instance, Facebook applications issue tens-of-trillions of inference queries per day with varying performance, accuracy, and cost constraints. Unfortunately, existing inference serving systems are neither easy to use nor cost effective. Developers must manually match the performance, accuracy, and cost constraints of their applications to a large design space that includes decisions such as selecting the right model and model optimizations, selecting the right hardware architecture, selecting the right scale-out factor, and avoiding cold-start effects. These interacting decisions are difficult to make, especially when the application load varies over time, applications evolve over time, and the available resources vary over time. We present INFaaS, an inference-as-a-service system that abstracts resource management and model selection. Users simply specify their inference task along with any performance and accuracy requirements for queries. Given the currently available resources, INFaaS automatically selects and serves inference queries using a specific model that satisfies these requirements. INFaaS autoscales resources as model load changes both within and across inference workers. It also shares workers across users and models to increase utilization. We evaluate INFaaS using 44 model architectures and their 270 model variants against serving systems that rely on users for model selection and pre-load models, fix the scale policy, or use dedicated hardware resources. Our evaluation on realistic workloads shows that INFaaS achieves 2$ imes$ higher throughput and violates latency SLO goals 3$ imes$ less frequently, while maintaining high utilization and having overheads that are less than 12% of millisecond-scale queries.

연구 동기 및 목표

  • 수동 조정이 필요한 기존 추론 서빙 시스템의 복잡성과 비효율성을 해결하기 위해.
  • 다양한 환경에서의 동적 다중 테넌트 환경에서 모델 선택 및 자원 관리를 추상화함으로써 개발자의 운영 부담을 줄이기 위해.
  • 다양한 사용자와 모델 간의 추론 워커 공유를 통해 자원 활용도와 비용 효율성을 향상시키기 위해.
  • 변동하는 워크로드와 자원 가용성 조건에서도 엄격한 지연 시간 및 정확도 SLO를 유지하기 위해.
  • 다양한 모델 아키텍처와 변종을 사용하여 실제 워크로드를 기반으로 시스템 성능을 평가하기 위해.

제안 방법

  • 사용자는 추론 작업과 성능/정확도 제약 조건만 지정하면 되는 단순한 인터페이스를 제공한다.
  • 시스템은 자원 가용성과 워크로드 수요를 지속적으로 모니터링하여 최적의 모델 버전과 배포 구성 설정을 선택한다.
  • 실시간 로드 변화에 따라 자원 할당을 조정하는 동적 자동 스케일링을 통해 추론 워커를 관리한다.
  • 여러 사용자와 모델 간에 물리적 워커를 공유함으로써 활용도를 향상시키고 유휴 자원을 줄인다.
  • 정책 엔진을 활용해 SLO를 기준으로 모델 버전을 평가하고, 현재 조건 하에서 사용자 요구사항을 가장 잘 충족하는 모델을 선택한다.
  • 사전에 워밍업하고 사용 가능한 추론 워커 풀을 유지함으로써 쿨 스트레스를 방지한다.

실험 결과

연구 질문

  • RQ1수동 조정 없이 사용자가 지정한 SLO를 충족시키기 위해 모델과 자원을 자동으로 선택할 수 있는가?
  • RQ2수동 설정 대비 자동 모델 및 자원 선택이 처리량, 지연 시간, 자원 활용도에 어떤 영향을 미치는가?
  • RQ3사용자와 모델 간 워커 공유가 시스템 효율성과 자원 활용도 향상에 얼마나 기여하는가?
  • RQ4변동성이 크고 실제 워크로드가 다양하며 수요가 변동하는 환경에서 INFaaS는 어떻게 성능을 발휘하는가?
  • RQ5밀리초 단위 추론 쿼리에서 시스템의 자동화 레이어가 어떤 정도의 런타임 오버헤드를 유발하는가?

주요 결과

  • INFaaS는 수동 모델 선택과 고정 스케일링 정책이 필요한 시스템 대비 처리량을 2배로 향상시켰다.
  • 기준 시스템 대비 지연 시간 SLO 위반 빈도가 3배 줄어들어, 부하가 가중된 상황에서도 더 강력한 신뢰성을 입증했다.
  • 밀리초 단위 쿼리에서 12% 미만의 오버헤드를 유발하면서도 높은 자원 활용도를 유지했다.
  • 실시간 자동 스케일링과 동적 모델 선택을 통해 워크로드 변동을 성공적으로 처리했다.
  • 사용자 및 모델 간 워커 공유 기능 덕분에 SLO를 훼손하지 않으면서도 활용도를 크게 향상시켰다.
  • 44개의 모델 아키텍처와 270개의 변종을 대상으로 한 평가를 통해 다양한 추론 워크로드에서 본 방법의 강건성과 확장성을 입증했다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.