paper-with-me

Papers

Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models

2024-05-27 · Shengyun Peng, Pin-Yu Chen, Matthew Hull, Duen Horng Chau

Safety alignment is crucial to ensure that large language models (LLMs) behave in ways that align with human preferences and prevent harmful actions during inference. However, recent studies show that the alignment can be easily compromised through finetuning with only a few adversarially designed training examples. We aim to measure the risks in finetuning LLMs through navigating the LLM safety landscape. We discover a new phenomenon observed universally in the model parameter space of popular open-source LLMs, termed as "safety basin": random perturbations to model weights maintain the safety level of the original aligned model within its local neighborhood. However, outside this local region, safety is fully compromised, exhibiting a sharp, step-like drop. This safety basin contrasts sharply with the LLM capability landscape, where model performance peaks at the origin and gradually declines as random perturbation increases. Our discovery inspires us to propose the new VISAGE safety metric that measures the safety in LLM finetuning by probing its safety landscape. Visualizing the safety landscape of the aligned model enables us to understand how finetuning compromises safety by dragging the model away from the safety basin. The LLM safety landscape also highlights the system prompt's critical role in protecting a model, and that such protection transfers to its perturbed variants within the safety basin. These observations from our safety landscape research provide new insights for future work on LLM safety community. Our code is publicly available at https://github.com/ShengYun-Peng/llm-landscape.

📄 PDF Abstract BibTeX arXiv:2405.17374

Code (1)

shengyun-peng/llm-landscape 공식 구현 pytorch

Tasks

Safety Alignment

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Delta Activations: A Representation for Finetuned Large Language Models

2025-09-04 · Zhiqiu Xu, Amish Sethi, Mayur Naik, Ser-Nam Lim arxiv

The success of powerful open source Large Language Models (LLMs) has enabled the community to create a vast collection of post-trained models adapted to specific tasks and domains. However, navigating and understanding t…

Shape it Up! Restoring LLM Safety during Finetuning

2025-05-22 · Shengyun Peng, Pin-Yu Chen, Jianfeng Chi, Seongmin Lee 외

Finetuning large language models (LLMs) enables user-specific customization but introduces critical safety risks: even a few harmful examples can compromise safety alignment. A common mitigation strategy is to update the…

Safety Alignment

A Survey on the Safety and Security Threats of Computer-Using Agents: JARVIS or Ultron?

2025-05-16 · Ada Chen, Yongjiang Wu, Junyuan Zhang, Jingyu Xiao 외

Recently, AI-driven interactions with computing devices have advanced from basic prototype tools to sophisticated, LLM-based systems that emulate human-like operations in graphical user interfaces. We are now witnessing …

Unmasking the Shadows of AI: Investigating Deceptive Capabilities in Large Language Models

2024-02-07 · Linge Guo

This research critically navigates the intricate landscape of AI deception, concentrating on deceptive behaviours of Large Language Models (LLMs). My objective is to elucidate this issue, examine the discourse surroundin…

Being Accountable is Smart: Navigating the Technical and Regulatory Landscape of AI-based Services for Power Grid

2024-08-02 · Anna Volkova, Mahdieh Hatamian, Alina Anapyanova, Hermann de Meer

The emergence of artificial intelligence and digitization of the power grid introduced numerous effective application scenarios for AI-based services for the smart grid. Nevertheless, adopting AI in critical infrastructu…