Saved in:
Bibliographic Details
Main Authors: Kim, Jinseok, Jung, Jaewon, Kim, Sangyeop, Park, Sohyung, Cho, Sungzoon
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.06851
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916317579182080
author Kim, Jinseok
Jung, Jaewon
Kim, Sangyeop
Park, Sohyung
Cho, Sungzoon
author_facet Kim, Jinseok
Jung, Jaewon
Kim, Sangyeop
Park, Sohyung
Cho, Sungzoon
contents Despite the impressive capabilities of Large Language Models (LLMs) in various tasks, their vulnerability to unsafe prompts remains a critical issue. These prompts can lead LLMs to generate responses on illegal or sensitive topics, posing a significant threat to their safe and ethical use. Existing approaches attempt to address this issue using classification models, but they have several drawbacks. With the increasing complexity of unsafe prompts, similarity search-based techniques that identify specific features of unsafe prompts provide a more robust and effective solution to this evolving problem. This paper investigates the potential of sentence encoders to distinguish safe from unsafe prompts, and the ability to classify various unsafe prompts according to a safety taxonomy. We introduce new pairwise datasets and the Categorical Purity (CP) metric to measure this capability. Our findings reveal both the effectiveness and limitations of existing sentence encoders, proposing directions to improve sentence encoders to operate as more robust safety detectors. Our code is available at https://github.com/JwdanielJung/Safe-Embed.
format Preprint
id arxiv_https___arxiv_org_abs_2407_06851
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Safe-Embed: Unveiling the Safety-Critical Knowledge of Sentence Encoders
Kim, Jinseok
Jung, Jaewon
Kim, Sangyeop
Park, Sohyung
Cho, Sungzoon
Computation and Language
Despite the impressive capabilities of Large Language Models (LLMs) in various tasks, their vulnerability to unsafe prompts remains a critical issue. These prompts can lead LLMs to generate responses on illegal or sensitive topics, posing a significant threat to their safe and ethical use. Existing approaches attempt to address this issue using classification models, but they have several drawbacks. With the increasing complexity of unsafe prompts, similarity search-based techniques that identify specific features of unsafe prompts provide a more robust and effective solution to this evolving problem. This paper investigates the potential of sentence encoders to distinguish safe from unsafe prompts, and the ability to classify various unsafe prompts according to a safety taxonomy. We introduce new pairwise datasets and the Categorical Purity (CP) metric to measure this capability. Our findings reveal both the effectiveness and limitations of existing sentence encoders, proposing directions to improve sentence encoders to operate as more robust safety detectors. Our code is available at https://github.com/JwdanielJung/Safe-Embed.
title Safe-Embed: Unveiling the Safety-Critical Knowledge of Sentence Encoders
topic Computation and Language
url https://arxiv.org/abs/2407.06851