Transfer Learning for Sequences via Learning to Collocate

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

TL;DR

Researchers have developed Aligned Recurrent Transfer (ART), a novel framework that moves beyond "layer-wise" transfer learning to "cell-level" information sharing. By using an attention mechanism to align word collocations across domains, ART preserves fine-grained semantic details, significantly outperforming state-of-the-art models in sentiment analysis and sequence labeling tasks.

What Problem Does This Paper Address?

In Natural Language Processing (NLP), we often face "data sparsity"—the target domain we care about (like medical notes or specific social media niches) has very little labeled data. Transfer learning usually solves this by training a model on a "source" domain with plenty of data and then adapting it.

However, traditional RNN-based transfer learning has a major flaw: it often treats a whole sentence as a single vector (layer-wise transfer). This "bottleneck" loses the fine-grained, word-by-word information necessary for tasks like Part-of-Speech (POS) tagging or Named Entity Recognition (NER). Furthermore, a word’s meaning often depends on its "collocations"—other words it frequently appears with, even if they are far apart in the sentence.

An example of word collocation where context words modify the target word across sequences.

Standard transfer methods struggle to map these complex, long-term dependencies from one domain to another.

Methods

The authors introduce ART (Aligned Recurrent Transfer), which operates under a pre-training and fine-tuning framework. Its architecture consists of two main innovations:

The Aligned Recurrent Transfer (ART) architecture, demonstrating both corresponding and collocated cell-level transfers.
  1. Cell-Level Transfer: Instead of just transferring the final output of a neural network, ART connects every individual cell in the target domain's RNN to the source domain's cells. This ensures that the "hidden state" of every single word is informed by the source knowledge.
  2. Learning to Collocate (Attention): ART doesn't just look at the word in the same position (e.g., the 3rd word in the source vs. the 3rd word in the target). It uses an attention mechanism to let each target cell "scan" the entire source sequence. This allows the model to identify and transfer information from "collocated" words—words that provide essential context—regardless of their position.
  3. The Concentrate Gate: To balance these inputs, the model uses a gate to decide how much information to take from the corresponding word position versus the collocated (attended) word positions.

Datasets

The model was evaluated across two primary types of tasks:

  • Sentiment Analysis: Using the Amazon Review Dataset, covering four domains: Books, DVD, Electronics, and Kitchen.
  • Sequence Labeling:
    • POS Tagging: Using the Penn Treebank (PTB) and a Twitter corpus.
  • NER: Using CoNLL 2003 and the Twitter corpus.
  • Low-Resource Simulation: The authors specifically tested "minimally supervised" scenarios, using as little as 1% of the available training data for the target domain to see how well the transfer mechanism compensated for missing data.

Key Insights and Ideas

  • Granularity Matters: The "aha moment" here is that for sequences, the "summary" vector of a sentence is a lossy representation. By opening up the communication lines between individual cells, the model retains the nuance of word-level semantics.
  • Domain Relevance > Scale: Interestingly, the authors argue that a small but domain-relevant source corpus can be more effective for pre-training than a massive, domain-independent corpus (like the one used for the original BERT). Relevance helps overcome the disadvantage of limited scale.
  • Contextual Alignment: The attention mechanism effectively "translates" context. For example, if the word "hate" in the target domain is modified by "sometimes," ART can look back at how "sometimes" functioned in the source domain to better understand the intensity of the sentiment.

Key Results

ART consistently outperformed both standard baselines (like LSTMs without transfer) and sophisticated competitors (like DANN, HATN, and even pre-trained models like BERT/ELMo in specific contexts):

  • Sentiment Analysis: ART achieved an average accuracy of 85.8%, a significant jump from the 76.3% achieved by a standard LSTM and the 81.7% of the previous SOTA (AMN).
  • Sequence Labeling: In POS tagging on Twitter data, ART outperformed the Hierarchical Recurrent Network (HRN) by 2.2%.
  • Data Efficiency: In "scarce data" tests, ART’s performance lead actually widened, proving it is exceptionally robust when target labels are hard to come by.

Limitations and Future Work

  • Computational Complexity: Because ART uses an attention mechanism that compares every target word to every source word, the computational cost is $O(n^2)$ per sentence. This makes it slower than simpler transfer methods.
  • RNN Focus: While the paper focuses on RNNs and LSTMs, the authors note that the "attentive transfer" logic could be applied to other architectures like Transformers, though they did not implement that in this specific study.
  • Future Directions: The authors suggest exploring how to deploy this attentive transfer mechanism over non-recurrent structures to see if the cell-level benefits persist in purely attention-based models.

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