Abstract
Adapting Large Language Models (LLMs) through full-parameter fine-tuning is increasingly computationally expensive. While Prompt Tuning (PT) offers a parameter-efficient alternative, it often suffers from instance insensitivity and a lack of cross-task knowledge transfer. This paper introduces Token-wise Prompt Tuning (TPT), a novel approach that utilizes a dynamic bank of trainable prompt tokens. By retrieving input-specific tokens and employing a two-stage training process—multi-task pre-training followed by joint tuning—TPT achieves superior performance to full fine-tuning while updating only 0.035% of the model's parameters.
Introduction
Large Language Models (LLMs) are typically adapted to specific tasks through fine-tuning, a process involving the update of billions of parameters. Prompt Tuning (PT) emerged as a parameter-efficient alternative, training only a small set of "soft prompt" vectors while keeping the backbone model frozen. However, standard PT faces two major challenges: instance insensitivity (using the same prompt for every example) and task silos (failing to capture cross-task knowledge).
To address these, researchers developed Token-wise Prompt Tuning (TPT). This method replaces static prompts with a dynamic "bank" of prompt tokens, allowing the model to retrieve specific tokens tailored to each individual input. By pre-training these tokens across multiple tasks, TPT captures general linguistic features that enhance performance on downstream target tasks.
Methodology
TPT treats prompts as a collection of individual, trainable pieces rather than a single block. The architecture consists of three core components:
- Token-wise Prompt Bank: A repository of trainable soft prompt tokens.
- Pooling and Retrieval Modules: For every input, a pooling module generates a feature vector. The retrieval module then calculates similarity scores between this vector and the tokens in the bank, selecting the top k relevant tokens.
- Dynamic Assembly: The retrieved tokens are concatenated with the input to form a custom, instance-dependent prompt.
The training process occurs in two stages. In the Pre-training Stage, the prompt bank is trained across multiple high-resource source tasks (e.g., MNLI, SQuAD) to absorb broad linguistic knowledge. In the Joint Tuning Stage, the model learns to combine these retrieved instance-level prompts with a shared task-level prompt for a specific target task, ensuring both general and specific context are captured.
Experimental Setup
The study evaluates TPT across 14 target datasets, including the full GLUE and SuperGLUE benchmarks. The system was pre-trained on six high-resource datasets (MNLI, QNLI, QQP, SST-2, SQuAD, and ReCoRD). Experiments primarily utilized the T5-base model (220M parameters), with additional scaling tests performed on T5-small, T5-large, and T5-3B.
Results and Discussion
TPT demonstrates significant improvements over both standard prompt tuning and full-parameter fine-tuning (FT).
- Superior Performance: TPT outperformed FT by 0.7% on GLUE and 4.7% on SuperGLUE. This is particularly notable because FT requires training 2,800 times more parameters than TPT.
- Efficiency: The method achieves state-of-the-art results while updating only 0.035% of the total parameters in a T5-base model.
- Knowledge Transfer: In few-shot scenarios (4 to 32 examples), TPT consistently outperformed methods like Adapters and standard PT, validating the effectiveness of the pre-trained prompt bank in transferring knowledge to data-scarce tasks.
The results suggest that decomposing prompts into individual tokens expands the search space exponentially, allowing the model to find more optimal configurations for diverse inputs. Furthermore, the performance gap between TPT and other methods widened as the backbone model size increased, indicating strong scalability.
Conclusion and Future Work
Token-wise Prompt Tuning represents a significant step forward in parameter-efficient fine-tuning. By moving from static task-level prompts to dynamic, instance-level token retrieval, TPT achieves high accuracy with minimal computational overhead. Future research may explore the on-the-fly generation of prompt tokens and the development of universal prompt banks that span even broader NLP domains.
Summary updated