Learning Safety Constraints for Large Language Models
원문 초록
Large language models (LLMs) have emerged as powerful tools but pose significant safety risks through harmful outputs and vulnerability to adversarial attacks. We propose SaP, short for Safety Polytope, a geometric approach to LLM safety that learns and enforces multiple safety constraints directly in the model's representation space. We develop a framework that identifies safe and unsafe regions via the polytope's facets, enabling both detection and correction of unsafe outputs through geometric steering. Unlike existing approaches that modify model weights, SaP operates post-hoc in the representation space, preserving model capabilities while enforcing safety constraints. Experiments across multiple LLMs demonstrate that our method can effectively detect unethical inputs, reduce adversarial attack success rates while maintaining performance on standard tasks, thus highlighting the importance of having an explicit geometric model for safety. Analysis of the learned polytope facets reveals emergence of specialization in detecting different semantic notions of safety, providing interpretable insights into how safety is captured in LLMs' representation space.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
VIP: Visual Information Protection through Adversarial Attacks on Vision-Language Models
Identifying the Smallest Adversarial Load Perturbations that Render DC-OPF Infeasible
ScoreAdv: Score-based Targeted Generation of Natural Adversarial Examples via Diffusion Models
Robustness of Misinformation Classification Systems to Adversarial Examples Through BeamAttack
Adversarial Attacks and Detection in Visual Place Recognition for Safer Robot Navigation
Enhancing Adversarial Robustness with Conformal Prediction: A Framework for Guaranteed Model Reliability
토론
이 논문과 연결된 포럼 글이 아직 없습니다.