Skip to main content
QUICK REVIEW

[논문 리뷰] ToolQA: A Dataset for LLM Question Answering with External Tools

Yuchen Zhuang, Yue Yu|arXiv (Cornell University)|2023. 06. 23.
Topic ModelingComputer Science인용 수 39
한 줄 요약

ToolQA는 13개 도구를 가진 8개 도메인에서 LLM의 외부 도구 사용을 분리한 QA 벤치마크로, 쉬운 질문과 어려운 질문에서 도구 보강 모델의 강점과 한계를 드러냅니다.

ABSTRACT

Large Language Models (LLMs) have demonstrated impressive performance in various NLP tasks, but they still suffer from challenges such as hallucination and weak numerical reasoning. To overcome these challenges, external tools can be used to enhance LLMs' question-answering abilities. However, current evaluation methods do not distinguish between questions that can be answered using LLMs' internal knowledge and those that require external information through tool use. To address this issue, we introduce a new dataset called ToolQA, which is designed to faithfully evaluate LLMs' ability to use external tools for question answering. Our development of ToolQA involved a scalable, automated process for dataset curation, along with 13 specialized tools designed for interaction with external knowledge in order to answer questions. Importantly, we strive to minimize the overlap between our benchmark data and LLMs' pre-training data, enabling a more precise evaluation of LLMs' tool-use reasoning abilities. We conducted an in-depth diagnosis of existing tool-use LLMs to highlight their strengths, weaknesses, and potential improvements. Our findings set a new benchmark for evaluating LLMs and suggest new directions for future advancements. Our data and code are freely available to the broader scientific community on GitHub.

연구 동기 및 목표

  • LLM이 외부 도구를 사용하여 질문에 답하는 능력을 견고하게 평가하고, 도구 사용과 내부 지식 회상을 구분한다.
  • 도구 의존적 QA 데이터를 최소한의 인간 라벨링으로 생성하는 확장 가능하고 자동화된 데이터 생성 파이프라인을 제공한다.
  • 텍스트, 표 데이터, 그래프 및 코드 실행을 포괄하는 다양한 참조 코퍼스와 도구를 큐레이션한다.
  • 표준 LLM과 도구 보강 LLM의 기본 성능을 측정하고 오류 모드를 분석하여 향후 개선을 안내한다.

제안 방법

  • 참조 데이터 수집, 인간이 안내하는 질문 생성, 프로그래밍 방식의 답변 생성을 포함하는 자동화된 3단계 데이터셋 구성.
  • 텍스트 검색, 데이터베이스 연산, 수학 계산, 그래프 질의, 코드 해석에 걸친 13개의 특수 도구 설계.
  • 템플릿 기반 질문 생성을 인간 검증에 의해 안내하여 질문이 참조 코퍼지보다 도구 사용을 요구하도록 한다.
  • 정해진 도구 연산자와 도구 체인을 통해 참조 데이터에서 올바른 답을 생성하는 프로그램적 답변 생성.
  • 구체적 도구 체인과 상관없이 최종 답변 정확도에 초점을 맞춘 열린 평가.
Figure 1: Pre-trained on vast range of corpus, LLMs possess extensive knowledge, which may overlap with evaluation data. This overlap poses a significant challenge to current evaluation methods, as it becomes difficult to discern whether the model is merely recalling pre-trained information or genui
Figure 1: Pre-trained on vast range of corpus, LLMs possess extensive knowledge, which may overlap with evaluation data. This overlap poses a significant challenge to current evaluation methods, as it becomes difficult to discern whether the model is merely recalling pre-trained information or genui

실험 결과

연구 질문

  • RQ1도구가 필요한 질문에 대해 LLM이 내부의 사전 학습 지식에 의존하지 않고 신뢰할 수 있게 대답할 수 있는가?
  • RQ2현재 도구 보강 LLM이 복합 질의를 위한 다단계 도구 체인을 구성하고 실행하는 데 얼마나 능숙한가?
  • RQ3외부 도구를 사용한 QA에서 LLM의 주된 오류 모드는 무엇이며 쉬운 질문과 어려운 질문에서 어떻게 다른가?

주요 결과

  • 도구 보강 LLM은 ToolQA의 쉬운 질문에서 순전히 내부 추론보다 우수하지만 어려운 질문에서는 여전히 어려움을 겪는다.
  • ReAct 기반 접근법은 기준선 중에서 가장 강력한 성능을 보이나, 어려운 질문은 성공률이 낮다(예: 어려운 질문의 평균 8.2%).
  • ChatGPT와 chain-of-thought 프롬프트는 ToolQA에서 성능이 좋지 않아 명시적 도구 사용의 필요성을 강조한다.
  • 주요 오류 유형은 잘못된 도구 인수, 잘못된 데이터 소스, 그리고 특히 더 어려운 작업에서의 혁신적 환상(hallucination)이다.
  • 어려운 질문은 더 복잡한 도구 구성과 추론을 요구하여 도구 사용 계획 및 실행의 현재 한계를 강조한다.
  • ToolQA 데이터는 범위를 벗어난 소스에서 추출되며 공정한 평가를 위해 LLM 사전학습과의 교차 overlap를 신중히 최소화했다.
Figure 2: ToolQA, aiming to faithfully evaluate LLMs’ abilities to use external tools, curates data through three phases: (a) Reference Data Collection; (b) Human-Guided Question Generation; and (c) Programmatic Answer Generation.
Figure 2: ToolQA, aiming to faithfully evaluate LLMs’ abilities to use external tools, curates data through three phases: (a) Reference Data Collection; (b) Human-Guided Question Generation; and (c) Programmatic Answer Generation.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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