arXiv:2610.32045cs.AIOct 2026

Manuscript Offprint

arXiv:2610.32045

Do AI-for-Science Agents Preserve Model Safety?

Michael Yew Chuan Lee, Manya Sriram, N. Benjamin Erichson

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.

1 Introduction

AI-for-Science agents based on large language models (LLMs) are becoming an increasingly important part of scientific discovery [1]. Rather than using an LLM only to answer questions, these systems place the model inside larger workflows that connect it to scientific databases, specialized software, and computational tools [2]. The broader goal is to move toward increasingly autonomous scientific workflows that can support the research process from hypothesis generation to analysis and experimental validation. In chemistry and biology, agents already extend LLMs beyond text generation to tasks such as data analysis, synthesis planning, and multi-step scientific reasoning [3, 4]. These systems can therefore make the same base model more capable in a scientific setting.

For the class of systems considered here, the agent is not a new language model. It is a base LLM embedded in an agent harness, the prompting and software layer that orchestrates how the model interacts with its context, tools, and external environment. In many AI-for-Science systems, the model weights are unchanged; what changes is the system around the model. A domain-specific harness can therefore alter the information available to the model, the actions it can take, and the sequence of interactions through which it solves a task. This is how the same base model can become more capable when deployed as a scientific agent. The behavior of the resulting system is therefore a property of the model and harness together, rather than of the model alone.

The agent harness, however, also changes how the model behaves. A request may be presented under different instructions, combined with additional context, revisited over multiple steps, or acted on through tools. These changes matter because refusal behavior is known to be sensitive to how a harmful request is presented and pursued. Even simple reformulations can weaken refusals [5], while adaptive multi-turn interactions can elicit harmful assistance that is not observed in single-turn evaluations [6]. Related work on general-purpose LLM agents has also shown that harmful agentic

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Third Workshop on Agents in the Wild: Safety, Security, and Beyond.

behavior can emerge in multi-step tasks, including without an explicit jailbreak [7]. A scientific agent harness therefore does more than increase capability. It can also create new pathways through which harmful requests are interpreted and answered. The refusal behavior observed for the base model may therefore not be preserved once the harness is introduced, even when the model weights themselves are unchanged. This does not imply that every harness makes a model less safe. It means that safety must be evaluated on the composed agent rather than inferred from the base model.

Scientific safety benchmarks have already shown that LLMs can provide harmful assistance on chemistry and other technically demanding requests [8, 9]. What remains less clear is whether this safety behavior is preserved when the same base LLM is deployed with a scientific agent harness. This matters because the deployed system is the composed agent, not the base model alone. Related work on long-horizon models has similarly shown that failures can emerge under deployment conditions that are not captured by shorter model evaluations, motivating evaluation and safeguards at the level of the full system [10]. We ask:

Is model safety preserved when an LLM is embedded in an AI-for-Science agent harness?

We study this question through a case study in harmful chemistry. Chemistry provides a particularly relevant setting because AI systems developed for beneficial molecular discovery can also exhibit dual-use capabilities [11]. We evaluate five AI-for-Science agent harnesses using four base LLMs. The harnesses are CACTUS [12], ChemToolAgent [13], STELLA [14], Biomni [4], and DrugAgent [15]. For each harness, we compare harmful compliance with that of the corresponding base model without the harness. We test 50 harmful chemistry requests using direct prompting, two adversarial prompting strategies, and an adaptive attack. Across these conditions, we study whether the harness preserves the safety behavior.

Figure

Figure 1: Maximum observed increase in attack success rate (ASR) for each composed agent relative to the same base model across the prompting strategies tested. Single-turn results use pass@3; PAIR uses its reported ASR. Several scientific agent harnesses increase harmful compliance for at least one model–prompt combination. Positive values indicate greater harmful compliance after introducing the agent harness.

The answer is that safety is not preserved reliably. Even for direct harmful requests, ChemToolAgent increases the attack success rate of GPT-5.2 from 2% to 20%, while Biomni increases it to 24%. The adaptive attack also exposes large regressions. For GPT-5.5, attack success increases from 2% for the base model to 60% with both CACTUS and ChemToolAgent. Across all prompting conditions tested, the largest observed increase relative to the corresponding base model is 70 percentage points for DrugAgent under direct prompting with GPT-5.2 (see Fig. 1). The effect is not uniform across systems, with some configurations preserving or reducing harmful compliance. This variability is interesting: the safety behavior of the deployed system depends on the combination of base model, harness, and request, and cannot be inferred from the base model alone. Thus, safety evaluation and alignment need to target the composed AI-for-Science agent. Our contributions are:

• We formulate and directly test the question of safety preservation in AI-for-Science agents by comparing each agent harness with the corresponding base LLM. By keeping the base model fixed, we measure how harmful compliance changes when the model is deployed within an agent harness.

• Across five scientific agent harnesses and four base LLMs, we show that safety behavior can change even for direct harmful requests without a jailbreak, while adaptive attacks can expose much larger failures of safety preservation for some model–harness combinations.

• We show that model-level safety evaluation is not enough for AI-for-Science deployment; safety evaluation and alignment need to target the composed agent. Our results demonstrate that the safety behavior of the base LLM is not reliably preserved once it is embedded in a scientific agent harness.