Reproduce “Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoning” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xinlu Zhang, Zhiyu Zoey Chen, Xi Ye, Xianjun Yang, Lichang Chen, William Yang Wang, Linda Ruth Petzold

This research investigates how coding data impacts Large Language Models' reasoning capacities during the instruction fine-tuning stage. It demonstrates that increasing the proportion of coding data consistently enhances LLMs' general reasoning abilities across various models and scales, not solely through code generation but by fostering genuine logical improvements that manifest in natural language outputs.

Key insights

  • Coding data during instruction fine-tuning fosters genuine improvements in LLMs' logical thinking and problem-solving, which manifest in natural language outputs for general reasoning tasks, not just code generation.
  • The impact of coding data on reasoning varies by domain, with significant gains in symbolic reasoning but more nuanced or even saturated effects in logical and arithmetic reasoning.
  • No single coding data proportion is universally optimal for all reasoning tasks; strategic data mixture is needed depending on the desired reasoning emphasis.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.