Keep Calm and Avoid Harmful Content: Concept Alignment and Latent Manipulation Towards Safer Answers

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Belo, Ruben, Guimaraes, Marta, Soares, Claudia
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908598458646528
author Belo, Ruben
Guimaraes, Marta
Soares, Claudia
author_facet Belo, Ruben
Guimaraes, Marta
Soares, Claudia
contents Large Language Models are susceptible to jailbreak attacks that bypass built-in safety guardrails (e.g., by tricking the model with adversarial prompts). We propose Concept Alignment and Concept Manipulation CALM, an inference-time method that suppresses harmful concepts by modifying latent representations of the last layer of the model, without retraining. Leveraging concept whitening technique from Computer Vision combined with orthogonal projection, CALM removes unwanted latent directions associated with harmful content while preserving model performance. Experiments show that CALM reduces harmful outputs and outperforms baseline methods in most metrics, offering a lightweight approach to AI safety with no additional training data or model fine-tuning, while incurring only a small computational overhead at inference.
format Preprint
id arxiv_https___arxiv_org_abs_2510_12672
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Keep Calm and Avoid Harmful Content: Concept Alignment and Latent Manipulation Towards Safer Answers
Belo, Ruben
Guimaraes, Marta
Soares, Claudia
Machine Learning
Large Language Models are susceptible to jailbreak attacks that bypass built-in safety guardrails (e.g., by tricking the model with adversarial prompts). We propose Concept Alignment and Concept Manipulation CALM, an inference-time method that suppresses harmful concepts by modifying latent representations of the last layer of the model, without retraining. Leveraging concept whitening technique from Computer Vision combined with orthogonal projection, CALM removes unwanted latent directions associated with harmful content while preserving model performance. Experiments show that CALM reduces harmful outputs and outperforms baseline methods in most metrics, offering a lightweight approach to AI safety with no additional training data or model fine-tuning, while incurring only a small computational overhead at inference.
title Keep Calm and Avoid Harmful Content: Concept Alignment and Latent Manipulation Towards Safer Answers
topic Machine Learning
url https://arxiv.org/abs/2510.12672