Large language model (LLM) performance on reasoning problems typically does not generalize out of distribution. Previous work has claimed that this can be mitigated with chain of thought prompting-a method of demonstrating solution procedures-with the intuition that it is possible to in-context teach an LLM an algorithm for solving the problem. This paper presents a case study of chain of thought on problems from Blocksworld, a classical planning domain, and examines the performance of two state-of-the-art LLMs across two axes: generality of examples given in prompt, and complexity of problems queried with each prompt. While our problems are very simple, we only find meaningful performance improvements from chain of thought prompts when those prompts are exceedingly specific to their problem class, and that those improvements quickly deteriorate as the size n of the query-specified stack grows past the size of stacks shown in the examples. We also create scalable variants of three domains commonly studied in previous CoT papers and demonstrate the existence of similar failure modes. Our results hint that, contrary to previous claims in the literature, CoT's performance improvements do not stem from the model learning general algorithmic procedures via demonstrations but depend on carefully engineering highly problem specific prompts. This spotlights drawbacks of chain of thought, especially the sharp tradeoff between possible performance gains and the amount of human labor necessary to generate examples with correct reasoning traces.
한 줄 요약
Chain of Thought(CoT) 프롬프팅이 LLM의 일반화 능력 향상에 기여하지 못함을 Blocksworld 계획 문제를 통해 입증.
핵심 기여도
- Blocksworld 문제에서 CoT 프롬프팅이 성능 향상에 기여하려면 예시가 매우 구체적이어야 함.
- 스택 크기(n)가 예시보다 커지면 성능 급격히 저하됨 (n ≥ 4).
- CoT의 성능 향상은 일반적인 알고리즘 학습이 아닌, 문제 특정 예시에 의존함.
- Self-consistency와 같은 CoT 확장 기법도 유사하거나 더 나쁜 성능 보임.
핵심 아이디어
기존 연구는 CoT 프롬프팅이 LLM이 일반적인 알고리즘을 학습하게 해 성능을 향상시킨다고 주장했으나, 본 연구는 CoT가 일반화된 학습이 아니라 문제 특정 예시에 의존한다는 점을 입증한다. Blocksworld 문제에서 CoT 프롬프팅은 예시가 문제에 매우 구체적일 때만 효과적이며, 예시와 유사하지 않은 문제에서는 성능이 급격히 떨어진다. 이는 CoT가 단순 패턴 매칭에 기반하고 있음을 시사한다. 연구는 또한 CoT의 성능 향상이 인간의 노동 집약적 예시 생성에 의존하며, 이는 실용성에 큰 제약을 끼친다.
기술적 접근법
- **도메인**: Blocksworld (PDDL 기반)
- **모델**: GPT-4, Claude-3-Opus, GPT-4-Turbo
- **프롬프트 유형**:
- Zero-shot
- 일반적 진행 증명
- Blocksworld에 특화된 서브최적 알고리즘
- Table-to-stack 문제에 특화된 알고리즘
- 사전순 정렬 버전
- **문제 크기**: n = 2, 3, 4~20
- **성능 평가**: 예시와 유사도, 문제 복잡도, 스택 크기(n)에 따른 정확도 변화 분석
- **추가 실험**: CoT 실패 모드를 재현하기 위해 3개 도메인의 확장 버전 사용
주요 결과
- Blocksworld 문제에서 CoT 프롬프팅은 예시가 매우 구체적일 때만 유의미한 성능 향상 (n=2, 3).
- n ≥ 4부터 예시와 유사도가 낮아지며 정확도 급격히 감소 (예시 n=3일 때 n=4 문제 정확도 73.2% → 22.1%).
- 일반적 CoT 프롬프트는 최소 크기 문제에서도 기존 프롬프팅보다 성능 저하 (예: n=3에서 58.7% → 41.3%).
- Self-consistency 기법도 유사하거나 더 낮은 성능 보임.
의의 및 한계
본 연구는 CoT가 일반적인 알고리즘 학습이 아닌, 문제 특정 예시에 의존한다는 점을 밝혀 기존 주장과 대비된다. 이는 CoT가 단순 패턴 매칭에 기반하고 있음을 시사하며, LLM의 진정한 추론 능력에 대한 의문을 제기한다. 그러나 실험은 Blocksworld와 같은 단순 도메인에만 적용되었으며, 복잡한 도메인에서의 일반화 가능성은 여전히 명시되지 않음. 또한, CoT의 성능 향상은 인간의 노동 집약적 예시 생성에 의존하므로, 실용적 활용에는 한계가 있음.
실용적 활용
CoT는 특정 문제에 대한 예시가 충분히 구체적일 때만 효과적이므로, 문제 도메인이 좁고 예시 생성이 가능한 상황에서 활용 가능. 예를 들어, 제조 공정 최적화나 간단한 로직 기반 시스템 설계 등에서 유용할 수 있으나, 복잡한 문제나 일반화가 필요한 상황에서는 제한적일 수 있음.