TensorX
返回文献探索

Paper · arXiv 2402.10200

Chain-of-Thought Reasoning Without Prompting

Xuezhi Wang, Denny Zhou

111 upvotesFebruary 15, 2024arXiv 预印本
AI 摘要

LLMs can perform chain-of-thought reasoning through top-k decoding without manual prompt engineering, outperforming greedy decoding and showing higher confidence in answers.

large language models (LLMs)chain-of-thought (CoT) promptingfew-shotzero-shotmanual prompt engineeringdecoding processtop-kalternative tokensintrinsic reasoning abilitiesconfidence metricreasoning benchmarksgreedy decoding

Abstract

In enhancing the reasoning capabilities of large language models (LLMs), prior research primarily focuses on specific prompting techniques such as few-shot or zero-shot chain-of-thought (CoT) prompting. These methods, while effective, often involve manually intensive prompt engineering. Our study takes a novel approach by asking: Can LLMs reason effectively without prompting? Our findings reveal that, intriguingly, CoT reasoning paths can be elicited from pre-trained LLMs by simply altering the decoding process. Rather than conventional greedy decoding, we investigate the top-k alternative tokens, uncovering that CoT paths are frequently inherent in these sequences. This approach not only bypasses the confounders of prompting but also allows us to assess the LLMs' intrinsic reasoning abilities. Moreover, we observe that the presence of a CoT in the decoding path correlates with a higher confidence in the model's decoded answer. This confidence metric effectively differentiates between CoT and non-CoT paths. Extensive empirical studies on various reasoning benchmarks show that the proposed CoT-decoding substantially outperforms the standard greedy decoding.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号