Abstract
Multi-Task Learning (MTL) is a powerful technique for enhancing the performance of Large Language Models (LLMs) by training them on multiple related tasks simultaneously. However, selecting the optimal combination of datasets remains a significant challenge due to the combinatorial explosion of possibilities and the risk of negative transfer. This paper presents an iterative framework that utilizes a surrogate neural network to predict the performance of dataset combinations. By refining these predictions through a feedback loop, the system identifies optimal dataset mixes with high efficiency. Our evaluation across 12 biomedical NLP datasets shows substantial improvements in F1 scores, particularly for tasks with low initial performance, demonstrating the framework's ability to uncover non-obvious, beneficial dataset pairings.
Introduction
The efficacy of Multi-Task Learning (MTL) depends heavily on the selection of auxiliary datasets. While training on multiple tasks can improve generalization, the number of possible dataset combinations grows exponentially with the number of available sources. For instance, choosing from 11 auxiliary datasets results in 2,048 possible combinations, making exhaustive training and evaluation computationally prohibitive. Furthermore, "negative transfer"—where adding a dataset degrades performance—complicates the selection process, which is traditionally guided by heuristic or manual trial-and-error.
This research addresses the "combinatorial explosion" by automating the selection process through a predictive framework, moving beyond "gut feeling" toward a systematic, data-driven approach for optimizing MTL.
Methodology
The proposed framework operates as an iterative loop consisting of four primary modules:
- Combination Generator: Produces an initial set of diverse dataset combinations to establish a performance baseline.
- Instruction-Tuning: Fine-tunes a representative LLM (Llama3-8B) on the generated combinations.
- Result Collection: Aggregates performance metrics (F1 scores) into a lookup table.
- Neural Network Predictor: A two-layer surrogate neural network is trained on the collected results. It takes a binary vector representing the dataset combination as input and outputs a predicted F1 score.
The framework iteratively uses the predictor to identify the most promising untested combinations, which are then verified through actual model training. This cycle continues until performance gains plateau.
Experimental Setup
The framework was evaluated using 12 biomedical NLP datasets categorized into four task types:
- Relation Extraction (RE): BioRED, DDI, and GIT.
- Event Extraction (EE): PHEE, GENIA2011, and GENIA2013.
- Named Entity Recognition (NER): BC5CDR, BC2GM, and BC4CHEMD.
- Text Classification (TC): ADE, PubMed20krct, and HealthAdvice.
Biomedical NLP was selected as the primary domain due to its inherent complexity and the overlapping nature of its tasks, which typically benefit from the cross-task knowledge transfer provided by MTL.
Results and Discussion
The iterative framework yielded significant performance improvements across the board:
- Performance Gains: The most dramatic improvements were observed in tasks with low baseline performance (F1 < 60). For example, BioRED (RE) improved from 53.52 to over 64, while GENIA2011 (EE) rose from 34 to 57.
- Efficiency: The system converged on near-optimal configurations within approximately a dozen iterations, a massive reduction in compute compared to testing all 2,048 combinations.
- Counter-Intuitive Findings: The framework successfully identified beneficial combinations in NER and TC tasks where initial manual testing suggested MTL might be detrimental. This highlights the framework's ability to find non-obvious synergies between datasets.
- Generalizability: As the framework treats the underlying LLM and datasets as black boxes, it is potentially applicable to diverse domains such as law or finance.
Conclusion and Future Work
This study demonstrates that a simple surrogate model can effectively navigate the complex landscape of dataset selection for MTL. While the current work focused on Llama3-8B and fixed hyperparameters, future research will explore the framework's performance across different model architectures (e.g., Mistral, Qwen) and investigate the impact of hyperparameter optimization within the selection loop.
Summary updated