TL;DR
This paper introduces LMTurk, a novel framework that treats large, few-shot capable language models (PLMs) as "crowdsourcing workers" to generate training data for smaller, deployable models. By leveraging PLMs' few-shot learning abilities and integrating active learning, LMTurk aims to reduce the cost and complexity of training effective NLP models for real-world applications.
What Problem Does This Paper Address?
The field of Natural Language Processing (NLP) has seen tremendous progress with the advent of large, pre-trained language models (PLMs). These models, like GPT-3 and BERT, are incredibly powerful and can perform well on various tasks with very little task-specific training data (few-shot learning). However, their sheer size makes them computationally expensive to train and deploy, especially on resource-constrained devices. This presents a dilemma: how can we harness the power of these massive PLMs without incurring prohibitive costs or being limited by their size? The authors identify this as a crucial question and propose LMTurk to bridge this gap.
Methods
LMTurk's core idea is to re-imagine PLMs as crowdsourcing workers. Instead of human annotators, LMTurk uses few-shot adapted PLMs to label data for a specific task. Here's a breakdown of the approach:
- Few-Shot Adaptation (LMTurker): A large PLM is first adapted to a target task (T) using a small set of human-labeled examples (G). This adaptation is achieved through techniques like P-Tuning, which reformulates the input into a cloze-style query for the PLM. The adapted PLM is then referred to as an "LMTurker."
- Crowdsourcing Simulation: A pool of these LMTurkers (multiple instances of the adapted PLM) are used to annotate unlabeled data. This mimics traditional crowdsourcing where multiple workers contribute labels.
- Annotation Aggregation: To handle potential biases or inconsistencies from individual LMTurkers, their annotations are aggregated using methods like Majority Voting, Logit Voting, or Weighted Logit Voting.
- Active Learning Integration: To minimize the computational cost of querying the large PLMs, active learning strategies (like Entropy or Least Confident sampling) are employed. This ensures that the LMTurkers are queried on the most informative unlabeled data points.
- Small Model Training: The aggregated, high-quality annotations generated by the LMTurkers are then used to train a much smaller, deployable model (S) specialized for the task. This process can be iterative, with the small model's performance improving over time.
Datasets
The authors evaluate LMTurk on five standard NLP datasets:
- SST2 and SST5: Sentiment analysis datasets (binary and five-class respectively) from the Stanford Sentiment Treebank.
- AGNews: A news article topic classification dataset.
- RTE: Recognizing Textual Entailment dataset.
- CoLA: Corpus of Linguistic Acceptability dataset.
These datasets are commonly used in crowdsourcing and active learning research. The paper also details how few-shot gold datasets (Gtrain and Gdev) were sampled from these datasets for the initial adaptation of PLMs.
Key Insights and Ideas
- PLMs as "Cheap" Annotators: The most significant insight is that large PLMs, when adapted with a few examples, can serve as effective and cost-efficient "annotators" for training smaller models. This bypasses the need for expensive human annotation for large-scale data generation.
- Bridging the Size Gap: LMTurk offers a practical solution to the PLM size problem by enabling the creation of small, deployable models that inherit the performance benefits of their larger counterparts.
- Active Learning is Crucial for Efficiency: Integrating active learning is vital for making the LMTurk approach computationally feasible. It significantly reduces the number of queries to the large PLMs, thereby lowering inference costs.
- Annotation Quality Matters: Unlike traditional active learning with oracle labels, LMTurker annotations are not perfect. The paper highlights that considering the quality of these LMTurker annotations (e.g., through filtering based on entropy) can be beneficial for training the smaller model.
Key Results
- Comparable Few-Shot Performance: LMTurkers (adapted PLMs) achieved few-shot performance comparable to state-of-the-art methods on several benchmarks, demonstrating their effectiveness even with limited initial data.
- Small Model Outperforms Baseline: The small model (S) trained using LMTurk's generated data consistently outperformed a baseline trained with random sampling, especially when using more data.
- LMTurk vs. Active Learning: LMTurk achieved performance close to traditional active learning (which uses ideal human labels) but with significantly lower human labor costs. In some cases, LMTurk even matched AL performance.
- Aggregation Strategies: Committee-style aggregation methods (LogitVoting, Majority Voting) generally outperformed simply picking the "best worker" LMTurker, suggesting that ensembling LMTurkers leads to higher-quality training data.
- KL Divergence for Distillation: Training the small model S using KL divergence between predicted probabilities and LMTurker logits (a form of knowledge distillation) showed noticeable improvements over using discrete labels, especially on tasks with larger label sets.
Limitations and Future Work
- LMTurker Quality: The paper acknowledges that LMTurkers are not perfect oracles, and their annotation quality can vary. This necessitates strategies like quality-based filtering.
- Computational Cost of LMTurkers: While LMTurk reduces human labor, querying multiple large PLMs still incurs computational costs. Active learning helps mitigate this, but it's not entirely eliminated.
- Future Work: The authors suggest combining LMTurker annotations with human annotators in a human-in-the-loop setup to further enhance utility. Scaling LMTurk to multilingual few-shot learners and exploring more advanced distillation techniques are also promising directions.
Summary updated