Developing a Fine-Tuned Solution for Solving Numerical Linear Algebra Problems Using Large Language Models

View at publisher Summarise with VIRAT
Authors: Dilaksan Thirugnanaselvam, Yasotha. R, S. Thilaganathan
Cited by: 0
References: 7

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

This study explores the potential of Large Language Models (LLMs) in solving domain-specific problems in Numerical Linear Algebra (NLA). A dataset of 100 curated NLA questions was used to evaluate four leading pretrained models: DeepSeek-R1-0528, Gemini-2.5-Pro, Grok-3-Mini, and$\mathbf{O 4}-\mathbf{m i n i}$. The evaluation was examined through two metrics: semantic similarity to expert-annotated solutions and rank-based accuracy. Based on its performance, the model DeepSeek-R1-0528 was chosen for fine-tuning using 1,000 NLA question-answer pairs. The results were compiled into a new domain-specific model named MyModel/NLA. The fine-tuned model demonstrated improved alignment with reference solutions in both evaluation metrics, achieving a mean cosine similarity of 0.6738 and a validation perplexity of 1.38. Statistical tests indicated significant gains over weaker baselines, while visual analyses showed tighter and more consistent outputs. These improvements primarily reflect enhanced semantic and structural alignment, rather than guaranteed numerical correctness, and the evaluation is limited by the use of semantic similarity metrics and a relatively small test set. Additionally, the model was deployed in an interactive web-based application that provides step-by-step solutions to NLA problems. Overall, this work shows that parameter-efficient fine-tuning techniques such as Low-Rank Adaptation (LoRA), combined with lightweight frameworks like Unsloth, can improve structured solution generation in LLMs, supporting their use in educational and assistive mathematical applications.

Fields of Study & Subjects

Topic Modeling Artificial Intelligence in Education Mathematical and Computational Methods

Publication details

Journal / source
International Conference on Advanced Research in Computing (ICARC)
Pages
1–6
Publication date
18 February 2026
Language
EN