Transfer Learning for Sequences via Learning to Collocate

Wanyun Cui, Guangyu Zheng, Zhiqiang Shen, Sihang Jiang, Wei Wang

Abstract

Aligned Recurrent Transfer (ART) is a novel framework for sequence-based transfer learning that moves beyond coarse layer-wise transfer. By enabling individual RNN cells to attentively extract fine-grained information from a source domain—a process termed "learning to collocate"—ART effectively aligns related semantic features across disparate domains. Experimental results in sequence labeling and sentiment analysis demonstrate that ART significantly outperforms existing state-of-the-art models, particularly in data-scarce scenarios.

Introduction

In Natural Language Processing (NLP), models trained on one domain (e.g., news articles) often fail when applied to another (e.g., social media) due to significant shifts in vocabulary and syntax. This challenge, known as the domain adaptation problem, is typically addressed via transfer learning: pre-training on a large source domain and fine-tuning on a smaller target domain.

However, standard transfer learning methods often rely on layer-wise transfer, where an entire sentence is compressed into a single vector before being passed to the target model. This "lossy" approach discards the word-level (cell-level) nuances required for precision tasks like Part-of-Speech (POS) tagging or Named Entity Recognition (NER). Furthermore, existing methods struggle to capture long-term dependencies (collocations) that may shift across domains.

Methods: Aligned Recurrent Transfer (ART)

To address these limitations, the authors introduce ART (Aligned Recurrent Transfer), which operates at the cell level of Recurrent Neural Networks (RNNs). Unlike traditional methods, ART allows every cell in the target RNN to directly access the hidden states of the source RNN.

The ART architecture showing cell-level transfer from source to target domains via corresponding and collocated paths.

Key Architectural Innovations

  • Cell-Level Information Transfer: Instead of transferring a single global vector, ART provides the target model with access to the full sequence of source hidden states.
  • Learning to Collocate: ART employs an attention mechanism to "scan" the source sentence for collocated words that help define a target word's meaning. This allows the model to align relationships even if sentence structures differ between domains.
  • Concentrate Gate ($u_i$): This specialized gate balances information from the corresponding position (word-for-word alignment) and collocated positions (contextual dependencies).
  • Update Gate ($z_i$): This gate determines the optimal integration of transferred source knowledge versus the target domain's own internal data.

Experimental Setup

ART was evaluated across two primary task types:

  1. Sentence Classification (Sentiment Analysis): Using the Amazon review dataset across four domains: Books, DVD, Electronics, and Kitchen.
  2. Sequence Labeling: Including POS Tagging (PTB to Twitter) and NER (CoNLL 2003 to Twitter).

To test robustness, the researchers simulated low-resource settings, using as little as 1% of the available target training data.

Key Results

ART consistently outperformed both standard baselines and specialized state-of-the-art (SOTA) transfer models like HATN and HRN.

Performance comparison of ART against baselines and SOTA models across Amazon review domains.

In sentiment analysis, ART achieved an average accuracy of 85.8%, a significant improvement over the no-transfer LSTM (76.3%) and the previous SOTA, HATN (78.3%). In sequence labeling tasks, ART maintained a substantial lead, particularly in "minimally supervised" tests. This suggests that cell-level transfer is highly efficient at extracting and applying knowledge from the source domain when target data is scarce.

Discussion and Conclusion

The success of ART highlights that for sequence-based tasks, intermediate RNN states are as valuable as final outputs. By exposing these states and using attention as an alignment tool, ART handles structural domain shifts more effectively than global transfer methods.

While ART introduces higher computational complexity ($O(n^2)$ due to the attention mechanism), its performance gains in low-resource environments are compelling. Future work may involve extending this "learning to collocate" philosophy to non-recurrent architectures like the Transformer, which already utilize attention but may benefit from this specific cross-domain alignment strategy.

Summary updated

BibTeX
@inproceedings{cui2019transfer,
  author = {Wanyun Cui and Guangyu Zheng and Zhiqiang Shen and Sihang Jiang and Wei Wang},
  title = {{Transfer Learning for Sequences via Learning to Collocate}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=VBMjYNvuSj},
}
Figure