Jailbreaking Open-Weight LLMs via Random Embedding Perturbations
cs.CR, cs.AI, cs.CL, cs.LG
Submitted: 2026-10-05
Updated: 2026-10-05
Comments: 15 pages, 4 figures, Code: https://github.com/AbhinavDubey30/Perturbed-Embedding-Vectors
Code: https://github.com/AbhinavDubey30/Perturbed-Embedding-Vectors
License: http://creativecommons.org/licenses/by/4.0/
The gist: While open-weight models have enjoyed steady progress in capabilities and wide adoption across multiple domains, their safety remains an important concern.
Abstract
While open-weight models have enjoyed steady progress in capabilities and wide adoption across multiple domains, their safety remains an important concern. One key feature is the ability to refuse or deflect harmful, malicious, or insensitive prompts. In this paper, we expose safety vulnerabilities across six common open-weight LLMs of various sizes that consistently lead to harmful or unsafe responses on the JailbreakBench benchmark dataset. Our proposed attack, Perturbed Embedding Vector (PEV), is a simple and fast "jailbreaking" technique that is cheaper than prior approaches, which typically require gradient computations, per-prompt optimizations, or altering internal weights of the models. PEV just adds independent Gaussian noise in the embedding vector representations of the prompt, with no need for further manipulations. To generate unsafe responses, we repeatedly sample additive noise from this distribution. In our experiments, we observe that the average compute cost to get the first successful attack is up to an order of magnitude less than previous attacks. The first successful jailbreak on a new prompt typically arrives within one minute on every tested model, and PEV generates unsafe responses across all models for all prompts in JailbreakBench. No other tested method achieves such results, despite them taking longer to run. More broadly, we believe that understanding the behavior of LLMs under perturbations in the embedding vectors is an important research direction: while perturbations constitute a major security risk, they can also serve as a valuable tool for exploring the dynamical behavior of such models.
Sources
- Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAs
- Refusal in Language Models Is Mediated by a Single Direction
- LLM-Safety Evaluations Lack Robustness
- PISanitizer: Preventing Prompt Injection to Long-Context LLMs via Prompt Sanitization
- The Llama 3 Herd of Models
- Mistral 7B
- The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning
- Qwen2.5 Technical Report
- SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks
- The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence
- Latent Fusion Jailbreak: Blending Harmful and Harmless Representations to Elicit Unsafe LLM Outputs
- SOS! Soft Prompt Attack Against Open-Source Large Language Models
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs