To be or not to be? an exploration of continuously controllable prompt engineering

Yuhan Sun, Mukai Li, Yixin Cao, Kun Wang, Wenxiao Wang +2 more
11/16/2023
cs.CL

No confident code implementation found for this paper.

Abstract

As the use of large language models becomes more widespread, techniques like parameter-efficient fine-tuning and other methods for controlled generation are gaining traction for customizing models and managing their outputs. However, the challenge of precisely controlling how prompts influence these models is an area ripe for further investigation. In response, we introduce ControlPE (Continuously Controllable Prompt Engineering). ControlPE enables finer adjustments to prompt effects, complementing existing prompt engineering, and effectively controls continuous targets. This approach harnesses the power of LoRA (Low-Rank Adaptation) to create an effect akin to prompt weighting, enabling fine-tuned adjustments to the impact of prompts. Our methodology involves generating specialized datasets for prompt distillation, incorporating these prompts into the LoRA model, and carefully adjusting LoRA merging weight to regulate the influence of prompts. This provides a dynamic and adaptable tool for prompt control. Through our experiments, we have validated the practicality and efficacy of ControlPE. It proves to be a promising solution for control a variety of prompts, ranging from generating short responses prompts, refusal prompts to chain-of-thought prompts.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2023exploration,
  title  = {To be or not to be? an exploration of continuously controllable prompt engineering},
  author = {Yuhan Sun and Mukai Li and Yixin Cao and Kun Wang and Wenxiao Wang and Xingyu Zeng and Rui Zhao},
  year   = {2023},
  eprint = {2311.09773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09773v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09773.svg)](https://codeofpaper.com/paper/2311.09773)

Discussion