Dual Instruction Tuning with Large Language Models for Mathematical Reasoning
Yongwei Zhou, Tiejun Zhao
TL;DR
This work tackles persistent errors in chain-of-thought reasoning by introducing a dual instruction tuning framework that trains LLMs on forward (IRSP) and reverse (IR) reasoning tasks. By constructing targeted IRSP and IR data from MathInstruct and performing multi-task fine-tuning, the approach enhances instruction understanding and execution across diverse mathematical domains. Empirical results show meaningful improvements in in-domain and out-of-domain tasks, with notable gains on several benchmarks and improved domain generalization, though gaps remain versus the largest closed-source models. The method offers a practical path to more reliable mathematical reasoning in LLMs, especially when full-scale pretraining on broad mathematical knowledge is not feasible.
Abstract
Recent advancements highlight the success of instruction tuning with large language models (LLMs) utilizing Chain-of-Thought (CoT) data for mathematical reasoning tasks. Despite the fine-tuned LLMs, challenges persist, such as incorrect, missing, and redundant steps in CoT generation leading to inaccuracies in answer predictions. To alleviate this problem, we propose a dual instruction tuning strategy to meticulously model mathematical reasoning from both forward and reverse directions. This involves introducing the Intermediate Reasoning State Prediction task (forward reasoning) and the Instruction Reconstruction task (reverse reasoning) to enhance the LLMs' understanding and execution of instructions. Training instances for these tasks are constructed based on existing mathematical instruction tuning datasets. Subsequently, LLMs undergo multi-task fine-tuning using both existing mathematical instructions and the newly created data. Comprehensive experiments validate the effectiveness and domain generalization of the dual instruction tuning strategy across various mathematical reasoning tasks.
