Do AI-for-Science Agents Preserve Model Safety?
Organizations: DSO National Laboratories · UC Berkeley · ICSI and Berkeley Lab
Abstract
AI-for-Science agents are increasingly being used for formulating scientific hypotheses, running autonomous experiments, and interpreting evidence. These agents are constructed by integrating a large language model (LLM) into a domain-specific agent harness, which in turn can improve the LLM's scientific capability and enable the model to orchestrate scientific tools. In this work, we ask whether model safety is preserved when an LLM is integrated in an AI-for-Science agent harness. We evaluate five agent harnesses on 50 harmful chemistry requests. Specifically, we study how the safety behavior changes under direct prompting, two simple adversarial prompting strategies, and an adaptive attack. Across four recent GPT variants, our results show that the agent harness can increase harmful compliance even under direct prompting. More critically, we find that adaptive attacks that are largely unsuccessful against the base LLM suddenly become highly successful after the agent harness is introduced. Our results show that the safety behavior of the base LLM is not durable once a harness is introduced. Thus, as AI-for-Science agents become more capable and autonomous, the community needs to evaluate and align the agent using domain-specific safety benchmarks.
Figures & tables
| Direct | Roleplay | Past tense | PAIR | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Harness | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L |
| CACTUS | ||||||||||||||||
| ChemToolAgent | ||||||||||||||||
| Biomni | ||||||||||||||||
| STELLA | ||||||||||||||||
| DrugAgent | ||||||||||||||||
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Direct | Roleplay | Past tense | PAIR | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Harness | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L | 5.2 | 5.5 | 5.6-L | 6-L |
| CACTUS | ||||||||||||||||
| ChemToolAgent | ||||||||||||||||
| Biomni | ||||||||||||||||
| STELLA | ||||||||||||||||
| DrugAgent | ||||||||||||||||
| Single-turn refusal (%), mean SE | PAIR refusal | ||||
| System | Direct | Roleplay | Past tense | Rate (%) | |
| GPT-5.2 | |||||
| Base model | 5/50 | ||||
| CACTUS | 20/50 | ||||
| ChemToolAgent | 3/50 | ||||
| Biomni | 0/50 | ||||
| Direct | Roleplay | Past tense | PAIR | |||||
|---|---|---|---|---|---|---|---|---|
| GPT-5.2 | Mean SE | pass@3 | Mean SE | pass@3 | Mean SE | pass@3 | ASR | |
| Base model | 28/50 | |||||||
| CACTUS | 18/50 | |||||||
| ChemToolAgent | 38/50 | |||||||
| Biomni | 38/50 | |||||||
| STELLA | 31/50 | |||||||
| Direct | Roleplay | Past tense | PAIR | |||||
|---|---|---|---|---|---|---|---|---|
| GPT-5.5 | Mean SE | pass@3 | Mean SE | pass@3 | Mean SE | pass@3 | ASR | |
| Base model | 1/50 | |||||||
| CACTUS | 30/50 | |||||||
| ChemToolAgent | 30/50 | |||||||
| Biomni | 28/50 | |||||||
| STELLA | 27/50 | |||||||
| Direct | Roleplay | Past tense | PAIR | |||||
|---|---|---|---|---|---|---|---|---|
| GPT-5.6-Luna | Mean SE | pass@3 | Mean SE | pass@3 | Mean SE | pass@3 | ASR | |
| Base model | 5/50 | |||||||
| CACTUS | 33/50 | |||||||
| ChemToolAgent | 21/50 | |||||||
| Biomni | 25/50 | |||||||
| STELLA | 25/50 | |||||||
| Direct | Roleplay | Past tense | PAIR | |||||
|---|---|---|---|---|---|---|---|---|
| GPT-6-Luna | Mean SE | pass@3 | Mean SE | pass@3 | Mean SE | pass@3 | ASR | |
| Base model | 1/50 | |||||||
| CACTUS | 12/50 | |||||||
| ChemToolAgent | 13/50 | |||||||
| Biomni | 14/50 | |||||||
| STELLA | 15/50 | |||||||
| GPT-5.5 | GPT-6-Luna | ||||
| System | Configuration | ASR | ASR | ASR | ASR |
| Base LLM | No harness | – | – | ||
| STELLA | Full harness | ||||
| External tools disabled | |||||
| Memory disabled | |||||
| Biomni | Full harness | ||||
LLM Agent Safety
Large language model agent safety studies how to keep tool-using, persistent, and multi-agent systems aligned with user intent and authorized limits.
See all 321 papers