Fine-tuning Large Language Models (LLMs) typically involves updating at least a few billions of parameters. A more parameter-efficient approach is Prompt Tuning (PT), which updates only a few learnable tokens, and differently, In-Context Learning (ICL) adapts the model to a new task by simply including examples in the input without any training. When applying optimization-based methods, such as fine-tuning and PT for few-shot learning, the model is specifically adapted to the small set of training examples, whereas ICL leaves the model unchanged. This distinction makes traditional learning methods more prone to overfitting; in contrast, ICL is less sensitive to the few-shot scenario. While ICL is not prone to overfitting, it does not fully extract the information that exists in the training examples. This work introduces Context-aware Prompt Tuning (CPT), a method inspired by ICL, PT, and adversarial attacks. We build on the ICL strategy of concatenating examples before the input, but we extend this by PT-like learning, refining the context embedding through iterative optimization to extract deeper insights from the training examples. We carefully modify specific context tokens, considering the unique structure of input and output formats. Inspired by adversarial attacks, we adjust the input based on the labels present in the context, focusing on minimizing, rather than maximizing, the loss. Moreover, we apply a projected gradient descent algorithm to keep token embeddings close to their original values, under the assumption that the user-provided data is inherently valuable. Our method has been shown to achieve superior accuracy across multiple classification tasks using various LLM models.
A Prompting-based Approach for Adversarial Example Generation and Robustness Enhancement
University of Chinese Academy of Sciences(中国科学院大学);National University of Singapore(新加坡国立大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所)
PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
Microsoft Research(微软研究院);Institute of Automation, CAS(中国科学院自动化研究所);Carnegie Mellon University(卡内基梅隆大学);Peking University(北京大学);Westlake University(西湖大学);Duke University(杜克大学)
Advancing Multi-Step Mathematical Reasoning in Large Language Models through Multi-Layered Self-Reflection with Auto-Prompting
Luiz de Queiroz College of Agriculture University of São Paulo(圣保罗大学农业学院);School of Engineering and Sciences Tecnologico de Monterrey(蒙特雷技术学院工程与科学学院);Institute of Mathematics and Computer Sciences University of São Paulo(圣保罗大学数学与计算机科学研究所)
PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning
School of Information Science & Technology, Pennsylvania State University(宾夕法尼亚州立大学信息科学与技术学院);Department of Computer Science, Stony Brook University(石溪大学计算机科学系)
Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Models
Duke University(杜克大学);North China University of Technology(北方工业大学);Hong Kong Polytechnic University(香港理工大学);Australian National University(澳大利亚国立大学);Nanyang Technological University(南洋理工大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Beijing Forestry University(北京林业大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
Prompt Optimization via Adversarial In-Context Learning
National University of Singapore(新加坡国立大学);Hong Kong University of Science and Technology(香港科技大学);Institute for Infocomm Research (IR), A*STAR(新加坡资讯通信研究院(A*STAR))
Adversarial Fine-Tuning of Language Models: An Iterative Optimisation Approach for the Generation and Detection of Problematic Content
Australian National University(澳大利亚国立大学);Mathematical Sciences Institute(数学科学研究所);Research School of Astronomy(天文研究学院);College of Engineering and Computer Science(工程与计算机科学学院)
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(蒂宾根大学)
Vision-fused Attack: Advancing Aggressive and Stealthy Adversarial Text against Neural Machine Translation
Beihang University(北京航空航天大学);Zhongguancun Laboratory(中关村实验室);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Beijing Jiaotong University(北京交通大学);Beijing University of Technology(北京工业大学);Institute of Data Space, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院)
针对 NMT 对抗文本攻击性与隐蔽性不足的问题,本文提出 VFA 框架,通过视觉融合解空间增强和感知保留选择策略,在 LLaMA、GPT-3.5 等模型上显著提升 ASR 与 SSIM。