Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Learning to Translate from Soft to Hard LLM Prompts

Published 26 May 2026 in cs.CL and cs.LG | (2605.27642v1)

Abstract: Soft prompt tuning is a parameter-efficient method for adapting LLMs to specific tasks, but suffers from a lack of interpretability. Building on recent work on interpreting soft prompts (Ramati et al., 2024), we explore how training a dedicated soft prompt to natural language translation model can yield higher translation quality. In particular, in both quantitative and qualitative comparisons on multiple Datasets of Datasets (DoDs), we demonstrate that our translator produces fluent, accurate verbalizations that outperforms existing training-free methods like InSPEcT. In addition to advancing interpretability, our work suggests a promising downstream application: soft prompts optimized on small, open-source models can be translated into portable text prompts that, when deployed on larger closed-API models, exceed the performance of the original soft prompt and, in some cases, even few-shot learning.

Summary

  • The paper introduces a LoRA-fine-tuned Llama-3.1-8B translator that converts 20-token soft prompts into natural-language instructions using paired soft-prompt and task-description datasets.
  • The translator outperforms InSPEcT across benchmark evaluations, achieving Recall of 0.80 and F1 of 0.68 on synthetic classification tasks, compared with InSPEcT’s zero scores.
  • Translated prompts can improve performance when transferred to larger models such as GPT-4o-mini, sometimes outperforming few-shot prompting, but model-specific training and incomplete detail recovery limit portability and faithfulness.

Soft prompt tuning offers a parameter-efficient route to adapting LLMs, but the resulting continuous prompts are notoriously opaque: naive nearest-neighbor projections into token space are misleading ("prompt waywardness"), and soft prompt embeddings occupy regions of embedding space disjoint from natural language (Lester et al., 2021, Deng et al., 2022). The InSPEcT method (Ramati et al., 2024) recently showed that an LLM can verbalize its own soft prompts via activation patching (Patchscopes) without any training, but its outputs are often unreliable, layer-pair sensitive, and unnatural. This paper, "Learning to Translate from Soft to Hard LLM Prompts" (2605.27642), proposes a supervised alternative: train a dedicated translator model on pairs of (soft prompt, hard prompt), yielding verbalizations that are more accurate than InSPEcT and, notably, usable as portable prompts for larger LLMs.

Approach: supervised soft-to-hard translation

The core idea is to recast soft prompt interpretation as a sequence-to-sequence generation task. The translator is built by LoRA fine-tuning of Llama-3.1-8B-Instruct — the same base model on which the soft prompts were trained — conditioned on a sequence of 20 virtual tokens as input, with cross-entropy loss over the target hard prompt. Training requires a Dataset of Datasets (DoD): for each constituent dataset, a soft prompt is first optimized on that task, then paired with a ground-truth textual task description.

Two DoDs are constructed:

  • Classification DoD: 5,500 synthetic datasets (2.75M sentences total), each with five semantically tightly clustered labels (e.g., {drum, piano, violin, flute, guitar}) and 100 LLM-generated sentences per class. The semantic clustering constraint proved essential; an earlier unconstrained version produced markedly worse translators.
  • General DoD: derived from Super-NaturalInstructions [2205.xxxx], filtered to 539 training and 96 validation tasks with at least 500 instances each, covering diverse instruction-following tasks.

The authors also perform paraphrase-based data augmentation of ground-truth instructions (1×, 10×, 100×) using Mistral-Small-3.1-24B-Instruct.

Verbalization quality

The translator consistently outperforms InSPEcT across all evaluations. On the five datasets used in the original InSPEcT paper (SST-2, SST-5, AG-News, Subj, TREC), the translator matches or exceeds InSPEcT's Recall everywhere, with the largest gaps on SST-5 (Recall 1.0 vs. 0.6) and TREC (0.83 vs. 0.16). Notably, InSPEcT was reported to depend on high soft prompt task accuracy; the translator's verbalization quality appears robust even when the underlying soft prompt performs poorly — a claim that contradicts the InSPEcT paper's stated correlation between verbalization quality and task accuracy.

On the Classification DoD test split, the translator achieves average Recall 0.80 and F1 0.68, while InSPEcT scores exactly zero even after exhaustive grid search over all 1,024 source/target layer pairs — i.e., it is entirely unusable on this distribution. On the General DoD, the translator attains ROUGE-L 0.252 and cosine similarity 0.427 versus InSPEcT's 0.143 and 0.269.

Ablations show modest scaling benefits: training on 12% of the General DoD yields ROUGE-L 0.195 versus 0.252 at full size, suggesting diminishing returns from data volume alone. Paraphrase augmentation improves readability but hurts absolute metrics beyond 10× (ROUGE-L drops from 0.174 at 10× to 0.135 at 100×), which the authors attribute to dilution of original hard prompts. Qualitative out-of-distribution tests on real tasks (deceptive hotel review detection, human-vs-AI essay classification) produce truthful, relevant verbalizations, though terse ones.

Utility of verbalizations

Beyond interpretability, the paper demonstrates a practical workflow: train a soft prompt on a small open-source model, translate it to text, and deploy the resulting hard prompt on a larger closed-source LLM (GPT-4o-mini). Averaged over the General DoD test split, translated prompts outperform both the original soft prompt on the small model and the large model with no prompt at all. Against few-shot learning, few-shot wins on most tasks, but on 10 of 96 test tasks the translated prompt surpasses it — strikingly, one such task achieves ROUGE-L 0.80 from the translated prompt versus 0.40 for few-shot learning and 0.01 for the original soft prompt on the 8B model. The authors hypothesize these are tasks with many plausible input-output hypotheses, where few-shot examples underdetermine the true rule while soft prompt training exploits the full dataset.

This result carries a substantive implication: low soft prompt task accuracy does not necessarily indicate that the prompt encodes irrelevant information. An 8B model may fail to execute correct instructions that a stronger model can follow once they are verbalized — evidence that soft prompts can encode more than their host model can express behaviorally.

Limitations

The paper is candid about several constraints. First, the translator is tied to its base model: since soft prompts do not transfer across models, a new translator must be trained per base LLM, limiting portability of the method itself. Second, out-of-distribution verbalizations suffer from stylistic misalignment — the translator omits relevant details to produce fluent output. A prefill-conditioning experiment supports this diagnosis: applying a simple prefill doubled the average class rate on 550 held-out classification tasks (from ~1.16% to 2.62%), indicating the translator comprehends the semantics but suppresses details stylistically; dedicated preference optimization is proposed as a remedy. Third, the training sets are small (539 tasks), and the evaluation relies heavily on synthetic classification data whose real-world coverage is uncertain. Finally, verbalization quality is mixed qualitatively — some translations capture the task fully, others miss it substantially — and no quantitative faithfulness guarantee is offered.

Conclusion

This work replaces training-free introspection of soft prompts with supervised translation, demonstrating superior verbalization fidelity across three evaluation regimes and establishing that translated prompts are functionally useful — sometimes exceeding few-shot prompting on downstream LLMs. The finding that interpretable instructions can be recovered from weakly performing soft prompts challenges prior assumptions about the relationship between soft prompt efficacy and decodability. Open questions include whether translation generalizes across base models, whether stylistic alignment can recover omitted detail systematically, and whether the approach scales to domains such as molecular property prediction where verbalized mechanisms could constitute genuine scientific insight.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.