Abstract: Soft prompts have been popularized as a cheap and easy way to improve task-specific LLM performance beyond few-shot prompts. Despite their origin as an automated prompting method, however, soft prompts and other trainable prompts remain a black-box method with no immediately interpretable connections to prompting. We create a novel theoretical framework for evaluating the interpretability of trainable prompts based on two desiderata: faithfulness and scrutability. We find that existing methods do not naturally satisfy our proposed interpretability criterion. Instead, our framework inspires a new direction of trainable prompting methods that explicitly optimizes for interpretability. To this end, we formulate and test new interpretability-oriented objective functions for two state-of-the-art prompt tuners: Hard Prompts Made Easy (PEZ) and RLPrompt. Our experiments with GPT-2 demonstrate a fundamental trade-off between interpretability and the task-performance of the trainable prompt, explicating the hardness of the soft prompt interpretability problem and revealing odd behavior that arises when one optimizes for an interpretability proxy.
Introduction: The Interpretability Gap
While traditional "hard" prompting involves writing explicit text (e.g., "Translate this to French:"), soft prompting allows a model to learn optimal input values in a continuous embedding space. This method is computationally efficient and often outperforms manual prompting. However, soft prompts are essentially black boxes. If one "unembeds" them—finding the nearest dictionary words to those continuous values—the result is typically nonsense strings that fail to function if used as manual prompts.
The authors address this "interpretability gap" by investigating whether automated prompts can be forced to be both high-performing and human-readable. Achieving this could provide insights into how Large Language Models (LLMs) reason about specific tasks.
Theoretical Framework and Methods
The researchers define interpretability through two key "desiderata":
- Faithfulness: Does the human-readable version (the unembedded tokens) behave like the original soft prompt?
- Scrutability: Is the resulting text understandable to a human?
To measure scrutability, the study utilizes Perplexity (via GPT2-XL), where a lower score suggests text that more closely resembles natural human language. Two primary optimization methods were tested:
- Hard Prompts Made Easy (PEZ): An iterative algorithm projecting continuous gradients onto discrete token embeddings.
- RLPrompt: A reinforcement learning approach where a policy network generates discrete prompts to maximize a reward combining task performance and a perplexity "bonus" for readability.
Experimental Evaluation
The framework was evaluated across three tasks:
- BoolQ: Reading comprehension (yes/no questions).
- SST-2 (Stanford Sentiment Treebank): Movie review sentiment classification.
- Yelp Open Dataset: Text style transfer (changing style while preserving content).
Key Insights: The Performance Trade-off
The most significant finding is a fundamental Interpretability-Performance Trade-off. There exists a "Pareto frontier" where increasing the weight of the interpretability reward directly correlates with a decrease in task accuracy.
Furthermore, the study observed a Semantic Shift. In style transfer tasks, increasing interpretability weight moved prompts from nonsense like "Ggrated" to semantically related words like "description," although they still lacked coherent sentence structure.
Other observations include:
- Perplexity is an Imperfect Proxy: Even with low perplexity, prompts often drifted into irrelevant "themed" jargon (e.g., computer science terms for sentiment analysis).
- Soft Prompts are "Jagged": The embedding space is highly non-linear; moving from a continuous soft prompt to the nearest discrete word causes a massive loss of information.
Key Results
- PEZ Convergence Issues: On BoolQ, PEZ failed to converge effectively, achieving only 38% accuracy (equivalent to no prompt), compared to 62% for standard soft prompts.
- RLPrompt Performance Decay: On SST-2, a prompt with zero interpretability weight reached 81% accuracy. Pushing for maximum interpretability (alpha = 1) caused accuracy to plummet to 50% (random chance), resulting in repetitive strings like "Info Info Info..."
- Style Transfer Promise: This task showed the best results; regularizing for perplexity caused only a 10% hit in content scores while significantly improving word "decipherability."
Conclusion and Future Work
The authors acknowledge that Perplexity may be a flawed metric for scrutability, as high likelihood does not guarantee human meaning. Future work may explore metrics like BLEU or MAUVE. Additionally, while this study focused on smaller models (GPT-2, T5-small), larger models might exhibit different emergent behaviors or a more graceful trade-off. Investigating "adversarial prompts" through this lens also remains a promising avenue for future research.
Summary updated