Turning Dust into Gold: Distilling Complex Reasoning Capabilities from LLMs by Leveraging Negative Data

Authors

  • Yiwei Li Beijing Institute of Technology
  • Peiwen Yuan Beijing Institute of Technology
  • Shaoxiong Feng Xiaohongshu Inc
  • Boyuan Pan Xiaohongshu Inc
  • Bin Sun Beijing Institute of Technology
  • Xinglin Wang Beijing Institute of Technology
  • Heda Wang Xiaohongshu Inc
  • Kan Li Beijing Insitiute of Technology

DOI:

https://doi.org/10.1609/aaai.v38i17.29821

Keywords:

NLP: (Large) Language Models, NLP: Generation

Abstract

Large Language Models (LLMs) have performed well on various reasoning tasks, but their inaccessibility and numerous parameters hinder wide application in practice. One promising way is distilling the reasoning ability from LLMs to small models by the generated chain-of-thought reasoning paths. In some cases, however, LLMs may produce incorrect reasoning chains, especially when facing complex mathematical problems. Previous studies only transfer knowledge from positive samples and drop the synthesized data with wrong answers. In this work, we illustrate the merit of negative data and propose a model specialization framework to distill LLMs with negative samples besides positive ones. The framework consists of three progressive steps, covering from training to inference stages, to absorb knowledge from negative data. We conduct extensive experiments across arithmetic reasoning tasks to demonstrate the role of negative data in distillation from LLM.

Downloads

Published

2024-03-24

How to Cite

Li, Y., Yuan, P., Feng, S., Pan, B., Sun, B., Wang, X., Wang, H., & Li, K. (2024). Turning Dust into Gold: Distilling Complex Reasoning Capabilities from LLMs by Leveraging Negative Data. Proceedings of the AAAI Conference on Artificial Intelligence, 38(17), 18591-18599. https://doi.org/10.1609/aaai.v38i17.29821

Issue

Section

AAAI Technical Track on Natural Language Processing II