Skip to main content
QUICK REVIEW

[Paper Review] Qwen2.5-32B: Leveraging Self-Consistent Tool-Integrated Reasoning for Bengali Mathematical Olympiad Problem Solving

S. M. Ahanaf Tahmid, Sourav Sarker|arXiv (Cornell University)|Nov 8, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science3 citations
TL;DR

This paper presents Qwen2.5-32B, a fine-tuned language model enhanced with self-consistent tool-integrated reasoning (TIR) and prompt engineering to solve Bengali mathematical Olympiad problems. By translating Bengali questions into English, leveraging Python-based tool use, and optimizing hyperparameters, the model achieves high accuracy despite limited Bengali training data, demonstrating the viability of large multilingual models for low-resource mathematical reasoning tasks.

ABSTRACT

We present an innovative approach for solving mathematical problems in Bengali, developed for the DL Sprint 3.0 BUET CSE Fest 2024 Competition. Our method uses advanced deep learning models, notably the Qwen 2.5 series, with improvements made through prompt engineering, model quantization, and Tool Integrated Reasoning (TIR) to handle complex calculations. Initially, we explored various model architectures, including fine-tuned Mistral and quantized Qwen models, refining them with translation techniques, Retrieval-Augmented Generation (RAG), and custom dataset curation. Manual hyperparameter tuning optimized parameters like temperature and top-p to enhance model adaptability and accuracy. Removal of RAG and parameter adjustments further improved robustness. Our approach highlights the potential of advanced NLP techniques in solving Bengali mathematical problems.

Motivation & Objective

  • To develop an AI model capable of solving complex mathematical problems in Bengali, a low-resource language, for the DL Sprint 3.0 competition.
  • To address the challenge of mathematical reasoning in Bengali by combining translation, tool-integrated reasoning, and prompt engineering.
  • To evaluate the effectiveness of self-consistent reasoning and TIR in improving solution accuracy for non-English mathematical problems.
  • To optimize model inference and performance under resource constraints, particularly on Kaggle's GPU-limited environment.
  • To identify and mitigate performance bottlenecks such as RAG noise, prompt sensitivity, and data scarcity in Bengali mathematical NLP.

Proposed method

  • The model uses the Qwen2.5-32B-Instruct as the base, leveraging its strong performance on MATH and GSM8K benchmarks.
  • Bengali mathematical problems are first translated into English using the Qwen2.5-32B model to improve model understanding and access to pre-trained knowledge.
  • Tool Integrated Reasoning (TIR) is applied by prompting the model to generate and execute Python code for complex calculations.
  • Self-consistent reasoning is implemented by generating multiple reasoning paths and selecting the most consistent solution across trials.
  • Hyperparameters such as temperature and top-p are manually tuned to improve response accuracy and stability.
  • Model quantization and VLLM inference optimization are used to reduce memory usage and accelerate inference on resource-constrained platforms.

Experimental results

Research questions

  • RQ1How effective is self-consistent tool-integrated reasoning (TIR) in solving Bengali mathematical problems compared to standard chain-of-thought prompting?
  • RQ2To what extent does translating Bengali math problems into English improve model performance on low-resource language tasks?
  • RQ3Does the use of Retrieval-Augmented Generation (RAG) enhance or degrade performance in Bengali mathematical reasoning?
  • RQ4How do model size and quantization impact performance and feasibility in resource-constrained environments like Kaggle?
  • RQ5How sensitive is the model’s output to prompt phrasing, and what role does precise prompt engineering play in solution accuracy?

Key findings

  • Translating Bengali math problems into English significantly improved model performance, indicating that the model's English pre-training knowledge is more effective than its Bengali capabilities.
  • The Qwen2.5-32B model outperformed smaller variants like the 14B model in translation quality and downstream problem-solving accuracy.
  • RAG was found to degrade performance due to noisy retrieval, leading to its removal from the final pipeline.
  • Self-consistent TIR improved solution reliability by enabling the model to validate and select the most consistent reasoning path.
  • Model quantization enabled the use of the 32B model on Kaggle’s GPU-limited environment without excessive performance loss.
  • The model exhibited high sensitivity to prompt wording, with minor phrasing changes significantly affecting output quality, underscoring the importance of precise prompt design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.