TL;DR
This paper introduces SharPT, a novel parameter-efficient method for adapting large language models (LLMs). SharPT learns a shared "skill latent space" from multiple source tasks, allowing it to generate task-specific soft prompts for new tasks with minimal fine-tuning, outperforming existing prompt tuning methods and matching full model fine-tuning.
What Problem Does This Paper Address?
Adapting massive pre-trained LLMs to new tasks is crucial, but full model fine-tuning is computationally expensive. Parameter-efficient methods like prompt tuning offer a solution by only updating a small fraction of parameters. Soft Prompt Transfer (SPOT) builds on this by transferring prompts learned from source tasks to target tasks. However, identifying the best source task for prompt transfer is difficult and costly. This paper tackles the challenge of efficiently and effectively transferring knowledge across diverse tasks by learning a generalized representation of "skills" that can be applied to any task.
Methods
SharPT introduces a "shared latent space" that acts as a repository of fundamental NLP "skills." For any given input instance, an instance encoder (which is frozen) generates an embedding. This embedding then queries the skill latent space to find the most relevant "skill vector." This skill vector is then fed into a lightweight "prompt generator" (also trained) to produce soft prompts. These soft prompts are prepended to the input and used to modulate a frozen LLM.
The key innovation lies in how this skill latent space is learned. It's trained end-to-end on a mixture of source tasks. During training on source tasks, both the skill latent space and the prompt generator are updated. Crucially, when transferring to a target task, the skill latent space is frozen, and only the prompt generator is fine-tuned. This makes adaptation to new tasks significantly faster and more efficient.
Datasets
The paper evaluates SharPT on a variety of NLP tasks, including:
- High-to-Low Resource Transfer: This setting uses 15 high-resource source tasks (e.g., DocNLI, Yelp-2, MNLI) and 10 low-resource target tasks (e.g., BoolQ, CB, COLA).
- Transfer Across Different Task Categories: This involves transferring knowledge between datasets from different NLP categories, such as QA tasks to sentiment analysis tasks, and paraphrase detection to sentence completion.
The specific datasets mentioned include DocNLI, Yelp-2, MNLI, QQP, QNLI, ReCORD, CXC, SQuAD, DROP, SST-2, WinoGrande, HellaSWAG, MultiRC, CosmosQA, RACE, BoolQ, CB, COLA, COPA, CR, MRPC, RTE, STS-B, WiC, and WSC.
Key Insights and Ideas
- Generalizable Skills: The core idea that a shared latent space can capture fundamental "skills" applicable across diverse NLP tasks is a powerful concept. This moves beyond task-specific prompt tuning towards a more generalized form of knowledge transfer.
- Efficient Target Task Adaptation: Freezing the skill latent space during target task training is a critical design choice that dramatically reduces computational cost and training time for new tasks.
- Instance-Level Prompt Generation: Unlike methods that rely on task-level prompts, SharPT generates prompts based on individual instances, allowing for more nuanced adaptation.
- Task Relations: The paper visualizes task relations based on skill vector usage, suggesting that more complex source tasks (like QA and NLI) transfer more knowledge to target tasks.
Key Results
- Outperforms Prior Methods: SharPT consistently outperforms existing prompt-based methods like PROMPTTUNING and SPOT-Retrieval across various tasks and settings, often by a significant margin.
- Matches Full Model Tuning: On models of different scales (T5-base, T5-large, T5-xl), SharPT achieves performance comparable to, and sometimes slightly better than, full model fine-tuning (MODELTUNING).
- Parameter Efficiency: SharPT updates only about 0.1% to 0.3% of the parameters compared to full model tuning, making it highly efficient.
- Ablation Studies: Results confirm that both the training on source tasks and the skill latent space are crucial for SharPT's performance.
Limitations and Future Work
- Simplicity vs. Performance: The authors acknowledge that while SharPT is simpler than SPOT, PROMPTTUNING is still arguably the simplest method. They suggest future work could focus on designing transfer learning approaches that retain or improve SharPT's performance while further simplifying the method, aiming for the simplicity of PROMPTTUNING.
- Further Simplification: The paper hints at exploring ways to make the method even simpler while maintaining its effectiveness.
Summary updated