paper-with-me

Papers

FlexLLM: Exploring LLM Customization for Moving Target Defense on Black-Box LLMs Against Jailbreak Attacks

2024-12-10 · Bocheng Chen, Hanqing Guo, Qiben Yan

Defense in large language models (LLMs) is crucial to counter the numerous attackers exploiting these systems to generate harmful content through manipulated prompts, known as jailbreak attacks. Although many defense strategies have been proposed, they often require access to the model's internal structure or need additional training, which is impractical for service providers using LLM APIs, such as OpenAI APIs or Claude APIs. In this paper, we propose a moving target defense approach that alters decoding hyperparameters to enhance model robustness against various jailbreak attacks. Our approach does not require access to the model's internal structure and incurs no additional training costs. The proposed defense includes two key components: (1) optimizing the decoding strategy by identifying and adjusting decoding hyperparameters that influence token generation probabilities, and (2) transforming the decoding hyperparameters and model system prompts into dynamic targets, which are continuously altered during each runtime. By continuously modifying decoding strategies and prompts, the defense effectively mitigates the existing attacks. Our results demonstrate that our defense is the most effective against jailbreak attacks in three of the models tested when using LLMs as black-box APIs. Moreover, our defense offers lower inference costs and maintains comparable response quality, making it a potential layer of protection when used alongside other defense methods.

📄 PDF Abstract BibTeX arXiv:2412.07672

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Golden Queue Managers 설명 없음

Similar Papers 제목 키워드 기반

FlexLLM: A System for Co-Serving Large Language Model Inference and Parameter-Efficient Finetuning

2024-02-29 · Gabriele Oliaro, Xupeng Miao, Xinhao Cheng, Vineeth Kada 외

Finetuning large language models (LLMs) is essential for task adaptation, yet serving stacks today isolate inference and finetuning on separate GPU clusters -- wasting resources and under-utilizing hardware. We introduce…

GPULanguage ModelingLanguage ModellingLarge Language Model

FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Design

2026-01-22 · Jiahao Zhang, Zifan He, Nicholas Fraser, Michaela Blott 외 arxiv

We present FlexLLM, a composable High-Level Synthesis (HLS) library for rapid development of domain-specific LLM accelerators. FlexLLM exposes key architectural degrees of freedom for stage-customized inference, enabling…

FedSecurity: Benchmarking Attacks and Defenses in Federated Learning and Federated LLMs

2023-06-08 · Shanshan Han, Baturalp Buyukates, Zijian Hu, Han Jin 외

This paper introduces FedSecurity, an end-to-end benchmark that serves as a supplementary component of the FedML library for simulating adversarial attacks and corresponding defense mechanisms in Federated Learning (FL).…

BenchmarkingFederated Learning

DLADiff: A Dual-Layer Defense Framework against Fine-Tuning and Zero-Shot Customization of Diffusion Models

2025-11-25 · Jun Jia, Hongyi Miao, Yingjie Zhou, Linhan Cao 외 arxiv

With the rapid advancement of diffusion models, a variety of fine-tuning methods have been developed, enabling high-fidelity image generation with high similarity to the target content using only 3 to 5 training images. …

Image Generation

Tailoring with Targeted Precision: Edit-Based Agents for Open-Domain Procedure Customization

2023-11-16 · Yash Kumar Lal, Li Zhang, Faeze Brahman, Bodhisattwa Prasad Majumder 외

How-to procedures, such as how to plant a garden, are now used by millions of users, but sometimes need customizing to meet a user's specific needs, e.g., planting a garden without pesticides. Our goal is to measure and …