Abstract
Multi-task learning (MTL) aims to leverage shared knowledge across diverse tasks to improve overall model performance. Recently, the field has shifted toward text-to-text (T2T) architectures, such as T5, which unify all tasks into a single string-to-string format. While these models have achieved state-of-the-art results, it remains unclear whether the T2T paradigm inherently mitigates traditional MTL challenges like task conflict and negative transfer. This study deconstructs the T2T transition into three factors—architecture, parameter sharing, and interface—to evaluate their impact on optimization. Our findings suggest that T2T models suffer from task conflict at rates nearly identical to canonical architectures, indicating that their success is driven by scale and pre-training rather than an architectural immunity to gradient interference.
Introduction
Multi-task learning promises a "free lunch" in machine learning: by training a single model on multiple tasks, the model should theoretically develop more robust representations through shared knowledge. However, practitioners frequently encounter negative transfer, a phenomenon where learning one task degrades performance on another. This is often attributed to task conflict, where the gradients of different tasks point in opposing directions, leading to optimization gridlock.
With the rise of models like T5 and GPT, the industry has moved from "canonical" MTL—which uses a shared encoder with task-specific heads—to a unified T2T approach. In T2T, a single encoder-decoder handles all tasks, which are triggered by natural language prompts. This paper investigates whether this unified interface actually reduces task conflict or simply masks the same underlying optimization hurdles.
Methodology: Deconstructing the T2T Paradigm
To isolate why T2T models behave the way they do, the authors break the transition from canonical MTL to T2T into three distinct factors:
- The Head (Factor 1): Replacing task-specific linear layers with an auto-regressive language model decoder.
- Parameter Sharing (Factor 2): Moving from independent heads for each task to a single, fully shared decoder.
- The Interface (Factor 3): Utilizing natural language prompts (e.g., "Translate to German:") and natural language labels instead of abstract class IDs.
The study compares traditional models, hybrid "Text-to-Text-ID" models (which use T2T decoders but keep them task-specific), and fully unified T2T models. Conflict is measured using two primary metrics: Directional Conflict (the degree to which task gradients diverge) and Magnitude Conflict (the variance in the strength of task updates).
Experimental Setup
The researchers evaluated these factors across two major benchmarks:
- GLUE: A suite of eight natural language understanding tasks, primarily focused on classification and regression.
- DecaNLP (The Natural Language Decathlon): A diverse set of nine tasks, including question answering, translation, and summarization, which are inherently well-suited for the T2T format.
Key Insights
Architecture is Not an Antidote
Despite the radical shift in task presentation, T2T models exhibit almost the exact same amount of negative transfer as canonical models. On the GLUE benchmark, both architectures experienced an average performance drop of approximately 2.5% when moving from single-task to multi-task settings. This suggests that the T2T format does not provide an inherent optimization advantage over traditional multi-head setups.
The Encoder Bottleneck
Analysis of gradient signals revealed that directional conflict in the shared encoder follows nearly identical trajectories across all architectures. This indicates that the "clash" between tasks occurs deep within the representation layers, regardless of how the final prediction is generated or formatted. The shared encoder remains the primary site of optimization tension.
The Role of Prompts and Specification
While prompts are essential for telling a T2T model which task to perform, the study found that "semantically rich" or diverse prompts (using multiple ways to ask the same question) do not reduce negative transfer. In fact, in some settings, diverse prompts increased negative transfer, likely by introducing unnecessary noise into the input distribution. Furthermore, models trained without any task prompts (relying solely on input distribution) suffered massive performance losses, proving that explicit task specification—not implicit data understanding—is the primary driver of T2T success.
Output Overlap and Labeling
The authors discovered that reusing the same tokens for different labels across tasks (e.g., using "0" and "1" for every classification task) is detrimental. Using distinct, non-overlapping tokens for different tasks helps the model maintain separate "internal logic," thereby reducing interference in the decoder.
Conclusion
The transition to text-to-text multi-task learning offers significant flexibility and ease of deployment, but it does not solve the fundamental problem of task conflict. T2T models like T5 face the same optimization challenges as the multi-head models that preceded them. These findings suggest that the research community must continue to develop conflict-mitigation algorithms specifically tailored for the fully-shared parameter spaces of modern transformer models. Future work should explore whether these patterns hold at the extreme scales of hundreds or thousands of tasks, where semantic prompting may play a more significant role.
Summary updated