Large language models (LLMs) are popular for high-quality text generation but can produce harmful content, even when aligned with human values through reinforcement learning. Adversarial prompts can bypass their safety measures. We propose LLM Self Defense, a simple approach to defend against these attacks by having an LLM screen the induced responses. Our method does not require any fine-tuning, input preprocessing, or iterative output generation. Instead, we incorporate the generated content into a pre-defined prompt and employ another instance of an LLM to analyze the text and predict whether it is harmful. We test LLM Self Defense on GPT 3.5 and Llama 2, two of the current most prominent LLMs against various types of attacks, such as forcefully inducing affirmative responses to prompts and prompt engineering attacks. Notably, LLM Self Defense succeeds in reducing the attack success rate to virtually 0 using both GPT 3.5 and Llama 2. The code is publicly available at https://github.com/poloclub/llm-self-defense
Evaluating Large Language Models on the Spanish Medical Intern Resident (MIR) Examination 2024/2025:A Comparative Analysis of Clinical Reasoning and Knowledge Application
MedBench: A Large-Scale Chinese Benchmark for Evaluating Medical Large Language Models
East China Normal University(华东师范大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Hasso Plattner Institute(哈索·普拉特纳研究所);University of Potsdam(波茨坦大学);Cooperative Medianet Innovation Center, Shanghai Jiao Tong University(上海交通大学合作媒体网络创新中心)
CPsyExam: A Chinese Benchmark for Evaluating Psychology using Examinations
Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Jilin University(吉林大学);University of Science and Technology of China(中国科学技术大学);Shenzhen University of Advanced Technology(深圳理工大学);University of Macau(澳门大学);Huazhong University of Science and Technology(华中科技大学)
KokushiMD-10: Benchmark for Evaluating Large Language Models on Ten Japanese National Healthcare Licensing Examinations
Kyoto University(京都大学);The Hong Kong University of Science and Technology(香港科技大学);Xi’an Jiaotong-Liverpool University(西安交通大学利物浦大学);The University of Tokyo(东京大学)
Bias of AI-Generated Content: An Examination of News Produced by Large Language Models
University of Delaware(特拉华大学);Tsinghua University(清华大学);Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shanghai University of Finance and Economics(上海财经大学)
Large Language Models Leverage External Knowledge to Extend Clinical Insight Beyond Language Boundaries
School of Public Health, Zhejiang University School of Medicine(浙江大学医学院公共卫生学院);Jarvis Research Center, Tencent YouTu Lab(腾讯优图实验室Jarvis研究中心);Harvard T.H. Chan School of Public Health(哈佛大学陈曾熙公共卫生学院);Harvard Medical School(哈佛医学院)
OpenTWBench (Open Taiwan Benchmark): Taiwan-Domain Knowledge Evaluation for Large Language Models, and How the Measurement Apparatus Shapes the Score
Twinkle AI;APMIC;Open Taiwan Benchmark;National Center for High-performance Computing (NCHC)(国家高速计算中心(NCHC));MonoLab;Google Developer Expert(谷歌开发者专家);Open Culture Foundation (OCF)(开放文化基金会(OCF))
PeruMedQA: Benchmarking Large Language Models (LLMs) on Peruvian Medical Exams -- Dataset Construction and Evaluation
Hubert Department of Global Health, Rollins School of Public Health, Emory University(霍伯特全球健康部门,埃默里大学公共卫生学院);Emory Global Diabetes Research Center of Woodruff Health Sciences Center, Emory University(埃默里大学伍德鲁夫健康科学中心全球糖尿病研究中心);Institut de Recherche en Informatique de Toulouse(图卢兹信息研究院);Universidad Nacional de Educación a Distancia(远程教育国立大学);Instituto de Investigación Científica, Universidad de Lima(科学研究所,利马大学);Barcelona Supercomputing Center(巴塞罗那超级计算中心)