NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SeqMix: Augmenting Active Sequence Labeling via Sequence Mixup

Rongzhi Zhang, Yue Yu, Chao Zhang

Abstract

Sequence labeling tasks like Named Entity Recognition (NER) and event detection are fundamental to NLP but require extensive human annotation. While Active Learning (AL) reduces this burden by selecting informative samples, it often underutilizes the queried data. We present SeqMix, a novel data augmentation framework that adapts the "mixup" strategy to sequence labeling. By performing linear interpolation in both embedding and label spaces and employing a GPT-2 based discriminator to filter low-quality synthetic sequences, SeqMix significantly improves model performance. Our results show that SeqMix provides substantial gains in low-resource settings, outperforming standard AL by over 10% in F1 score when data is extremely scarce.

Introduction

Modern deep learning models for sequence labeling are "label hungry," necessitating efficient annotation strategies. Active Learning (AL) addresses this by having humans label only the most informative samples. However, current AL methods typically use these samples exactly as they are, missing opportunities for further data enrichment.

Data augmentation for sequence labeling is notoriously difficult because discrete text tokens cannot be easily manipulated like image pixels. Simple heuristics like synonym replacement often break complex syntactic and label structures. SeqMix overcomes these hurdles by bringing the "mixup" augmentation technique—originally successful in computer vision—into the discrete world of text through embedding-space interpolation.

Methodology: The SeqMix Framework

SeqMix generates synthetic training examples by mixing pairs of sequences. The process involves several key innovations:

  1. Embedding and Label Mixup: Since direct averaging of words is impossible, SeqMix performs linear interpolation in the embedding space. It calculates a weighted average of embeddings from two sequences and maps the result back to the nearest tokens in the vocabulary. Simultaneously, it interpolates the labels to create "soft labels" for the synthetic tokens.
  2. Mixing Strategies: The framework offers three variants to balance diversity and structural integrity:
  3. Whole-sequence mixup: Interpolates entire sentences of equal length.
  4. Sub-sequence mixup: Identifies and mixes informative windows within two sentences, keeping the surrounding context intact.
  5. Label-constrained sub-sequence mixup: A stricter version that only mixes sub-sequences with consistent label structures.
Overview of the three SeqMix strategies: whole-sequence, sub-sequence, and label-constrained sub-sequence mixup.
  1. GPT-2 Discriminator: To prevent the model from learning from "gibberish," SeqMix uses a pre-trained GPT-2 model to calculate the perplexity of generated sequences. If a sequence is too unnatural (high perplexity), it is discarded.
  2. Informative Pairing: Sequences are paired based on "valid label density" to ensure that mixed segments contain meaningful entities or events rather than just background noise.

Experimental Results

The researchers evaluated SeqMix on three benchmarks: CoNLL-03 (NER), ACE05 (Event Detection), and a specialized Webpage NER dataset.

Performance Gains

SeqMix consistently improved standard active learning by 2.27% to 3.75% in F1 scores across all datasets. The impact was most dramatic in extreme low-data scenarios. For example, using only 200 labeled sentences for CoNLL-03, SeqMix provided a 12.06% improvement. Similar massive boosts were seen in ACE05 (8.86%) and the Webpage dataset (16.49%).

Performance comparison of different mixup strategies against standard active learning baselines.

Key Insights

  • Sub-sequences are Key: Mixing entire sentences often destroys syntactic structure. By focusing on sub-sequences, SeqMix preserves the "frame" of the original sentence while introducing local diversity.
  • Quality over Quantity: The GPT-2 discriminator acts as a crucial sanity check. Regularization via mixup is only beneficial if the synthetic samples are of high quality; otherwise, they introduce harmful noise.
  • Policy Agnostic: The method proved effective regardless of the underlying active learning query policy (e.g., Least Confidence vs. Normalized Token Entropy).

Conclusion and Future Work

SeqMix effectively multiplies the value of human-annotated data in sequence labeling. By combining embedding-space interpolation with a generative discriminator, it overcomes traditional hurdles in text augmentation. While the use of GPT-2 adds computational overhead, the significant performance gains in low-resource settings make it a powerful tool for real-world NLP projects. Future work may involve using more advanced language models to guide the mixup process or incorporating external knowledge bases to ensure semantic plausibility.

Summary updated

BibTeX
@inproceedings{zhang2020seqmix,
  author = {Rongzhi Zhang and Yue Yu and Chao Zhang},
  title = {{SeqMix: Augmenting Active Sequence Labeling via Sequence Mixup}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.691},
}
Figure