CPU 음성 합성의 한계를 넘어서: 서버리스 아키텍처 및 과금 환경에서의 극한 추론 튜닝
Pushing CPU Speech Synthesis to the Wall: Extreme Inference Tuning under Serverless Architecture and Billing
한국어 초록
인스턴스 기반 과금 방식의 서버리스 플랫폼은 웜 인스턴스(warm instance)의 수명 동안 CPU와 메모리에 대해 비용을 청구하므로, 유휴 추론(inference) 상태가 직접적인 서빙 비용으로 이어집니다. 본 논문에서는 처리량이나 지연 시간만을 최적화하기보다 CPU-초(CPU-seconds) 및 GB-초(GB-seconds)를 최적화하는 서버리스 CPU 기반의 과금 인식 신경망 텍스트 음성 변환(TTS) 서빙을 제시합니다. 기존 런타임은 이러한 환경에 적합하지 않습니다. 요청별 병렬 처리는 동시 요청 환경에서 CPU 경합을 유발하며, 웜 인스턴스는 과금 대상이 되는 수 기가바이트의 추론 상태 및 페이지 캐시 상태를 유지합니다. 본 연구에서는 요청별 CPU 병렬 처리를 제한하는 요청 크기 기반의 동시 추론과, 서버 프로세스 및 컴파일 캐시는 유지하면서 유휴 시간 이후 추론 상태와 페이지 캐시 메모리를 해제하는 회수 가능한 인스턴스 라이프사이클을 통해 이러한 비용 문제를 해결합니다. Kokoro-82M 모델에서 본 시스템은 ONNX Runtime 기본값의 0.89 대비 CPU-초당 2.71 오디오-초를 달성하였으며, 오디오 시간당 비용을 PyTorch의 $0.0631에서 4.1배 절감된 $0.0153로 낮췄습니다. 유휴 과금 메모리는 8.7 GB에서 1.33 GB로 감소한 반면, 복구 후 첫 오디오 생성까지의 시간은 PyTorch의 콜드 스타트 7.7초 대비 2.2초에 도달했습니다. 버스트 트래픽 환경에서 라이프사이클 자원 회수는 추론 효율성을 실질적인 서버리스 비용 절감으로 전환하는 데 필수적입니다.
원문 초록
Instance-billed serverless platforms charge for CPU and memory over the lifetime of a warm instance, making idle inference state a direct serving cost. We present billing-aware neural text-to-speech (TTS) serving on serverless CPUs, optimizing CPU-seconds and GB-seconds rather than throughput or latency alone. Conventional runtimes are poorly suited to this setting: per-request parallelism causes CPU contention under concurrency, while warm instances retain gigabytes of billable inference and page-cache state. We address these costs with request-sized concurrent inference, which bounds per-request CPU parallelism, and a reclaimable instance lifecycle, which releases inference state and page-cache memory after idle periods while retaining the server process and compile cache. On Kokoro-82M, our system achieves 2.71 audio-seconds per CPU-second versus 0.89 with ONNX Runtime defaults and reduces cost per audio-hour from $0.0631 with PyTorch to $0.0153, a 4.1x reduction. Idle billed memory falls from 8.7 GB to 1.33 GB, while restoration reaches first audio in 2.2 s versus 7.7 s for a PyTorch cold start. Under bursty traffic, lifecycle reclamation is essential for translating inference efficiency into lower serverless cost.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.
저자 비고
arXiv Comments
6 pages, technical report