paper-with-me

홈 › Papers

Learning Safety Constraints for Large Language Models

2025-05-30 · Xin Chen, Yarden As, Andreas Krause

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.

📄 PDF Abstract BibTeX arXiv:2505.24445

Code (1)

lasgroup/safetypolytope 공식 구현 pytorch

Tasks

Adversarial Attack

Similar Papers 제목 키워드 기반

From Words to Safety: Language-Conditioned Safety Filtering for Robot Navigation

2025-11-08 · Zeyuan Feng, Haimingyue Zhang, Somil Bansal arxiv

As robots become increasingly integrated into open-world, human-centered environments, their ability to interpret natural language instructions and adhere to safety constraints is critical for effective and trustworthy i…

Robot Navigation

Towards General Language-Conditioned Latent Safety Filters

2026-07-31 · Ihab Tabbara, Yuxuan Yang, Hussein Sibai arxiv

Robot policies are becoming increasingly general, with vision-language-action (VLA) models enabling a single policy to execute diverse tasks specified in natural language. Safe deployment, however, requires adapting not …

SPOC: Safety-Aware Planning Under Partial Observability And Physical Constraints

2026-02-25 · Hyungmin Kim, Hobeom Jeon, Dohyung Kim, Minsu Jang 외 arxiv

Embodied Task Planning with large language models faces safety challenges in real-world environments, where partial observability and physical constraints must be respected. Existing benchmarks often overlook these criti…

Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints

2026-04-14 · Songping Peng, Zhiheng Zhang, Daojian Zeng, Lincheng Jiang 외 arxiv

Safety alignment in Large Language Models (LLMs) remains highly fragile during fine-tuning, where even benign adaptation can degrade pre-trained refusal behaviors and enable harmful responses. Existing defenses typically…

Enhancing Safety in Reinforcement Learning with Human Feedback via Rectified Policy Optimization

2024-10-25 · Xiyue Peng, Hengquan Guo, Jiawei Zhang, Dongqing Zou 외

Balancing helpfulness and safety (harmlessness) is a critical challenge in aligning large language models (LLMs). Current approaches often decouple these two objectives, training separate preference models for helpfulnes…

Safety Alignment