Skip to main content
QUICK REVIEW

[논문 리뷰] Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasoners

Xiaojuan Tang, Zilong Zheng|arXiv (Cornell University)|2023. 05. 24.
Topic ModelingComputer Science인용 수 15
한 줄 요약

요약: 이 논문은 LLM의 맥락 내 추론에서 의미를 분리하여 의미 표현이 LLM 추론의 상당 부분을 주도한다는 것을 보여주고, 순수한 기호적 단서보다 많은 작업에서 우수하며, 연역/귀납/귀추에 걸친 암기와 추론을 분석한다.

ABSTRACT

The emergent few-shot reasoning capabilities of Large Language Models (LLMs) have excited the natural language and machine learning community over recent years. Despite of numerous successful applications, the underlying mechanism of such in-context capabilities still remains unclear. In this work, we hypothesize that the learned extit{semantics} of language tokens do the most heavy lifting during the reasoning process. Different from human's symbolic reasoning process, the semantic representations of LLMs could create strong connections among tokens, thus composing a superficial logical chain. To test our hypothesis, we decouple semantics from the language reasoning process and evaluate three kinds of reasoning abilities, i.e., deduction, induction and abduction. Our findings reveal that semantics play a vital role in LLMs' in-context reasoning -- LLMs perform significantly better when semantics are consistent with commonsense but struggle to solve symbolic or counter-commonsense reasoning tasks by leveraging in-context new knowledge. The surprising observations question whether modern LLMs have mastered the inductive, deductive and abductive reasoning abilities as in human intelligence, and motivate research on unveiling the magic existing within the black-box LLMs. On the whole, our analysis provides a novel perspective on the role of semantics in developing and evaluating language models' reasoning abilities. Code is available at {\url{https://github.com/XiaojuanTang/ICSR}}.

연구 동기 및 목표

  • 의미 내용을 추론 프롬프트와 분리하여 맥락 내에서 LLM이 의미 없이 추론할 수 있는지 조사한다.
  • 제어된 기호적 환경에서 연역, 귀납, 그리고 귀추의 세 가지 추론 유형을 평가한다.
  • 의미 정보와 기호 정보에 직면했을 때 LLM의 암기 및 지식 업데이트 동작을 평가한다.
  • 일반적 상식 지식과 표현 방식(자연어 대 논리 언어)이 LLM의 맥락 내 추론에 어떤 영향을 미치는지 검토한다.

제안 방법

  • 의미-없는 추론을 테스트하기 위해 폐쇄월드, 잡음 없는 기호적 추론을 가진 합성 Symbolic Tree 데이터셋과 열린 세계 가정 하의 ProofWriter 하위집합을 제안한다.
  • Predicate를 기호 레이블(r1, r2 등)로 교체하고 개체를 ID로 바꾸어 의미를 분리하고; Semantics(자연어 술어) 설정과 비교한다.
  • ChatGPT, GPT-4, LLaMA-7B를 연역, 귀납, 귀추 과제 전반에 걸쳐 평가하고, 논리 기반 기준선과 기억 비교를 위해 Neo4j를 사용한다.
  • 메모리화 과제에 대해 LLaMA-7B를 미세 조정하고 내부 메모리와 외부 지식 베이스를 비교한다.
  • 조건화 효과를 분석: 규칙/사실을 제거하고 반상식 레이블을 도입하며, Semantics 영향을 연구하기 위해 ProofWriter OWL 작업을 테스트한다.
  • 추론 성능에 대한 맥락 길이와 표현 형식(자연어 대 논리 언어)을 탐구하고, 제로샷 대 CoT 효과 및 내부 대 외부 지식 사용을 평가한다.
Figure 1: Task Definitions. Memorization : retrieving the predicted fact from in-context knowledge. Deductive : predicting the correctness of the predicted fact given rules and facts. Inductive : generating a rule based on multiple facts with similar patterns. Abductive : explaining the predicted fa
Figure 1: Task Definitions. Memorization : retrieving the predicted fact from in-context knowledge. Deductive : predicting the correctness of the predicted fact given rules and facts. Inductive : generating a rule based on multiple facts with similar patterns. Abductive : explaining the predicted fa

실험 결과

연구 질문

  • RQ1기호적 과제에서 맥락 내 추론을 수행할 때 LLM은 의미에 의존하는가, 아니면 내부화된 선험 지식에 의존하는가?
  • RQ2연역, 귀납, 귀추 과제는 의미 표현과 기호 표현에 대한 민감도에서 어떻게 다르게 나타나는가?
  • RQ3의미 분리에 따른 LLM 추론에서 상식 지식과 기억의 역할은 무엇인가?
  • RQ4표현 형식과 프롬프트 전략(제로샷 대 CoT)이 맥락 내 추론 성능에 어떤 영향을 미치는가?

주요 결과

  • 의미 주도 설정은 Symbolic Tree에서 순수 기호적 설정에 비해 연역 및 귀납 추론을 크게 향상시킨다.
  • GPT-4은 일반적으로 평가 설정에서 ChatGPT보다 우수하며, 의미가 성능을 돕는 반면 기호 표현은 때때로 귀납 이득을 감소시키기도 한다.
  • 일부 기호 기반 기준선이 여전히 더 강력하여 기호적 추론이 현재 LLM에 의해 완전히 포착되지 않음을 시사한다.
  • 새로운 사실의 암기는 의미 표현에서 더 빠르지만, 더 강한 요인 간 상관관계로 인해 망각이 더 커질 수 있다.
  • Zero-shot-CoT는 의미 설정에서 제한된 이득을 제공하며, 일부 의미 분리된 과제에서는 제로샷보다 성능이 떨어질 수 있다.
  • 추론 과제에서 외부 맥락 규칙에 의존하기보다 내부 지식 사용이 더 큰 이점을 보인다.
Figure 2: Decoupling semantics from the ProofWriter task. In the original ProofWriter task, entities are represented by their names (left). However, in our decoupled setting, we replace the entity names with unique entity IDs (right).
Figure 2: Decoupling semantics from the ProofWriter task. In the original ProofWriter task, entities are represented by their names (left). However, in our decoupled setting, we replace the entity names with unique entity IDs (right).

이 논문 읽기

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

누빈트에서 이 논문 읽기

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