Is Continuous Prompt a Combination of Discrete Prompts? Towards a Novel View for Interpreting Continuous Prompts

Tianjie Ju, Yubin Zheng, Hanyi Wang, Haodong Zhao, Gongshen Liu

Abstract

Continuous prompts (soft prompts) have demonstrated state-of-the-art performance in prompt learning but remain "black boxes" due to their lack of interpretability and model-specific nature. This work introduces the Combination Hypothesis, positing that continuous prompts are essentially weighted combinations of discrete embeddings from a model's vocabulary. We propose a Prompt Decoupling framework to approximate continuous prompts as sparse, discrete token combinations. Our findings reveal that these decoupled prompts can match the performance of original soft prompts, uncover model "shortcuts," and facilitate zero-shot transfer across different language models.

Introduction

Prompt learning has emerged as a powerful paradigm for adapting Pre-trained Language Models (PLMs) to downstream tasks. While discrete prompts (natural language templates) are interpretable, they often underperform compared to continuous prompts—vectors optimized in the embedding space. However, continuous prompts suffer from the "Prompt Waywardness Hypothesis," which suggests they cannot be easily mapped back to single discrete tokens. This paper challenges this view by investigating whether continuous prompts can be interpreted as combinations of multiple discrete tokens.

Methodology: Prompt Decoupling

The core of our approach is the Combination Hypothesis, which assumes a continuous prompt $p$ can be represented as $r^\top E$, where $E$ is the PLM's embedding matrix and $r$ is a weight vector over the vocabulary.

Overview of the Prompt Decoupling framework, showing how continuous prompts are interpreted as weighted combinations of discrete tokens.

To find the optimal discrete representation, we employ Joint Optimization, balancing two objectives:

  1. Prompt Fidelity: Minimizing the distance between the original continuous vector and its discrete approximation.
  2. Downstream Fidelity: Ensuring the decoupled prompt maintains the task performance of the original.

To enhance interpretability, we apply sparsity constraints and frequency filtering, focusing on the most relevant tokens within the dataset's context.

Experimental Setup

We evaluated the framework on four major NLP benchmarks: SST-2 and IMDB (sentiment analysis), Amazon Review Polarity, and AGNews (topic classification). Experiments were conducted primarily in few-shot settings (50 and 100 samples) to reflect typical prompt-tuning scenarios.

Key Results and Insights

Our experiments demonstrate that continuous prompts can indeed be effectively "de-compressed" into discrete combinations.

Performance and Faithfulness

As shown in the table below, combinations of approximately 1,500 discrete tokens (Discrete-1500) consistently approach or exceed the performance of standard P-tuning across various datasets and shot counts, particularly in few-shot scenarios.

Performance comparison of P-tuning vs. discrete combinations across multiple benchmarks and shot settings.

Furthermore, our method significantly outperforms simple "nearest neighbor" interpretations. For instance, on the SST-2 task, our decoupled prompts achieved 75.18% accuracy, vastly outperforming the nearest single-word neighbor baseline (49.86%), which performed no better than a random guess.

Decoding Model "Shortcuts"

Decoupling reveals the underlying logic—or lack thereof—in soft prompts. We observed that models often learn "shortcuts" rather than semantic logic. In sentiment tasks, prompts frequently utilized tokens like "quality," "material," or "taste" to trigger specific labels, regardless of their semantic relevance to the input text.

Cross-Model Universal Language

One of the most significant advantages of discrete decoupling is portability. By converting a model-specific continuous prompt into a "word recipe," we can transfer the prompt to a different model (e.g., from BERT to RoBERTa-large) without additional training. On the Amazon dataset, this zero-shot transfer reached 90.33% accuracy using our decoupling method.

Limitations and Conclusion

While Prompt Decoupling provides a novel lens for interpretation, it is not without limitations. The mapping from continuous to discrete space is inherently lossy, and the "anisotropic cone" effect in embedding spaces can introduce noise. Future research will explore the applicability of this hypothesis to generative models and alternative prompting techniques such as Prefix Tuning.

In conclusion, by viewing soft prompts as "weighted word salads," we move closer to demystifying the internal mechanisms of prompt-based learning and improving the transparency and interoperability of modern AI models.

Summary updated

BibTeX
@inproceedings{ju2023is,
  author = {Tianjie Ju and Yubin Zheng and Hanyi Wang and Haodong Zhao and Gongshen Liu},
  title = {{Is Continuous Prompt a Combination of Discrete Prompts? Towards a Novel View for Interpreting Continuous Prompts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.494},
}
Figure