Automated Concatenation of Embeddings for Structured Prediction

Xinyu Wang, Yong Jiang, Nguyen Bach, Tao Wang, Zhongqiang Huang, Fei Huang, Kewei Tu

Abstract

Choosing the optimal combination of word embeddings for specific NLP tasks is traditionally a manual, trial-and-error process. We present ACE (Automated Concatenation of Embeddings), a framework that leverages reinforcement learning to automatically discover the most effective "cocktail" of embeddings for structured prediction. ACE consistently outperforms manual combinations and achieves state-of-the-art results across 21 datasets.

Introduction

Modern Natural Language Processing (NLP) offers a vast array of word representations, from traditional GloVe embeddings to character-level models like Flair and massive transformer-based contextual embeddings like BERT and XLM-R. While concatenating these representations often improves performance, the optimal combination is highly task- and language-dependent. With dozens of available embeddings, the search space grows exponentially, making manual testing computationally prohibitive. ACE addresses this by automating embedding selection through a data-driven process.

The ACE Framework

ACE formulates embedding selection as a Neural Architecture Search (NAS) problem, utilizing a reinforcement learning loop between two primary components:

  1. The Controller: A reinforcement learning agent that samples embedding combinations by generating a binary mask.
  2. The Task Model: A structured prediction model (e.g., BiLSTM-CRF) that evaluates the sampled configuration and provides a reward based on accuracy.
The ACE framework uses a reinforcement learning loop where a controller selects embedding combinations and a task model provides feedback.

To optimize efficiency, the controller uses a reward function incorporating the Hamming distance between configurations, helping it understand how specific additions or removals impact performance. Furthermore, weight sharing in the task model's linear layers allows for rapid evaluation, often finding optimal configurations in just a few GPU hours.

Experimental Results

The authors evaluated ACE across 6 tasks and 21 datasets, including Named Entity Recognition (NER), Part-of-Speech (POS) tagging, Chunking, Aspect Extraction (AE), and both Syntactic and Semantic Dependency Parsing.

ACE performance across various structured prediction tasks compared to 'All' (concatenating everything) and 'Random' baselines.

Key findings include:

  • Superiority over Baselines: ACE consistently outperformed the "All" baseline (concatenating every available embedding), demonstrating that redundant or noisy embeddings can degrade performance.
  • Task-Specific Synergies: The search revealed that certain embeddings are better suited for specific structures; for instance, XLM-R excelled in graph-structured tasks like dependency parsing, while M-BERT and ELMo were preferred for sequence labeling.
  • State-of-the-Art Performance: When combined with fine-tuned embeddings, ACE achieved SOTA results, such as a 94.6 F1 score on CoNLL English NER and 97.2 UAS on the Penn Treebank.

Conclusion

ACE transforms the "black art" of embedding selection into an efficient, automated process. By identifying task-specific synergies and filtering out noisy representations, it achieves superior performance across a wide range of structured prediction tasks. Future work may explore more complex fusion methods beyond simple concatenation and the use of ACE to guide knowledge distillation for more efficient production models.

Summary updated

BibTeX
@inproceedings{wang2021automated,
  author = {Xinyu Wang and Yong Jiang and Nguyen Bach and Tao Wang and Zhongqiang Huang and Fei Huang and Kewei Tu},
  title = {{Automated Concatenation of Embeddings for Structured Prediction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=rMQayrsaxc},
}
Figure