AN INTEGRATED CODE-ASSISTED MCTS FRAMEWORK FOR RESOURCE-EFFICIENT SLM MATHEMATICAL REASONING
DOI:
https://doi.org/10.35631/JISTM.1145010Keywords:
Cost-Effective Training, LoRA, Mathematical Reasoning, MCTS, SLMsAbstract
The surging demand for deploying Small Language Models (SLMs) in specialized reasoning pipelines highlights the necessity to maximize their mathematical reasoning capacity. However, existing optimization paradigms exhibit critical trade-offs: full-parameter fine-tuning is computationally prohibitive under low-resource regimes, whereas conventional parameter-efficient methods suffer from linearity constraints that restrict accuracy in complex reasoning. To address these bottlenecks, we present a framework that combines data distillation, parameter-efficient training, and structured search to improve mathematical reasoning in SLMs at low computational cost. We used Low-Rank Adaptation (LoRA) with a higher rank parameter ( ) than usual on various math datasets to boost learning efficiency and keep computational cost low. At inference time, we apply Monte Carlo Tree Search (MCTS) with structured, resource-lean decoding heuristics, which keeps computational cost low. Implemented on the Qwen2.5-Math-7B-Instruct model, our framework improved performance on the AIME 2025 benchmark from 16.67% to 26.67%. This leap in performance was attained at a fraction of the expense required by traditional fine-tuning. With resource-lean training, SLMs reach reasoning capabilities close to those of larger models on certain benchmarks, though their performance may still lag on more complex tasks.
Downloads
References
Balunovic, M., Dekoninck, J., Petrov, I., Jovanovi´c, N., & Vechev, M. (2026). Matharena: Evaluating llms on uncontaminated math competitions. Advances in Neural Information Processing Systems, 38.
Blakeman, A., Grattafiori, A., Basant, A., Gupta, A., Khattar, A., Renduchintala, A., Vavre, A., Shukla, A., Bercovich, A., Ficek, A., et al. (2025). Nemotron 3 nano: Open, efficient mixture-of-experts hybrid mamba-transformer model for agentic reasoning. arXiv preprint arXiv:2512.20848.
Chen, T., Xu, B., Zhang, C., & Guestrin, C. (2016). Training deep nets with sublinear memory cost.arXiv preprint arXiv:1604.06174.
Coulom, R. (2006). Efficient selectivity and backup operators in monte-carlo tree search. International conference on computers and games, 72–83
Gao, L., Madaan, A., Zhou, S., Alon, U., Liu, P., Yang, Y., Callan, J., & Neubig, G. (2023). Pal: Program-aided language models. International conference on machine learning, 10764–10799.
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., et al. (2024). The llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., & Steinhardt, J. (2021). Measuring mathematical problem solving with the math dataset. In J. Vanschoren & S. Yeung (Eds.), Proceedings of the neural information processing systems track on datasets and benchmarks (Vol. 1). https://datasets- benchmarks- proceedings.neurips.cc/paper files/ paper/2021/file/be83ab3ecd0db773eb2dc1b0a17836a1-Paper-round2.pdf
Hinton, G., Vinyals, O., & Dean, J. (2015). Distilling the knowledge in a neural network. NIPS Deep Learning and Representation Learning Workshop. http://arxiv.org/abs/1503.02531
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. (2022). Lora: Low-rank adaptation of large language models. Iclr, 1(2), 3.
Hurst, A., Lerer, A., Goucher, A. P., Perelman, A., Ramesh, A., Clark, A., Ostrow, A., Welihinda, A., Hayes, A., Radford, A., et al. (2024). Gpt-4o system card. arXiv preprint arXiv:2410.21276.
Kocsis, L., & Szepesva´ri, C. (2006). Bandit based monte-carlo planning. European conference on machine learning, 282–293.
Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., & Iwasawa, Y. (2022). Large language models are zero-shot reasoners. Advances in neural information processing systems, 35, 22199–22213
Lightman, H., Kosaraju, V., Burda, Y., Edwards, H., Baker, B., Lee, T., Leike, J., Schulman, J., Sutskever, I., & Cobbe, K. (2023). Let’s verify step by step. The twelfth international con-ference on learning representations.
OpenAI. (2025). Introducing GPT-4.1 in the api [Accessed: 2026-03-09]. OpenAI. https:// openai. com/index/gpt-4-1/
Open-R1. (2025). Openr1-math-220k [Accessed: 2026-04-22]. https://huggingface.co/datasets/open-r1/OpenR1-Math-220k
Wang, X., Wei, J., Schuurmans, D., Le, Q. V., Chi, E. H., Narang, S., Chowdhery, A., & Zhou,
D. (2023). Self-consistency improves chain of thought reasoning in language models. The
Eleventh International Conference on Learning Representations. https : / / openreview. net/
forum?id=1PL1NIMMrw
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi, E., Le, Q. V., Zhou, D., et al. (2022). Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35, 24824–24837.
Xiao, B., Xia, B., Yang, B., Gao, B., Shen, B., Zhang, C., He, C., Lou, C., Luo, F., Wang, G., et al. (2026). Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780.
Xu, H., Li, Z., Wang, R., & Xu, J. (2025). Structure trumps size: Rethinking data quality for llm reasoning. Findings of the Association for Computational Linguistics: EMNLP 2025, 11489–11513.
Yang, A., Zhang, B., Hui, B., Gao, B., Yu, B., Li, C., Liu, D., Tu, J., Zhou, J., Lin, J., et al. (2024). Qwen2.5-math technical report: Toward mathematical expert model via self-improvement. arXiv preprint arXiv:2409.12122.
Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T., Cao, Y., & Narasimhan, K. (2023). Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information pro-cessing systems, 36, 11809–11822.
Zhang, B.-W., Yan, Y., Li, L., & Liu, G. (2024). Infinitymath: A scalable instruction tuning dataset in programmatic mathematical reasoning. Proceedings of the 33rd ACM International Confer-ence on Information and Knowledge Management, 5405–5409.
Zhang, K., Chen, H., Li, L., & Wang, W. Y. (2023). Tooldec: Syntax error-free and generalizable tool use for llms via finite-state decoding.
Zhang, C., Li, Q., Song, D., Ye, Z., Gao, Y., & Hu, Y. (2025). Towards the law of capacity gap in distilling language models. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 22504–22528.
Zhang, X., Huang, Z., Ni, C., Xiong, Z., Chen, J., & Oymak, S. (2025). Making small language models efficient reasoners: Intervention, supervision, reinforcement. arXiv preprint arXiv:2505.07961.
Zhang, Y., & Math-AI Team. (2024). American invitational mathematics examination (AIME) 2024 [Accessed: 2026-03-20]. https://huggingface.co/datasets/math-ai/aime24
Zhang, Y., & Math-AI Team. (2025). American invitational mathematics examination (AIME) 2025 [Accessed: 2026-03-20]. https://huggingface.co/datasets/math-ai/aime25
Zhang, Y., Dong, Z., Cesari, T., & Mao, Y. (2026). On the cost and benefit of chain of thought: A learning-theoretic perspective. arXiv preprint arXiv:2605.21260
