mlsanityData to 7 Oct 2026

Precision Knowledge Editing: Enhancing Safety in Large Language Models

arXiv 2410.03772 ↗First posted 2 Oct 2024cs.CL cs.AIcited by 2

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

Large language models (LLMs) have demonstrated remarkable capabilities, but they also pose risks related to the generation of toxic or harmful content. This work introduces Precision Knowledge Editing (PKE), an advanced technique that builds upon existing knowledge editing methods to more effectively identify and modify toxic parameter regions within LLMs. By leveraging neuron weight tracking and activation pathway tracing, PKE achieves finer granularity in toxic content management compared to previous methods like Detoxifying Instance Neuron Modification (DINM). Our experiments demonstrate that PKE significantly reduces the attack success rate (ASR) across various models, including Llama2-7b and Llama-3-8b-instruct, while maintaining overall model performance. Additionally, we also compared the performance of some closed-source models (gpt-4-0613 and Claude 3 Sonnet) in our experiments, and found that models adjusted using our method far outperformed the closed-source models in terms of safety. This research contributes to the ongoing efforts to make LLMs safer and more reliable for real-world applications.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 11 of its 20 references that are in the map. First posted on arXiv 2 Oct 2024.

Builds on

11 of 20 references.

References · 11

  1. 2024Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearningcited by 484
  2. 2023Large Language Model Unlearningcited by 288
  3. 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 179
  4. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 173
  5. 2023PMET: Precise Model Editing in a Transformercited by 170
  6. 2024Towards Safer Large Language Models through Machine Unlearningcited by 134
  7. 2024Machine Unlearning of Pre-trained Large Language Modelscited by 118
  8. 2024Detoxifying Large Language Models via Knowledge Editingcited by 86
  9. 2024From Theft to Bomb-Making: The Ripple Effect of Unlearning in Defending Against Jailbreak Attackscited by 29
  10. 2023Trends in Integration of Knowledge and Large Language Models: A Survey and Taxonomy of Methods, Benchmarks, and Applicationscited by 28
  11. 2023DUnE: Dataset for Unified Editingcited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.