CodeAttack: Revealing Safety Generalization Challenges of Large Language Models via Code Completion
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
The rapid advancement of Large Language Models (LLMs) has brought about remarkable generative capabilities but also raised concerns about their potential misuse. While strategies like supervised fine-tuning and reinforcement learning from human feedback have enhanced their safety, these methods primarily focus on natural languages, which may not generalize to other domains. This paper introduces CodeAttack, a framework that transforms natural language inputs into code inputs, presenting a novel environment for testing the safety generalization of LLMs. Our comprehensive studies on state-of-the-art LLMs including GPT-4, Claude-2, and Llama-2 series reveal a new and universal safety vulnerability of these models against code input: CodeAttack bypasses the safety guardrails of all models more than 80% of the time. We find that a larger distribution gap between CodeAttack and natural language leads to weaker safety generalization, such as encoding natural language input with data structures. Furthermore, we give our hypotheses about the success of CodeAttack: the misaligned bias acquired by LLMs during code training, prioritizing code completion over avoiding the potential safety risk. Finally, we analyze potential mitigation measures. These findings highlight new safety risks in the code domain and the need for more robust safety alignment algorithms to match the code capabilities of LLMs.
Key facts. Cited by 76 papers in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 31 of its 44 references that are in the map. First posted on arXiv 12 Mar 2024.
Builds on
31 of 44 references.
Closest ancestors · 1
Same direction, newest first
Other references · 30
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
18 more
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 573
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 423
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2023Pretraining Language Models with Human Preferencescited by 247
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 214
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 172
- 2023FLIRT: Feedback Loop In-context Red Teamingcited by 83
- 2024PsySafe: A Comprehensive Framework for Psychological-based Attack, Defense, and Evaluation of Multi-agent System Safetycited by 80
- 2024Identifying Semantic Induction Heads to Understand In-Context Learningcited by 47
Built on by
Citing papers per year: 2024: 7; 2025: 39; 2026: 30.
76 papers.
Sort:
By area:
- 2024Refuse Whenever You Feel Unsafe: Improving Safety in LLMs via Decoupled Refusal Trainingcited by 69
- 2025Foot-In-The-Door: A Multi-turn Jailbreak for LLMscited by 54
- 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understandingcited by 34
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Modelscited by 20
- 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Languagecited by 18
- 2025Lifelong Safety Alignment for Language Modelscited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2024Black-Box Adversarial Attacks on LLM-Based Code Completioncited by 14
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 13
- 2025GuidedBench: Measuring and Mitigating the Evaluation Discrepancies of In-the-wild LLM Jailbreak Methodscited by 12
- 2025Response Attack: Exploiting Contextual Priming to Jailbreak Large Language Modelscited by 10
- 2025RedCoder: Automated Multi-Turn Red Teaming for Code LLMscited by 9
38 more
- 2024POROver: Improving Safety and Reducing Overrefusal in Large Language Models with Overgeneration and Preference Optimizationcited by 8
- 2025Why Not Act on What You Know? Unleashing Safety Potential of LLMs via Self-Aware Guard Enhancementcited by 8
- 2025ARMOR: Aligning Secure and Safe Large Language Models via Meticulous Reasoningcited by 8
- 2025Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignmentcited by 7
- 2025OMNIGUARD: An Efficient Approach for AI Safety Moderation Across Languages and Modalitiescited by 7
- 2025Breaking the Code: Security Assessment of AI Code Agents Through Systematic Jailbreaking Attackscited by 7
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2025HumorReject: Decoupling LLM Safety from Refusal Prefix via A Little Humorcited by 6
- 2025Bleeding Pathways: Vanishing Discriminability in LLM Hidden States Fuels Jailbreak Attackscited by 5
- 2025Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Promptscited by 5
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 5
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learningcited by 4
- 2024SQL Injection Jailbreak: A Structural Disaster of Large Language Modelscited by 4
- 2025When Grammar Guides the Attack: Uncovering Control-Plane Vulnerabilities in LLMs with Structured Outputcited by 4
- 2025Imperceptible Jailbreaking against Large Language Modelscited by 4
- 2025Characterizing Selective Refusal Bias in Large Language Modelscited by 4
- 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probingcited by 4
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistantscited by 4
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignmentcited by 3
- 2026STAR-S: Improving Safety Alignment through Self-Taught Reasoning on Safety Rulescited by 3
- 2026SoK: Robustness in Large Language Models against Jailbreak Attackscited by 3
- 2025StructTransform: A Scalable Attack Surface for Safety-Aligned Large Language Modelscited by 2
- 2025InfoFlood: Jailbreaking Large Language Models with Information Overloadcited by 2
- 2025ERIS: Evolutionary Real-world Interference Scheme for Jailbreaking Audio Large Modelscited by 2
- 2025Jailbreaking LLMs via Semantically Relevant Nested Scenarios with Targeted Toxic Knowledgecited by 2
- 2025ArtPerception: ASCII Art-based Jailbreak on LLMs with Recognition Pre-testcited by 2
- 2026CASA: Classification Augmented with Safety Attention for Robust Multimodal Alignmentcited by 2
- 2026Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.4cited by 2
- 2026Furina: Fragmented Uncertainty-Driven Refusal Instability Attackcited by 2
- 2026Structuring the Space of Sociotechnical Alignmentcited by 2
- 2025Self-Instruct Few-Shot Jailbreaking: Decompose the Attack into Pattern and Behavior Learningcited by 1
- 2025GraphAttack: Exploiting Representational Blindspots in LLM Safety Mechanismscited by 1
- 2025Activation-Guided Local Editing for Jailbreaking Attackscited by 1
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generationcited by 1
- 2025SafetyFlow: An Agent-Flow System for Automated LLM Safety Benchmarkingcited by 1
- 2025ASTRA: An Automated Framework for Strategy Discovery, Retrieval, and Evolution for Jailbreaking LLMscited by 1
- 2025Why Does Weak-OOD Help? A Further Step Towards Understanding Jailbreaking VLMscited by 1
- 2025Understanding and Mitigating Over-refusal for Large Language Models via Representation Interventioncited by 1
50 most cited of 76 All 76 (JSON)
- 2026CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion30 Sep 2026
- 2026Constitutional adapters: Inference-time interventions for misalignment and misuse29 Sep 2026
- 2026CASCADE Against Jailbreaks: Combination Across Stages with Controlled Attack-Defense Evaluation18 Sep 2026
- 2026Before the Script, Set the Stage: How Worldview Simulation Amplifies Psychologically Grounded Persuasion in Multi-Turn Jailbreaking2 Sep 2026
- 2026ASCII Attack: Recontextualising Harmful Requests as Artistic Critique in Large Language Models2 Sep 2026
- 2026Fair ASR: Re-Evaluating Black-Box Jailbreaks under Shared Target-Call Budgets18 Aug 2026
- 2026The Uncontrolled Variable: Vision-Language Model Refusal Responds to Image Presence in Ways Risk Cannot Explain12 Aug 2026
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreaks2 Aug 2026
- 2026Refused in Chat, Written in Code: Workflow-Level Jailbreak Construction in IDE Coding Agents4 Jul 2026
- 2026HARC: Coupling Harmfulness and Refusal Directions for Robust Safety Alignment1 Jul 2026
- 2026DoubtProbe: Black-Box Jailbreak Defense via Structural Verification and Semantic Auditing15 Jun 2026
- 2026Structuring the Space of Sociotechnical Alignment2 Jun 2026
38 more
- 2026Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routing30 May 2026
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants29 May 2026
- 2026Furina: Fragmented Uncertainty-Driven Refusal Instability Attack24 May 2026
- 2026Reasoning as an Attack Surface: Adaptive Evolutionary CoT Jailbreaks for LLMs23 May 2026
- 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolution13 May 2026
- 2026Single-Configuration Attack Success Rate Is Not Enough: Jailbreak Evaluations Should Report Distributional Attack Success9 May 2026
- 2026SoK: Robustness in Large Language Models against Jailbreak Attacks6 May 2026
- 2026SRTJ: Self-Evolving Rule-Driven Training-Free LLM Jailbreaking1 May 2026
- 2026Attention Is Where You Attack30 Apr 2026
- 2026Jailbreaking Frontier Foundation Models Through Intention Deception27 Apr 2026
- 2026SafeRedirect: Defeating Internal Safety Collapse via Task-Completion Redirection in Frontier LLMs22 Apr 2026
- 2026Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.421 Apr 2026
- 2026CASA: Classification Augmented with Safety Attention for Robust Multimodal Alignment31 Mar 2026
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models20 Mar 2026
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Search26 Feb 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing15 Jan 2026
- 2026STAR-S: Improving Safety Alignment through Self-Taught Reasoning on Safety Rules7 Jan 2026
- 2025Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breaking24 Dec 2025
- 2025AI Identity Disclosure Under Professional Personas: A Gap Between Capacity and Consistency26 Nov 2025
- 2025Understanding and Mitigating Over-refusal for Large Language Models via Representation Intervention24 Nov 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Why Does Weak-OOD Help? A Further Step Towards Understanding Jailbreaking VLMs11 Nov 2025
- 2025ASTRA: An Automated Framework for Strategy Discovery, Retrieval, and Evolution for Jailbreaking LLMs4 Nov 2025
- 2025Characterizing Selective Refusal Bias in Large Language Models31 Oct 2025
- 2025BreakFun: Jailbreaking LLMs via Object Instantiation under Simulated Code Execution19 Oct 2025
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignment17 Oct 2025
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025ArtPerception: ASCII Art-based Jailbreak on LLMs with Recognition Pre-test11 Oct 2025
- 2025Imperceptible Jailbreaking against Large Language Models6 Oct 2025
- 2025Breaking the Code: Security Assessment of AI Code Agents Through Systematic Jailbreaking Attacks1 Oct 2025
- 2025Jailbreaking LLMs via Semantically Relevant Nested Scenarios with Targeted Toxic Knowledge22 Sep 2025
- 2025ERIS: Evolutionary Real-world Interference Scheme for Jailbreaking Audio Large Models14 Sep 2025
- 2025SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Models21 Aug 2025
- 2025SafetyFlow: An Agent-Flow System for Automated LLM Safety Benchmarking21 Aug 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025Activation-Guided Local Editing for Jailbreaking Attacks1 Aug 2025
- 2025What Makes Code Generation Ethically Sourced?26 Jul 2025
50 newest of 76 All 76 (JSON)
- 2025Foot-In-The-Door: A Multi-turn Jailbreak for LLMscited by 54
- 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understandingcited by 34
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 13
- 2025GuidedBench: Measuring and Mitigating the Evaluation Discrepancies of In-the-wild LLM Jailbreak Methodscited by 12
- 2025Response Attack: Exploiting Contextual Priming to Jailbreak Large Language Modelscited by 10
- 2025RedCoder: Automated Multi-Turn Red Teaming for Code LLMscited by 9
- 2025Why Not Act on What You Know? Unleashing Safety Potential of LLMs via Self-Aware Guard Enhancementcited by 8
- 2025Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignmentcited by 7
- 2025OMNIGUARD: An Efficient Approach for AI Safety Moderation Across Languages and Modalitiescited by 7
- 2025HumorReject: Decoupling LLM Safety from Refusal Prefix via A Little Humorcited by 6
- 2025Bleeding Pathways: Vanishing Discriminability in LLM Hidden States Fuels Jailbreak Attackscited by 5
- 2025Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Promptscited by 5
12 most cited of 43 All 43 (JSON)
- 2026Constitutional adapters: Inference-time interventions for misalignment and misuse29 Sep 2026
- 2026CASCADE Against Jailbreaks: Combination Across Stages with Controlled Attack-Defense Evaluation18 Sep 2026
- 2026Before the Script, Set the Stage: How Worldview Simulation Amplifies Psychologically Grounded Persuasion in Multi-Turn Jailbreaking2 Sep 2026
- 2026Fair ASR: Re-Evaluating Black-Box Jailbreaks under Shared Target-Call Budgets18 Aug 2026
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreaks2 Aug 2026
- 2026DoubtProbe: Black-Box Jailbreak Defense via Structural Verification and Semantic Auditing15 Jun 2026
- 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolution13 May 2026
- 2026Single-Configuration Attack Success Rate Is Not Enough: Jailbreak Evaluations Should Report Distributional Attack Success9 May 2026
- 2026SoK: Robustness in Large Language Models against Jailbreak Attacks6 May 2026
- 2026Jailbreaking Frontier Foundation Models Through Intention Deception27 Apr 2026
- 2026SafeRedirect: Defeating Internal Safety Collapse via Task-Completion Redirection in Frontier LLMs22 Apr 2026
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models20 Mar 2026
12 newest of 43 All 43 (JSON)
- 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Languagecited by 18
- 2025Lifelong Safety Alignment for Language Modelscited by 15
- 2024POROver: Improving Safety and Reducing Overrefusal in Large Language Models with Overgeneration and Preference Optimizationcited by 8
- 2025ARMOR: Aligning Secure and Safe Large Language Models via Meticulous Reasoningcited by 8
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignmentcited by 3
- 2025StructTransform: A Scalable Attack Surface for Safety-Aligned Large Language Modelscited by 2
- 2026CASA: Classification Augmented with Safety Attention for Robust Multimodal Alignmentcited by 2
- 2026Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.4cited by 2
- 2026Furina: Fragmented Uncertainty-Driven Refusal Instability Attackcited by 2
- 2025ASTRA: An Automated Framework for Strategy Discovery, Retrieval, and Evolution for Jailbreaking LLMscited by 1
- 2026Attention Is Where You Attackcited by 0
- 2026SRTJ: Self-Evolving Rule-Driven Training-Free LLM Jailbreakingcited by 0
12 most cited of 15 All 15 (JSON)
- 2026CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion30 Sep 2026
- 2026ASCII Attack: Recontextualising Harmful Requests as Artistic Critique in Large Language Models2 Sep 2026
- 2026HARC: Coupling Harmfulness and Refusal Directions for Robust Safety Alignment1 Jul 2026
- 2026Furina: Fragmented Uncertainty-Driven Refusal Instability Attack24 May 2026
- 2026SRTJ: Self-Evolving Rule-Driven Training-Free LLM Jailbreaking1 May 2026
- 2026Attention Is Where You Attack30 Apr 2026
- 2026Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.421 Apr 2026
- 2026CASA: Classification Augmented with Safety Attention for Robust Multimodal Alignment31 Mar 2026
- 2025ASTRA: An Automated Framework for Strategy Discovery, Retrieval, and Evolution for Jailbreaking LLMs4 Nov 2025
- 2025HarmRLVR: Weaponizing Verifiable Rewards for Harmful LLM Alignment17 Oct 2025
- 2025ARMOR: Aligning Secure and Safe Large Language Models via Meticulous Reasoning14 Jul 2025
- 2025Lifelong Safety Alignment for Language Models26 May 2025
12 newest of 15 All 15 (JSON)
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Modelscited by 20
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Breaking the Code: Security Assessment of AI Code Agents Through Systematic Jailbreaking Attackscited by 7
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learningcited by 4
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistantscited by 4
- 2025SafetyFlow: An Agent-Flow System for Automated LLM Safety Benchmarkingcited by 1
- 2026Refused in Chat, Written in Code: Workflow-Level Jailbreak Construction in IDE Coding Agentscited by 0
- 2026Refused in Chat, Written in Code: Workflow-Level Jailbreak Construction in IDE Coding Agents4 Jul 2026
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants29 May 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Breaking the Code: Security Assessment of AI Code Agents Through Systematic Jailbreaking Attacks1 Oct 2025
- 2025SafetyFlow: An Agent-Flow System for Automated LLM Safety Benchmarking21 Aug 2025
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learning11 Oct 2024
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Models25 Jul 2024
- 2024Refuse Whenever You Feel Unsafe: Improving Safety in LLMs via Decoupled Refusal Trainingcited by 69
- 2024Black-Box Adversarial Attacks on LLM-Based Code Completioncited by 14
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2026Structuring the Space of Sociotechnical Alignmentcited by 2
- 2025What Makes Code Generation Ethically Sourced?cited by 0
- 2025AI Identity Disclosure Under Professional Personas: A Gap Between Capacity and Consistencycited by 0
- 2026Structuring the Space of Sociotechnical Alignment2 Jun 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2025AI Identity Disclosure Under Professional Personas: A Gap Between Capacity and Consistency26 Nov 2025
- 2025What Makes Code Generation Ethically Sourced?26 Jul 2025
- 2024Black-Box Adversarial Attacks on LLM-Based Code Completion5 Aug 2024
- 2024Refuse Whenever You Feel Unsafe: Improving Safety in LLMs via Decoupled Refusal Training12 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
- 2024SG-Bench: Evaluating LLM Safety Generalization Across Diverse Tasks and Prompt Types
- 2025Fine-Tuning Lowers Safety and Disrupts Evaluation Consistency
- 2026Safety Targeted Embedding Exploit via Refinement
- 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stages
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection
- 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons