MeTHanol:模块化思维语言模型与中间层思维、解码与推理bootstrap
MeTHanol: Modularized Thinking Language Models with Intermediate Layer Thinking, Decoding and Bootstrapping Reasoning
AI总结:
本文提出MeTHanol模块化思维语言模型,通过中间层思维解码与双阶段推理提升LLM的认知能力,实验表明其在理论思维和 vignette 任务中表现出色,能规划、反思并生成类人回答。
摘要:
当前研究主要通过提示、数据驱动和推理时计算增强大语言模型(LLM)的思维和推理能力。本文从模块化角度激发语言模型的思维和认知能力,模仿人类大脑结构。我们选择特定的中间注意力层并新增语言头。通过标注(查询,思考,回答)样本进行双层微调,证明中间层也能学习解码流畅合理的语言标记。设计了双阶段推理机制,先生成思维再生成正式回答。整个框架称为模块化思维语言模型(MeTHanol),通过理论思维(ToM)和 vignette 任务实验表明能增强LLM的认知行为。案例研究表明MeTHanol能规划、自我反思并生成类人思维和回答,即使在未见和开放领域任务中也能表现优异。MeTHanol还能适应个性化提示并扮演指定角色。本研究从模块化角度有望实现显著的认知提升。代码、模型和数据可在https://bachozean.github.io/methanol-page获取。
英文摘要:
Current research efforts are focused on enhancing the thinking and reasoning capability of large language model (LLM) by prompting, data-driven emergence and inference-time computation. In this study, we consider stimulating language model's thinking and cognitive abilities from a modular perspective, which mimics the human brain architecture. We select a specific intermediate attention layer with newly implemented language heads. We conduct dual-layer fine-tuning by annotated (query, thought, answer) samples and show that the intermediate layer can also learn to decode fluent and reasonable language tokens. A two-pass inference mechanism is designed to generate thoughts then formal responses. The entire framework is called modularized thinking language model (MeTHanol) which can enhance LLM's cognitive behaviors as indicated by Theory of Mind (ToM) and Vignette-based experiments. Case studies also show that MeTHanol can plan and self-reflect and generate human-like thoughts and answers, even on unseen and open-domain tasks. MeTHanol can also adapt to a personalized prompt and behave as the specified character. Our study holds promise for significant cognitive gains from a modular perspective. Our code, model and data are available at https://bachozean.github.io/methanol-page
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。