Introduction
Training deep neural networks for Natural Language Processing (NLP) typically requires a mountain of labeled data. However, traditional labeling is a "low-bandwidth" process: a human looks at a complex sentence and provides a single category (e.g., "Positive" or "Person"). This ignores the rich reasoning the human used to arrive at that decision. Existing annotation tools focus on making the UI faster, but they don't address the underlying information scarcity.
LEAN-LIFE is an open-source, web-based annotation framework that supercharges the data labeling process by asking annotators for both a label and a brief explanation. By capturing why an annotator chose a label, the system can use that logic to automatically label thousands of other similar examples, drastically reducing the total human hours required to build a high-performing model.
Methods: The LEAN-LIFE Workflow
LEAN-LIFE introduces a "LearnIng From Explanations" workflow integrated into a web-based UI. The system supports two main types of explanations:
- Triggers (for NER): When labeling a Named Entity, the user highlights "trigger" words in the sentence that helped them identify it (e.g., "had dinner at"). The system uses semantic similarity to find these triggers in unlabeled text and suggest labels.
- Natural Language Explanations (for RE and SA): For tasks like Relation Extraction or Sentiment Analysis, users provide a short explanation in natural language (e.g., "the word 'price' is preceded by 'fair'").
As shown in the architecture above, the system uses a semantic parser (specifically a Neural Execution Tree) to convert these sentences into logical forms. A Weak Supervision Framework then applies these logical rules to a large pool of unlabeled data to generate "weak labels." Finally, the model is trained on a combination of the small set of high-quality human labels and the large set of generated weak labels.
Experimental Evaluation
The framework was evaluated on three distinct NLP tasks using well-known benchmarks: TACRED for Relation Extraction, restaurant reviews from SemEval 2014 for Sentiment Analysis, and Laptop reviews for Named Entity Recognition.
Key Results
- Performance Boost: Models trained with LEAN-LIFE surpassed competitive baselines by 5–10 percentage points in F1 score.
- Efficiency: These gains were achieved using 2x fewer labeled instances than traditional methods. Even accounting for the extra time taken to explain, the approach was significantly more time-efficient for reaching target accuracy.
- Versatility: The system proved effective across three very different tasks, suggesting that learning from explanations is a robust strategy for general NLP.
Discussion and Insights
The core innovation of LEAN-LIFE is prioritizing information density over volume. While providing an explanation takes about twice as long as a simple label, the resulting information is worth far more. To facilitate this, the UI "nudges" users with auto-suggestions for predicates (like "appears left of") as they type, bridging the gap between free-form speech and structured logic.
Furthermore, the framework creates a virtuous cycle. As the model learns from explanations, its "annotation recommendations" back to the user become more accurate, further reducing the manual workload.
Limitations
Despite its success, the system faces challenges. Initial recommendations can be noisy if the model has no prior knowledge (the "cold start" problem). Additionally, natural language explanations are currently limited by the predefined predicates the semantic parser can understand. Future work will focus on more flexible parsers and improved denoising strategies for weak labels.
The source code for LEAN-LIFE is publicly available at http://inklab.usc.edu/leanlife/.
Summary updated