code space of paper "Safety Layers in Aligned Large Language Models: The Key to LLM Security" (ICLR 2025)
☆27Apr 26, 2025Updated last year
Alternatives and similar repositories for Safety-Layers
Users that are interested in Safety-Layers are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- This is the official code for the paper "Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning" (NeurIPS2024)☆30Sep 10, 2024Updated 2 years ago
- [EMNLP 2025] Layer-Aware Representation Filtering: Purifying Finetuning Data to Preserve LLM Safety Alignment☆17Jul 22, 2025Updated last year
- [NeurIPS 2025] Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation.☆14Jul 28, 2026Updated 3 months ago
- Code for the 2025 ACL publication "ConInstruction: Universal Jailbreaking of Multimodal Large Language Models via Non-Textual Modalities"☆14Nov 24, 2025Updated 11 months ago
- Code for “SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation(ICLR 2025)”☆30Oct 23, 2025Updated last year
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- ☆24Dec 8, 2024Updated last year
- Code for our ICLR'25 paper: Moral Alignment for LLM Agents☆13Apr 10, 2025Updated last year
- This is the unofficial re-implementation of "Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-t…☆13Jul 14, 2025Updated last year
- DSN jailbreak Attack & Evaluation Ensemble☆19Feb 7, 2026Updated 8 months ago
- Code for SafeMERGE (ACL 2026).☆15Oct 2, 2026Updated last month
- (ICLR '26) Safety Subspaces are Not Linearly Distinct: A Fine-Tuning Case Study☆12Oct 4, 2025Updated last year
- ☆15Jan 30, 2026Updated 9 months ago
- An implementation of SEAL: Safety-Enhanced Aligned LLM fine-tuning via bilevel data selection.☆24Feb 20, 2025Updated last year
- Github repo for NeurIPS 2024 paper "Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Models"☆32Dec 21, 2025Updated 10 months ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- NeurIPS'24 - LLM Safety Landscape☆41Oct 21, 2025Updated last year
- Our research proposes a novel MoGU framework that improves LLMs' safety while preserving their usability.☆18Jan 14, 2025Updated last year
- Code for safety test in "Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templates"☆22Sep 21, 2025Updated last year
- [EMNLP 2025] Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking☆12Aug 22, 2025Updated last year
- ☆49Oct 1, 2024Updated 2 years ago
- ☆19Dec 23, 2025Updated 10 months ago
- Data and code for the paper: Finding Safety Neurons in Large Language Models☆31Jan 29, 2026Updated 9 months ago
- Code and dataset for the paper: "Can Editing LLMs Inject Harm?" [AAAI'26]☆21Dec 26, 2025Updated 10 months ago
- This is the official code for the paper "Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderation"☆56Feb 2, 2025Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Code repo of our paper Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis (https://arxiv.org/abs/2406.10794…☆24Jul 26, 2024Updated 2 years ago
- [AAAI-2026]MAJIC: Markovian Adaptive Jailbreaking. An automated black-box attack framework against LLMs that iteratively selects and fuse…☆20Jul 25, 2026Updated 3 months ago
- A survey on harmful fine-tuning attack for large language model (ACM CSUR)☆254Sep 6, 2026Updated last month
- Code for the paper "Jailbreak Large Vision-Language Models Through Multi-Modal Linkage"☆36Dec 6, 2024Updated last year
- Repository for the Paper (AAAI 2024, Oral) --- Visual Adversarial Examples Jailbreak Large Language Models☆287May 13, 2024Updated 2 years ago
- [CVPR'26] SafeGRPO: Self-Rewarded Multimodal Safety Alignment via Rule-Governed Policy Optimization☆23Feb 19, 2026Updated 8 months ago
- offical implementation of MTSA: Multi-turn Safety Alignment for LLMs through Multi-round Red-teaming☆18Jun 2, 2025Updated last year
- Official codebase for "STAIR: Improving Safety Alignment with Introspective Reasoning"☆91Feb 26, 2025Updated last year
- Multi-dimensional analysis of orthogonal safety directions in LLM alignment☆23Jun 12, 2026Updated 4 months ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Code for paper: "PromptCARE: Prompt Copyright Protection by Watermark Injection and Verification", IEEE S&P 2024.☆35Aug 10, 2024Updated 2 years ago
- SDN based system to translate MUD profile to flow rules using Faucet as a controller☆10Jan 31, 2019Updated 7 years ago
- ☆62Jun 5, 2024Updated 2 years ago
- 利用mitmproxy抓取日本漫画app漫画图片☆11Jul 12, 2021Updated 5 years ago
- ☆30May 14, 2025Updated last year
- ☆48Jul 3, 2026Updated 4 months ago
- 微芒虚拟区块链操作系统☆18Mar 2, 2023Updated 3 years ago