arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.12918cs.CL
收藏

ThinkPatterns-21k: 对LLMs中思维模式影响的系统研究

ThinkPatterns-21k: A Systematic Study on the Impact of Thinking Patterns in LLMs

Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);Zhejiang University(浙江大学)

Pengcheng Wen, Jiaming Ji, Chi-Min Chan, Juntao Dai, Donghai Hong, Yaodong Yang, Sirui Han, Yike Guo

AI总结:

ThinkPatterns-21k研究了LLMs中思维模式的影响,通过系统分析发现结构化思维对小模型有益,而大模型使用结构化思维会降低性能,独白思维在各类模型中均有效。

摘要:

大型语言模型(LLMs)通过"思考然后回应"范式展示了增强的性能,其中模型在最终回应前生成内部思考(即系统2思维)。然而,现有研究缺乏对思维模式如何影响模型性能机制的系统理解。在本工作中,我们对各种思维类型对模型性能的影响进行了全面分析,并引入了ThinkPatterns-21k数据集,该数据集包含21,000个指令-回应对(QA),收集自现有指令遵循数据集,包含五种思维类型。对于每对,我们添加了五种不同的内部思维模式:一种无结构的思考(独白)和四种结构化的变体(分解、自我提问、自我辩论和自我批评),同时保持相同的指令和回应。通过在不同模型规模(3B-32B参数)上进行广泛评估,我们有两个关键发现:(1)较小的模型(<30B参数)可以受益于大多数结构化思维模式,而较大的模型(32B)在使用分解等结构化思维时会退化性能;(2)无结构的独白在不同模型规模上表现出广泛的适用性。最后,我们发布了所有数据集、检查点和不同思维模式的训练日志,以促进可重复性,旨在促进该方向的进一步研究。

英文摘要:

Large language models (LLMs) have demonstrated enhanced performance through the \textit{Thinking then Responding} paradigm, where models generate internal thoughts before final responses (aka, System 2 thinking). However, existing research lacks a systematic understanding of the mechanisms underlying how thinking patterns affect performance across model sizes. In this work, we conduct a comprehensive analysis of the impact of various thinking types on model performance and introduce ThinkPatterns-21k, a curated dataset comprising 21k instruction-response pairs (QA) collected from existing instruction-following datasets with five thinking types. For each pair, we augment it with five distinct internal thinking patterns: one unstructured thinking (monologue) and four structured variants (decomposition, self-ask, self-debate and self-critic), while maintaining the same instruction and response. Through extensive evaluation across different model sizes (3B-32B parameters), we have two key findings: (1) smaller models (<30B parameters) can benefit from most of structured thinking patterns, while larger models (32B) with structured thinking like decomposition would degrade performance and (2) unstructured monologue demonstrates broad effectiveness across different model sizes. Finally, we released all of our datasets, checkpoints, training logs of diverse thinking patterns to reproducibility, aiming to facilitate further research in this direction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑