Improve Student's Reasoning Generalizability through Cascading Decomposed CoTs Distillation

Chengwei Dai, Kun Li, Wei Zhou, Songlin Hu
5/30/2024
cs.CLcs.AI

Official code: C-W-D/CasCoD (13 stars, MIT, last commit 2024-09-24).

Abstract

Large language models (LLMs) exhibit enhanced reasoning at larger scales, driving efforts to distill these capabilities into smaller models via teacher-student learning. Previous works simply fine-tune student models on teachers' generated Chain-of-Thoughts (CoTs) data. Although these methods enhance in-domain (IND) reasoning performance, they struggle to generalize to out-of-domain (OOD) tasks. We believe that the widespread spurious correlations between questions and answers may lead the model to preset a specific answer which restricts the diversity and generalizability of its reasoning process. In this paper, we propose Cascading Decomposed CoTs Distillation (CasCoD) to address these issues by decomposing the traditional single-step learning process into two cascaded learning steps. Specifically, by restructuring the training objectives -- removing the answer from outputs and concatenating the question with the rationale as input -- CasCoD's two-step learning process ensures that students focus on learning rationales without interference from the preset answers, thus improving reasoning generalizability. Extensive experiments demonstrate the effectiveness of CasCoD on both IND and OOD benchmark reasoning datasets. Code can be found at https://github.com/C-W-D/CasCoD.

View on arXivView PDF

Code Implementations(1)

C-W-D/CasCoDOfficial100%
MIT

Official repo of our paper: Improve Student's Reasoning Generalizability through Cascading Decomposed CoTs Distillation

134Shell, PythonMay 30, 20242 years agoMIT

Similar Papers

Cite this paper

@article{dai2024improve,
  title  = {Improve Student's Reasoning Generalizability through Cascading Decomposed CoTs Distillation},
  author = {Chengwei Dai and Kun Li and Wei Zhou and Songlin Hu},
  year   = {2024},
  eprint = {2405.19842},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19842v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.19842.svg)](https://codeofpaper.com/paper/2405.19842)

Discussion