吉林大学学报(信息科学版) ›› 2026, Vol. 44 ›› Issue (4): 863-871.

• • 上一篇    下一篇

基于思维链的问答系统增强推理方法

曹茂俊, 王亚飞, 肖 红, 彭 超, 杨家晨   

  1. 东北石油大学 计算机与信息技术学院, 黑龙江 大庆 163318
  • 收稿日期:2025-07-21 出版日期:2026-08-06 发布日期:2026-08-06
  • 通讯作者: 王亚飞(1999— ), 男, 河南安阳人, 东北石油大学硕士研究生, 主要从事深度学习、 人工智能研究, (Tel)86-18639313868(E-mail)wyf339966@ 163. com。 E-mail:wyf339966@ 163. com
  • 作者简介:曹茂俊(1978— ), 男, 黑龙江大庆人, 东北石油大学副教授, 主要从事深度学习、 智能计算在测井曲线识别中应用研究,(Tel)86-13796988520(E-mail)caomaojun@ 126. com
  • 基金资助:
    国家自然科学基金资助项目(42172161; 52474035); 黑龙江省自然科学基金联合基金重点资助项目(ZL2024D003); 中石油创新基金资助项目(2024DQ02-0114)

Chain-of-Thought Based Enhancement Method for Inference in Question-Answering Systems

CAO Maojun, WANG Yafei, XIAO Hong, PENG Chao, YANG Jiachen   

  1. School of Computer and Information Technology, Northeast Petroleum University, Daqing 163318, China
  • Received:2025-07-21 Online:2026-08-06 Published:2026-08-06

摘要:

针对生产测井数据多源异构、解释多解性强和传统方法依赖专家经验且效率较低等问题, 提出了一种基于思维链( CoT: Chain of Thought)的问答系统增强推理方法。该方法在大语言模型元 AI( LLaMA2:Large Language Model Meta AI2)基础上, 引入参数高效微调低秩适配( LoRA: Low-Rank Adaptation) 技术,通过在自注意力和前馈网络层插入低秩矩阵, 实现了模型性能保持与计算资源优化的平衡。同时, 构建了发散思维链( DCoT: Divergent Chain of Thought) 推理框架, 使模型能生成多条推理路径, 提升系统对复杂生产测井问题的多步解释能力。 实验表明, 该方法在 F1 、精确率和召回率上分别提升4. 6% 、7. 0%和 2. 1% , 验证了其推理性能的优越性。研究证明, LoRA+DCoT 方法在提升测井数据智能解释方面具有良好的实用性和可扩展性。

关键词:

Abstract:

To address the issues of multi-source heterogeneity in production logging data, strong multi-solution interpretability, the inefficiency and expert-dependency of traditional methods, a question-answering system enhanced reasoning method based on CoT(Chain of Thought) is proposed. This method is built on the LLaMA2 large language model and the parameter-efficient fine-tuning LoRA ( Low-Rank Adaptation ) technique is introduced, which inserts low-rank matrices into the self-attention and feed-forward network layers to achieve a balance between model performance maintenance and computational resource optimization. A DCoT(Divergent Chain of Thought)reasoning framework is constructed, enabling the model to generate multiple reasoning paths and enhancing the system’s multi-step interpretation ability for complex production logging problems. Experimental results show that this method improves F1 score, precision, and recall by 4. 6% , 7. 0% , and 2. 1% , respectively, compared to the baseline model, demonstrating strong reasoning performance and application potential. The research proves that the LoRA+DCoT method has good practicality and scalability in improving the intelligent interpretation effect of logging data.

Key words:

中图分类号: 

  • TP391