Attention Shift: Steering AI Away from Unsafe Content

Shivank Garg, Manyana Tiwari
10/6/2024
cs.CVcs.CRcs.LG

No confident code implementation found for this paper.

Abstract

This study investigates the generation of unsafe or harmful content in state-of-the-art generative models, focusing on methods for restricting such generations. We introduce a novel training-free approach using attention reweighing to remove unsafe concepts without additional training during inference. We compare our method against existing ablation methods, evaluating the performance on both, direct and adversarial jailbreak prompts, using qualitative and quantitative metrics. We hypothesize potential reasons for the observed results and discuss the limitations and broader implications of content restriction.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{garg2024attention,
  title  = {Attention Shift: Steering AI Away from Unsafe Content},
  author = {Shivank Garg and Manyana Tiwari},
  year   = {2024},
  eprint = {2410.04447},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04447v1}
}

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/2410.04447.svg)](https://codeofpaper.com/paper/2410.04447)

Discussion