Application of Quantized Algorithms for Language Model Adaptation in the Task of Verifying the Solution Process of Quadratic Equations
Main Article Content
Abstract
This paper investigates quantized approaches to language model adaptation for the task of automatic step-by-step verification of the correctness of quadratic equation solutions. The study examines the effectiveness of Parameter-Efficient Fine-Tuning (PEFT) methods when adapting the DeepSeek-R1-Distill-Qwen-1.5B and InternLM2-Math-Plus-1.8B language models to build a mathematical verifier (Process-supervised Reward Model, PRM). Experiments were conducted on a synthetic dataset of quadratic equations augmented with negative sampling to simulate learner errors. A comparative evaluation of standard (LoRA, DoRA, rsLoRA) and quantized (QLoRA, QDoRA, LoftQ) fine-tuning algorithms was performed. Zero-shot transfer generalization was additionally assessed on a structurally distinct dataset of linear equations. Results show that quantization resolves numerical stability issues for non-standard architectures (InternLM2) while achieving quality comparable to standard methods. For the DeepSeek-R1 model, QLoRA, LoftQ, and QDoRA reached accuracies of 97.77%, 98%, and 98% respectively, only marginally below the standard LoRA (98.67%). Similarly, for the non-standard InternLM2 architecture, QLoRA achieved 92.67% accuracy (vs. 93% for baseline LoRA). However, full-precision algorithms (LoRA) tend to preserve richer representations of learned patterns, providing better knowledge transfer for Reasoning-class models (DeepSeek-R1 accuracy 66.8% vs. 61.4% for QLoRA on unseen data).
Article Details
References
2. Anh-Hoang D., Tran V., Nguyen L.-M. Survey and analysis of hallucinations in large language models: attribution to prompting strategies or model behavior // Frontiers in Artificial Intelligence. 2025. Vol. 8. Art. 1622292. https://doi.org/10.3389/frai.2025.1622292
3. Ji Z., Lee N., Frieske R. et al. Survey of hallucination in natural language generation // ACM Computing Surveys. 2023. Vol. 55, No. 12. Art. 248. P. 1–38. https://doi.org/10.1145/3571730
4. Zhang Zh., Zheng Ch., Wu Y. et al. The Lessons of Developing Process Reward Models in Mathematical Reasoning // Findings of the Association for Computational Linguistics: ACL 2025. Vienna, Austria, 2025. P. 10495–10516. https://doi.org/10.18653/v1/2025.findings-acl.547
5. Hu E.J. et al. LoRA: Low-Rank Adaptation of Large Language Models // International Conference on Learning Representations (ICLR). 2022.
6. Dettmers T., Pagnoni A., Holtzman A., Zettlemoyer L. QLoRA: Efficient Finetuning of Quantized LLMs // Advances in Neural Information Processing Systems. 2023. Vol. 36. P. 10088–10115. https://doi.org/10.52202/075280-0441
7. Li Y., Yu Y., Liang C. et al. LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models // International Conference on Learning Representations (ICLR). 2024.
8. Hayou S., Ghosh N., Yu B. LoRA+: Efficient Low Rank Adaptation of Large Models // Proceedings of the 41st International Conference on Machine Learning (ICML). 2024. P. 17921–17943.
9. Kabir S., Udo-Imeh D.N., Kou B., Zhang T. Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questions // Proceedings of the 2024 CHI Conference on Human Factors in Computing Systems (CHI ’24). Honolulu, HI, USA, 2024. Art. 935. P. 1–17. https://doi.org/10.1145/3613904.3642596
10. Del Rio-Chanona R.M., Laurentsyeva N., Wachs J. Large language models reduce public knowledge sharing on online Q&A platforms // PNAS Nexus. 2024. Vol.3, No. 9. Art. pgae400. https://doi.org/10.1093/pnasnexus/pgae400
11. Shumailov I., Shumaylov Z., Zhao Y. et al. AI models collapse when trained on recursively generated data // Nature. 2024. Vol. 631. P. 755–759. https://doi.org/10.1038/s41586-024-07566-y
12. Yu L. et al. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models // International Conference on Learning Representations (ICLR). 2024.
13. Sprague Z. et al. To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoning // Proceedings of the 13th International Conference on Learning Representations (ICLR). 2025.
14. Jin R., Du J., Huang W. et al. A Comprehensive Evaluation of Quantization Strategies for Large Language Models // Findings of the Association for Computational Linguistics: ACL 2024. Bangkok, Thailand, 2024. P. 12186–12215. https://aclanthology.org/2024.findings-acl.726/
15. Poymanov D.R., Shutov M.S. Issledovaniye kvantovaniya bolshikh yazykovykh modeley: otsenka effektivnosti s aktsentom na russkoyazychnyye zadachi [Study of Quantization of Large Language Models: Efficiency Evaluation with an Emphasis on Russian-Language Tasks] // Elektronnyye biblioteki [Russian Digital Libraries Journal]. 2025. Vol. 28, No. 5. P. 1138–1164.
16. Liu S., Wang C., Yin H. et al. DoRA: Weight-Decomposed Low-Rank Adaptation // Proceedings of the 41st International Conference on Machine Learning (ICML). 2024. P. 32100–32121.
17. Weng Y. et al. Large Language Models are Better Reasoners with Self-Verification // Findings of the Association for Computational Linguistics: EMNLP 2023. Singapore, 2023. P. 2550–2575. https://doi.org/10.18653/v1/2023.findings-emnlp.167
18. Huang J., Chen X., Mishra S. et al. Large Language Models Cannot Self-Correct Reasoning Yet // Proceedings of the 12th International Conference on Learning Representations (ICLR 2024). 2024.
19. Park C., Yang Y., Lee C., Lim H. Comparison of the Evaluation Metrics for Neural Grammatical Error Correction with Overcorrection // IEEE Access. 2020. Vol. 8. P. 106264–106272.
20. Hsieh C.Y., Li J., Yeh C.K. et al. Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes // Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL 2023). 2023. P. 8003–8017.
21. Treviso M., Lee J.-U., Ji T. et al. Efficient Methods for Natural Language Processing: A Survey // Transactions of the Association for Computational Linguistics. 2023. Vol. 11. P. 826–860.
22. Vershinin V.K., Khodnenko I.V., Ivanov S.V. Normalizatsiya teksta, raspoznannogo pri pomoshchi tekhnologii opticheskogo raspoznavaniya simvolov, s ispolzovaniyem legkovesnykh LLM [Normalization of Text Recognized by Optical Character Recognition Using Lightweight LLMs] // Russian Digital Libraries Journal. 2025. Vol. 28, No. 5. P. 1036–1056.
23. Nigmatullin A.R., Lukmanov R.A., Takha A. Kvantovaniye Vision Transformer: CPU-tsentrichnyy analiz kompromissa mezhdu razmerom modeli i skorostyu inferensa [Quantization of Vision Transformer: A CPU-Centric Analysis of the Trade-Off Between Model Size and Inference Speed] // Russian Digital Libraries Journal. 2026. Vol. 29, No. 1. P. 262–286.
24. Gupta A., Reddig J., Calò T., Weitekamp D., MacLellan C.J. Beyond Final Answers: Evaluating Large Language Models for Math Tutoring // Artificial Intelligence in Education: 26th International Conference, AIED 2025. Palermo, Italy, July 22–26, 2025. Lecture Notes in Computer Science. Cham: Springer, 2025. Vol. 15877. P. 323–337. https://doi.org/10.1007/978-3-031-98414-3_23

This work is licensed under a Creative Commons Attribution 4.0 International License.
Presenting an article for publication in the Russian Digital Libraries Journal (RDLJ), the authors automatically give consent to grant a limited license to use the materials of the Kazan (Volga) Federal University (KFU) (of course, only if the article is accepted for publication). This means that KFU has the right to publish an article in the next issue of the journal (on the website or in printed form), as well as to reprint this article in the archives of RDLJ CDs or to include in a particular information system or database, produced by KFU.
All copyrighted materials are placed in RDLJ with the consent of the authors. In the event that any of the authors have objected to its publication of materials on this site, the material can be removed, subject to notification to the Editor in writing.
Documents published in RDLJ are protected by copyright and all rights are reserved by the authors. Authors independently monitor compliance with their rights to reproduce or translate their papers published in the journal. If the material is published in RDLJ, reprinted with permission by another publisher or translated into another language, a reference to the original publication.
By submitting an article for publication in RDLJ, authors should take into account that the publication on the Internet, on the one hand, provide unique opportunities for access to their content, but on the other hand, are a new form of information exchange in the global information society where authors and publishers is not always provided with protection against unauthorized copying or other use of materials protected by copyright.
RDLJ is copyrighted. When using materials from the log must indicate the URL: index.phtml page = elbib / rus / journal?. Any change, addition or editing of the author's text are not allowed. Copying individual fragments of articles from the journal is allowed for distribute, remix, adapt, and build upon article, even commercially, as long as they credit that article for the original creation.
Request for the right to reproduce or use any of the materials published in RDLJ should be addressed to the Editor-in-Chief A.M. Elizarov at the following address: amelizarov@gmail.com.
The publishers of RDLJ is not responsible for the view, set out in the published opinion articles.
We suggest the authors of articles downloaded from this page, sign it and send it to the journal publisher's address by e-mail scan copyright agreements on the transfer of non-exclusive rights to use the work.