NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PTP: Boosting Stability and Performance of Prompt Tuning with Perturbation-Based Regularizer

Lichang Chen, Jiuhai Chen, Heng Huang, Minhao Cheng

Abstract

Prompt tuning has emerged as a parameter-efficient alternative to full fine-tuning for large language models (LLMs). However, its adoption is hindered by significant performance instability across different random seeds. This paper introduces Prompt Tuning with Perturbation-based regularizer (PTP), a framework designed to stabilize the training process by smoothing the model's loss landscape. By employing random noise and adversarial perturbations in both embedding and text spaces, PTP achieves state-of-the-art results on Natural Language Understanding (NLU) benchmarks while drastically reducing performance variance.

Introduction

As language models (LMs) scale to hundreds of billions of parameters, the traditional approach of fine-tuning the entire model for every downstream task has become computationally and storage-prohibitive. Prompt tuning offers a compelling alternative: the massive backbone LM remains frozen, and only a small set of continuous "prompt" embeddings prepended to the input are trained. While this reduces the number of tunable parameters by orders of magnitude, it introduces a critical challenge: extreme instability.

Research indicates that prompt tuning performance can swing wildly based on initialization and random seeds. This instability stems from a "precipitous" loss landscape—a training environment filled with sharp peaks and valleys where minor fluctuations in input data lead to massive changes in loss. This fragility makes the training process inconsistent and difficult to deploy in production environments.

Methodology: The PTP Framework

To address these challenges, the authors propose PTP (Prompt Tuning with Perturbation-based regularizer). The core philosophy of PTP is to force the model to produce consistent predictions even when the input is slightly modified, effectively "smoothing out" the sharp crests of the loss landscape.

The framework incorporates two distinct types of perturbations applied across two different representational spaces:

1. Random-Noise-based Perturbations (PTP-RN)

  • Embedding Space (RG): This variant adds Gaussian noise directly to the word embeddings, testing the model's resilience to subtle vector shifts.
  • Text Space (RM): This variant randomly replaces tokens with a [MASK] token. While reminiscent of BERT's pre-training objective, it is used here as a regularization technique without the associated prediction task.

2. Adversarial-based Perturbations (PTP-ADV)

  • Embedding Space (PGD): Utilizing Projected Gradient Descent, the model identifies the "worst-case" small perturbation that maximizes loss. The model is then trained to resist this specific adversarial nudge.
  • Text Space (A2T): This uses a discrete adversarial attack algorithm to swap words with synonyms intended to confuse the model, ensuring semantic robustness.

By training on a combination of clean data and these perturbed variants, the model learns a more robust and smoother mapping from input to output, preventing it from overfitting to the narrow tunable parameter space.

Experimental Setup

The researchers evaluated PTP across two major NLU benchmarks to test its efficacy in both data-rich and data-scarce environments:

  • SuperGLUE: A suite of 8 challenging tasks (e.g., BoolQ, RTE, WiC) for fully-supervised evaluation.
  • FewGLUE: A few-shot version of SuperGLUE, where models are trained on only 32 examples per task.

The framework was tested against several prominent backbone models, including BERT-large, RoBERTa-large, and ALBERT-xxlarge-v2, comparing PTP against existing state-of-the-art prompt tuning methods like PT2.

Key Insights and Results

Performance and Stability Gains

PTP demonstrated significant improvements over baseline methods. On average, PTP improved performance by 1.94% on SuperGLUE and 2.34% on FewGLUE. Notably, the PTP-PGD variant (adversarial perturbations in the embedding space) emerged as the most robust, achieving top performance across nearly all datasets.

Beyond raw accuracy, the reduction in variance was substantial. By measuring scores across five different random seeds, the authors found that PTP-PGD slashed variance dramatically. For instance, on the RTE task, the variance dropped from 1.89 in vanilla prompt tuning to just 0.35 with PTP.

Landscape Smoothing

Visualization of the loss landscape provided striking evidence for the method's success. While vanilla prompt tuning results in a jagged, mountainous landscape, PTP-trained models exhibit a landscape resembling rolling hills. This visual smoothness directly correlates with the observed training stability.

Continuous vs. Discrete Perturbations

A key finding was that perturbations in the continuous embedding space (PGD and RG) generally outperformed those in the discrete text space (A2T and RM). This suggests that prompt tuning is more sensitive to underlying vector representations than to specific word choices, making embedding-level regularization a more effective lever for stability.

Limitations and Future Work

Despite its success, PTP introduces certain trade-offs:

  • Computational Overhead: Adversarial methods like PGD require multiple forward and backward passes to calculate perturbations for every training step, increasing total training time.
  • Hyperparameter Sensitivity: The effectiveness of the regularizer depends on the magnitude of the perturbation (controlled by $\epsilon$ or $\sigma$), which may require task-specific tuning.
  • Scaling Questions: While effective for models like ALBERT-xxlarge, further research is needed to determine if these stability issues—and PTP’s solutions—persist as models scale to 100B+ parameters.

Conclusion

PTP provides a robust solution to the instability inherent in prompt tuning. By smoothing the loss landscape through strategic perturbations, it not only stabilizes the training process but also sets new performance benchmarks for parameter-efficient fine-tuning. As LLMs continue to grow, techniques like PTP will be essential for making efficient tuning methods reliable enough for widespread application.

Summary updated

BibTeX
@inproceedings{chen2023ptp,
  author = {Lichang Chen and Jiuhai Chen and Heng Huang and Minhao Cheng},
  title = {{PTP: Boosting Stability and Performance of Prompt Tuning with Perturbation-Based Regularizer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.833},
}
Figure