{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/unveiling-the-key-factors-for-distilling","title":"Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning","arxiv_id":"2502.18001","date":"2025-02-25","proceeding":null,"authors":["Xinghao Chen","Zhijing Sun","Wenjin Guo","Miaoran Zhang","Yanjun Chen","Yirong Sun","Hui Su","Yijie Pan","Dietrich Klakow","Wenjie Li","Xiaoyu Shen"],"abstract":"Large Language Models (LLMs) excel in reasoning tasks through Chain-of-Thought (CoT) prompting. However, CoT prompting greatly increases computational demands, which has prompted growing interest in distilling CoT capabilities into Small Language Models (SLMs). This study systematically examines the factors influencing CoT distillation, including the choice of granularity, format and teacher model. Through experiments involving four teacher models and seven student models across seven mathematical and commonsense reasoning datasets, we uncover three key findings: (1) Unlike LLMs, SLMs exhibit a non-monotonic relationship with granularity, with stronger models benefiting from finer-grained reasoning and weaker models performing better with simpler CoT supervision; (2) CoT format significantly impacts LLMs but has minimal effect on SLMs, likely due to their reliance on supervised fine-tuning rather than pretraining preferences; (3) Stronger teacher models do NOT always produce better student models, as diversity and complexity in CoT supervision can outweigh accuracy alone. These findings emphasize the need to tailor CoT strategies to specific student model, offering actionable insights for optimizing CoT distillation in SLMs. The code and datasets are available at https://github.com/EIT-NLP/Distilling-CoT-Reasoning.","url_abs":"https://arxiv.org/abs/2502.18001v1","url_pdf":"https://arxiv.org/pdf/2502.18001v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"unveiling-the-key-factors-for-distilling","repo_url":"https://github.com/eit-nlp/distilling-cot-reasoning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[{"method_slug":"cot-prompting","method_name":"CoT Prompting"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2502.18001","atlas_url":"https://app.syntology.ai/?focus=2502.18001","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.18001"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eit-nlp/distilling-cot-reasoning","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":12},"by_repo_kind":{"official":{"samples":12,"ran":12,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"35fe8d0bfce16d56","entry":"clean_generated_output","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/run_reasoning.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/run_reasoning.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"35fe8d0bfce16d56"}},{"code_sha256_prefix":"1d6b1921b6a73ff1","entry":"delete_extra_zero","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1d6b1921b6a73ff1"}},{"code_sha256_prefix":"54544f8056f6555e","entry":"determine_dataset","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/autoevaluate.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/autoevaluate.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"54544f8056f6555e"}},{"code_sha256_prefix":"ed259618fd8cb0dd","entry":"determine_form","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/autoevaluate.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/autoevaluate.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ed259618fd8cb0dd"}},{"code_sha256_prefix":"9734572acf030e9c","entry":"extract_answer_label","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/run_reasoning.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/run_reasoning.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9734572acf030e9c"}},{"code_sha256_prefix":"d8b71dceb40cd598","entry":"extract_math_answer","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d8b71dceb40cd598"}},{"code_sha256_prefix":"e004c74d60435f42","entry":"find_box","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e004c74d60435f42"}},{"code_sha256_prefix":"db957f894b2b4da3","entry":"find_model_directories","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/autoevaluate.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/autoevaluate.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"db957f894b2b4da3"}},{"code_sha256_prefix":"9dcdd19fa07a9553","entry":"get_prompt","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/prompt_utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/prompt_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9dcdd19fa07a9553"}},{"code_sha256_prefix":"645296d3bf573bfd","entry":"get_tulu_prompt","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/prompt_utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/prompt_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"645296d3bf573bfd"}},{"code_sha256_prefix":"ba92d46452fe56dc","entry":"get_vicuna_prompt","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/prompt_utils.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/prompt_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ba92d46452fe56dc"}},{"code_sha256_prefix":"06611f0dc33c8103","entry":"load_qa_data","repo":"eit-nlp/distilling-cot-reasoning","repo_kind":"official","path":"Evaluation/reasoning_eval/run_reasoning.py","file_url":"https://github.com/eit-nlp/distilling-cot-reasoning/blob/HEAD/Evaluation/reasoning_eval/run_reasoning.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"06611f0dc33c8103"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}