TL;DR
Falconer is a hybrid framework that slashes the cost of corpus-scale knowledge mining by using large language models (LLMs) as high-level planners and annotators, while offloading heavy-duty data extraction to lightweight, specialized small language models (SLMs). By decomposing complex natural language instructions into just two atomic primitives—get_label and get_span—Falconer matches or exceeds LLM accuracy while reducing inference costs by up to 90% and boosting processing speeds by over 20×.
What Problem Does This Paper Address?
"Deep Research"—the automated extraction of structured knowledge from massive, unstructured text corpora based on simple natural language prompts—is incredibly powerful. However, running state-of-the-art LLMs over millions of documents to classify text or extract specific data spans is financially and computationally prohibitive.
Conversely, traditional small models (like standard BERT pipelines) are highly efficient but rigid. They cannot follow arbitrary natural language instructions, requiring machine learning engineers to manually build, train, and maintain separate, brittle pipelines for every new task or schema change.
The authors introduce Falconer to bridge this gap, combining the flexible instruction-following capabilities of LLMs with the blistering speed and low cost of specialized small models.
Methods
Falconer splits the knowledge mining process into three distinct phases:
- Planning (LLM): A powerful LLM (like GPT-4) acts as a centralized planner. It translates the user's natural language instruction into an executable Python workflow. Crucially, it decomposes complex queries into a deterministic control flow using just two unified primitives:
get_label(for text classification) andget_span(for text extraction). - Generation (LLM): To avoid manual data labeling, the LLM annotates a tiny fraction (typically around 5%) of the target corpus based on the planned subtasks, creating high-quality, domain-specific training data.
- Execution (SLM Proxy): Falconer fine-tunes a compact, instruction-following metamodel called Cuckoo (a small model optimized for information extraction via a Next Token Extraction paradigm) on the LLM-generated data. This specialized proxy model then executes the planned Python workflow across the remaining 95% of the corpus.
Datasets
The authors evaluated Falconer using two distinct setups:
- Labeled Benchmarks: A mixture of widely recognized Named Entity Recognition (NER) datasets—including FabNER, Broad Twitter, BC2GM, AnatEM, WikiNER, and FindVehicle—to test how well the small proxy model aligns with human annotations across diverse domains (biology, tech, social media).
- Unlabeled Benchmarks: Three large-scale unlabeled corpora—TED Talk Summaries, Steam Game Descriptions, and Text Messages—were used to test Falconer's ability to handle complex, multi-step, and multi-entity real-world mining tasks.
Key Insights and Ideas
- Decomposition Beats Monolithic Execution: Small models struggle with complex, multi-step reasoning. Falconer bypasses this limitation by letting the LLM handle the logic and planning once, while the small model merely executes the atomic steps (
get_labelandget_span) at scale. - Arising Abilities (Self-Correction): In a fascinating "aha moment," the authors discovered that when the Cuckoo proxy model was fine-tuned on noisy or imperfect LLM annotations (specifically in the Biology domain), it actually corrected its teacher's mistakes, outperforming the LLM that generated its training data. Because Cuckoo is pretrained heavily on token and positional structures, it can infer correct boundaries even when given flawed guidance.
- Autoregressive SLMs Fall Short: The researchers tried substituting Cuckoo with popular general-purpose autoregressive small models (like Qwen-0.6B and Gemma-1B). Surprisingly, even with continual pretraining, these models showed little to no improvement on fine-grained extraction tasks, proving that task-specialized architectures are vital for efficient data mining.
Key Results
- Massive Efficiency Gains: Falconer achieved a 90% reduction in inference costs and accelerated processing throughput by over 20× compared to running direct LLM inference on the entire corpus.
- Competitive Accuracy: With a training sample size of just 2,048 instances (5% of the corpus), Falconer's lightweight proxy model consistently matched or outperformed GPT-4o across multiple evaluation datasets.
- Robust Planning: High-capacity LLMs proved to be excellent planners, scoring between 0.96 and 1.00 on basic and multi-entity task planning, though they required in-context learning (ICL) to successfully plan highly complex, non-standard tasks.
Limitations and Future Work
While Falconer excels at standard classification and extraction, the authors note that the LLM planner's performance degrades on highly complex, multi-step tasks that feature dynamic, intermediate dependencies (e.g., tasks where step B depends entirely on the variable text extracted in step A). Furthermore, the system is inherently dependent on the initial correctness of the LLM planner; if the generated Python workflow contains logical bugs, the downstream execution will fail.
Future work will focus on improving the planner's resilience through advanced in-context learning strategies and expanding the primitive toolset to handle more intricate relational data structures.
Summary updated