2023 · 22 citations · 23 references
Abuse DetectionRed TeamingEngineeringInformation SecurityCommunicationSoftware AnalysisLarge Language ModelsNatural Language ProcessingAttack SimulationTargeted AttackComputational LinguisticsAdversarial Machine LearningSafety EvaluationMachine TranslationThreat DetectionDefense FrameworksComputer ScienceLanguage-based SecurityProgram AnalysisThreat ModelSoftware Language EngineeringAttack Prompt Generation
Large language models (LLMs) are susceptible to red teaming attacks, which can induce LLMs to generate harmful content. Previous research constructs attack prompts via manual or automatic methods, which have their own limitations on construction cost and quality. To address these issues, we propose an integrated approach that combines manual and automatic methods to economically generate high-quality attack prompts. Specifically, considering the impressive capabilities of newly emerged LLMs, we propose an attack framework to instruct LLMs to mimic human-generated prompts through in-context learning. Furthermore, we propose a defense framework that fine-tunes victim LLMs through iterative interactions with the attack framework to enhance their safety against red teaming attacks. Extensive experiments on different LLMs validate the effectiveness of our proposed attack and defense frameworks. Additionally, we release a series of attack prompts datasets named SAP with varying sizes, facilitating the safety evaluation and enhancement of more LLMs.
23
Training language models to follow instructions with human feedback
Long Ouyang, Jeff Wu, Xu Jiang et al. · arXiv (Cornell University) · 2022 · 4.2K citations · Full text
LLaMA: Open and Efficient Foundation Language Models
Hugo Touvron, Thibaut Lavril, Gautier Izacard et al. · arXiv (Cornell University) · 2023 · 3.8K citations · Full text
LoRA: Low-Rank Adaptation of Large Language Models
J. Edward Hu, Yelong Shen, Phillip Wallis et al. · arXiv (Cornell University) · 2021 · 2.4K citations · Full text