Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understanding

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yoo, Haneul, Yang, Yongjin, Lee, Hwaran
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909645415645184
author Yoo, Haneul
Yang, Yongjin
Lee, Hwaran
author_facet Yoo, Haneul
Yang, Yongjin
Lee, Hwaran
contents As large language models (LLMs) have advanced rapidly, concerns regarding their safety have become prominent. In this paper, we discover that code-switching in red-teaming queries can effectively elicit undesirable behaviors of LLMs, which are common practices in natural language. We introduce a simple yet effective framework, CSRT, to synthesize codeswitching red-teaming queries and investigate the safety and multilingual understanding of LLMs comprehensively. Through extensive experiments with ten state-of-the-art LLMs and code-switching queries combining up to 10 languages, we demonstrate that the CSRT significantly outperforms existing multilingual red-teaming techniques, achieving 46.7% more attacks than standard attacks in English and being effective in conventional safety domains. We also examine the multilingual ability of those LLMs to generate and understand codeswitching texts. Additionally, we validate the extensibility of the CSRT by generating codeswitching attack prompts with monolingual data. We finally conduct detailed ablation studies exploring code-switching and propound unintended correlation between resource availability of languages and safety alignment in existing multilingual LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2406_15481
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understanding
Yoo, Haneul
Yang, Yongjin
Lee, Hwaran
Artificial Intelligence
Computation and Language
As large language models (LLMs) have advanced rapidly, concerns regarding their safety have become prominent. In this paper, we discover that code-switching in red-teaming queries can effectively elicit undesirable behaviors of LLMs, which are common practices in natural language. We introduce a simple yet effective framework, CSRT, to synthesize codeswitching red-teaming queries and investigate the safety and multilingual understanding of LLMs comprehensively. Through extensive experiments with ten state-of-the-art LLMs and code-switching queries combining up to 10 languages, we demonstrate that the CSRT significantly outperforms existing multilingual red-teaming techniques, achieving 46.7% more attacks than standard attacks in English and being effective in conventional safety domains. We also examine the multilingual ability of those LLMs to generate and understand codeswitching texts. Additionally, we validate the extensibility of the CSRT by generating codeswitching attack prompts with monolingual data. We finally conduct detailed ablation studies exploring code-switching and propound unintended correlation between resource availability of languages and safety alignment in existing multilingual LLMs.
title Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understanding
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2406.15481