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

Ada-Instruct: Adapting Instruction Generators For Complex Reasoning

Wanyun Cui, Qianle Wang · Submission to ICLR 2024 · Rejected

TL;DR

Existing "Self-Instruct" methods fail to generate the long, complex instructions necessary for advanced reasoning tasks, even when using state-of-the-art models. Ada-Instruct solves this by fine-tuning open-source LLMs on as few as ten examples to act as specialized instruction generators. This produces high-quality, diverse, and distributionally consistent training data that significantly boosts downstream performance.

The Simplicity Bias in Self-Instruct

To maximize the capabilities of Large Language Models (LLMs), researchers often rely on Supervised Fine-Tuning (SFT). However, SFT requires massive amounts of high-quality instruction-answer pairs. The standard workaround is "Self-Instruct": using a powerful model to generate new instructions based on a few seed examples via In-Context Learning (ICL).

The authors identify a glaring gap in this approach: ICL-based generators struggle to create complex instructions. For tasks like code completion (HumanEval) or math (GSM8k), Self-Instruct consistently produces brief, simplistic prompts. Even with heavy prompt engineering, the generated instructions rarely exceed 100 tokens, whereas real-world complex tasks often require much more detail. This "simplicity bias" prevents the synthetic data from matching the complexity of the target task.

Self-Instruct generates significantly shorter instructions compared to the actual HumanEval dataset.

The Ada-Instruct Pipeline

The authors introduce Ada-Instruct, a three-step pipeline that shifts the instruction generation strategy from prompting to fine-tuning:

  1. Learning to Generate: Instead of providing 10 examples in a prompt (ICL), the authors fine-tune an open-source LLM (like Code Llama or Llama 2) on those same 10 examples. This specialized "instruction generator" is then used to produce a massive volume of new instructions.
  2. Label Generation: To ensure the answers are correct, the generated instructions are fed to a high-quality closed-source model (like ChatGPT) to produce the corresponding labels and responses.
  3. Task-Specific Training: Finally, a new LLM is fine-tuned on this large-scale synthetic dataset to create the final task-specific model.

To maintain quality, a filtering step using MPNet calculates semantic similarity to remove redundant instructions before label generation.

Key Insights and Ideas

The "10-Sample" Insight

The most surprising finding is that fine-tuning on a tiny set of just 10 samples allows a model to capture the underlying distribution—length, complexity, and semantics—of a task far better than ICL can.

Ada-Instruct closely matches the token length distribution of the target HumanEval dataset.

Distributional Consistency and Diversity

Using t-SNE visualizations of instruction embeddings, the authors show that Ada-Instruct covers the entire semantic space of the target task. In contrast, previous methods like Evol-Instruct often drift away from the target distribution, creating unnatural instructions. Furthermore, Ada-Instruct produces instructions with lower BERTscore similarity compared to Self-Instruct, meaning it generates a more diverse set of problems rather than just repeating variations of the seed samples.

Robustness to Noise

Interestingly, the authors found that even if some of the generated instructions are "noisy" (e.g., the code doesn't pass test cases), training on them still provides significant performance gains. This echoes findings that volume and diversity can sometimes compensate for individual sample errors.

Key Results

The effectiveness of Ada-Instruct was evaluated across code completion (HumanEval, MBPP), mathematics (GSM8k, MATH), and commonsense reasoning (CommonsenseQA). Ada-Instruct consistently outperformed both the base models and the Self-Instruct baselines:

  • HumanEval: Boosted the base Code Llama model from 43.3% to 65.2% pass@1—a relative improvement of over 50%. This outperformed GPT-3.5 and came close to GPT-4 (67.0%).
  • GSM8k: Improved performance from 28.7% to 48.7%, significantly surpassing the Self-Instruct baseline (30.8%).
  • Generalization: When trained on one coding dataset (MBPP) and tested on another (HumanEval), Ada-Instruct showed robust generalization, proving it isn't just memorizing the seed samples.

Limitations and Future Work

While the instruction generation is handled by open-source models, the pipeline still relies on closed-source models for the labeling step. Future work could explore using open-source "judges" or verifiers to make the process entirely self-contained. Additionally, while fine-tuning a generator is more computationally expensive than simple ICL prompting, the authors argue the substantial performance gains justify the cost.

Summary updated

BibTeX
@misc{cui2023ada,
  author = {Wanyun Cui and Qianle Wang},
  title = {{Ada-Instruct: Adapting Instruction Generators For Complex Reasoning}},
  year = {2023},
  eprint = {2310.04484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.04484},
}
Figure