Semantic Scholar Open Access 2024 26 sitasi

Masked Thought: Simply Masking Partial Reasoning Steps Can Improve Mathematical Reasoning Learning of Language Models

Changyu Chen Xiting Wang Ting-En Lin Ang Lv Yuchuan Wu +4 lainnya

Abstrak

In reasoning tasks, even a minor error can cascade into inaccurate results, leading to suboptimal performance of large language models in such domains. Earlier fine-tuning approaches sought to mitigate this by leveraging more precise supervisory signals from human labeling, larger models, or self-sampling, although at a high cost. Conversely, we develop a method that avoids external resources, relying instead on introducing perturbations to the input. Our training approach randomly masks certain tokens within the chain of thought, a technique we found to be particularly effective for reasoning tasks. When applied to fine-tuning with GSM8K on Llama-2-7B, this method achieved a 5\% improvement in GSM8K accuracy and a 10\% improvement in GSM-IC accuracy over standard supervised fine-tuning with a few codes modified. Furthermore, it is complementary to existing methods. When integrated with related explicit data augmentation methods, it leads to improvements across five datasets of various augmentation methods, as well as two different base models. We further investigate the mechanisms behind this improvement through case studies and quantitative analysis, suggesting that our approach may provide superior support for the model in capturing long-distance dependencies, especially those related to questions. This enhancement could deepen understanding of the premises in questions and prior steps. Our code is available at Github.

Topik & Kata Kunci

Penulis (9)

C

Changyu Chen

X

Xiting Wang

T

Ting-En Lin

A

Ang Lv

Y

Yuchuan Wu

X

Xin Gao

J

Ji-Rong Wen

R

Rui Yan

Y

Yongbin Li

Format Sitasi

Chen, C., Wang, X., Lin, T., Lv, A., Wu, Y., Gao, X. et al. (2024). Masked Thought: Simply Masking Partial Reasoning Steps Can Improve Mathematical Reasoning Learning of Language Models. https://doi.org/10.48550/arXiv.2403.02178

Akses Cepat

PDF tidak tersedia langsung

Cek di sumber asli →
Lihat di Sumber doi.org/10.48550/arXiv.2403.02178
Informasi Jurnal
Tahun Terbit
2024
Bahasa
en
Total Sitasi
26×
Sumber Database
Semantic Scholar
DOI
10.48550/arXiv.2403.02178
Akses
Open Access ✓