Abstract
GIRNet (Gated Interleaved Recurrent Network) is a novel multi-task learning (MTL) architecture designed to dynamically interleave auxiliary expert models at the token level. By utilizing a gating mechanism to create a composite hidden state, GIRNet allows for fine-grained knowledge transfer across tasks without requiring manual labels for task switches. This approach is particularly effective for low-resource tasks with high internal variance, such as code-switched sentiment analysis and target-dependent sentiment classification. Our experiments demonstrate that GIRNet achieves state-of-the-art performance across multiple benchmarks by effectively "daisy-chaining" expert knowledge.
Introduction
In Natural Language Processing, researchers often face the challenge of a "primary" task with limited data alongside several "auxiliary" tasks with abundant data. A classic example is code-switched text, where a speaker alternates between languages (e.g., English and Spanish) within a single sentence. Standard MTL approaches typically share parameters at a coarse, layer-wise level, which fails to capture the word-by-word shifts in expertise required for such sequences. Manually labeling these switches is prohibitively expensive. GIRNet addresses this by automatically interleaving experts at the token level, learning when to switch based solely on the primary task objective.
Methodology
The GIRNet architecture is composed of three primary elements:
- Auxiliary LSTMs (The Experts): These are standard Recurrent Neural Networks trained on high-resource auxiliary tasks (like monolingual POS tagging or general sentiment analysis).
- The Gating LSTM (The Controller): This network processes the primary input and outputs a "gate" value (a scalar between 0 and 1) for each expert at every time step.
- The Composite State Sequence: This is the core innovation. Instead of just concatenating outputs, GIRNet creates a composite hidden state by taking a weighted sum of the auxiliary experts' states based on the gate values.
Crucially, this composite state is fed back into the auxiliary cells at the subsequent time step. This "daisy-chaining" ensures that the model maintains a coherent memory even as it transitions between experts. Furthermore, if the gates sum to less than 1, the model can effectively "skip" updates for irrelevant tokens, preserving the hidden state and mitigating vanishing gradient issues.
Experimental Setup
GIRNet was evaluated on three distinct applications:
- Code-Switched Sentiment Analysis: English-Spanish social media text, using monolingual English and Spanish sentiment data as auxiliary tasks.
- Code-Switched POS Tagging: Hindi-English text, with monolingual Hindi and English POS datasets (CoNLL 2000) as auxiliaries.
- Target-Dependent Sentiment Classification (TDSC): Identifying sentiment toward specific entities, using whole-passage sentiment (Yelp 2014) as an auxiliary task.
Results and Analysis
GIRNet established new state-of-the-art results across all evaluated tasks, consistently outperforming competitive baselines such as Hard Parameter Sharing, Meta-MTL, and Cross-stitch networks. For instance, in Code-Switched Sentiment Analysis, GIRNet achieved 63.30% accuracy compared to 59.22% for a standard LSTM. In TDSC (Laptop dataset), accuracy reached 75.86%, a significant improvement over the 71.38% baseline.
Qualitative analysis via gate heatmaps reveals that the model successfully learns to "open the gates" for words relevant to the target entity while "closing" them for filler words or irrelevant sentence segments. This unsupervised interleaving confirms that the model can identify task-relevant expertise without explicit language or switch labels.
Conclusion
GIRNet demonstrates the power of fine-grained, token-level multi-task learning. By dynamically selecting the best expert for every word, it achieves superior performance on complex sequence tasks. While the current implementation faces computational overhead due to parallel LSTM execution and assumes uniform hidden dimensions across experts, it provides a robust framework for future research into scalable, adaptive multi-task architectures.
Summary updated