[논문 리뷰] Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sources
CoK는 다층 출처로부터의 동적 근거 제시를 통해 LLM을 향상시키며, 추론 준비, 동적 지식 적응, 답변 통합의 세 단계 프로세스를 사용하여 환각을 줄이고 사실성을 향상시킨다.
We present chain-of-knowledge (CoK), a novel framework that augments large language models (LLMs) by dynamically incorporating grounding information from heterogeneous sources. It results in more factual rationales and reduced hallucination in generation. Specifically, CoK consists of three stages: reasoning preparation, dynamic knowledge adapting, and answer consolidation. Given a knowledge-intensive question, CoK first prepares several preliminary rationales and answers while identifying the relevant knowledge domains. If there is no majority consensus among the answers from samples, CoK corrects the rationales step by step by adapting knowledge from the identified domains. These corrected rationales can plausibly serve as a better foundation for the final answer consolidation. Unlike prior studies that primarily use unstructured data, CoK also leverages structured knowledge sources such as Wikidata and tables that provide more reliable factual information. To access both unstructured and structured knowledge sources in the dynamic knowledge adapting stage, we propose an adaptive query generator that allows the generation of queries for various types of query languages, including SPARQL, SQL, and natural sentences. Moreover, to minimize error propagation between rationales, CoK corrects the rationales progressively using preceding corrected rationales to generate and correct subsequent rationales. Extensive experiments show that CoK consistently improves the performance of LLMs on knowledge-intensive tasks across different domains.
연구 동기 및 목표
- 여러 도메인에 걸친 외부 지식으로 추론을 근거화하여 LLM의 환각 감소를 촉진한다.
- 비정형 및 정형 지식 원천을 동적으로 선택하고 활용하는 프레임워크를 개발한다.
- 추론 과정에서 오류 전파를 방지하기 위해 근거의 점진적 수정이 가능하도록 한다.
- 언어에 맞는 질의를 생성하는 적응형 질의 생성기(AQG)를 도입한다(SPARQL, SQL, 자연어).
- 사실적, 의학적, 물리적, 생물학적 도메인에서 넓은 효율성을 입증한다.
제안 방법
- 세 단계 프레임워크: 추론 준비, 동적 지식 적응, 그리고 답변 통합.
- 추론 준비는 소수 예시 체인-of-thought 프롬프트와 자기일관성을 사용하여 지식 도메인을 식별하고 예비 근거를 생성한다.
- 적응형 질의 생성기(AQG)가 다양한 원천과 언어(SPARQL, SQL, 자연 문장)에 대한 질의를 생성한다.
- 지식 검색은 질의를 Wikidata, 표, 의학 자원 및 도메인 데이터 세트의 형식화된 지식으로 변환한다.
- 점진적 근거 수정은 앞선 수정된 근거를 사용하여 후속 근거를 생성하고 수정하여 오류 전파를 방지한다.
- 수정된 근거와 질문으로 LLM을 프롬프트하여 최종 답을 생성한다.
실험 결과
연구 질문
- RQ1CoK가 다중 도메인에 걸친 지식 집약적 작업에서 사실 정확성을 향상시키고 환각을 줄일 수 있는가?
- RQ2동적 지식 적응을 통한 점진적 근거 수정이 병렬 또는 정적 검색 접근법보다 우수한가?
- RQ3구조화된 및 비구조화된 원천(SPARQL, SQL, 자연어)에 대해 적절한 질의를 생성하는 AQG의 효과는 어느 정도인가?
- RQ4의학, 물리학, 생물학 및 사실적 작업에서 여러 도메인과 원천의 활용이 성능에 미치는 영향은 무엇인가?
- RQ5데이터셋 전반에서 표준 프롬 prompting, chain-of-thought, VE, ReAct 기본 방법과 CoK의 비교는 어떠한가?
주요 결과
- CoK는 사실적, 의학, 물리, 생물학 과제에서 일관되게 CoT 및 CoT-SC를 능가한다.
- 3샷 및 6샷 설정에서 평균 향상을 기록한다(예: FEVER에서 4.3%, MedMCQA 및 MMLU 도메인에서 4.9%).
- CoK는 Verify-and-Edit를 능가하고 여러 데이터셋에서 ReAct보다 더 큰 이득을 보이며, 특히 HotpotQA에서 두드러진다.
- 점진적 수정이 포함된 동적 지식 적응은 오류 전파를 줄이고 근거의 사실성을 높이며, 근거의 사실성 정확도로 나타난다.
- 여러 지식 도메인/원천의 사용은 성능을 추가로 향상시킨다(예: 의학 및 생물학 원천 조합; 다수의 의학 원천).
- AQG는 SPARQL, SQL, 자연어 검색에 대한 효과적인 질의 생성을 가능하게 하며, 미세 조정된 LLM과 블랙박스 LLM 모두를 지원한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.