Augmented Natural Language for Generative Sequence Labeling

Ben Athiwaratkun, Cícero Nogueira dos Santos, Jason Krone, Bing Xiang

Researchers at AWS AI presented a novel approach to sequence labeling at EMNLP 2020. By reframing tasks like Named Entity Recognition (NER) and Slot Filling as text-to-text generation problems, they leverage the inherent semantic knowledge of large-scale pre-trained language models.

The Limitations of Token-Level Classification

Traditional NLP architectures treat sequence labeling as a classification task where each token is assigned a label from a predefined set (e.g., B-PER, I-ORG). This approach suffers from several limitations:

  1. Architectural Rigidity: Each new task requires a custom classification head.
  2. Semantic Blindness: Labels are treated as arbitrary indices, ignoring the descriptive meaning of terms like "location" or "person."
  3. Data Inefficiency: Models must learn the relationship between tokens and abstract labels from scratch, requiring large amounts of annotated data.

Methodology: Augmented Natural Language

The proposed framework utilizes a conditional generative model (specifically T5) to produce "augmented natural language." Instead of outputting a sequence of tags, the model generates a version of the input sentence where labels are embedded directly into the text.

The Augmented Natural Language format maps standard BIO tags to a text-to-text format.

As shown in the figure above, sentence-level intents are prefixed in double parentheses, while token-level spans are enclosed in brackets followed by their natural language labels. This format is fully invertible, allowing for seamless conversion back to standard evaluation formats.

Semantic Labeling

A key innovation is the use of "natural labels." By replacing cryptic tags (e.g., GPE) with descriptive words (e.g., city state country), the model can utilize its pre-trained knowledge to infer entity types even in zero-shot or few-shot scenarios.

Performance and Key Results

The generative approach demonstrates significant advantages in data-constrained environments.

F1 performance across different training data percentages, comparing the proposed model against BERT baselines.

Low-Resource and Few-Shot Success

In low-resource settings (0.25% of training data), the model achieved an F1 score of 63.83% on the SNIPS dataset, vastly outperforming the BERT baseline of 46.27%. In few-shot scenarios, the improvements were even more pronounced:

  • 1-shot: Accuracy increased from 70.4% to 81.0%.
  • 5-shot: Accuracy jumped from 75.0% to 90.9%.

Unified Task Handling

Because the output space is unified as natural language, a single model can be trained on disparate tasks (e.g., NER and Slot Labeling) simultaneously. The authors found that pre-training on one labeling task helps the model learn the syntax of the augmented language, which then transfers effectively to new, unseen tasks.

Conclusion

By treating sequence labeling as a generative task, this research provides a flexible and semantically aware alternative to traditional classification. While generative models introduce new challenges regarding inference latency and potential hallucinations, their superior performance in low-data regimes marks a significant step forward for practical NLP applications.

Summary updated

BibTeX
@inproceedings{athiwaratkun2020augmented,
  author = {Ben Athiwaratkun and Cícero Nogueira dos Santos and Jason Krone and Bing Xiang},
  title = {{Augmented Natural Language for Generative Sequence Labeling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.27},
}
Figure