ChemGuard-MS: Decoupling Action Classification from Molecular Screening to Prevent Dual-Use Chemical Misuse in Language Models
Large language models connected to chemical tools and laboratory automation can turn text-based guidance into executable protocols, potentially lowering barriers to producing or acquiring controlled drugs and toxic chemicals. An audit of 22 models found that substantive operational assistance remained frequent even when a separate identification response mentioned regulatory status. ChemGuard-MS addresses this gap outside model-internal safeguards by combining molecular screening, request-action classification and execution control. The molecular layer integrates registry records, structural similarity, physicochemical properties and target-activity predictions from 2D fingerprints and 3D molecular representations. A LoRA-fine-tuned Qwen3.5-0.8B classifier distinguishes descriptive, protective, transformative and acquisition requests. The execution policy combines evidence about the compound with the requested action, rather than restricting requests solely on chemical identity. Time-ordered evaluation showed that similarity and physicochemical screening missed compounds with scaffolds absent from earlier regulatory references, highlighting the need for safeguards beyond molecular screening alone. In a registry-assisted joint benchmark, the system directly intercepted 93.9% of transformative and acquisition requests involving compounds selected from risk-source records; the remaining requests were held for review, with none automatically permitted. The system retained 98.3% of descriptive and protective requests and permitted 74.9% of transformative and acquisition requests involving reference compounds; the remaining 25.1% were intercepted or held for review. By separating molecular evidence from action classification, ChemGuard-MS provides an explicit basis for restricting chemical operations while preserving access to chemical information and protective guidance.