Dynamic Transfer Learning for Named Entity Recognition

Parminder Bhatia, Kristjan Arumae, Busra CelikkayaarXiv 2018

Abstract

Named Entity Recognition (NER) in specialized domains, such as clinical medicine, is often hampered by the scarcity of annotated data. While transfer learning offers a path forward by leveraging knowledge from related source tasks, the optimal configuration for parameter sharing between tasks remains a significant engineering challenge. We discuss the development of Dynamic Transfer Networks (DTN), a gated architecture that automates the discovery of knowledge-sharing strategies. By replacing exhaustive manual searches with a learnable gating mechanism, DTN achieves state-of-the-art performance in low-resource medical domains while significantly reducing computational overhead.

Introduction

Building robust NER systems for clinical notes is notoriously difficult. Clinical text is characterized by shorthand, non-standard abbreviations, and high specialization—for instance, cardiology notes differ substantially from radiology reports. Transfer learning, which utilizes a "source" task to improve performance on a "target" task, is a standard solution for such low-resource settings. However, it introduces the "Parameter Sharing" problem: engineers must decide which neural network layers should be shared and which should remain task-specific. As models grow in depth, the number of possible configurations increases exponentially, often requiring dozens of training runs to find an optimal setup.

The Tunable Transfer Network (TTN)

To systematically explore the sharing space, researchers first developed the Tunable Transfer Network (TTN). This modular framework allows for manual selection between three degrees of sharing for each layer:

  1. Independent: Tasks use completely separate weights.
  2. Soft Sharing: Tasks maintain separate weights but are regularized by an $l_2$ distance penalty to prevent them from drifting too far apart.
  3. Hard Sharing: Both source and target tasks utilize identical weights for the layer.
Comparison of sharing strategies: Independent (red), Soft Sharing (yellow), and Hard Sharing (green).

While TTN provides a structured way to test configurations, the search space remains a bottleneck. For a 3-layer model, there are 27 possible configurations, making manual tuning inefficient.

Dynamic Transfer Networks (DTN)

The Dynamic Transfer Network (DTN) addresses the limitations of TTN by automating the sharing process. Instead of a fixed manual choice, DTN employs gated mechanisms—similar to highway networks—to learn the optimal representation dynamically during training.

The Dynamic Transfer Network (DTN) architecture utilizing gating mechanisms ($g_1, g_2$) for automated knowledge sharing.

The DTN architecture allows for granular, token-level adaptation. For example, the model can choose to favor shared weights for common medical terms like "Aspirin" while relying on task-specific weights for highly specialized jargon. This flexibility allows the model to "collapse" the vast search space of the TTN into a single, efficient training session.

Experimental Results

The DTN framework was evaluated across several clinical datasets (i2b2 2009/2010) and general benchmarks (CoNLL 2003). Key findings include:

  • Performance Gains: In low-resource medical tasks, the transfer learning approach yielded an average F1 gain of 36.66% over non-transfer baselines.
  • Efficiency: DTN matched or exceeded the performance of the best manually tuned TTN configurations while requiring only a single training run.
  • Generalization: On the CoNLL dataset with only 10% training data, the DTN (HS) variant achieved an F1 score of 82.12, outperforming the average of all manual configurations.
  • Interpretability: Visualization of gate activations revealed that the model learns distinct strategies for different entity types, such as favoring different sharing modes for "Medication Names" versus "Dosage" information.

Conclusion

Dynamic Transfer Networks represent a significant step toward automating the design of transfer learning architectures. By moving from manual parameter-sharing searches to learnable gating mechanisms, DTN provides a scalable and high-performing solution for NER in specialized, low-resource domains. Future research will explore the application of these dynamic gating strategies to broader sequence-to-sequence tasks such as machine translation and dialogue systems.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
i2b2 TTPDTNmacro F174.46Named Entity Recognition · split: test · target-training-data=10%
Source quote
L356: For the first task, the dynamic model achieved a score of 74.46, and DTN (HS) outperformed all but the best two TTN, and scoring more than one standard deviation higher from the mean of the 27 TTN models.
Affiliate medicationDTNmacro F169.51Named Entity Recognition · split: test · target-training-data=5%
Source quote
L211: DTN │ 74.62 │ 65.01 │ 69.51
Affiliate medicationDTN (HS)macro F169.95Named Entity Recognition · split: test · target-training-data=5%
Source quote
L213: DTN (HS) │ 72.83 │ 66.93 │ 69.95
CoNLL 2003 EnglishDTN (HS)macro F182.12+0.14 vs baselineNamed Entity Recognition · split: test · target-training-data=10%
Source quote
L303: DTN (HS) │ 82.45 │ 81.78 │ 82.12
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
CoNLL 2003 EnglishTTN (HIH) baselinemacro F181.98Named Entity Recognition · split: test · target-training-data=10%
Source quote
L300: HIH │ 82.74 │ 81.23 │ 81.98
BibTeX
@misc{bhatia2018dynamic,
  author = {Parminder Bhatia and Kristjan Arumae and Busra Celikkaya},
  title = {{Dynamic Transfer Learning for Named Entity Recognition}},
  year = {2018},
  eprint = {1812.05288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.05288},
}
Figure