paper-with-me

Papers

Alignment-Enhanced Decoding:Defending via Token-Level Adaptive Refining of Probability Distributions

2024-08-14 · Quan Liu, Zhenhong Zhou, Longzhu He, Yi Liu, Wei zhang, Sen Su

Large language models are susceptible to jailbreak attacks, which can result in the generation of harmful content. While prior defenses mitigate these risks by perturbing or inspecting inputs, they ignore competing objectives, the underlying cause of alignment failures. In this paper, we propose Alignment-Enhanced Decoding (AED), a novel defense that employs adaptive decoding to address the root causes of jailbreak issues. We first define the Competitive Index to quantify alignment failures and utilize feedback from self-evaluation to compute post-alignment logits. Then, AED adaptively combines AED and post-alignment logits with the original logits to obtain harmless and helpful distributions. Consequently, our method enhances safety alignment while maintaining helpfulness. We conduct experiments across five models and four common jailbreaks, with the results validating the effectiveness of our approach. Code is available at https://github.com/GIGABaozi/AED.git.

📄 PDF Abstract BibTeX arXiv:2408.07663

Code (1)

gigabaozi/aed 공식 구현 pytorch

Tasks

Safety Alignment

Similar Papers 제목 키워드 기반

Boosting Lossless Speculative Decoding via Feature Sampling and Partial Alignment Distillation

2024-08-28 · Lujun Gui, Bin Xiao, Lei Su, WeiPeng Chen

Lossless speculative decoding accelerates target large language model (LLM) inference by employing a lightweight draft model for generating tree-structured candidates, which are subsequently verified in parallel by the t…

Knowledge DistillationLanguage ModellingLarge Language ModelMathematical Reasoning+2

Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing

2026-01-15 · Yinzhi Zhao, Ming Wang, Shi Feng, Xiaocui Yang 외 arxiv

Large language models (LLMs) have achieved impressive performance across natural language tasks and are increasingly deployed in real-world applications. Despite extensive safety alignment efforts, recent studies show th…

SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding

2024-02-14 · Zhangchen Xu, Fengqing Jiang, Luyao Niu, Jinyuan Jia 외

As large language models (LLMs) become increasingly integrated into real-world applications such as code generation and chatbot assistance, extensive efforts have been made to align LLM behavior with human values, includ…

ChatbotCode Generation

Faster and Better Grammar-based Text-to-SQL Parsing via Clause-level Parallel Decoding and Alignment Loss

2022-04-26 · Kun Wu, Lijie Wang, Zhenghua Li, Xinyan Xiao

Grammar-based parsers have achieved high performance in the cross-domain text-to-SQL parsing task, but suffer from low decoding efficiency due to the much larger number of actions for grammar selection than that of token…

SQL ParsingText to SQLText-To-SQL

Concept-Level Explainability for Auditing & Steering LLM Responses

2025-05-12 · Kenza Amara, Rita Sevastjanova, Mennatallah El-Assady

As large language models (LLMs) become widely deployed, concerns about their safety and alignment grow. An approach to steer LLM behavior, such as mitigating biases or defending against jailbreaks, is to identify which p…

Prompt EngineeringSemantic SimilaritySemantic Textual SimilarityText Generation