TeacherLM: Teaching to Fish Rather Than Giving the Fish, Language Modeling Likewise
Nan He, Hanyu Lai, Chenyang Zhao, Zirui Cheng, Junting Pan, Ruoyu Qin, Ruofan Lu, Rui Lu, Yunchen Zhang, Gangming Zhao, Zhaohui Hou, Zhiyuan Huang, Shaoqing Lu, Ding Liang, Mingjie Zhan
TL;DR
The paper tackles the challenge that small language models struggle with reasoning by introducing TeacherLM, a family of open-source, explanation-rich teachers that generate fundamentals, chain-of-thought, and common-mistake annotations for each sample. It trains BLOOM-based models via a multi-stage, multi-task pipeline on large-scale datasets (P3-Sense-3K, Muffin-3W, TeacherData-2M) to produce specialized teachers (Fundamental, CoT, CommonMistake) and demonstrates their effectiveness in augmenting 58 NLP datasets and improving student models, achieving a zero-shot MMLU score of 52.3 with 7.1B parameters and 59.8 with 176B. The work provides detailed evaluation protocols and shows that data-augmented reasoning can rival or exceed larger models in zero-shot settings, while remaining cost-effective and open-source. Overall, TeacherLM offers a scalable, accessible path to endow smaller models with robust reasoning capabilities through structured, sample-level explanations.
Abstract
Large Language Models (LLMs) exhibit impressive reasoning and data augmentation capabilities in various NLP tasks. However, what about small models? In this work, we propose TeacherLM-7.1B, capable of annotating relevant fundamentals, chain of thought, and common mistakes for most NLP samples, which makes annotation more than just an answer, thus allowing other models to learn "why" instead of just "what". The TeacherLM-7.1B model achieved a zero-shot score of 52.3 on MMLU, surpassing most models with over 100B parameters. Even more remarkable is its data augmentation ability. Based on TeacherLM-7.1B, we augmented 58 NLP datasets and taught various student models with different parameters from OPT and BLOOM series in a multi-task setting. The experimental results indicate that the data augmentation provided by TeacherLM has brought significant benefits. We will release the TeacherLM series of models and augmented datasets as open-source.
