[논문 리뷰] Efficient Tool Use with Chain-of-Abstraction Reasoning
본 논문은 Chain-of-Abstraction (CoA) 추론을 도입하여 일반적인 다단계 추론과 도메인 특화 도구 사용을 분리하고, 추상적 추론 체인을 도구가 구현(reify)하도록 하여 수학 및 위키 QA 과제에서 정확하고 더 빠른 다단계 문제 해결을 가능하게 한다.
To achieve faithful reasoning that aligns with human expectations, large language models (LLMs) need to ground their reasoning to real-world knowledge (e.g., web facts, math and physical rules). Tools help LLMs access this external knowledge, but there remains challenges for fine-tuning LLM agents (e.g., Toolformer) to invoke tools in multi-step reasoning problems, where inter-connected tool calls require holistic and efficient tool usage planning. In this work, we propose a new method for LLMs to better leverage tools in multi-step reasoning. Our method, Chain-of-Abstraction (CoA), trains LLMs to first decode reasoning chains with abstract placeholders, and then call domain tools to reify each reasoning chain by filling in specific knowledge. This planning with abstract chains enables LLMs to learn more general reasoning strategies, which are robust to shifts of domain knowledge (e.g., math results) relevant to different reasoning questions. It also allows LLMs to perform decoding and calling of external tools in parallel, which avoids the inference delay caused by waiting for tool responses. In mathematical reasoning and Wiki QA domains, we show that our method consistently outperforms previous chain-of-thought and tool-augmented baselines on both in-distribution and out-of-distribution test sets, with an average ~6% absolute QA accuracy improvement. LLM agents trained with our method also show more efficient tool use, with inference speed being on average ~1.4x faster than baseline tool-augmented LLMs.
연구 동기 및 목표
- 도메인 지식을 위한 외부 도구를 활용하여 LLM에서 신뢰할 수 있고 근거 있는 추론을 촉진한다.
- LLM이 자리표기(placeholder)가 있는 추상적 추론 체인을 생성하도록 가르치는 훈련 파이프라인을 개발한다.
- 일반 추론을 도구 기반의 근거화로부터 분리하여 병렬 디코딩과 도구 채움(tool infilling)을 가능하게 한다.
- 수학적 추론과 Wikipedia QA에서 CoA를 평가하여 지식 변화에 대한 로버스트성을 평가한다.
제안 방법
- 추상 자리표시(초록 placeholder)와 함께 추론 체인(CoA 추적)을 생성하도록 LLM을 파인튜닝한다.
- 도메인 특화 도구를 사용하여 자리표시를 계산하거나 지식을 검색해 추론 체인을 구체화하고 추론의 근거를 확보한다.
- 정답(gold answers)을 추상 체인으로 재작성하고 도구로 검증하여 CoA 미세조정 데이터를 구성한다.
- 추상 체인 생성 후 병렬 도구 호출을 가능하게 하여 디코딩 효율성을 평가하고 추론 시간을 상쇄한다.
- 수학 및 위키 QA 데이터셋에서 CoA를 CoT-FSP, CoT-FT, Toolformer, FireAct 베이스라인과 비교한다.
실험 결과
연구 질문
- RQ1추상적 추론 체인이 다단계 추론에서 도메인 지식 변화에 대한 로버스트성을 향상시킬 수 있는가?
- RQ2추상적 추론을 도구 사용과 분리하면 수학 및 위키 QA에서 보다 효율적이고 정확한 도구 보강 추론을 얻을 수 있는가?
- RQ3CoA가 분포 내(in-distribution) 및 분포 외(out-of-distribution) 테스트 세트에서 기존의 도구 보강 및 사고 체인(연상) 베이스라인에 비해 어떤 성능을 보이는가?
- RQ4다단계 추론 작업으로 확장할 때 CoA가 추론 속도에 미치는 영향은 무엇인가?
주요 결과
- CoA는 수학에서 평균 절대 QA 정확도를 약 7.5%, 위키 QA에서 약 4.5% 향상시킨다(분포 내외 모두).
- CoA를 사용할 때 수학에서 추론 속도는 약 1.47배, 위키 QA에서는 약 1.33배 더 빠르다.
- 사람 평가에서 CoA는 베이스라인에 비해 추론 오류가 약 8% 감소했다.
- CoA는 도메인 내 도구 보강 없이도 복잡한 다단계 추론과 긴 추론 체인에서 Toolformer 및 다른 베이스라인보다 우수하다.
- 추상 추론과 도구 호출을 분리하면 병렬 디코딩 및 도구 채움이 가능해져 대기 시간을 줄이고 효율성을 높인다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.