TL;DR
When training text classifiers with limited data, should domain experts spend their time labeling individual examples or writing heuristic rules? This paper introduces INTERVAL, an interactive framework that automatically extracts high-level candidate rules (via LLM prompting) and asks experts to validate both rules and instances. INTERVAL significantly outperforms traditional active learning and weak supervision, achieving with just 10 queries what standard methods fail to match with 100.
What Problem Does This Paper Address?
Supervised machine learning models thrive on massive labeled datasets, which are expensive and time-consuming to create. Weakly Supervised Learning (WSL) attempts to solve this by using expert-designed "labeling rules" (e.g., if a text contains the word "prizes", label it as Spam) to programmatically label data. However, expecting experts to write a comprehensive, highly accurate set of rules upfront in a "single shot" is incredibly difficult.
Alternatively, Active Learning (AL) asks experts to label individual instances sequentially. While this provides high-quality labels, it lacks the scaling efficiency of rules, where a single rule can instantly label thousands of unlabeled documents. The authors address a fundamental question: How can we interactively combine rule generation and instance labeling to make the absolute best use of an expert's limited time?
Methods
The authors propose INTERVAL (INTEractive Rule discoVery for weAkly supervised Learning), a human-in-the-loop framework that bridges the gap between active learning and weak supervision.
The workflow operates in an iterative loop:
- Teacher-Student Co-Training: The system maintains a "Teacher" model (which aggregates the current rules) and a "Student" model (the target classifier). They are co-trained using a small labeled set and a large unlabeled pool.
- Active Instance Selection: Unlabeled data is hierarchically clustered using BERT embeddings. INTERVAL selects ambiguous instances from low-purity clusters based on the entropy of the Student's predictions.
- Automated Rule Extraction: Once the expert provides a label for a selected instance, INTERVAL automatically generates candidate rules that explain that label. Instead of relying solely on surface-level keywords, it extracts rich predicates combining n-grams, linguistic features (POS tags, named entities), and prompt-based features generated by querying a pre-trained language model (e.g., RoBERTa).
- Interactive Rule Validation: The top candidate rules are presented to the expert to accept or reject. Accepted rules are instantly integrated into the Teacher model to weakly label large swaths of the remaining unlabeled data.
Datasets
The framework was evaluated across six diverse, standard text classification benchmarks from the WRENCH repository:
- YouTube: Spam comment classification.
- SMS: Spam text message classification.
- IMDB: Movie review sentiment analysis.
- Yelp: Restaurant review sentiment analysis.
- TREC: Question type classification (6 classes).
- AGNews: News topic classification (4 classes).
Key Insights and Ideas
- Precision > Coverage: By analyzing over 1,000 Teacher-Student configurations, the authors discovered that a rule's precision is far more critical than its coverage for training an accurate student model. Counterintuitively, a higher-F1 Teacher model does not guarantee a higher-F1 Student model.
- LLMs as Rule Generators: Traditional rule-mining fails when documents don't share exact words. By prompting an LLM (e.g., filling in the blank:
"Overall, the experience is [MASK]"), INTERVAL extracts high-level semantic features (like"terrible") that capture common patterns across structurally diverse text. - The Multiplier Effect of Hybrid Feedback: Validating a rule provides a massive data-labeling shortcut. The authors demonstrate that querying both rules and instances is vastly superior to querying instances alone, even when validating a rule takes significantly more time than labeling a single instance.
Key Results
- Outperforming the State-of-the-Art: INTERVAL outperformed standard non-interactive weakly supervised approaches (like ASTRA) by an average of 7% in macro-F1 score across all 6 datasets.
- Extreme Sample Efficiency: In low-budget settings, INTERVAL required only 10 queries to reach F1 values that standard active learning methods could not achieve even after 100 queries.
- Robust to Cost Asymmetry: The hybrid approach remained more effective than pure active learning even when assuming that validating a single rule is up to 9 times more expensive (in terms of time/cost) than labeling a single instance (specifically observed on the Yelp dataset).
Limitations and Future Work
- Simulated Experts: The evaluation relied on simulated expert feedback using ground-truth labels (e.g., a rule is automatically accepted if its true accuracy on the unlabeled set exceeds a threshold). Real-world user studies are required to evaluate actual human cognitive load.
- Fixed Templates: The prompt-based rules currently rely on static templates from PromptSource. Future iterations could explore letting the system or the expert dynamically edit or generate these templates.
- LLM-in-the-Loop: The authors suggest that instead of actual human experts, large language models (like ChatGPT) could act as the training-time oracle to validate rules, offering a cheaper alternative to human labor before deploying a smaller, faster student model for inference.
Summary updated