%0 Journal Article
%T 大语言模型在高中数学解题中的效能提升研究
Research on Enhancing the Effectiveness of Large Language Models in Solving High School Mathematics Problems
%A 曹建伟
%J Computer Science and Application
%P 64-69
%@ 2161-881X
%D 2025
%I Hans Publishing
%R 10.12677/csa.2025.154078
%X 本文探讨了如何通过构建基于LangChain的知识库和利用LMDeploy推理加速技术,提升大语言模型在解答高中数学题目中的正确性和响应速度。通过OCR技术将解析卷转化为LaTeX格式,结合BGE-M3模型进行文本向量化并存储于Faiss数据库,模型在解答时通过动态检索知识库内容来增强准确性;同时,通过LMDeploy量化加速推理技术,显著提升了模型的推理效率。实验结果表明,多个大模型在构建知识库前后的得分有显著差异,总体回答正确率提升了71.84%;在回答速度上,自部署模型总体第一题回答速度提高了121.10%,后续题目回答速度提高了259.94%。这些改进显著提升了大语言模型在解答高考数学题时的正确率和速度。
This paper explores how to enhance the accuracy and response speed of large language models in solving high school mathematics problems by constructing a knowledge base based on LangChain and utilizing the LMDeploy inference acceleration technology. OCR technology is used to convert scanned papers into LaTeX format, and the BGE-M3 model is employed for text vectorization, which is then stored in a Faiss database. The model dynamically retrieves knowledge from the database to improve accuracy during problem-solving. Meanwhile, LMDeploy’s quantization and inference acceleration technology significantly boosts the model’s inference efficiency. Experimental results show that there is a significant difference in the scores of various large models before and after constructing the knowledge base, with an overall improvement of 71.84% in answer accuracy. Regarding response speed, the model’s answer speed for the first question improved by 121.10%, and the speed for subsequent questions improved by 259.94%. These improvements substantially enhanced the correctness and speed of large language models in solving high school math problems during the college entrance examination.
%K 大语言模型,
%K LangChain知识库,
%K 推理加速,
%K LMDeploy
Large Language Models
%K LangChain Knowledge Base
%K Inference Acceleration
%K LMDeploy
%U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=111088