Skip to main content
QUICK REVIEW

[Paper Review] SciSafeEval: A Comprehensive Benchmark for Safety Alignment of Large Language Models in Scientific Tasks

Tianhao Li, Jingyu Lu|arXiv (Cornell University)|Oct 2, 2024
Scientific Computing and Data ManagementDecision Sciences6 citations
TL;DR

SCISAFEEVAL is a large-scale, multi-domain safety benchmark for LLMs in scientific tasks, featuring 31,840 samples across chemistry, biology, medicine, and physics, plus jailbreak testing to stress safety guardrails.

ABSTRACT

Large language models (LLMs) have a transformative impact on a variety of scientific tasks across disciplines including biology, chemistry, medicine, and physics. However, ensuring the safety alignment of these models in scientific research remains an underexplored area, with existing benchmarks primarily focusing on textual content and overlooking key scientific representations such as molecular, protein, and genomic languages. Moreover, the safety mechanisms of LLMs in scientific tasks are insufficiently studied. To address these limitations, we introduce SciSafeEval, a comprehensive benchmark designed to evaluate the safety alignment of LLMs across a range of scientific tasks. SciSafeEval spans multiple scientific languages-including textual, molecular, protein, and genomic-and covers a wide range of scientific domains. We evaluate LLMs in zero-shot, few-shot and chain-of-thought settings, and introduce a "jailbreak" enhancement feature that challenges LLMs equipped with safety guardrails, rigorously testing their defenses against malicious intention. Our benchmark surpasses existing safety datasets in both scale and scope, providing a robust platform for assessing the safety and performance of LLMs in scientific contexts. This work aims to facilitate the responsible development and deployment of LLMs, promoting alignment with safety and ethical standards in scientific research.

Motivation & Objective

  • Assess safety alignment of LLMs across textual, molecular, protein, and genomic scientific languages.
  • Provide a large, high-quality, multi-disciplinary benchmark with harmful and benign samples.
  • Incorporate jailbreak prompts to evaluate robustness of safety guardrails against adversarial prompts.
  • Evaluate zero-shot, few-shot, and chain-of-thought prompting to understand safety under different guidance levels.

Proposed method

  • Construct a multi-disciplinary dataset spanning chemistry, biology, medicine, and physics with textual and scientific representations.
  • Curate hazardous substances from authoritative hazard databases and combine with domain-specific instructions from established datasets.
  • Incorporate jailbreak prompts using WildTeaming to test guardrail robustness against adversarial prompts.
  • Evaluate models under zero-shot, few-shot, and chain-of-thought prompting, plus jailbreak testing.
  • Use three judges to assess harmlessness, helpfulness, and refusal rate to measure safety alignment.

Experimental results

Research questions

  • RQ1How safe are general-purpose and domain-specific LLMs when answering scientific queries across multiple domains?
  • RQ2Does few-shot or chain-of-thought prompting improve safety alignment in scientific tasks?
  • RQ3How vulnerable are models with built-in guardrails to jailbreaking attempts in scientific contexts?
  • RQ4What are the trade-offs between harmlessness, helpfulness, and refusal rate across domains and prompting settings?
  • RQ5Can a large-scale, multi-language benchmark better reveal safety gaps than prior datasets?

Key findings

  • SCISAFEEVAL contains 31,840 samples across chemistry, biology, medicine, and physics.
  • Zero-shot performance is generally poor for safety alignment, with improved results under five-shot and chain-of-thought prompting.
  • Claude-3.5 achieves the highest overall safety performance, with closed-source models often outperforming open-source ones.
  • Jailbreak prompts reveal smaller models are more susceptible to adversarial attacks than larger models.
  • Jailbreak attack success rates vary by model, with LLaMa-8B showing high susceptibility compared to LLaMa-70B.
  • Trade-offs exist between harmlessness and helpfulness, with some models showing oversafety under certain prompting regimes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.