Skip to main content
QUICK REVIEW

[논문 리뷰] EcoAssistant: Using LLM Assistant More Affordably and Accurately

Jieyu Zhang, Ranjay Krishna|arXiv (Cornell University)|2023. 10. 03.
Topic ModelingComputer Science인용 수 7
한 줄 요약

EcoAssistant는 (1) 자동 코드 실행기로 반복하며, (2) 더 저렴한 LLM에서 더 비싼 LLM으로의 계층화를 사용하고, (3) 과거의 성공적인 해답을 인-컨텍스트 시연으로 검색하여 코드 기반 질의에 더 저렴하고 정확하게 답할 수 있게 한다.

ABSTRACT

Today, users ask Large language models (LLMs) as assistants to answer queries that require external knowledge; they ask about the weather in a specific city, about stock prices, and even about where specific locations are within their neighborhood. These queries require the LLM to produce code that invokes external APIs to answer the user's question, yet LLMs rarely produce correct code on the first try, requiring iterative code refinement upon execution results. In addition, using LLM assistants to support high query volumes can be expensive. In this work, we contribute a framework, EcoAssistant, that enables LLMs to answer code-driven queries more affordably and accurately. EcoAssistant contains three components. First, it allows the LLM assistants to converse with an automatic code executor to iteratively refine code or to produce answers based on the execution results. Second, we use a hierarchy of LLM assistants, which attempts to answer the query with weaker, cheaper LLMs before backing off to stronger, expensive ones. Third, we retrieve solutions from past successful queries as in-context demonstrations to help subsequent queries. Empirically, we show that EcoAssistant offers distinct advantages for affordability and accuracy, surpassing GPT-4 by 10 points of success rate with less than 50% of GPT-4's cost.

연구 동기 및 목표

  • 외부 API 호출이 필요한 코드 주도형 질문 응답의 도전 과제를 제시한다.
  • LLM 기반 코드 생성 및 실행의 비용을 줄이고 정확성을 높이는 시스템을 제안한다.
  • 코드 실행기로 자동으로 반복하고, 보조 객체의 계층을 활용하며, 과거 해답을 시연으로 재사용하는 방법을 도입한다.
  • 여러 도메인(Places, Weather, Stock)에서 이러한 기법들이 비용과 성공률에 미치는 영향을 평가한다.

제안 방법

  • LLM 어시스턴트가 코드 실행기와 대화를 나누며 생성된 코드를 반복적으로 다듬는 두 에이전트 대화 프레임워크를 도입한다.
  • 가장 저렴한 LLM에서 시작해 필요에 따라 더 비싼 것으로 보완하는 어시스턴트 계층화를 사용한다.
  • 성공적인 질의-코드 쌍을 벡터 데이터베이스에 저장하고 가장 유사한 과거 해법을 프롬프트 시연으로 검색해 솔루션 시연을 구현한다.

실험 결과

연구 질문

  • RQ1코드 실행기를 통한 반복적인 코드 실행이 코드 주도형 QA의 정확성을 향상시킬 수 있는가?
  • RQ2어시스턴트 계층화가 정확성을 희생하지 않으면서 비용을 줄일 수 있는가?
  • RQ3과거의 성공적인 해답을 시연으로 통합하는 것이 성능과 속도를 향상시키는가?
  • RQ4계층화와 시연의 결합 효과가 다양한 데이터셋(Places, Weather, Stock)에서 어떤가요?

주요 결과

  • 더 강력하고 비싼 모델은 단독으로 사용할 때 더 높은 성공률을 보인다.
  • CoT 프롬프팅은 GPT-3.5-turbo를 향상시키지만 항상 GPT-4 또는 LLAMA-2-13B-chat에서 그렇지 않으며 비용을 증가시킬 수 있다.
  • 해결 시연은 비용 영향이 미묘한 편에서 약한 모델의 성공률을 크게 높인다.
  • 어시스턴트 계층화는 GPT-4 단독 대비 약 10–50%의 비용 절감을 가능하게 하며, 미미한 성능 향상이 있을 수 있다.
  • 시스템 차원의 결합(계층화 + 해법 시연)은 데이터셋 전반에 걸쳐 가장 높은 성공률을 달성하고 계층화만 사용할 때보다 비용을 더 감소시킨다.
  • 혼합 데이터셋에서 계층화와 시연을 갖춘 EcoAssistant가 가장 좋은 성능을 보이고 비교적 낮은 비용을 유지하며, 자율 버전도 유사한 추세를 보인다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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