[논문 리뷰] The Impact of Reasoning Step Length on Large Language Models
이 논문은 체인 오브 토의(CoT) 프롬프팅에서 추론 단계 길이가 대규모 언어 모델(LLM) 성능에 미치는 영향을 조사한다. 모든 다른 요소를 동일하게 유지하면서 추론 단계를 체계적으로 늘리거나 압축함으로써, 저자들은 더 긴 추론 체인이 심지어 잘못된 정보를 포함하더라도 추론 정확도를 크게 향상시킨다는 것을 입증한다. 이는 사실적 정확성보다 단계 수가 더 중요한 요소임을 시사한다. 연구 결과는 다양한 LLM에서 복잡한 추론 작업을 최적화할 때 실용적이고 확장 가능한 지침을 제공한다.
Chain of Thought (CoT) is significant in improving the reasoning abilities of large language models (LLMs). However, the correlation between the effectiveness of CoT and the length of reasoning steps in prompts remains largely unknown. To shed light on this, we have conducted several empirical experiments to explore the relations. Specifically, we design experiments that expand and compress the rationale reasoning steps within CoT demonstrations while keeping all other factors constant. We have the following key findings. First, the results indicate that lengthening the reasoning steps in prompts, even without adding new information into the prompt, considerably enhances LLMs' reasoning abilities across multiple datasets. Alternatively, shortening the reasoning steps, even while preserving the key information, significantly diminishes the reasoning abilities of models. This finding highlights the importance of the number of steps in CoT prompts and provides practical guidance to make better use of LLMs' potential in complex problem-solving scenarios. Second, we also investigated the relationship between the performance of CoT and the rationales used in demonstrations. Surprisingly, the result shows that even incorrect rationales can yield favorable outcomes if they maintain the requisite length of inference. Third, we observed that the advantages of increasing reasoning steps are task-dependent: simpler tasks require fewer steps, whereas complex tasks gain significantly from longer inference sequences. The code is available at https://github.com/MingyuJ666/The-Impact-of-Reasoning-Step-Length-on-Large-Language-Models
연구 동기 및 목표
- 대규모 언어 모델에서 체인 오브 토 프롬프팅의 효과성에 있어 추론 단계 길이의 영향을 조사하는 것.
- 사실적 정확성과 무관하게 추론 단계 수를 늘리거나 줄일 경우 모델 정확도에 어떤 영향을 미치는지 확인하는 것.
- 더 긴 추론 체인이 다양한 작업과 모델 크기 간에 일관되게 유익한지 평가하는 것.
- 질문 내용이 아니라 추론 단계의 구조가 성능 향상에 기여하는지 평가하는 것.
제안 방법
- 모든 다른 프롬프트 요소를 유지하면서 CoT 예시의 추론 단계를 늘리거나 압축하여 통제된 실험을 수행했다.
- 더 긴 추론 시퀀스를 유도하기 위해 '더 많은 단계를 생각해야 합니다'를 제로샷 프롬프트에 추가했다.
- GSM8K, MultiArith 등 여러 데이터셋과 GPT-3.5, GPT-4, text-davinci-002 등의 LLM에서 Auto-CoT 및 Few-Shot-CoT 설정을 사용했다.
- 예시의 추론 단계를 압축하여 성능 저하를 테스트하고, 베이스라인 및 전체 길이 버전과 비교했다.
- 추론 체인에 오류 정보를 삽입하여 길이만으로도 성능 향상이 유지되는지 테스트했다.
- 모델 크기 간 성능을 분석하여 스케일링 행동과 단계 길이 조작에 대한 내성 정도를 평가했다.

실험 결과
연구 질문
- RQ1CoT 프롬프트의 추론 단계 수를 늘리면, 새로운 정보를 추가하지 않더라도 LLM의 추론 정확도가 향상되는가?
- RQ2핵심 정보는 유지되지만 추론 단계가 압축된 경우 모델 성능은 어떻게 되는가?
- RQ3잘못된 추론이지만 길이가 충분한 경우에도 성능 향상이 이루어지는가?
- RQ4더 긴 추론 단계의 이점은 다양한 작업과 모델 아키텍처 간에 어떻게 달라지는가?
- RQ5질문의 내용이 CoT 성능에 미치는 영향은 단계 수에 비해 어느 정도인가?
주요 결과
- CoT 프롬프트에서 추론 단계를 연장하면, 새로운 정보를 추가하지 않더라도 여러 데이터셋에서 LLM의 추론 정확도가 크게 향상된다.
- 핵심 정보는 유지되지만 추론 단계를 단축시키면 모델 성능이 심각하게 저하되어 제로샷 베이스라인 수준으로 회귀한다.
- 충분한 추론 길이를 유지하는 한 잘못된 추론조차도 유리한 결과를 낼 수 있으며, 이는 사실적 정확성보다 논리적 연속성이 더 중요하다는 것을 시사한다.
- 더 긴 추론 체인의 성능 향상 효과는 작업에 따라 다름: 복잡한 작업일수록 더 큰 이점이 있다.
- 추론 단계를 연장하는 전략은 제로샷 CoT 성능을 향상시키며, 더 많은 단계를 요구하도록 프롬프트를 수정했을 때 정확도 향상이 명확하게 관측된다.
- GPT-4와 같은 큰 모델은 단계 길이 조작에 더 높은 내성을 보이며, text-davinci-002와 같은 작은 모델은 단계 연장으로 인한 성능 향상에서 가장 큰 이점을 얻는다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.