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:
- Independent: Tasks use completely separate weights.
- Soft Sharing: Tasks maintain separate weights but are regularized by an $l_2$ distance penalty to prevent them from drifting too far apart.
- Hard Sharing: Both source and target tasks utilize identical weights for the layer.
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 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