arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.09773cs.CL
收藏

存在还是不存在?对连续可控提示工程的探索

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

Zhejiang University(浙江大学);SenseTime(商汤科技);Singapore Management University(新加坡管理大学)

Yuhan Sun, Mukai Li, Yixin Cao, Kun Wang, Wenxiao Wang, Xingyu Zeng, Rui Zhao

AI总结:

本文提出ControlPE方法,利用LoRA实现连续可控的提示工程,通过生成专用数据集并调整合并权重,实现对多种提示效果的精细控制。

摘要:

随着大型语言模型的使用日益普及,参数高效微调和其他受控生成方法等技术在定制模型和管理其输出方面正受到越来越多的关注。然而,精确控制提示如何影响这些模型的挑战仍是一个有待深入研究的领域。为此,我们提出了ControlPE(连续可控提示工程)。ControlPE能够对提示效果进行更精细的调整,补充了现有的提示工程方法,并有效控制连续目标。该方法利用LoRA(低秩适配)的力量,创造出一种类似于提示加权的效果,从而能够对提示的影响进行微调。我们的方法包括生成用于提示蒸馏的专用数据集,将这些提示纳入LoRA模型,并仔细调整LoRA合并权重以调节提示的影响。这为提示控制提供了一种动态且适应性强的工具。通过我们的实验,我们验证了ControlPE的实用性和有效性。事实证明,它是控制各种提示(从生成简短回答的提示、拒绝提示到思维链提示)的一种有前景的解决方案。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑