Dissecting Language Models: Machine Unlearning via Selective Pruning

Nicholas Pochinkov, Nandi Schoots
3/2/2024
cs.LGcs.CL

Official code: nickypro/selective-pruning (6 stars, last commit 2024-07-26).

Abstract

Understanding and shaping the behaviour of Large Language Models (LLMs) is increasingly important as applications become more powerful and more frequently adopted. This paper introduces a machine unlearning method specifically designed for LLMs. We introduce a selective pruning method for LLMs that removes neurons based on their relative importance on a targeted capability compared to overall network performance. This approach is a compute- and data-efficient method for identifying and removing neurons that enable specific behaviours. Our findings reveal that both feed-forward and attention neurons in LLMs are specialized; that is, for specific tasks, certain neurons are more crucial than others. Code from all experiments is available at https://github.com/nickypro/selective-pruning

View on arXivView PDF

Code Implementations(1)

65Shell, PythonJul 17, 20242 years ago

Cite this paper

@article{pochinkov2024dissecting,
  title  = {Dissecting Language Models: Machine Unlearning via Selective Pruning},
  author = {Nicholas Pochinkov and Nandi Schoots},
  year   = {2024},
  eprint = {2403.01267},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01267v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01267.svg)](https://codeofpaper.com/paper/2403.01267)

Discussion