Tsinghua University(清华大学);Zhongguancun Laboratory(中关村实验室);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR));Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Yuanhang Zheng, Zhixing Tan, Peng Li, Yang Liu
发表信息:
IEEE/ACM Transactions on Audio, Speech, and Language Processing. 32 (2024) 3002-3013
黑盒提示调优采用无导数优化算法,在低维子空间内学习提示,而不是通过 Large Language Models(LLM,大语言模型)的网络进行反向传播。近期研究表明,黑盒提示调优在不同任务和 LLM 之间缺乏通用性,我们认为这与子空间的次优选择有关。本文提出 Black-box prompt tuning with Subspace Learning(BSL,基于子空间学习的黑盒提示调优),以提升黑盒提示调优的通用性。基于相似任务的近似最优提示位于一个共同子空间中的假设,我们提出通过在一组相似源任务上进行元学习来识别此类子空间。因此,对于与源任务具有相似性的目标任务,我们期望在所识别的子空间内进行优化,能够产生在目标任务上表现良好的提示。实验结果证实,我们的 BSL 框架在各类下游任务和 LLM 上均持续取得具有竞争力的性能。
英文摘要:
Black-box prompt tuning employs derivative-free optimization algorithms to learn prompts within low-dimensional subspaces rather than back-propagating through the network of Large Language Models (LLMs). Recent studies reveal that black-box prompt tuning lacks versatility across tasks and LLMs, which we believe is related to the suboptimal choice of subspaces. In this paper, we introduce Black-box prompt tuning with Subspace Learning (BSL) to enhance the versatility of black-box prompt tuning. Based on the assumption that nearly optimal prompts for similar tasks reside in a common subspace, we propose identifying such subspaces through meta-learning on a collection of similar source tasks. Consequently, for a target task that shares similarities with the source tasks, we expect that optimizing within the identified subspace can yield a prompt that performs well on the target task. Experimental results confirm that our BSL framework consistently achieves competitive performance across various downstream tasks and LLMs.
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Subspace Intervention
Department of Computer Science(计算机科学系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);Department of Electronics and Communications Engineering(电子与通信工程系)
Transferable Direct Prompt Injection via Activation-Guided MCMC Sampling
School of Software Engineering, Huazhong University of Science and Technology(华中科技大学软件学院);School of Cyber Science and Engineering, Huazhong University of Science and Technology(华中科技大学网络安全学院);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);Faculty of Data Science, City University of Macau(澳门城市大学数据科学学院)
FedDTPT: Federated Discrete and Transferable Prompt Tuning for Black-Box Large Language Models
China University of Mining and Technology, Beijing(中国矿业大学(北京));University of British Columbia(不列颠哥伦比亚大学);University of Texas at Dallas(德克萨斯大学达拉斯分校);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
Parameter Lab(参数实验室);IT University of Copenhagen(哥本哈根信息技术大学);Pioneer Centre for Artificial Intelligence(人工智能先锋中心);NAVER AI Lab(NAVER人工智能实验室);University of Tübingen(蒂宾根大学)
S$^4$R: Selective Sampling, Subspaces, and Sparse Reconstruction for Compressed Long-Context KV Caching
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);Shanghai Engineering Research Center of Intelligent Vision and Imaging(上海智能视觉与成像工程研究中心)
Discrete Prompt Tuning via Recursive Utilization of Black-box Multimodal Large Language Model for Personalized Visual Emotion Recognition
Graduate School of Information Science(信息科学研究生学校);Technology, Hokkaido University, Sapporo 060-0814, Japan(技术,北海道大学,札幌060-0814,日本);Office of Institutional Research, Hokkaido University, Sapporo 060-0808, Japan(机构研究办公室,北海道大学,札幌060-0808,日本);Faculty of Information Science(信息科学学院)
Adaptive Prompt Embedding Optimization for LLM Jailbreaking
School of Information Studies, McGill University, Montreal, QC, Canada(麦吉尔大学信息研究学院);Department of Computer Science, Kean University, Union, NJ, United States(凯恩大学计算机科学系);Mila - Quebec AI Institute, Montreal, QC, Canada(魁北克人工智能研究所);Faculty of Information, University of Toronto, Toronto, ON, Canada(多伦多大学信息学院)
Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulation
PRISM AI(PRISM人工智能公司);Harmony Intelligence(和谐智能公司);Leap Laboratories(leap实验室);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);ETH AI Center, ETH Zurich(苏黎世联邦理工学院人工智能中心)