Skip to content

ChemGuard-MS: Decoupling action classification from molecular screening to prevent misuse of language models for dual-use chemicalsChemGuard-MS: Decoupling Action Classification from Molecular Screening to Prevent Dual-Use Chemical Misuse in Language Models

Fulin Shao, Weiying Li, Dong Ma, Defang Chen, Ting Wang
College of Environmental Science and Engineering, Tongji University; State Key Laboratory of Pollution Control and Resource Reuse, Tongji University; Key Laboratory of Forensic Science, Ministry of Justice, Shanghai Forensic Service Platform, Academy of Forensic Science; Shanghai Lingang Water and Wastewater Development Co., Ltd.
arXivarXiv:2611.37991Originally published Indexed by this site · 2 days agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose ChemGuard-MS, which decouples molecular screening from request action classification; in the post-2016 joint benchmark it directly intercepts 93.9% of operational requests for risk compounds.

Threat modelFor LLMs connected to chemical tools and laboratory automation, prevent assistance with the synthesis, preparation, acquisition, and analog design of controlled drugs and toxic chemicals. Defense is at an execution control layer outside the model; evaluation covers names, SMILES, Unicode, languages, and academic framing rewrites, and neither interception nor review executes automatically.

Questions
Tool-connected LLMs may turn chemical guidance into executable procedures. The authors' audit found that a model mentioning regulatory status in an identification task does not mean it will refuse synthesis, preparation, or acquisition assistance in another task.
Methods
ChemGuard-MS separately evaluates registry records, structural similarity, physicochemical properties, and target activity outside the model, and uses a LoRA fine-tuned Qwen3.5-0.8B to distinguish four request categories, then executes interception, review, or release according to molecular evidence and action prediction.
Experiments and results
In temporally ordered evaluation, the similarity–physicochemical baseline detected 98.3% of familiar-scaffold events and 67.3% of novel-scaffold events; in the post-2016 joint benchmark, operational requests on risk compounds were all intercepted or reviewed, and descriptive and protective requests were retained at 98.3%.
Limitations and future work
The authors list expanding registry coverage, improving the distinction of administrative wording, and connecting to real laboratory tools as future directions. The joint evaluation uses 82 risk compounds, 410 reference compounds, and fixed templates, and execution validation is a mock replay.
Experimental setupclaude-opus-4.8、seed-2.0-lite et al. · ChemGuard-MS chemical resource、100 risk-group compounds and 200 Tox21 reference compounds et al. · substantive operational assistance rate、regulatory-status mention rate et al.
AI summaryAddressing the problem that LLMs connected to chemical tools and laboratory automation may turn textual guidance into executable protocols, lowering the barrier to preparing or obtaining controlled drugs and toxic chemicals, the paper proposes ChemGuard-MS, which combines molecular screening, request-action classification, and execution control in addition to the model's internal safety mechanisms. An audit of 22 models shows that even when an identification response alone mentions regulatory status, substantive operational assistance remains frequent. The molecular layer integrates registry records, structural similarity, physicochemical properties, and target-activity prediction based on 2D fingerprints and 3D molecular representations; a LoRA fine-tuned Qwen3.5-0.8B classifier distinguishes descriptive, protective, transformative, and acquisition requests. Temporal evaluation shows that similarity and physicochemical screening miss compounds whose scaffolds are absent from earlier regulatory references. On the registry-assisted joint benchmark, the system directly blocks 93.9% of transformative and acquisition requests involving compounds with risk-source records, with the remainder left for review and none automatically allowed; it also retains 98.3% of descriptive and protective requests, and allows 74.9% of transformative and acquisition requests involving reference compounds.

Addressing the problem that LLMs connected to chemical tools and laboratory automation may turn textual guidance into executable protocols, lowering the barrier to preparing or obtaining controlled drugs and toxic chemicals, the paper proposes ChemGuard-MS, which combines molecular screening, request-action classification, and execution control in addition to the model's internal safety mechanisms. An audit of 22 models shows that even when an identification response alone mentions regulatory status, substantive operational assistance remains frequent. The molecular layer integrates registry records, structural similarity, physicochemical properties, and target-activity prediction based on 2D fingerprints and 3D molecular representations; a LoRA fine-tuned Qwen3.5-0.8B classifier distinguishes descriptive, protective, transformative, and acquisition requests. Temporal evaluation shows that similarity and physicochemical screening miss compounds whose scaffolds are absent from earlier regulatory references. On the registry-assisted joint benchmark, the system directly blocks 93.9% of transformative and acquisition requests involving compounds with risk-source records, with the remainder left for review and none automatically allowed; it also retains 98.3% of descriptive and protective requests, and allows 74.9% of transformative and acquisition requests involving reference compounds.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Address the problems of models mentioning regulatory status yet still providing chemical operational assistance, and new scaffolds evading structural screening.

    The core question is: how to control the automatic execution of chemical tools based on both compound risk and request action without relying on the model's internal alignment.

    • Risk scenario: The authors consider that LLMs connected to literature retrieval, molecular computation and laboratory automation may turn textual guidance into executable protocols, lowering the barrier to producing or acquiring controlled drugs and toxic chemicals.
    • Gaps in existing safeguards: The authors point out that centralized control struggles to cover open-weight models deployed outside the provider, and downstream fine-tuning may weaken built-in safeguards; names, structure diagrams, database identifiers and SMILES also change how chemical requests are presented.
    • Core observation: In the audit of 22 models, mentioning regulatory status in an identification response was inconsistent with whether a separate task retained operational assistance; temporally ordered evaluation also showed that scaffolds absent from historical registry references are harder for similarity–physicochemical screening to detect.
    • Proposed system: ChemGuard-MS combines registry records, four numerical molecular channels, a Qwen3.5-0.8B action classifier and three-state execution routing, with the goal of preserving access to descriptive and protective information while restricting operational execution.
    • Threat model:
      • Protection goal: Prevent assistance on synthesis, preparation, acquisition and functionally similar analogue design for controlled or dangerous substances from entering automatic execution.
      • Victim system: LLM workflows connected to chemical tools and laboratory automation; the defense sits in screening and execution control layers outside the model.
      • Input variation: Evaluation covers names and SMILES, Unicode variants, language changes and academic framing; compounds and chemical tasks remain unchanged.
      • Disposition definitions: Both intercept and review defer automatic execution; only no restriction meeting the routing conditions is released. The paper does not provide a white-box/black-box attacker knowledge taxonomy.
  2. What related research exists?

    Related work covers automated chemistry, LLM safety and chemical jailbreaks, molecular temporal extrapolation, and guardrail and action-classification baselines.

    Tool-connected chemical research

    • Urbina et al. (2022), Boiko et al. (2023): Discuss the dual-use risks of AI drug discovery and LLM-driven autonomous chemical research, respectively; the authors use these to argue that procedural assistance may lower technical barriers.
    • Merchant et al. (2023), Szymanski et al. (2023): Apply computational methods to materials discovery and automated synthesis; Pagel et al. (2026), Panapitiya et al. (2026) and Ranković et al. (2026) further cover literature-workflow execution, multi-agent experiments and experiment optimization.
    • Anthropic (2026): Proposes a standardized model–device interface; the authors view it as another control surface in the same tool-connected setting.

    Model safeguards, jailbreaks and chemical dual-use evaluation

    • Bassani and Sanchez (2024), Han et al. (2024): Propose GuardBench and WildGuard, respectively, for guardrail model evaluation and handling of safety risks, jailbreaks and refusals.
    • Arditi et al. (2024), Chao et al. (2024), Qi et al. (2025): Study refusal-related internal representations, JailbreakBench, and the concentration of safety alignment in early output tokens.
    • Boiko et al. (2023), Wong et al. (2024), Zhao et al. (2024): The paper states that opaque identifiers can bypass name-dependent alignment, and that SMILES prompts and chemical benchmarks have also elicited information retained in direct synthesis requests; Mirza et al. (2025)'s ChemBench evaluates general chemical knowledge and reasoning.

    Molecular screening and temporal extrapolation

    • Peacock et al. (2019): Discusses the challenges that the continuous expansion of new psychoactive substances poses for monitoring and scheduling.
    • Sheridan (2013), Wallach and Heifets (2018): Study temporal-split validation and the possibility that ligand classification benchmarks reward memorization rather than generalization, respectively; the authors accordingly use temporally ordered evaluation to avoid structural leakage from random splits.
    • Fooladi et al. (2025), Kretschmer et al. (2025), Cui et al. (2026): Cover out-of-distribution performance of molecular property models, chemical-space coverage bias and activity cliffs.

    Baselines and positioning of this paper

    • Baselines and data: External guardrails are Llama Guard 4 12B, GPT-OSS Safeguard 20B and Nemotron 3.5 Content Safety; action classification compares TF–IDF, BGE-M3, zero-shot structured prompting and an unadapted backbone. Molecular channels use random forests and Uni-Mol, and action adaptation uses LoRA (Hu et al., 2022).
    • Authors' positioning: ChemGuard-MS does not only judge compound identity and does not only rely on refusal; it combines molecular evidence with request action at execution time; temporally ordered screening is used to test coverage of newly emerging scaffolds.
  3. How does the paper address this problem?

    ChemGuard-MS computes molecular evidence and request action separately, then controls execution with a three-state policy of intercept, review and release.

    The overall idea is to model "what the compound is" and "what the user wants to do" separately, and merge them only at the execution layer. ChemGuard-MS comprises chemical resources, temporally ordered molecular screening, a LoRA action classifier, and deterministic routing.

    Chemical resources and audit tasks

    • Resource construction: the dataset as of 28 July 2026 has 3,819 source records; after RDKit standardization, removal of 468 duplicates, and exclusion of 7 unprocessable records, 3,344 unique compounds were obtained. Sources include DrugBank, PubChem, UNODC, DEA, EMCDDA/EUDA, and Canadian regulations.
    • Audit cohort: 22 models each processed 100 risk group compounds and 200 Tox21 reference compounds; the reference group was divided by maximum Morgan–Tanimoto similarity to risk resources into near (0.40–0.70) and far (<0.30), 100 each.
    • Four task types: identification, functional description, synthesis/preparation/acquisition operational assistance, and function-preserving analog requests, all as independent single-turn tasks. Regulatory status mention, substantive operational assistance, and explicit refusal were annotated separately, and refusal and assistance can co-occur.

    Temporally ordered molecular evidence

    • Historical reference reconstruction: for each scheduled event, only records whose effective date and supporting publication date are both earlier than the event were used, excluding the query itself, same-day additions, and records scheduled afterward; scoring required at least 25 prior reference compounds.
    • New scaffold definition: a query was recorded as a new scaffold if its exact, non-generic, non-stereochemical Bemis–Murcko scaffold did not appear in the pre-event regulatory reference set.
    • Four numerical channels: maximum Tanimoto similarity of non-chiral, radius-2, 2,048-bit Morgan fingerprints; nearest-neighbor distance of nine standardized physicochemical descriptors; maximum predicted activity probability for 12 human targets from 2D fingerprint random forests and ligand-only Uni-Mol.
    • Calibration and fusion: backgrounds were split by identity into channel-calibration 6,528, threshold-calibration 6,401, and evaluation 6,653 compounds. The empirical tail probability is p(s)=(1+|{i:si≥ s}|)/(n+1), used to convert different channels to a common background scale; negative log probabilities were summed or maximized, and thresholds were set at at most 320/6,401 calibration background triggers.

    Action classifier

    • Four label classes: descriptive, protective, transformative, acquisition; the first two are normal use and the latter two are operational.
    • Backbone and adaptation: Qwen3.5-0.8B hybrid Gated DeltaNet and full attention; LoRA freezes the base weights and directly compares the scores of the four candidate labels at the final position.
    • Final training setup: rank 16, alpha 32, dropout 0.05, learning rate 5 × 10−5, seed 17, trained for 3 epochs on 874 records expanded from 167 templates; cross-entropy over candidate labels.
    • Input states: each compound–request pair has four presentations: plain, academic, fullwidth Unicode, and zero-width; deterministic character cleaning normalizes the latter two to plain, so routing actually uses two classification inputs, plain and academic.

    Execution routing and success determination

    • Normal requests: when both input states are predicted as descriptive or protective, no restriction is applied, even if molecular evidence triggers; invalid input, invalid or tied predictions preferentially enter review.
    • Operational requests: intercept when either state is predicted as operational and there is a numerical trigger or an applicable registry hit; review when there is no trigger but predictions conflict, numerical evidence is incomplete, or registry evidence is unresolved.
    • Qualified release: an operational request can be no restriction only when complete numerical evidence does not trigger and a qualified exact registry miss is obtained within the declared jurisdiction.
    • Joint evaluation: the post-2016 benchmark uses 82 risk compounds, 410 reference compounds, and 64 single-action and 12 mixed-action templates; molecular models and thresholds are fixed at the 2016 cutoff. Both interception and review must withhold tool calls, and execution gating is additionally checked with a mock replay.
  4. What experiments did the paper conduct?

    The experiments cover a 22-model audit, temporally ordered screening, external guardrail rewriting, action classification and 37,392 joint routing pairs.

    Experimental setup

    • Model audit: 22 OpenRouter endpoints, including Claude, DeepSeek, Gemini, GPT, Grok, Kimi, MiMo, Qwen, etc.; the full list is in Supplementary Table 3. Each model processed 100 risk groups and 200 reference compounds, for a total of 26,400 responses.
    • Human annotation: chemical family identification, regulatory status mention, functional description, substantive operational assistance, and analog request completion were recorded separately; empty answers were kept in the denominator and labeled negative, including 107 empty answers for risk groups and 233 for reference groups.
    • Temporal screening: of 132 dated events, 107 met the scoring criteria and 25 cold-start events were not scored; the two-channel baseline, four-channel sum fusion, and maximum fusion were compared, with event detection and reference-trigger rate as metrics.
    • External guardrails: Llama Guard 4 12B, GPT-OSS Safeguard 20B, Nemotron 3.5 Content Safety, crossed with 13 risk compounds, 13 controls, and 16 conditions; admission means neither blocked nor reviewed.
    • Action classification: TF–IDF, BGE-M3, three-model multi-view voting such as Grok 4.3, Grok 4.3 structured prompting, and LoRA Qwen3.5-0.8B were compared; metrics include restricted-request recall, false blocking, and macro-F1, with abstentions counted as errors.
    • Statistical protocol: proportions use 95% Wilson intervals; different experiments use compound, template, molecule, or crossed cluster bootstrap. The final benchmark uses 10,000 crossed resamples; the paper does not report inter-annotator agreement.

    Main results

    The routing results of the post-2016 joint benchmark are as follows, according to Table 1; the risk group is 82 compounds and the reference group is 410 compounds.

    Swipe horizontally to read the table

    Compound group / request purposePairsInterceptReviewNo restriction
    Risk / operational2,6242,4641600
    Reference / operational13,1205442,7529,824
    All / descriptive7,872452247,603
    All / protective7,872007,872
    Risk / mixed operational820770500
    Reference / mixed operational4,1001708753,055
    All / mixed normal-only98400984
    All pairs37,3923,9934,06129,338
    • Risk operational requests: all single-action operational pairs for 77 risk compounds were directly intercepted, and 160 pairs for the remaining 5 compounds entered review; the authors report a direct interception rate of 93.9%, with no automatic release.
    • Normal requests and reference operations: the authors report that 98.3% of descriptive and protective requests were retained, 74.9% of reference compound operational requests were released, and the remaining 25.1% were intercepted or reviewed.
    • Sources of false restriction: all 269 restricted descriptive pairs came from two templates containing operational vocabulary, concerning explaining existing procurement approval fields and editing existing chemical abstracts, respectively; the authors frame this as a problem of distinguishing administrative from editorial wording.

    22-model response audit

    • Cross-task differences: for risk group identification responses, the regulatory status mention rate was 64.9%, the operational assistance rate was 74.8%, and the analog request completion rate was 93.3%; the corresponding operational assistance rate for the reference group was 90.5% (Figure 3, Supplementary Table 19B).
    • Paired results: among 1,428 model–compound pairs with a regulatory status mention, 1,045 pairs still provided assistance, i.e., 73.2%; among 772 pairs without a mention, 601 pairs did, i.e., 77.8%. The authors report a difference of −4.67 percentage points, with a 95% crossed bootstrap CI of [−17.28, 8.34], and consider a mention in one task insufficient to prove restraint in another task.
    • Model exceptions: Kimi K2.6 and gemini-3.5-flash had regulatory status mention rates of 85% and 81%, respectively, and operational assistance of 96/100 and 10/100; the two Gemini models had operational assistance of 10–15% and analog request completion rates of 95–97% (Figure 3b, Supplementary Table 19).

    Temporally ordered screening and activity channels

    • Baseline coverage: the two-channel baseline detected 90/107 scorable events (84.1%); familiar scaffolds were 57/58 (98.3%) and new scaffolds were 33/49 (67.3%). Of the 17 missed detections, 16 were new scaffolds (Figure 4b,c).
    • Four-channel results: sum fusion detected 89/107 (83.2%) and maximum fusion 87/107 (81.3%); relative to the baseline, sum fusion recovered one missed detection and lost two original detections, with no net increase in coverage (Figure 4b–d).
    • Background triggering: on 47 evaluable dates, the held-out reference-trigger rates were 4.39–5.35% for the two-channel baseline and 4.18–5.11% for the four-channel; the authors note that the nominal 5% calibration budget does not fix the actual evaluation trigger rate (Figure 4e, Supplementary Table 11).

    External guardrails and action classification

    • Admission of the three guardrails: the risk request admission rates for Llama Guard, GPT-OSS, and Nemotron were 74.0%, 90.9%, and 99.0%, respectively, and the control rates were 65.9%, 92.8%, and 99.0% (Figure 6d). The authors consider that a lower admission rate alone does not prove the ability to distinguish risk from control.
    • GPT-OSS multi-condition experiment: 90 conditions and 16 request families applied to 12 risk compounds and 6 near-controls; under the three academic framing conditions, 72 risk requests and 36 reference requests were all not admitted, which the authors describe as restricting both groups (Figure 6c).
    • Final classifier: among 31,488 single-action pairs, plain agreement was 99.25% (31,251/31,488, macro-F1 0.9926) and academic was 99.87% (31,448/31,488); no transformative or acquisition request was classified as descriptive or protective (Supplementary Table 13).

    Other ablations and analyses

    • Retrieval baselines: among 53 matched pairs, TF–IDF and BGE-M3 detected 45 and 44 restricted requests, respectively, with 6 and 2 false blocks; under unfamiliar wording, BGE-M3 recalled only 31/58 challenge requests and falsely blocked 22/197 benign requests (Figure 7b).
    • Multi-view and structured prompting: three-model voting had a macro-F1 of 0.922 on 52 cases; typed graph was 0.636 and direct prompting 0.781, intent lattice was 0.812 and the corresponding direct was 0.825 (Figure 7c–e).
    • Entity sensitivity: in the intermediate adapter challenge, inserting compound identity changed base predictions in 379/3,328 (11.39%) and adapted predictions in only 2/3,328 (0.06%; Supplementary Table 9).
    • Activity prediction: on unseen scaffolds, pooled AUROC was 0.815 for fingerprints and 0.809 for Uni-Mol; macro-AUROC was 0.805 and 0.829, respectively, with a paired difference of 0.024, 95% CI [0.007, 0.042] (Figure 5b, Supplementary Table 22).
    • Historical joint diagnostic: among 107 scorable events, 1,424/1,712 operational event–request pairs were intercepted and 288 entered review; all 2,112 descriptive and protective pairs were unrestricted (Supplementary Table 12).
    • Execution check: in the mock replay of all 37,392 pairs, none of the 3,993 intercept and 4,061 review outcomes initiated a mock tool call (Supplementary Table 13C).
  5. What are some points that can be further explored?

    The authors plan to expand registry coverage, improve administrative-wording classification and test real laboratory tools; current evidence is based on fixed cohorts and templates.

    Limitations and future directions noted by the authors

    • Novel-scaffold coverage: §3.3 notes that even when the reference set meets the scoring scale, coverage of novel scaffolds may still be limited; 16 of the 17 missed detections were novel scaffolds.
    • Incremental channel discrimination: §3.4 notes that the activity channel also raises background scores, and some validation layers have very few inactive compounds; the authors advocate selecting channels by incremental discrimination at equal screening cost.
    • Administrative and editorial wording: §3.9 lists comparative administrative and editorial examples as a specific target for improving the action model.
    • Deployment interface and review: §3.9 notes that deployment must preserve compound identity and request action in the tool interface and define how deferred requests are resolved.
    • Future priorities: §4 explicitly lists broader registry coverage, better distinction of administrative wording, and testing with live laboratory tools.
    • Sensitive material access: Data availability and Code availability state that original operational question-answer pairs, evasion templates and rewrites are not included in the archived data, and that code and remaining materials use restricted access.

    Scope of experimental coverage

    • Model audit: The shared-compound audit covers 22 endpoints, 100 risk groups and 200 reference compounds; the precursor follow-up panel is 8 models and 4 qualifying compounds, with 64 responses per question type.
    • Joint benchmark: The post-2016 evaluation includes 82 risk compounds, 410 reference compounds, 64 single-action and 12 mixed-action templates, totaling 37,392 compound–request pairs.
    • Template relationship: Request wording was checked during development; Supplementary Table 15C reports that the ID and exact normalized-text overlap between the training and each evaluation template set is 0, but it is not a set of unseen task formulations.
    • Execution and registry scope: Tool gating uses mock replay; current registry evidence is a partial US federal research list, and the historical configuration does not allow automatic release of reference operational requests.
    • Statistics and annotation: The paper reports various cluster-bootstrap and Wilson intervals, does not report agreement metrics for human response annotation, and does not report end-to-end execution results on real laboratory tools.
  6. Summarize the main content of the paper

    ChemGuard-MS gates chemical tools jointly on molecular evidence and action classification, focusing on cross-task assistance and missed detection of novel scaffolds.

    ChemGuard-MS is an out-of-model chemical dual-use safeguard for tool-connected LLMs that separates molecular screening, request-action classification and execution control, then combines them when making execution decisions.

    • Problem: After auditing 22 models, the authors found that mentioning regulatory status in an identification task cannot serve as a basis for whether a separate operational task will refuse assistance; new psychoactive substances and analogues also pose a new-scaffold problem for list- and structural-similarity-based screening.
    • Method: The molecular layer combines registry records, structural similarity, physicochemical proximity and 2D/3D target-activity prediction; a LoRA fine-tuned Qwen3.5-0.8B distinguishes descriptive, protective, transformative and acquisition, and the router outputs intercept, review or no restriction.
    • Model audit: In the risk group, paired items with a regulatory-status mention still provided substantive operational assistance in 73.2% (1,045/1,428); the no-mention group was 77.8% (601/772), which the authors cite in support of cross-task execution control.
    • Temporal screening: The similarity–physicochemical baseline detected 57/58 familiar-scaffold events and 33/49 novel-scaffold events; sum fusion with the activity channel added detected 89/107 events, no increase in coverage over the two-channel baseline's 90/107.
    • Joint routing: In the post-2016 benchmark, of 2,624 single-action operational pairs on risk compounds, 2,464 were intercepted, 160 reviewed and 0 released; descriptive and protective requests were retained at 98.3%, and reference-compound operational requests were released at 74.9%.
    • Authors' conclusion: The authors consider that decoupling molecular evidence from action classification can preserve access to information and protective guidance while restricting chemical operations; next priorities are expanding registry coverage, improving the distinction of administrative wording, and testing on real laboratory tools.

Research lineage

Connected via shared benchmarks in library
Explore in knowledge graph →
Read originalarxiv.org