The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning

Seungone Kim, Se June Joo, Doyoung Kim, Joel Jang, Seonghyeon Ye, Jamin Shin, Minjoon Seo

Introduction

Chain-of-Thought (CoT) reasoning—the ability of a model to explain its logic step-by-step before arriving at an answer—has largely been considered an "emergent" property of massive language models exceeding 100 billion parameters. Smaller models often struggle to generalize this reasoning to unseen tasks. This paper introduces the CoT Collection, a dataset designed to bridge this "reasoning gap" by providing a massive, diverse training set that teaches smaller models the underlying patterns of logical deduction.

Dataset Construction: The CoT Collection

The researchers developed the CoT Collection through a process of "rationale augmentation." They selected 1,060 diverse tasks from the existing Flan Collection and used OpenAI’s Codex as a "teacher" model to generate rationales. By providing Codex with hand-written examples of explanations, the researchers were able to scale rationale generation across 1.84 million instances.

The CoT Collection: A visualization of the 1.84 million rationales across 1,060 tasks, highlighting the scale and diversity of the dataset.

To ensure high quality, the generated rationales were filtered based on correctness, length, and repetition. This resulted in a dataset roughly 50 times larger in terms of rationales and 100 times more diverse in task variants than any previously available CoT resource.

Methodology and Fine-Tuning

The authors fine-tuned 3B and 11B parameter versions of Flan-T5 on the CoT Collection, creating a new family of models called CoT-T5. A critical component of their training strategy was the "rationale-first" approach, where the model is required to generate the explanation before the final answer. This method reduces the pressure on the model to guess correctly immediately and encourages the construction of a logical path.

Experimental Results

The CoT-T5 models were evaluated across several challenging benchmarks, including BIG-Bench-Hard (BBH), P3, and multilingual reasoning tasks (MGSM).

Performance comparison on BIG-Bench Hard tasks. CoT-T5-11B demonstrates competitive results against much larger models like ChatGPT and Codex.

On the BBH benchmark, CoT-T5 3B and 11B showed significant improvements over standard instruction-tuned models. Specifically, CoT-T5 3B improved by +4.34% and the 11B version by +2.60% over the standard Flan-T5 models. Notably, in specialized domains such as legal and medical reasoning, the CoT-T5 11B model outperformed ChatGPT by a staggering 13.98% margin in few-shot settings. This suggests that for targeted reasoning tasks, a well-tuned smaller model can match or exceed the performance of general-purpose giants.

Key Insights

  • Diversity Over Volume: The study found that task diversity is more impactful than raw data volume. Training on 10,000 instances across 1,060 tasks yielded better results than 180,000 instances across only 9 tasks.
  • Multilingual Generalization: Even small-scale translation of the collection (80k instances) into languages like Korean or Russian led to dramatic performance increases (up to 10x), indicating that reasoning patterns are transferable across languages.
  • Stability: Unlike many fine-tuning processes that lead to "catastrophic forgetting," CoT-T5 maintained or improved its performance on previously seen in-domain tasks.

Limitations and Future Work

While CoT-T5 excels at task-solving, it is not a general-purpose chatbot and lacks multi-turn dialogue capabilities. Furthermore, the quality of the dataset is currently bounded by the capabilities of the teacher model (Codex). Future research may explore more advanced prompting techniques, such as "Tree of Thoughts," to generate even higher-quality rationales for further model improvement.

Summary updated

BibTeX
@inproceedings{kim2023cot,
  author = {Seungone Kim and Se June Joo and Doyoung Kim and Joel Jang and Seonghyeon Ye and Jamin Shin and Minjoon Seo},
  title = {{The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=E7dclsm24M},
}
Figure