Abstract
Massive high-quality data, both pre-training raw texts and post-training annotations, have been carefully prepared to incubate advanced large language models (LLMs). In contrast, for information extraction (IE), pre-training data, such as BIO-tagged sequences, are hard to scale up. We show that IE models can act as free riders on LLM resources by reframing next-token prediction into extraction for tokens already present in the context. Specifically, our proposed next tokens extraction (NTE) paradigm learns a versatile IE model, Cuckoo, with 102.6M extractive data converted from LLM's pre-training and post-training data. Under the few-shot setting, Cuckoo adapts effectively to traditional and complex instruction-following IE with better performance than existing pre-trained IE models. As a free rider, Cuckoo can naturally evolve with the ongoing advancements in LLM data preparation, benefiting from improvements in LLM training pipelines without additional manual effort.
Introduction
Information Extraction (IE)—the task of transforming unstructured text into structured formats like entities, relations, and events—has long been bottlenecked by the availability of high-quality, human-annotated data. While Large Language Models (LLMs) thrive on trillions of tokens of raw text via Next Token Prediction (NTP), IE models typically require specialized BIO-tagged (Beginning, Inside, Outside) datasets that are difficult and expensive to scale.
Recent attempts to use LLMs as extractors have shown promise, but they come with significant drawbacks: high computational costs, slow inference speeds, and a tendency to struggle with the rigid formatting required for IE tasks. This paper introduces Cuckoo, a specialized IE model designed to "free ride" on the massive data pipelines built for LLMs. By reframing the extraction task, Cuckoo achieves superior performance and efficiency compared to much larger models.
The Next Tokens Extraction (NTE) Paradigm
The core innovation of Cuckoo is the Next Tokens Extraction (NTE) paradigm. In standard language modeling (NTP), a model predicts the next token from a massive, fixed vocabulary. In contrast, NTE treats the next token as something that likely already exists within the preceding context.
If the next $n$ tokens in a sequence appear earlier in the text, the model is trained to "extract" them by applying BIO tags to the previous occurrence. This shift allows the model to use any raw text as training data. For example, if a name like "Jeff Bezos" appears multiple times in a document, the subsequent mentions serve as natural supervision signals to identify and tag the initial mention. This approach allows Cuckoo to learn the mechanism of extraction rather than just memorizing facts.
Training Strategy: The "Free Rider" Approach
Cuckoo follows a two-stage training process that mirrors the development of modern LLMs but adapts the data for extraction:
- Pre-training: The model uses a RoBERTa-large backbone (355M parameters) and is trained on 100 million instances derived from the C4 (Common Crawl) corpus. This stage teaches the model the fundamental relationship between context and repeated tokens.
- Post-training: To enable instruction-following capabilities, Cuckoo is further trained on 2.6 million chat-formatted instances from the TuluV3 dataset, converted into the NTE format. This allows the model to respond to natural language prompts like "Extract all organizations mentioned in this report."
By using the same data sources as LLMs, Cuckoo can "naturally evolve." As the community improves data cleaning and instruction-tuning sets for LLMs, Cuckoo's performance improves automatically without requiring new manual IE annotations.
Experimental Results
Cuckoo was evaluated against traditional IE benchmarks (CoNLL03, BioNLP2004, etc.), query-based tasks (SQuAD), and complex instruction-following scenarios.
Performance vs. Scale
Despite having only 355 million parameters, Cuckoo consistently outperformed fine-tuned LLaMA-3-8B models in few-shot settings. While LLMs must use their parameters to store vast amounts of world knowledge to predict the next token, Cuckoo focuses its capacity entirely on the extraction mechanism. This efficiency allows it to punch significantly above its weight class.
Speed and Efficiency
One of Cuckoo's most significant advantages is its operational efficiency. In standard tagging tasks, Cuckoo is approximately 20x faster than LLaMA-3-8B. When compared to the LLM's performance in In-Context Learning (ICL) scenarios, Cuckoo is over 50x faster, making it a much more viable candidate for high-throughput production environments.
Emergent In-Context Learning
A surprising finding was the emergence of in-context learning. Just as LLMs can learn to perform a task from a few examples in a prompt, Cuckoo demonstrated the ability to adapt to new extraction schemas on the fly. The researchers attribute this to the "burstiness" of natural language, where rare or specific entities tend to appear in clusters, providing the model with sufficient internal patterns to learn the extraction logic during pre-training.
Discussion and Limitations
While Cuckoo represents a major step forward for specialized IE, several areas for future work remain:
- Label Embeddings: The current model treats labels as plain text. Integrating explicit label embeddings could further enhance the model's understanding of complex schemas.
- Backbone Scaling: The RoBERTa-large backbone may be reaching its capacity at 100M training instances. Future iterations could explore larger or more modern architectures to see if the scaling laws continue to hold.
- Domain Sensitivity: While C4 provides a broad base, testing Cuckoo on highly specialized domains like legal or medical texts would further validate its versatility.
Conclusion
Cuckoo demonstrates that specialized IE models do not need to lag behind the LLM revolution. By "free riding" on the massive data efforts of the LLM community and reframing the task as Next Token Extraction, Cuckoo provides a faster, more efficient, and highly capable alternative for structured data extraction. It proves that with the right paradigm, smaller, specialized models can effectively compete with—and even surpass—general-purpose giants.
Summary updated