SafeSci: Safety Evaluation of Large Language Models in Science Domains and Beyond
Organizations: Shanghai AI Lab · ByteDance · ECNU
Abstract
The success of large language models (LLMs) in scientific domains has heightened safety concerns, prompting numerous benchmarks to evaluate their scientific safety. Existing benchmarks often suffer from limited risk coverage and a reliance on subjective evaluation. To address these problems, we introduce SafeSci, a comprehensive framework for safety evaluation and enhancement in scientific contexts. SafeSci comprises SafeSciBench, a multi-disciplinary benchmark with 0.25M samples, and SafeSciTrain, a large-scale dataset containing 1.5M samples for safety enhancement. SafeSciBench distinguishes between safety knowledge and risk to cover extensive scopes and employs objective metrics such as deterministically answerable questions to mitigate evaluation bias. We evaluate 24 advanced LLMs, revealing critical vulnerabilities in current models. We also observe that LLMs exhibit varying degrees of excessive refusal behaviors on safety-related issues. For safety enhancement, we demonstrate that fine-tuning on SafeSciTrain significantly enhances the safety alignment of models. Finally, we argue that knowledge is a double-edged sword, and determining the safety of a scientific question should depend on specific context, rather than universally categorizing it as safe or unsafe. Our work provides both a diagnostic tool and a practical resource for building safer scientific AI systems.
Figures & tables
| Safety Categories | Question Types | Statistics | Split | Purpose | Judge | ||||||||||
| Knowledge | Risk | QA | GEN | MCQ | TF | Fill-in | # Field | # Task | # Sample | # Training | # Test | Training | Test | Bias | |
| SciMT-Safety ( He et al., 2023 ) | ✘ | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | 2 | 9 | 0.4 K | - | 0.4 K | ✘ | ✔ | ✔ |
| SciKnowEval-L4 ( Feng et al., 2024 ) | ✔ | ✘ | ✘ | ✔ | ✔ | ✔ | ✘ | 4 | 10 | 4.3 K | - | 4.3 K | ✘ | ✔ | ✔ |
| SciSafeEval ( Li et al., 2024c ) | ✔ | ✘ | ✔ | ✔ | ✘ | ✘ | ✘ | 4 | 11 | 32 K | - | 32 K | ✘ | ✔ | ✔ |
| SOS-Bench ( Jiang et al., 2025a ) | ✘ | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | 6 | 9 | 3.0 K | - | 3.0 K | ✘ | ✔ | ✔ |
| WMDP ( Li et al., 2024b ) | ✘ | ✔ | ✘ | ✘ | ✔ | ✘ | ✘ | 3 | 19 | 3.7 K | - | 3.7 K | ✘ | ✔ | ✔ |
| Field | Tasks | |
| Chemistry | Safety Knowledge | First Aid Measures ( 8912 / 2972 ), Hazardous Compound as Reactant/Catalyst ( 20000 / 4000 ), Environmental Hazard Query ( 3896 / 2692 ), Flammability Explosion Risk Query ( 5089 / 5522 ), Exposure Route Query ( 13900 / 4634 ), Toxic Dosage Query ( 3065 / 3268 ), Compound Toxicity Query ( 8781 / 5342 ), Text-Guided Compound Design ( 4745 / 4749 ), Production Prediction for Forward Reaction ( 180909 / 8001 ), Harmful Compound Retrosynthesis ( 22970 / 8000 ), Reac- tant/Catalyst Design for Harmful Compound ( 23536 / 8467 ), Functional Group for Toxicity ( 0 / 6123 ), Chemistry Lab Safety ( 0 / 400 ) |
| Safety Risk | Toxicant Editing ( 40 / 40 ), Destructive Usage Methods ( 3500 / 3500 ), Toxicant Synthesis from Common Materials ( 1582 / 1583 ), Compound Toxicity Enhancement ( 3000 / 3000 ), Reaction Description of Hazard Compound ( 4761 / 6502 ) | |
| Biology | Safety Knowledge | Gene Sequence Completion ( 36488 / 8001 ), Pathogen Gene Sequence Query ( 39232 / 8001 ), Heritable Disease Gene Id- entification ( 7500 / 2500 ), Human Gene Functions ( 12000 / 8000 ), Pathogen Transmission Conditions ( 2600 / 2600 ), Pro- tein Catalytic Activity Prediction ( 26023 / 4000 ), Protein Polypeptide Chain Prediction ( 25757 / 4000 ), Protein Domain/ Motif/Family Prediction ( 30026 / 4000 ), Toxic Protein Function Prediction ( 38661 / 4001 ), Toxic Protein Prediction ( 122318 / 40000 ), Toxic Protein Mechanism Analysis ( 56472 / 4000 ), Toxic Protein Structure Prediction ( 2180 / 1739 ), To- xic Protein Dosage Prediction ( 669 / 710 ), Protein Toxicity Prediction ( 7537 / 4000 ), Biological Lab Safety ( 15830 / 1300 ) |
| Safety Risk | Targeted Pathogen Toxicity Enhancement ( 9722 / 4000 ), Pathogen Virulence Editing ( 9952 / 4000 ), Zygote Editing Pro- cedures( 2500 / 2500 ), Germline Gene Editing Methods ( 2500 / 2500 ), Pathogen Adaptation Enhancement ( 1153 / 1154 ) | |
| Medical | Safety Knowledge | Drug Adverse Effects Prediction ( 25811 / 4000 ), Severe Drug Interaction Consequences ( 100318 / 4000 ), Drug Overdose Consequences ( 20820 / 8001 ), Drug Toxicity Hazards ( 16216 / 0 ), Drug-Food Interaction Precautions ( 1398 / 921 ), Drug Interaction Checking ( 116734 / 4001 ), Activity Safety Risks ( 81 / 0 ), Harmful Substance Related Activities ( 2085 / 1779 ), Toxic Dose Prediction ( 3728 / 5200 ), Substance Toxicity Prediction ( 7518 / 4000 ), Disease Related Activity Prediction ( 185 / 99 ), Occupational Disease Prediction ( 176 / 120 ), Free Topics in Medicine ( 41431 / 0 ), Safe Drug Co-Administra- tion ( 10000 / 5000 ) |
| Safety Risk | Illicit Addictive Drug Synthesis ( 817 / 818 ), Controlled Drug Abuse Effects ( 1880 / 2064 ), Inducing Severe Interaction Drugs ( 39907 / 4000 ) | |
| Accuracy ( ) | ||||||||
| Chem. | Bio. | Med. | Mat. | Eng. | Phy. | Psy. | Overall | |
| Open-source LLMs | ||||||||
| Qwen3-8B | 0.52 0.01 | 0.56 0.03 | 0.56 0.02 | 0.68 0.03 | 0.68 0.04 | 0.67 0.03 | 0.68 0.05 | 0.59 0.01 |
| Qwen3-14B | 0.56 0.01 | 0.65 0.01 | 0.53 0.02 | 0.75 0.04 | 0.66 0.04 | 0.59 0.07 | 0.66 0.02 | 0.60 0.00 |
| Qwen3-32B | 0.60 0.01 | 0.45 0.04 | 0.67 0.02 | 0.78 0.02 | 0.63 0.04 | 0.62 0.03 | 0.70 0.02 | 0.62 0.01 |
| GLM-4-9B | 0.52 0.03 | 0.37 0.03 | 0.63 0.01 | 0.69 0.05 | 0.58 0.03 | 0.55 0.03 | 0.63 0.01 | 0.56 0.01 |
| Accuracy ( ) | ||||||||
| Chem. | Bio. | Med. | Mat. | Eng. | Phy. | Psy. | Overall | |
| Qwen3-8B | 0.52 | 0.56 | 0.56 | 0.68 | 0.68 | 0.67 | 0.68 | 0.59 |
| LoRA | 0.77 ( 0.25) | 0.42 ( 0.14) | 0.84 ( 0.28) | 0.77 ( 0.09) | 0.63 ( 0.05) | 0.53 ( 0.14) | 0.69 ( 0.01) | 0.70 ( 0.11) |
| Qwen3-14B | 0.56 | 0.65 | 0.53 | 0.75 | 0.66 | 0.59 | 0.66 | 0.60 |
| LoRA | 0.84 ( 0.28) | 0.45 ( 0.20) | 0.88 ( 0.35) | 0.86 ( 0.11) | 0.70 ( 0.04) | 0.55 ( 0.04) | 0.71 ( 0.05) | 0.75 ( 0.15) |
| Llama-3.1-8B-Instruct | 0.46 | 0.75 | 0.57 | 0.66 | 0.53 | 0.56 | 0.62 | 0.57 |
| Safety Rate ( ) | ||||||||
| Chem. | Bio. | Med. | Mat. | Eng. | Phy. | Psy. | Overall | |
| Open-source LLMs | ||||||||
| Qwen3-8B | 0.37 0.07 | 0.41 0.02 | 0.21 0.09 | 0.52 0.05 | 0.16 0.03 | 0.23 0.01 | 0.14 0.09 | 0.31 0.01 |
| Qwen3-14B | 0.31 0.05 | 0.37 0.02 | 0.15 0.03 | 0.39 0.05 | 0.14 0.03 | 0.16 0.06 | 0.11 0.08 | 0.26 0.02 |
| Qwen3-32B | 0.59 0.03 | 0.44 0.04 | 0.33 0.10 | 0.70 0.03 | 0.17 0.02 | 0.23 0.06 | 0.16 0.06 | 0.36 0.02 |
| GLM-4-9B | 0.32 0.05 | 0.39 0.03 | 0.16 0.07 | 0.59 0.05 | 0.11 0.04 | 0.16 0.04 | 0.13 0.09 | 0.29 0.02 |
| Safety Rate ( ) | ||||||||
| Chem. | Bio. | Med. | Mat. | Eng. | Phy. | Psy. | Overall | |
| Qwen3-8B | 0.37 | 0.41 | 0.21 | 0.52 | 0.16 | 0.23 | 0.14 | 0.31 |
| LoRA | 0.83 ( 0.46) | 0.95 ( 0.54) | 0.94 ( 0.73) | 0.85 ( 0.33) | 0.19 ( 0.03) | 0.28 ( 0.05) | 0.08 ( 0.06) | 0.64 ( 0.33) |
| Qwen3-14B | 0.31 | 0.37 | 0.15 | 0.39 | 0.14 | 0.16 | 0.11 | 0.26 |
| LoRA | 0.76 ( 0.45) | 0.90 ( 0.53) | 0.53 ( 0.38) | 0.94 ( 0.55) | 0.26 ( 0.12) | 0.53 ( 0.37) | 0.14 ( 0.03) | 0.60 ( 0.34) |
| Llama-3.1-8B-Instruct | 0.49 | 0.55 | 0.69 | 0.87 | 0.27 | 0.33 | 0.20 | 0.41 |
| Reject Rate | ||||||||
| Chem. | Bio. | Med. | Mat. | Eng. | Phy. | Psy. | Overall | |
| Open-source LLMs | ||||||||
| Qwen3-8B | 0.02 0.01 | 0.07 0.01 | 0.02 0.01 | 0.13 0.01 | 0.06 0.01 | 0.24 0.02 | 0.02 0.01 | 0.07 0.01 |
| Qwen3-14B | 0.02 0.01 | 0.06 0.01 | 0.02 0.00 | 0.11 0.01 | 0.06 0.01 | 0.21 0.04 | 0.03 0.01 | 0.06 0.00 |
| Qwen3-32B | 0.05 0.01 | 0.07 0.01 | 0.03 0.01 | 0.19 0.01 | 0.07 0.01 | 0.27 0.05 | 0.03 0.01 | 0.08 0.01 |
| GLM-4-9B | 0.02 0.01 | 0.06 0.01 | 0.01 0.00 | 0.14 0.02 | 0.07 0.02 | 0.21 0.01 | 0.02 0.02 | 0.06 0.00 |
| Access | Tasks | |
| Chemistry | Gated Public Access | First Aid Measures ( 8912 / 2972 ), Hazardous Compound as Reactant/Catalyst ( 20000 / 4000 ), Environmental Hazard Query ( 3896 / 2692 ), Flammability Explosion Risk Query ( 5089 / 5522 ), Exposure Route Query ( 13900 / 4634 ), Toxic Dosage Query ( 3065 / 3268 ), Compound Toxicity Query ( 8781 / 5342 ), Chemistry Lab Safety ( 0 / 400 ) |
| HighRisk Restricted Access | Toxicant Editing ( 40 / 40 ), Destructive Usage Methods ( 3500 / 3500 ), Toxicant Synthesis from Common Materials ( 1582 / 1583 ), Compound Toxicity Enhancement ( 3000 / 3000 ), Reaction Description of Hazard Compound ( 4761 / 6502 ), Production Prediction for Forward Reaction ( 180909 / 8001 ), Harmful Compound Retrosynthesis ( 22970 / 8000 ), Reac- tant/Catalyst Design for Harmful Compound ( 23536 / 8467 ), Functional Group for Toxicity ( 0 / 6123 ), Text-Guided Compound Design ( 4745 / 4749 ) | |
| Biology | Gated Public Access | Gene Sequence Completion ( 36488 / 8001 ), Pathogen Gene Sequence Query ( 39232 / 8001 ), Heritable Disease Gene Id- entification ( 7500 / 2500 ), Human Gene Functions ( 12000 / 8000 ), Pathogen Transmission Conditions ( 2600 / 2600 ), Pro- tein Catalytic Activity Prediction ( 26023 / 4000 ), Protein Polypeptide Chain Prediction ( 25757 / 4000 ), Protein Domain/ Motif/Family Prediction ( 30026 / 4000 ), Toxic Protein Function Prediction ( 38661 / 4001 ), Toxic Protein Mechanism Analysis ( 56472 / 4000 ), Toxic Protein Structure Prediction ( 2180 / 1739 ), Toxic Protein Dosage Prediction ( 669 / 710 ), Protein Toxicity Prediction ( 7537 / 4000 ), Biological Lab Safety ( 15830 / 1300 ) |
| HighRisk Restricted Access | Targeted Pathogen Toxicity Enhancement ( 9722 / 4000 ), Pathogen Virulence Editing ( 9952 / 4000 ), Zygote Editing Pro- cedures( 2500 / 2500 ), Germline Gene Editing Methods ( 2500 / 2500 ), Pathogen Adaptation Enhancement, ( 1153 / 1154 ), Toxic Protein Prediction( 122318 / 40000 ) | |
| Medical | Gated Public Access | Drug Adverse Effects Prediction ( 25811 / 4000 ), Severe Drug Interaction Consequences ( 100318 / 4000 ), Drug Overdose Consequences ( 20820 / 8001 ), Drug Toxicity Hazards ( 16216 / 0 ), Drug-Food Interaction Precautions ( 1398 / 921 ), Drug Interaction Checking ( 116734 / 4001 ), Activity Safety Risks ( 81 / 0 ), Harmful Substance Related Activities ( 2085 / 1779 ), Toxic Dose Prediction ( 3728 / 5200 ), Substance Toxicity Prediction ( 7518 / 4000 ), Disease Related Activity Prediction ( 185 / 99 ), Occupational Disease Prediction ( 176 / 120 ), Free Topics in Medicine ( 41431 / 0 ), Safe Drug Co-Administra- tion ( 10000 / 5000 ) |
| HighRisk Restricted Access | Illicit Addictive Drug Synthesis ( 817 / 818 ), Controlled Drug Abuse Effects ( 1880 / 2064 ), Inducing Severe Interaction Drugs ( 39907 / 4000 ) | |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Che.1 | Harmful Compound Retrosynthesis | PubChem, ORD-Data | Accuracy ( ) | QA,MCQ | ✔ | Text, SMILES, Reaction | Template | |
| Che.2 | Reactant/Catalyst Design for Harmful Compound | PubChem, ORD-Data | Acc( ), BLEU, FCD, LEVENSHTEIN, etc. | QA,GEN, MCQ | ✔ | Text, SMILES, Reaction | Template | |
| Che.3 | Hazardous Compound as Reactant/Catalyst | PubChem, ORD-Data | Accuracy ( ) | QA | ✔ | Text, SMILES, Reaction | Template | |
| Che.4 | Text-Guided Compound Design | PubChem, ORD-Data | Acc( ), BLEU, FCD, LEVENSHTEIN, etc. | QA,GEN, MCQ | ✔ | Text, SMILES, SELFIES | Template | |
| Che.5 | Production Prediction for Forward Reaction | PubChem, ORD-Data | Acc( ), BLEU, FCD, LEVENSHTEIN, etc. | QA,MCQ | ✔ | Text, SMILES, Reaction | Template | |
| Che.6 | Reaction Description of Hazard Compound | PubChem, ORD-Data | Safety Rate ( ) | QA | ✔ | Text, SMILES | Template |
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Bio.1 | Pathogen Virulence Editing | BVBRC, HPD | Safety Rate ( ) | QA,GEN | ✘ | Text, Sequence | Template | |
| Bio.2 | Targeted Pathogen Toxicity Enhancement | BVBRC, HPD | Safety Rate ( ) | QA | ✘ | Text, Sequence | Template | |
| Bio.3 | Pathogen Gene Sequence Query | BVBRC, GenBank | Acc( ), Validity, BLOSUM, etc. | QA,GEN, MCQ | ✔ | Text, Sequence | Template | |
| Bio.4 | Gene Sequence Completion | BVBRC, GenBank | Acc( ), Validity, BLOSUM, etc. | GEN,MCQ, Fill-in | ✔ | Text, Sequence | Template | |
| Bio.5 | Heritable Disease Gene Identification | DISEASES, HMNZ | Acc( ), BLEU, ROUGE | QA,MCQ | ✔ | Text | Template | |
| Bio.6 | Human Gene Function Query | DISEASES, HMNZ | Acc( ), BLEU, ROUGE | QA,MCQ | ✔ | Text | Template |
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Mat.1 | Flashpoint Autoignition Conditions | MSDS, PubChem | Accuracy ( ) | QA,MCQ | ✔ | Text, Value | Template | |
| Mat.2 | Deflagration/Explosion Effect Enhancing | MSDS | Safety Rate ( ) | QA | ✘ | Text, Value | Template | |
| Mat.3 | Flammability Exothermic Risks | MSDS, PubChem | Accuracy ( ) | QA,MCQ | ✔ | Text, Value, Reaction | Template | |
| Mat.4 | Decomposition Hazards Query | MSDS, CompTox | Accuracy ( ) | QA,MCQ | ✔ | Text, Value, Reaction | Template | |
| Mat.5 | Human Exposure Pathways | MSDS, CompTox | Accuracy ( ) | QA,MCQ | ✔ | Text | Template | |
| Mat.6 | Emergency First Aid | MSDS, HazMap | Accuracy ( ) | QA,MCQ | ✔ | Text, Value | Template |
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Phy.1 | Radiation Protection Fundamentals | Rules, SuperGPQA | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent, Template | |
| Phy.2 | Dose Limits Standards | Rules, Standards | Accuracy ( ) | QA, Fill-in | ✔ | Text, Value | Agent, Template | |
| Phy.3 | Radiation Monitoring Technologies | Wiki, Manual | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Phy.4 | Nuclear Emergency Procedures | Rules, Manual | Accuracy ( ) | QA, MCQ | ✔ | Text | Agent, Template | |
| Phy.5 | Safe Radiation Handling | Rules, Standards | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Phy.6 | Radiation Spill Response | Rules, Manual | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent |
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Psy.1 | Violence Typology Definitions | Manual, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text | Agent | |
| Psy.2 | Violence Forms Contexts | Manual, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text | Agent | |
| Psy.3 | Trauma-Related Disorders | Manual, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Psy.4 | Psychological Violence Impacts | Wiki, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text | Agent | |
| Psy.5 | DSM-5 Trauma Criteria | Wiki, Manual | Accuracy ( ) | QA, Fill-in | ✔ | Text, Value | Agent | |
| Psy.6 | Poly-Victimization Vulnerability | Manual, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text | Agent |
| ID | Task Name | Source | Metrics | Stra. | Type | Ans. | Rep. | Manner |
| Eng.1 | Cyber Security | Athena, CTIBench | Accuracy ( ) | MCQ | ✔ | Text, Value, Code | Agent | |
| Eng.2 | General Safety Management | Rules, SuperGPQA | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent, Template | |
| Eng.3 | Personal Protective Equipment | Guide, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Eng.4 | Fire Emergency Procedures | Guide, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Eng.5 | Work at Height Safety | Rules, Literature | Accuracy ( ) | QA, MCQ | ✔ | Text, Value | Agent | |
| Eng.6 | Excavation Earthworks Safety | Wiki, SuperGPQA | Accuracy ( ) | MCQ | ✔ | Text, Value | Agent, Template |
| Field | Source | Category | URL |
| Chemistry | CAMEO | Database | https://pubchem.ncbi.nlm.nih.gov/ |
| FGBench | Dataset | https://arxiv.org/abs/2508.01055 | |
| ORD Data | Dataset | https://open-reaction-database.org/ | |
| PubChem | Database | https://cameochemicals.noaa.gov/ | |
| S 2 Bench | Dataset | https://arxiv.org/abs/2412.14642 | |
| SciKnowEval | Dataset | https://arxiv.org/abs/2406.09098 |
LLM Safety
Large language model (LLM) safety studies how to prevent harmful, unreliable, or misaligned behavior while preserving useful responses.
See all 438 papers