Improved Large Language Model Jailbreak Detection via Pretrained Embeddings

Erick Galinkin, Martin Sablotny · 2024

Read Improved Large Language Model Jailbreak Detection via Pretrained Embeddings by Erick Galinkin, Martin Sablotny (2024) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2412-01547.txt.

Description

Erick Galinkin and Martin Sablotny propose in 2024 a better way to catch jailbreak prompts aimed at large language models. Such prompts try to trick a model into giving answers that break safety, privacy, or content rules. Blocking the prompt early can stop the harmful reply before it starts.

Their method turns each prompt into a numerical embedding using models pre-trained for search-like tasks. Classic machine learning classifiers then judge whether the embedding looks like a jailbreak attempt. The authors report that this pairing beats every public method from open source security tools for language models. The work sits in a growing line of defenses that owners of these models add on top of training-time safeguards. It treats prompt detection as a sorting task rather than a reading task, which keeps the check fast and simple.

Catalog record

CREATORErick Galinkin, Martin Sablotny
YEAR2024
COLLECTIONPAPERS
FORMATTXT
FILE SIZE25 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2412-01547

Browse the full library · About the Tower of Babel