Dynamic Task Vector Grouping for Efficient Multi-Task Prompt Tuning

Peiyi Zhang, Richong Zhang, Zhijie Nie, Ziqiao Wang

Abstract: Multi-task prompt tuning utilizes multiple high-resource source tasks to improve performance on low-source target tasks. Existing approaches transfer the soft prompt trained by combining all source tasks or a single “high-similar” source task one-time-only. However, we find that the optimal transfer performance often comes from a combination of source tasks, which is neither one nor all. Further, we find that the similarity between source and target tasks also changes dynamically during fine-tuning after transferring, making similarity calculation in the initiation stage inadequate. To address these issues, we propose a method called Dynamic Task Vector Grouping (DTVG), whose core ideas contain (1) measuring the task similarity with task vectors instead of soft prompt, (2) grouping the optimal source task combination based on two metrics: target similarity and knowledge consistency; (3) dynamically updating the combination in each iteration step. Extensive experiments on the 26 NLP datasets under different settings demonstrate that DTVG effectively groups similar source tasks while reducing negative transfer, achieving state-of-the-art performance.

Introduction: The Challenges of Static Multi-Task Transfer

Prompt Tuning (PT) has emerged as a highly parameter-efficient method for adapting large language models (LLMs) by training only a small set of "soft prompt" vectors. While effective for high-resource tasks, PT often struggles with low-resource scenarios where data is insufficient for prompt convergence. To mitigate this, researchers typically employ multi-task transfer, leveraging knowledge from high-resource source tasks.

However, current transfer paradigms suffer from two primary limitations: the "One or All" fallacy and static similarity assumptions. Existing methods either transfer from a single most-similar task or from a combination of all available source tasks. As shown in empirical studies, using all tasks can lead to "negative transfer," where unrelated or conflicting knowledge degrades target performance. Furthermore, task similarity is not a static property; the relationship between source and target tasks evolves as the model fine-tunes on the target data.

Empirical evidence showing that task similarity is dynamic and that adding more source tasks can lead to negative transfer.

Methodology: Dynamic Task Vector Grouping (DTVG)

To overcome these hurdles, we introduce Dynamic Task Vector Grouping (DTVG). This framework shifts from static initialization to a dynamic "Part For One" strategy, selecting the optimal subset of source tasks at every training iteration.

Comparison of prompt transfer strategies: One For One, ALL For One, and the proposed Part For One (DTVG).

1. Task Prompt Vector (TPV) Learning

Rather than comparing raw soft prompts, DTVG utilizes "Task Prompt Vectors" (TPV). A TPV is defined as the difference between the tuned prompt and the initial prompt ($P^* - P_{init}$). By focusing on the direction of parameter change rather than static embedding values, the dot product of these vectors provides a more reliable metric for task similarity.

2. Dynamic Grouping and Merging

During the fine-tuning of the target task, DTVG performs a greedy search in every iteration to identify the best source task combination based on two key metrics:

  • Target Similarity (TS): Measures how well a source task aligns with the current state of the target task.
  • Knowledge Consistency (KC): Evaluates whether selected source tasks provide consistent knowledge or if they introduce internal conflicts.

The selected TPVs are then merged with the target task's vector to update the soft prompt for the current batch. This dynamic update ensures the model always leverages the most relevant auxiliary knowledge as the target task converges.

Experimental Results

We evaluated DTVG across a comprehensive suite of 26 NLP datasets, including GLUE, SuperGLUE, MRQA, and various NLG benchmarks.

  • Performance Gains: DTVG achieved state-of-the-art results, notably on low-resource datasets. For instance, on the CoLA dataset, performance increased from 10.6% (vanilla PT) to 69.1%. On SuperGLUE, DTVG reached an average score of 78.9, significantly outperforming existing transfer methods like SPoT and ATTEMPT.
  • Efficiency: The method is highly parameter-efficient, tuning only 0.035% of total model parameters. Despite the dynamic grouping, the computational overhead is minimal, adding only ~8.7% to training time without requiring additional gradients for the grouping step.
  • Generalization: While primarily validated on T5, DTVG demonstrated robust performance when applied to the Llama-3 model family (1B to 8B parameters), proving its applicability to modern decoder-only architectures.

Conclusion

DTVG addresses the core inefficiencies of multi-task prompt tuning by recognizing that task similarity is dynamic and that the optimal source knowledge often resides in a specific, evolving subset of tasks. By utilizing task vectors and a dynamic grouping strategy, DTVG effectively mitigates negative transfer and provides a scalable, efficient path for adapting LLMs to low-resource domains.

Summary updated

BibTeX
@inproceedings{zhang2025dynamic,
  author = {Peiyi Zhang and Richong Zhang and Zhijie Nie and Ziqiao Wang},
  title = {{Dynamic Task Vector Grouping for Efficient Multi-Task Prompt Tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=6XASvkvgDl},
}
Figure