Research on Enhancing the Effectiveness of Large Language Models in Solving High School Mathematics Problems

本文探讨了如何通过构建基于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.

Authors

Publication Details

Journal
Computer Science and Application
Published
2025-01-01
DOI
https://doi.org/10.12677/csa.2025.154078
Primary Topic
Education Practices and Evaluation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on Enhancing the Effectiveness of Large Language Models in Solving High School Mathematics Problems

建伟 曹
Computer Science and Application
Education Practices and Evaluation
article

Research on Enhancing the Effectiveness of Large Language Models in Solving High School Mathematics Problems

建伟 曹
article en

Abstract

本文探讨了如何通过构建基于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.

Computer Science and ApplicationVol. 15(04)
Quality Education
Openalex Percentile: Top 93%
Education Practices and Evaluation
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.