NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions

Minghao Wu, Abdul Waheed, Chiyu Zhang, Muhammad Abdul-Mageed, Alham Fikri Aji

TL;DR

The LaMini-LM project introduces a "diverse herd" of small-scale language models (61M to 7B parameters) distilled from GPT-3.5-turbo using a massive new dataset of 2.58 million instructions. By prioritizing data diversity through topic-guided generation, these compact models achieve performance comparable to much larger baselines like LLaMA-7B, making high-quality instruction following accessible on consumer-grade hardware.

What Problem Does This Paper Address?

Large Language Models (LLMs) like GPT-4 and LLaMA have revolutionized NLP, but their sheer size—often tens or hundreds of billions of parameters—creates a massive barrier to entry. They require specialized, expensive hardware for both training and inference, leading to high energy consumption and limited accessibility for researchers without massive compute budgets.

While "distillation" (training a smaller "student" model to mimic a larger "teacher" model) is a known solution, existing distilled models often remain relatively large (7B+) or suffer from a lack of diversity in their training data. The authors of LaMini-LM aimed to bridge this gap by creating a family of truly small, efficient models that don't sacrifice the ability to follow complex human instructions.

Methods

The researchers employed sequence-level distillation (also called offline distillation), where a student model is trained on the outputs of a teacher model (in this case, gpt-3.5-turbo). The core of their approach lies in how they built their training data:

  1. Instruction Generation: They combined existing instruction sets (like Alpaca and P3) with two new strategies:
  2. Example-Guided Generation: Prompting the teacher to generate new instructions based on a few seed examples.
  3. Topic-Guided Generation: To ensure the models weren't just repeating a narrow set of tasks, they used 3,500 Wikipedia categories to force the teacher to generate instructions across a vast array of subjects.
  4. The "Herd" of Models: Instead of training just one model, they fine-tuned a variety of architectures, including encoder-decoder (T5, Flan-T5) and decoder-only (GPT-2, GPT-Neo, Cerebras-GPT, LLaMA) models, ranging from 61 million to 7 billion parameters.
Figure 1: Overview of LaMini-LM

Datasets

  • LaMini-Instruction Dataset: The primary contribution is this massive dataset of 2.58 million instruction-response pairs. It is roughly 50x larger than the original Alpaca dataset.
  • Evaluation Benchmarks: The models were tested on 15 standard NLP tasks (including SciQ, ARC, and SST) using the EleutherAI LM Evaluation Harness.
  • LaMini-Hallucination Test Set: A new, manually curated benchmark of 40 "trick" questions designed to probe whether a model will hallucinate or correctly reject nonsense/impossible queries (e.g., "Who won the first World Cup in 1922?").

Key Insights and Ideas

  • Diversity Over Size: The authors found that the diversity of the instruction set was more critical than just having a large number of examples. The topic-guided approach significantly boosted the lexical diversity of the training data.
  • Architecture Matters at Small Scales: For models under 500 million parameters, the encoder-decoder (T5-style) architecture consistently outperformed decoder-only models. In fact, the LaMini-Flan-T5-248M model performed on par with the much larger LLaMA-7B on several tasks.
  • The "Instruction Gap": While small models can be taught to follow instructions well, there is still a significant performance gap between these distilled models and proprietary giants like GPT-3.5, likely due to the quality of the underlying pre-trained base models.

Key Results

The results highlight that bigger isn't always better if you have high-quality data.

  • Performance Parity: As shown in Figure 4, the LaMini-LLaMA-7B model significantly outperformed the original LLaMA-7B and Alpaca-7B, demonstrating the power of the LaMini-Instruction dataset.
  • Human Evaluation: In blind tests, human experts rated the responses of the LaMini models highly. Even the very small T5-based models showed "exceptional performance" relative to their size.
  • Hallucination and Toxicity: While the models showed improvements in rejecting some false premises compared to Alpaca, they still struggle significantly with hallucinations compared to GPT-3.5. Interestingly, instruction tuning slightly increased the tendency of encoder-decoder models to generate toxic content, a phenomenon the authors suggest needs further study.
Figure 2: The t-SNE visualizations of instruction sen- tence embeddings.

Limitations and Future Work

The authors are transparent about several hurdles:

  • Reasoning Deficits: The models still struggle with complex coding, mathematical problem-solving, and strict logical reasoning.
  • Single-Turn Only: The current versions are optimized for single instructions and do not handle multi-turn "chat" dialogues well.
  • Error Propagation: Because they are distilled from GPT-3.5, they inherit any biases or factual errors present in the teacher's outputs.

Future work will focus on expanding the variety of base models, optimizing for multi-turn conversations, and developing better methods to mitigate hallucination and toxicity in these compact architectures.

Summary updated

BibTeX
@misc{wu2023lamini,
  author = {Minghao Wu and Abdul Waheed and Chiyu Zhang and Muhammad Abdul-Mageed and Alham Fikri Aji},
  title = {{LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions}},
  year = {2023},
  eprint = {2304.14402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.14402},
}
Figure