Abstract: Han Guo, Ramakanth Pasunuru, Mohit Bansal. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).
2019.
Introduction
Multi-Task Learning (MTL) has become a cornerstone of modern Natural Language Processing, allowing models to leverage shared knowledge across related tasks. By training a "primary" task alongside "auxiliary" tasks, models often achieve better generalization. However, MTL implementation remains a significant challenge due to two primary "black box" hurdles: task selection and mixing ratios.
Currently, determining which auxiliary tasks are beneficial and how to balance their training frequency relies heavily on manual intuition or computationally expensive grid searches. As the pool of potential tasks grows, this trial-and-error approach fails to scale. AutoSeM addresses this by introducing a two-stage automated pipeline designed to optimize task selection and mixing ratios through a principled, Bayesian approach.
The AutoSeM Pipeline
AutoSeM operates in two distinct stages to navigate the vast search space of multi-task configurations efficiently.
Stage 1: Automatic Task Selection
The first stage treats auxiliary tasks as "arms" in a Multi-Armed Bandit (MAB) problem. Using Thompson Sampling with a Beta-Bernoulli distribution, the system selects tasks to train on and observes a reward based on improvements in the primary task's validation score. To account for the fact that a task's utility may change as the model matures, AutoSeM employs a non-stationary controller that discounts older observations, ensuring the selection process remains dynamic.
Stage 2: Mixing Ratio Learning
Once the most promising auxiliary tasks are identified, the system must determine the optimal "mixing ratio" (e.g., the relative frequency of training samples from each task). AutoSeM models the performance of these ratios using a Gaussian Process (GP). This allows the system to intelligently explore the ratio space, balancing the discovery of new configurations with the exploitation of those that have already demonstrated success.
Experimental Setup and Results
The researchers evaluated AutoSeM using the GLUE (General Language Understanding Evaluation) benchmark, a standard for Natural Language Understanding. The primary tasks included RTE, MRPC, QNLI, CoLA, and SST-2, with other GLUE classification tasks serving as the auxiliary pool. All models were built upon pre-trained ELMo embeddings.
AutoSeM consistently outperformed both single-task baselines and standard multi-task models across the board. Notable improvements included a 5.2% absolute gain on QNLI and a 4.7% boost on RTE compared to single-task baselines.
Key Insights
- The Necessity of Filtering: Ablation studies confirmed that both stages are vital. Without the initial Bandit-based filtering, the search space for mixing ratios becomes too vast for the Gaussian Process to optimize effectively.
- Counter-Intuitive Synergy: The system often identified beneficial task pairings that were not immediately obvious to human researchers. For instance, it found that QQP and MultiNLI were essential for maximizing performance on the RTE task.
- Efficiency: Unlike brute-force grid searches that scale exponentially, AutoSeM offers a linear-time alternative for finding high-performing MTL configurations, making it a more practical choice for complex multi-task environments.
Conclusion and Future Work
AutoSeM demonstrates that automating the "dark arts" of MTL can lead to significant performance gains with reduced manual effort. While the current framework utilizes static mixing ratios for the duration of training, future research could explore dynamic ratios that evolve as the model learns. Additionally, extending this framework beyond classification to more diverse task types, such as text generation, remains a promising avenue for exploration.
Summary updated