Skip to main content
QUICK REVIEW

[논문 리뷰] A Declarative System for Optimizing AI Workloads

Chunwei Liu, Matthew Russo|arXiv (Cornell University)|2024. 05. 23.
Machine Learning and Data ClassificationComputer Science인용 수 3
한 줄 요약

Palimpzest는 의미 분석 응용 프로그램(SAPPs)에 대해 비용 효율적이고 고성능의 실행 계획을 자동으로 생성함으로써 AI 워크로드를 선언적 방식으로 최적화하는 시스템입니다. 모델, 프롬프트, 하드웨어, 데이터 처리 간의 논리적 및 물리적 쿼리 최적화를 통합하여, 단일 스레드 GPT-4 기준 대비 최대 90.3배의 속도 향상과 9.1배의 비용 절감을 달성하면서도 기준 F1-스코어의 83.5%를 유지합니다.

ABSTRACT

A long-standing goal of data management systems has been to build systems which can compute quantitative insights over large corpora of unstructured data in a cost-effective manner. Until recently, it was difficult and expensive to extract facts from company documents, data from scientific papers, or metrics from image and video corpora. Today's models can accomplish these tasks with high accuracy. However, a programmer who wants to answer a substantive AI-powered query must orchestrate large numbers of models, prompts, and data operations. For even a single query, the programmer has to make a vast number of decisions such as the choice of model, the right inference method, the most cost-effective inference hardware, the ideal prompt design, and so on. The optimal set of decisions can change as the query changes and as the rapidly-evolving technical landscape shifts. In this paper we present Palimpzest, a system that enables anyone to process AI-powered analytical queries simply by defining them in a declarative language. The system uses its cost optimization framework to implement the query plan with the best trade-offs between runtime, financial cost, and output data quality. We describe the workload of AI-powered analytics tasks, the optimization methods that Palimpzest uses, and the prototype system itself. We evaluate Palimpzest on tasks in Legal Discovery, Real Estate Search, and Medical Schema Matching. We show that even our simple prototype offers a range of appealing plans, including one that is 3.3x faster and 2.9x cheaper than the baseline method, while also offering better data quality. With parallelism enabled, Palimpzest can produce plans with up to a 90.3x speedup at 9.1x lower cost relative to a single-threaded GPT-4 baseline, while obtaining an F1-score within 83.5% of the baseline. These require no additional work by the user.

연구 동기 및 목표

  • 다양한 모델, 프롬프트, 데이터 처리 작업을 조율해야 하는 AI 기반 분석 쿼리의 복잡성 증가에 대응하기 위해.
  • 개발자가 저수준 AI 최적화 결정을 추상화하기 위해 선언적 언어를 통해 부담을 줄이기 위해.
  • 비구조화된 데이터와 AI 추론을 포함한 의미 분석 응용 프로그램(SAPPs)의 효율적이고 비용 효율적이며 고성능의 실행을 가능하게 하기 위해.
  • 모델 선택, 프롬프트 설계, 하드웨어, 병렬 처리 간의 런타임, 재정적 비용, 출력 품질 간의 최적화 트레이드오프를 최적화하기 위해.
  • 정보 추출과 같은 좁은 사용 사례를 넘어 다양한 AI 워크로드를 지원하는 일반 목적의 시스템을 제공하기 위해.

제안 방법

  • 시스템은 사용자가 저수준 구현 세부 정보 없이도 고수준 논리를 기술할 수 있도록 선언적 언어를 사용합니다.
  • 모델, 프롬프트, 하드웨어, 병렬 처리 전략의 조합을 탐색함으로써 논리적 및 물리적 최적화를 통합합니다.
  • 실행 계획 생성 중 비용, 지연 시간, 품질 트레이드오프를 추정하기 위해 샘플 실행 데이터를 활용합니다.
  • 모델 선택, 프롬프트 엔지니어링, 토큰 감소, 병렬 실행을 최적화 차원으로 지원합니다.
  • 통합 실행 트리 내에서 기존 관계형 연산자와 LLM 기반 연산자를 통합합니다.
  • 비용 기반 최적화를 수행하며, 비효율적인 계획을 제거하고 고품질, 저비용 대안을 우선시하기 위해 히우리스틱을 적용합니다.

실험 결과

연구 질문

  • RQ1다양한 모델과 데이터 처리 작업을 포함하는 복잡한 AI 워크로드에 대해 선언적 시스템이 어떻게 최적의 실행 계획을 자동으로 생성할 수 있는가?
  • RQ2AI 기반 분석 쿼리에서 비용, 런타임, 출력 품질 간의 핵심 트레이드오프는 무엇인가?
  • RQ3자동 최적화가 실제 SAPP 환경에서 단순 기준 대비 상당한 성능 향상과 비용 절감을 달성할 수 있는가?
  • RQ4기술 환경의 변화에 따라 AI 모델 성능과 비용이 동적으로 변화하는 상황에서 시스템은 어떻게 대처하는가?
  • RQ5효율성과 품질 측면에서 선언적 최적화는 수작업으로 최적화된 단일 모델 기준 대비 어느 정도 뛰어나게 작용하는가?

주요 결과

  • Legal Discovery 작업에서 Palimpzest는 기준 방법 대비 3.3배의 속도 향상과 2.9배의 비용 절감을 달성하면서도 데이터 품질을 향상시켰습니다.
  • 병렬 처리 기능을 활성화한 결과, Palimpzest는 단일 스레드 GPT-4 기준 대비 최대 90.3배의 속도 향상과 9.1배의 낮은 비용을 기록했습니다.
  • Real Estate Search 작업에서 시스템은 기준 F1-스코어의 83.5%를 유지하여 최적화 중에도 뛰어난 품질 유지 능력을 입증했습니다.
  • 프로토타입은 다양한 매력적인 최적화 계획을 보여주었으며, 사용자 간섭 없이도 자동 최적화가 상당한 효율성 향상을 이끌 수 있음을 보여주었습니다.
  • 샘플 실행 데이터를 활용해 시스템의 최적화기가 비용, 성능, 품질 간의 트레이드오프를 효과적으로 조정하며 데이터 기반의 계획 선택을 가능하게 했습니다.
  • 간단한 프로토타입 형태임에도 불구하고, Palimpzest는 여러 SAPP 워크로드에서 수작업 최적화 기준을 뛰어넘는 성능을 보여주었으며, 최적화 프레임워크의 타당성을 입증했습니다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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