Weakly supervised named entity tagging with learnable logical rules

Jiacheng Li, Haibo Ding, Jingbo Shang, Julian McAuley, Zhe Feng

Abstract

Named Entity Recognition (NER) typically requires extensive labeled datasets, creating a significant bottleneck for niche domains. This paper presents TALLOR (Tagging with Learnable Logical Rules), a framework that bootstraps high-performing NER systems from as few as 20 seed rules. By iteratively inducing compound logical rules from unlabeled data and employing a dynamic label selection strategy, TALLOR achieves performance comparable to systems utilizing large-scale dictionaries while maintaining human-interpretability.

Introduction

Named Entity Recognition (NER) is fundamental to natural language processing, yet the reliance on thousands of manually labeled examples limits its scalability. Weak supervision offers a solution by using heuristics or lexicons, but these often struggle with joint boundary detection and type classification, especially when expert-curated dictionaries are unavailable. TALLOR addresses this by learning complex rules from minimal human input.

Methodology

TALLOR operates through an iterative framework designed to expand a small set of "seed" rules into a robust tagging system.

Compound Logical Rules

Unlike simple keyword matches, TALLOR composes compound rules using logical connectives. For instance, combining part-of-speech (POS) tags with local context (e.g., If PreNgram == "lives in" AND POS == "PROPN" → Location) allows for more precise entity boundary detection.

Iterative Rule Induction

The framework follows a cyclic process:

  1. Pseudo-labeling: Current rules are applied to unlabeled data.
  2. Neural Training: A Bi-LSTM with Self-Attention is trained on these pseudo-labels.
  3. Rule Discovery: The neural tagger identifies high-confidence spans in the unlabeled text, which are then used to induce and score new candidate rules.
The TALLOR framework workflow illustrating the iterative cycle of rule application, neural training, and rule induction.

Dynamic Label Selection

To mitigate noise from incorrect rules, TALLOR uses a dynamic thresholding strategy. It calculates local (instance-level) and global (prototype-level) similarity scores to filter out low-confidence pseudo-labels, preventing the neural model from overfitting to errors.

Experimental Setup

TALLOR was evaluated on three benchmarks:

  • BC5CDR: Biomedical entities (chemicals/diseases).
  • CHEMDNER: Specialized chemical entities.
  • CoNLL2003: General-domain entities (Person, Location, Org). Training utilized unlabeled versions of these datasets, guided by 20–40 initial seed rules.

Results and Discussion

TALLOR demonstrates significant improvements over traditional rule-based weak supervision, with an average F1 score increase of 60% across the evaluated datasets.

Efficiency and Performance

A key finding is that TALLOR, starting with only 20 rules, can rival the performance of state-of-the-art models like AutoNER, which requires lexicons of over 2,000 terms. This highlights that learning the context around entities is often more powerful than exhaustive lists of entity names.

Performance analysis: (a) Iterative improvement of Precision, Recall, and F1; (b) F1 score vs. number of seeds; (c) Comparison with AutoNER based on dictionary size.

Interpretability

Beyond performance, TALLOR provides transparency. A user study indicated that 79% of induced rules are human-understandable, offering clear explanations for the model's predictions—a stark contrast to "black-box" neural architectures.

Conclusion

TALLOR effectively bridges the gap between low-resource rule-based systems and high-performance neural taggers. By automating the discovery of compound logical rules, it reduces the human effort required for NER while providing interpretable results. Future work will focus on resolving semantic confusion between similar categories and handling nested entity structures.

Summary updated

Abstract

We study the problem of building entity tagging systems by using a few rules as weak supervision. Previous methods mostly focus on disambiguating entity types based on contexts and expert-provided rules, while assuming entity spans are given. In this work, we propose a novel method TALLOR that bootstraps high-quality logical rules to train a neural tagger in a fully automated manner. Specifically, we introduce compound rules that are composed from simple rules to increase the precision of boundary detection and generate more diverse pseudo labels. We further design a dynamic label selection strategy to ensure pseudo label quality and therefore avoid overf itting the neural tagger. Experiments on three datasets demonstrate that our method outperforms other weakly supervised methods and even rivals a state-of-the-art distantly supervised tagger with a lexicon of over 2,000 terms when starting from only 20 simple rules. Our method can serve as a tool for rapidly building taggers in emerging domains and tasks. Case studies show that learned rules can potentially explain the predicted entities.
BibTeX
@inproceedings{li2021weakly,
  author = {Jiacheng Li and Haibo Ding and Jingbo Shang and Julian McAuley and Zhe Feng},
  title = {{Weakly supervised named entity tagging with learnable logical rules}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.352},
}
Figure