TL;DR
This paper tackles the challenge of designing optimal shared neural architectures for multi-task learning (MTL) by using reinforcement learning (RL) to automatically discover these structures. Their approach, inspired by Neural Architecture Search (NAS), employs a controller to select and assemble modules, effectively learning task relationships and hierarchies without human expertise, leading to improved performance across various NLP tasks.
What Problem Does This Paper Address?
Multi-task learning (MTL) aims to improve a model's performance on individual tasks by leveraging shared knowledge from related tasks. However, a crucial and difficult aspect of MTL is designing the "shared scheme" – deciding which parts of the neural network should be shared and how. This often requires extensive domain expertise and becomes incredibly complex and time-consuming as the number of tasks grows. Existing methods like hard-sharing (all tasks share the same initial layers) and soft-sharing (tasks contribute to shared modules with weighted sums) have limitations. A particular challenge is hierarchical sharing, where tasks have a natural pipeline or dependency structure (e.g., POS tagging feeding into NER), which is common in NLP but hard to design manually. Improper sharing can lead to "negative transfer," where performance actually degrades. This paper addresses the need for an automated, flexible, and scalable method to discover optimal shared architectures, especially those with hierarchical structures, for diverse NLP tasks.
Methods
The core of this paper's approach is using a reinforcement learning (RL) agent, specifically a controller, to learn the optimal shared architecture for multiple NLP tasks. This controller is inspired by Neural Architecture Search (NAS).
Here's how it works:
- Shared Module Pool: A predefined pool of shareable modules (e.g., Bi-LSTM layers) is available.
- Controller: An RNN-based controller takes a task embedding as input. At each step, it outputs an action, which is the index of a module to select from the pool.
- Architecture Assembly: The controller sequentially selects modules for a given task, stacking them to form a task-specific shared architecture. It can also output a "Stop" action to terminate the selection for that task.
- RL Training: The controller is trained using the REINFORCE algorithm. The "reward" for the controller is the performance (e.g., accuracy) of the assembled architecture on the specific task. This reward signal guides the controller to learn which module sequences lead to better performance.
- Simultaneous On-line Update Strategy: To efficiently train both the shared modules and the controller, they propose a novel strategy where both are updated simultaneously within each training batch. This is more efficient than updating them sequentially.
- Multi-sampling and Reward Normalization: To address potential reward sparsity and instability, they sample multiple architectures for each instance and normalize the rewards using a parameterized softmax function to stabilize training.
The key novelty lies in using RL to automatically discover the shared architecture, including its hierarchical structure, rather than relying on manual design or predefined rules.
Datasets
The paper evaluates their approach on two types of NLP tasks:
- Text Classification: They use a dataset comprising 16 tasks. 14 tasks are from different product review domains (e.g., Books, DVDs, Electronics) derived from the dataset by Blitzer et al. (2007). The remaining 2 tasks are movie reviews (IMDB and MR). Each sample has two class labels (positive/negative).
- Sequence Labeling: They use the OntoNotes 5.0 dataset. For this experiment, they select four tasks: Part-of-Speech (POS) tagging, Chunking, Named Entity Recognition (NER), and Semantic Role Labeling (SRL). This dataset is structured such that multiple annotations (tasks) are available for each sentence, allowing for the exploration of hierarchical relationships.
Key Insights and Ideas
- Automated Architecture Discovery: The most significant insight is that RL can effectively learn complex shared architectures for MTL, eliminating the need for manual engineering and expert knowledge.
- Implicit Hierarchy Learning: The controller can implicitly learn hierarchical structures. For instance, lower-level tasks like POS tagging might be assigned modules earlier in the sequence, while higher-level tasks like SRL might build upon those representations, mimicking natural NLP pipelines.
- Task Clustering: The learned task embeddings reveal that the model groups similar tasks together, suggesting it can identify task relationships and similarities to optimize sharing. For example, movie review tasks cluster together.
- Flexibility in Sharing: The approach allows for flexible sharing, where tasks can share overlapping modules without being forced to share everything, and unrelated tasks can maintain more private modules.
- Efficiency of Simultaneous Training: The proposed simultaneous on-line update strategy significantly accelerates the training process compared to traditional sequential updates.
Key Results
- Text Classification: The proposed model achieved an average accuracy of 87.4% across 16 tasks, outperforming baseline models (FS-MTL, SSP-MTL, PSP-MTL, CS-MTL) by 1.5% compared to the best baseline.
- Sequence Labeling: For the sequence labeling tasks (POS, Chunking, NER, SRL), the model also demonstrated superior performance, achieving an average accuracy of 94.85% when tasks were united across domains, and 94.74% when tasks were separated by domain. This indicates its ability to handle complex task relationships and implicit hierarchies.
- Qualitative Analysis: Visualizations of task embeddings (using t-SNE) confirmed that the model clusters similar tasks. Analysis of selected architectures for sequence labeling showed clear hierarchical patterns, with modules being selected in a sequence that reflects task dependencies.
Limitations and Future Work
- Scalability to Very Large Numbers of Tasks: While the approach is more scalable than manual design, the computational cost of training an RL controller can still be significant for an extremely large number of tasks.
- Module Design: The paper relies on a predefined pool of modules. Future work could explore learning the modules themselves or dynamically generating them.
- Exploration of Different RL Algorithms: The paper uses REINFORCE. Exploring other policy gradient methods or more advanced RL techniques might further improve efficiency and performance.
- Generalization to Other Domains: While tested on NLP, extending this approach to other domains like computer vision or speech processing could be a valuable future direction.
- Understanding Negative Transfer: While the model aims to mitigate negative transfer, further investigation into how it explicitly avoids or handles it would be beneficial.
Summary updated