Introduction
Modern Large Language Models (LLMs) achieve remarkable performance but require trillions of tokens for training. In contrast, human children acquire complex language and reasoning skills from a significantly smaller data footprint—approximately 100 million tokens in their early years. This discrepancy suggests that current pretraining methods for small-scale models, often referred to as "BabyLMs," are inefficient. These compact models frequently struggle with fragmented raw data that lacks strong semantic ties, leading to poor performance on reasoning and contextual benchmarks. This paper introduces the "CoThought" pipeline, which utilizes a high-capacity "teacher" LLM to restructure raw data into high-quality, task-oriented lessons for smaller "student" models.
Methodology: The CoThought Pipeline
The authors propose a teacher-student framework designed to "taskify" pretraining data. Instead of training on raw, unstructured text, the student model is exposed to curated linguistic tasks that include explicit reasoning steps.
The pipeline consists of four primary stages:
- Taskification via Chain of Thought (CoT): Raw sentences from the BabyLM dataset are processed by GPT-3.5-turbo. Using CoT prompting, the teacher model restructures these sentences into cohesive Natural Language Understanding (NLU) tasks.
- The [Reason] + [Example] Format: The training data follows a structured template. For every five raw sentences, the teacher generates a reasoning "Plan," a cohesive "Paragraph" (story), a specific "Task" (e.g., Intent Classification), and associated "Labels."
- Coherence Scoring: To maintain data quality, an automatic scoring mechanism filters the output. GPT-3.5-turbo evaluates its own generated paragraphs; only those with a coherence score of 7.0 or higher (out of 10) are retained for the final pretraining set.
- Pretraining: A RoBERTa-base model is then pretrained using Masked Language Modeling (MLM) on this enriched, task-oriented dataset.
Experimental Setup
The primary training corpus is the BabyLM_100M dataset, a developmentally plausible collection including AOCHILDES (adult-child speech), BNC Spoken data, children's stories, Simple Wikipedia, and subtitles. The model's performance is evaluated across four major benchmarks: BLiMP and BLiMP Supplement (linguistic proficiency), GLUE (general NLU), and MSGS (linguistic generalizations).
Key Results and Insights
The CoThought-trained BabyLM demonstrated significant improvements over the standard RoBERTa baseline:
- Linguistic Proficiency: The model outperformed the baseline in 10 out of 13 BLiMP tasks, indicating a superior ability to extract and utilize contextual information.
- Reasoning Gains: The most dramatic improvements were observed in reasoning-heavy tasks. The model saw a 28.1-point increase in "QA Congruence" and a 32.13-point jump in "Subject-Aux Inversion."
- Overall Performance: Across all benchmarks, the CoThought model achieved an average improvement of 2.2 points. This suggests that the quality and structure of data can effectively compensate for limited quantity in small-scale training regimes.
The diversity of generated tasks—including Named Entity Recognition (39.2%), Sentiment Analysis (33.8%), and Intent Classification (22.9%)—was crucial. By seeing the reasoning process (the "Plan") during pretraining, the compact model develops more robust internal representations of logic and grammar.
Limitations and Conclusion
While effective, the CoThought pipeline depends heavily on the quality of the teacher LLM (GPT-3.5-turbo). Different teacher models may introduce varying biases. Additionally, the computational cost of generating structured data via API calls remains a bottleneck for some researchers.
In conclusion, "taskifying" the training environment for small models mimics the way human teachers prepare curricula, making the learning process more natural and efficient. By leveraging the reasoning capabilities of large models to curate data, we can significantly enhance the performance of compact, data-efficient language models.
Summary updated