paper-with-me

홈 › Papers

LatentGuard: Controllable Latent Steering for Robust Refusal of Attacks and Reliable Response Generation

2025-09-24 · Huizhen Shu, Xuying Li, Zhuo Li arxiv

Achieving robust safety alignment in large language models (LLMs) while preserving their utility remains a fundamental challenge. Existing approaches often struggle to balance comprehensive safety with fine-grained controllability at the representation level. We introduce LATENTGUARD, a novel three-stage framework that combines behavioral alignment with supervised latent space control for interpretable and precise safety steering. Our approach begins by fine-tuning an LLM on rationalized datasets containing both reasoning-enhanced refusal responses to adversarial prompts and reasoning-enhanced normal responses to benign queries, establishing robust behavioral priors across both safety-critical and utility-preserving scenarios. We then train a structured variational autoencoder (VAE) on intermediate MLP activations, supervised by multi-label annotations including attack types, attack methods, and benign indicators. This supervision enables the VAE to learn disentangled latent representations that capture distinct adversarial characteristics while maintaining semantic interpretability. Through targeted manipulation of learned latent dimensions, LATENTGUARD achieves selective refusal behavior, effectively blocking harmful requests while preserving helpfulness for legitimate use cases. Experiments on Qwen3-8B demonstrate significant improvements in both safety controllability and response interpretability without compromising utility. Cross-architecture validation on Mistral-7B confirms the generalizability of our latent steering approach, showing consistent effectiveness across different model families. Our results suggest that structured representation-level intervention offers a promising pathway toward building safer yet practical LLM systems.

📄 PDF Abstract BibTeX arXiv:2509.19839

Code (0)

등록된 구현이 없습니다.

Tasks

Response Generation

Similar Papers 제목 키워드 기반

Refusal Steering: Fine-grained Control over LLM Refusal Behaviour for Sensitive Topics

2025-12-18 · Iker García-Ferrero, David Montero, Roman Orus arxiv

We introduce Refusal Steering, an inference-time method to exercise fine-grained control over Large Language Models refusal behaviour on politically sensitive topics without retraining. We replace fragile pattern-based r…

Latent-space Attacks for Refusal Evasion in Language Models

2026-05-20 · Giorgio Piras, Raffaele Mura, Fabio Brau, Maura Pintor 외 arxiv

Safety-aligned language models are trained to refuse harmful requests, yet refusal behavior can be suppressed by steering their internal representations. Existing methods do so by ablating a refusal direction from model …

Graph-Regularized Sparse Autoencoders for LLM Safety Steering

2025-12-07 · Jehyeok Yeon, Federico Cinus, Yifan Wu, Luca Luceri arxiv

Sparse autoencoders (SAEs) are increasingly used to extract activation directions for inference-time steering, but their standard sparsity objective treats latent features as independent. This prior can be poorly matched…

LLMs Encode Harmfulness and Refusal Separately

2025-07-16 · Jiachen Zhao, Jing Huang, Zhengxuan Wu, David Bau 외

LLMs are trained to refuse harmful instructions, but do they truly understand harmfulness beyond just refusing? Prior work has shown that LLMs' refusal behaviors can be mediated by a one-dimensional subspace, i.e., a ref…

Steering Beyond the Support: Adversarial Training on Unsupervised Jailbroken Activation Simulation

2026-05-23 · Luoyu Chen, Weiqi Wang, Zhiyi Tian, Chenhan Zhang 외 arxiv

Jailbreak prompts can trigger harmful completions on aligned LLMs, In accordance, safety steering has been proposed: test-time activation interventions that steer jailbreak activations to trigger refusal while preserving…