Orca 2: Teaching Small Language Models How to Reason

Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andrés Codas, Clarisse Simões, Sahaj Agrawal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, Hamid Palangi, Guoqing Zheng, Corby Rosset, Hamed Khanpour, Ahmed AwadallaharXiv 2023 · DOI

Abstract

Orca 2 demonstrates that small language models (SLMs) can achieve reasoning capabilities comparable to models 5–10x their size by moving beyond simple imitation learning. By teaching models a variety of reasoning strategies and using a novel "Prompt Erasure" technique, researchers have developed 7B and 13B parameter models that act as "cautious reasoners," competing effectively with massive models like LLaMA-2-70B.

Introduction: The Imitation Trap

The current trajectory of Large Language Model (LLM) development often equates "bigger" with "better." However, the high computational cost of deploying massive models remains a significant barrier. To mitigate this, researchers frequently employ imitation learning, where a smaller "student" model is trained on the outputs of a larger "teacher" model like GPT-4.

Orca 2 argues that simple imitation is a fundamental trap. A 70B model may solve a complex logic puzzle in a single "direct answer" step due to its immense raw capacity. If a 7B model attempts to imitate that direct style, it often fails because it lacks the necessary internal capacity. The goal of Orca 2 is to teach SLMs to use different, more effective strategies than their teachers—essentially teaching them to "think" in a way that fits their smaller size.

Methodology: Cautious Reasoning and Prompt Erasure

The core innovation in Orca 2 is the transition from blind imitation to "cautious reasoning." This methodology relies on three pillars:

  1. Strategy Diversity: Instead of copying a single output style, Orca 2 is taught a suite of reasoning techniques, including step-by-step, recall-then-generate, explain-then-answer, and direct answer.
  2. Task-Specific Tailoring: GPT-4 is used to generate high-quality reasoning traces, but the researchers carefully choose which strategy to elicit based on the task. For instance, they might force the teacher to use a detailed step-by-step approach for a logic puzzle that the teacher could normally solve directly.
  3. Prompt Erasure: During training, the student model is shown the complex reasoning trace, but the specific system instructions that triggered that reasoning (e.g., "think step-by-step") are removed and replaced with a generic "cautious assistant" prompt. This forces the model to learn how to identify the best strategy based solely on the user's query.
An illustration of the diverse reasoning strategies (direct, step-by-step, explanation, and trace) used to train Orca 2.

Training Data

The researchers curated a massive synthetic dataset of approximately 817,000 training instances, including:

  • FLAN-v2: Diverse tasks grouped into 23 categories.
  • Math: ~160,000 problems from GSM8K, DeepMind Math, and MATH.
  • Specialized Data: 55,000 few-shot samples and 2,000 doctor-patient conversation summaries.

Key Results and Performance

Orca 2 significantly outperforms other models of similar size and often matches much larger ones across 15 diverse benchmarks, including AGIEval, BigBench Hard (BBH), and MMLU.

Performance comparison showing Orca-2-13B outperforming LLaMA-2-Chat-13B and matching or exceeding LLaMA-2-Chat-70B across various benchmarks.
  • Reasoning Gains: Orca-2-13B showed a 47.5% relative improvement over LLaMA-2-Chat-13B on zero-shot reasoning tasks.
  • Scaling Efficiency: Orca-2-13B exceeded the performance of LLaMA-2-Chat-70B on several benchmarks and performed comparably to WizardLM-70B.
  • Reduced Hallucination: In abstractive summarization, Orca-2-13B demonstrated a 76.9% reduction in hallucination rates compared to LLaMA-2-Chat-13B.
  • Knowledge Retention: On the MMLU benchmark, Orca-2-13B (59.32%) achieved scores slightly higher than LLaMA-2-Chat-70B (58.54%).

Discussion and Future Work

Orca 2 suggests that SLMs are best utilized as reasoning engines over provided context rather than as massive knowledge stores. By allowing a model to choose between a quick direct answer and a methodical step-by-step process, it becomes both more efficient and more accurate.

However, limitations remain. Orca 2 is still constrained by the underlying knowledge and biases of its base model (LLaMA-2). Additionally, while it excels at single-turn reasoning, its multi-turn conversational ability is slightly lower due to the specific focus of its training set. Future research will aim to apply these "cautious reasoning" techniques to safety alignment and further refine the model's ability to act as a knowledge-agnostic reasoning engine.

Summary updated

BibTeX
@misc{mitra2023orca,
  author = {Arindam Mitra and Luciano Del Corro and Shweti Mahajan and Andrés Codas and Clarisse Simões and Sahaj Agrawal and Xuxi Chen and Anastasia Razdaibiedina and Erik Jones and Kriti Aggarwal and Hamid Palangi and Guoqing Zheng and Corby Rosset and Hamed Khanpour and Ahmed Awadallah},
  title = {{Orca 2: Teaching Small Language Models How to Reason}},
  year = {2023},
  eprint = {2311.11045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11045},
}
Figure