Skip to main content
QUICK REVIEW

[논문 리뷰] OR-Bench: An Over-Refusal Benchmark for Large Language Models

Justin Cui, Wei-Lin Chiang|arXiv (Cornell University)|2024. 05. 31.
Natural Language Processing TechniquesComputer Science인용 수 7
한 줄 요약

OR-Bench는 25개 LLM에 걸쳐 8개 가족으로 측정한 과-refusal를 위해 8만 개의 겉보기에는 독성이 있는 프롬프트를 자동으로 생성하고, 강건한 안전성 테스트를 위해 하드 서브세트 1K와 600개의 독성 프롬프트를 추가로 제공합니다.

ABSTRACT

Large Language Models (LLMs) require careful safety alignment to prevent malicious outputs. While significant research focuses on mitigating harmful content generation, the enhanced safety often come with the side effect of over-refusal, where LLMs may reject innocuous prompts and become less helpful. Although the issue of over-refusal has been empirically observed, a systematic measurement is challenging due to the difficulty of crafting prompts that can elicit the over-refusal behaviors of LLMs. This study proposes a novel method for automatically generating large-scale over-refusal datasets. Leveraging this technique, we introduce OR-Bench, the first large-scale over-refusal benchmark. OR-Bench comprises 80,000 over-refusal prompts across 10 common rejection categories, a subset of around 1,000 hard prompts that are challenging even for state-of-the-art LLMs, and an additional 600 toxic prompts to prevent indiscriminate responses. We then conduct a comprehensive study to measure the over-refusal of 32 popular LLMs across 8 model families. Our datasets are publicly available at https://huggingface.co/bench-llms and our codebase is open-sourced at https://github.com/justincui03/or-bench. We hope this benchmark can help the community develop better safety aligned models.

연구 동기 및 목표

  • 안전 정렬(safety alignment)에 의해 주도되는 LLM의 과-refusal 현상을 동기 부여하고 정량화한다.
  • 해롭지 않은 프롬프트를 생성하는 확장 가능한 파이프라인을 만든다.
  • 광범위한 평가를 위한 대형 벤치마크(OR-Bench-80K)와 더 어려운 부분집합(Hard-1K)을 제공한다.
  • 커뮤니티가 안전 정렬되고도 유익한 LLM 동작을 개선하는 데 도움이 되는 데이터세트와 도구를 제공한다.

제안 방법

  • 독성 시드에서 시작하여 무해해 보이는 프롬프트로 다시 작성함으로써 자동으로 겉보기에는 독성이 있는 프롬프트를 생성한다.
  • 독성 시드 생성, 소수 예시를 활용한 프롬프트 재작성, 모더레이터 기반 필터링의 3단계 파이프라인을 사용한다.
  • 안전 라벨링을 위한 안전 시프트된 모델(Mistral-7B-Instruct)의 반대권한을 가진 모델 앙상블 모더레이터(GPT-4-turbo, Llama-3-70B, Gemini-1.5-pro)를 고용한다.
  • 10개 범주에 걸쳐 OR-Bench-80K를 구성하고 OR-Bench-Hard-1K 및 OR-Bench-Toxic 하위집합을 함께 구성한다.
  • 더 어려운 사례를 위해 키워드 기반 거부 탐지와 LLM 기반 평가를 통해 8개 가족의 25개 모델을 평가한다.
Figure 1: Seemingly toxic prompts rejection rate vs toxic prompts rejection rate on OR-Bench-Hard-1K and OR-Bench-Toxic. Results are measured with temperature 0.0. The best performing models should be on the upper left corner where the model rejects the least number of safe prompts and the most numb
Figure 1: Seemingly toxic prompts rejection rate vs toxic prompts rejection rate on OR-Bench-Hard-1K and OR-Bench-Toxic. Results are measured with temperature 0.0. The best performing models should be on the upper left corner where the model rejects the least number of safe prompts and the most numb

실험 결과

연구 질문

  • RQ1안전 조치가 엄격히 시행될 때 다양한 LLM 가족에서 과-refusal가 얼마나 만연해 있는가?
  • RQ2실제 독성 프롬프트가 아니더라도 과-refusal를 신뢰성 있게 테스트하는 대규모로 보이는 독성 프롬프트를 자동으로 생성할 수 있는가?
  • RQ3모델 가족 간의 안전성(독성 프롍트 거부)과 과-refusal(무해 프롬프트 거부) 사이의 트레이드오프는 무엇인가?
  • RQ4다른 모델 아키텍처와 출시 세대가 이 안전성-유용성 균형에서 어떻게 비교되는가?

주요 결과

  • 안전성과 과-refusal 사이에 강한 상관관계가 존재하며, 더 많은 독성 프롬트를 거부하는 모델은 더 안전한 프롬트도 더 많이 거부하는 경향이 있다(Spearman 0.878).
  • GPT-3.5-turbo는 초기에 과-refusal가 상당히 크다 later 버전에서 감소하는 경향을 보이며, 독성 프롬프트 거부와의 트레이드오프가 존재한다.
  • Claude 계열은 높은 안전성을 달성하지만 과-refusal도 높고, Mistral 계열은 전반적으로 거부 프롬트를 덜 거부하는 경향이 있다.
  • Llama-3 및 Gemini 계열은 안전성-과-refusal 패턴이 다르게 나타나며, 최신 Gemini 버전은 더 안전하고 과-refusal에 덜 prone해지는 경향이 있다.
  • OR-Bench-Hard-1K 부분집합은 다수의 모델이 안전성 향상에도 불구하고 특정 범주(예: 불법적이거나 프라이버시 관련 프롽트)에서 여전히 어려움을 겪는다는 것을 보여준다.
Figure 2: Overall creation process for the contributed datasets. We use Mixtral 8*7B as the toxic prompt generator and prompt rewritter and model ensemble (GPT-4-turbo-2024-04-09, Llama-3-70b, Gemini-1.5-pro) as the prompt moderator. See section 3 on how the design choices are made.
Figure 2: Overall creation process for the contributed datasets. We use Mixtral 8*7B as the toxic prompt generator and prompt rewritter and model ensemble (GPT-4-turbo-2024-04-09, Llama-3-70b, Gemini-1.5-pro) as the prompt moderator. See section 3 on how the design choices are made.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.