English

Smoothed Embeddings for Robust Language Models

Machine Learning 2025-01-29 v1 Artificial Intelligence Computation and Language Cryptography and Security Machine Learning

Abstract

Improving the safety and reliability of large language models (LLMs) is a crucial aspect of realizing trustworthy AI systems. Although alignment methods aim to suppress harmful content generation, LLMs are often still vulnerable to jailbreaking attacks that employ adversarial inputs that subvert alignment and induce harmful outputs. We propose the Randomized Embedding Smoothing and Token Aggregation (RESTA) defense, which adds random noise to the embedding vectors and performs aggregation during the generation of each output token, with the aim of better preserving semantic information. Our experiments demonstrate that our approach achieves superior robustness versus utility tradeoffs compared to the baseline defenses.

Keywords

Cite

@article{arxiv.2501.16497,
  title  = {Smoothed Embeddings for Robust Language Models},
  author = {Ryo Hase and Md Rafi Ur Rashid and Ashley Lewis and Jing Liu and Toshiaki Koike-Akino and Kieran Parsons and Ye Wang},
  journal= {arXiv preprint arXiv:2501.16497},
  year   = {2025}
}

Comments

Presented in the Safe Generative AI Workshop at NeurIPS 2024

R2 v1 2026-06-28T21:20:46.844Z