With the widespread application of Large Language Models (LLMs), it has become a significant concern to ensure their safety and prevent harmful responses. While current safe-alignment methods based on instruction fine-tuning and Reinforcement Learning from Human Feedback (RLHF) can effectively reduce harmful responses from LLMs, they often require high-quality datasets and heavy computational overhead during model training. Another way to align language models is to modify the logit of tokens in model outputs without heavy training. Recent studies have shown that contrastive decoding can enhance the performance of language models by reducing the likelihood of confused tokens. However, these methods require the manual selection of contrastive models or instruction templates, limiting the degree of contrast. To this end, we propose Adversarial Contrastive Decoding (ACD), an optimization-based framework to generate two opposite soft system prompts, the Safeguarding Prompt (SP) and the Adversarial Prompt (AP), for prompt-based contrastive decoding. The SP aims to promote safer outputs while the AP aims to exploit the harmful parts of the model, providing a strong contrast to align the model with safety. ACD only needs to apply a lightweight prompt tuning on a rather small anchor dataset without training the target model. Experiments conducted on extensive models and benchmarks demonstrate that the proposed method achieves much better safety performance than previous model training-free decoding methods without sacrificing its original generation ability.
Unified Defense for Large Language Models against Jailbreak and Fine-Tuning Attacks in Education
Shanghai Institute of Artificial Intelligence for Education, East China Normal University, Shanghai 200062, China(教育人工智能研究所,华东师范大学,上海200062,中国);School of Computer Science and Technology, East China Normal University, Shanghai 200062, China(计算机科学与技术学院,华东师范大学,上海200062,中国);School of Computer Science(计算机科学学院)
Dalhousie University(达尔豪斯大学);Vector Institute for Artificial Intelligence(向量人工智能研究院);TU Delft(代尔夫特理工大学);Swarthmore College(斯沃斯莫尔学院);University of Warwick(华威大学)
ManagerBench: Evaluating the Safety-Pragmatism Trade-off in Autonomous LLMs
Technion – Israel Institute of Technology(技术学院–以色列理工学院);Google Research(谷歌研究);University of Zagreb(Zagreb大学);Kempner Institute, Harvard University(哈佛大学凯普勒研究所)
University of California, Berkeley(加州大学伯克利分校);HUMAIN;King Abdulaziz City for Science and Technology(国王阿卜杜勒阿齐兹科学与技术城);University of Washington, Seattle(华盛顿大学(西雅图))
HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Router
Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);University of California, Merced(加州大学默塞德分校);HKUST(香港科技大学)
HiddenGuard 提出基于隐藏状态的 Prism 路由器,在令牌级别实时检测并编辑有害内容,实现细粒度安全生成,在保持信息量的同时 F1 超过 90%。
Behind Harmful Compliance: Behavioral and Mechanistic Divergence Across LLM Jailbreaks
Department of Computer Science(计算机科学系);Luddy School of Informatics, Computing, and Engineering(信息学、计算与工程学院);Indiana University Bloomington(印第安纳大学布卢明顿分校)
Safety Alignment via Constrained Knowledge Unlearning
Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳));University of Macau, China(澳门大学);Nankai University, China(南开大学);Zhejiang University, China(浙江大学);Peng Cheng Laboratory, China(鹏城实验室);Shaqra University, Saudi Arabia(沙克拉大学)
Refuse Whenever You Feel Unsafe: Improving Safety in LLMs via Decoupled Refusal Training
School of Data Science, The Chinese University of Hong Kong, Shenzhen, China(数据科学学院,香港中文大学(深圳));Tencent AI Lab(腾讯人工智能实验室);The Chinese University of Hong Kong(香港中文大学);Shenzhen Research Institute of Big Data, China(深圳大数据研究院)
StealthGraph: Exposing Domain-Specific Risks in LLMs through Knowledge-Graph-Guided Harmful Prompt Generation
School of Software Technology, Zhejiang University(浙江大学软件学院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);State Key Lab of CAD&CG, Zhejiang University(浙江大学CAD&CG国家重点实验室)
Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
Aerospace Information Research Institute, Chinese Academy of Sciences(航天信息研究所,中国科学院);Dept. of Comp. Sci. and Tech., Institute for AI, Tsinghua University(计算机科学与技术系,人工智能研究院,清华大学);Shanghai Key Laboratory of Multi. Info. Processing, East China Normal University(上海多信息处理重点实验室,华东师范大学);Kuaishou-Inc(快手公司)