Molecular Generation Guardrails for Toxic Prompt Filtering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generative models in drug discovery generate toxic, harmful, and undesirable molecules, and existing detection methods are time-consuming, resource-intensive, and lack predictive power and scalability.

Innovation Solution

Implement guardrails using classifiers trained on various data types to predict undesired attributes, integrate classifiers into the generative process for inference-time guidance, incorporate classifiers into the training of the generative model, and process prompts to prevent undesirable molecule generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If experimental techniques (cellular and tissue assays) are used to detect toxic molecules, then detection reliability is improved, but time consumption and resource intensity increase significantly

Engineering Contradiction:
Improvedetection reliabilityVSAvoidtime consumption
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by using machine learning models to predict molecular toxicity before actual experimental testing is performed. The system evaluates molecular structures in silico using trained classifiers that can identify toxic properties, allowing researchers to filter out harmful candidates prior to costly and time-consuming wet lab experiments. This preliminary computational assessment significantly reduces the number of molecules requiring experimental verification.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces the mechanical/experimental detection system (cellular and tissue assays requiring physical laboratory work) with a computational machine learning system. The machine learning models process molecular structure data and predict toxicity outcomes, substituting the need for physical biological testing with digital simulation and pattern recognition, thereby eliminating time and resource constraints of experimental methodologies.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Productivity

If QSAR models are used to evaluate toxicity, then evaluation speed is improved, but predictive power and generalization to new molecular structures deteriorate

Engineering Contradiction:
Improveevaluation speedVSAvoidpredictive power
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies parameter changes by transitioning from traditional QSAR models to machine learning models that utilize different computational parameters and approaches. The machine learning system processes molecular data through multiple dimensions including structural features, chemical properties, and contextual information, enabling both rapid evaluation and high predictive accuracy. The model adapts to new molecular structures by learning from diverse training data rather than relying on fixed QSAR relationships.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent uses copying by training machine learning models on extensive datasets of molecular structures and their toxicity outcomes. The model creates a computational representation (copy) of molecular toxicity patterns that can be rapidly applied to new structures. This trained model serves as a reusable predictive tool that maintains high accuracy across diverse molecular spaces, overcoming the generalization limitations of traditional QSAR methods.

Inventive Principle:
Principle #26Copying

3Productivity

If generative models are used to generate diverse molecular structures, then productivity in drug discovery is improved, but generation of toxic and harmful molecules increases

Engineering Contradiction:
Improvediscovery accelerationVSAvoidtoxic molecule generation
Core Design Contradiction:
ProductivityVSObject-generated harmful factors

Solution Approach 1:

The patent implements feedback by integrating machine learning toxicity classifiers into the generative modeling pipeline. The system continuously evaluates generated molecular structures against trained safety models and uses this feedback to guide the generation process. When molecules are predicted to be toxic, the system can reject them, modify generation parameters, or alert users, creating a closed-loop system that maintains high productivity while filtering out harmful outputs.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary safety layer between the generative model and the final molecular output. The machine learning toxicity assessment system acts as a mediator that evaluates generated molecules and determines whether they should proceed to further development. This intermediary layer protects against toxic molecule generation without interfering with the creative generative process, allowing diverse molecule discovery while maintaining safety standards.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20260050712A1Guardrails for instruction-tuned molecular generation
Publication Date: 2026.02.19 NVIDIA CORP
  • US20260050712A1 patent drawing
  • US20260050712A1 patent drawing
  • US20260050712A1 patent drawing

AI summary

In various examples, a technique for providing a guardrail for instruction-tuned molecular generation includes inputting a representation of at least a portion of a prompt associated with a trained generative model into one or more classifiers. The technique also includes generating, via execution of the classifier(s) based on the representation, one or more scores, wherein each score represents a predicted measure of a different undesired attribute associated with a molecule to be generated using the trained generative model based on the prompt. The technique further includes determining that the at least the portion of the prompt is associated with at least one undesired attribute based at least on a comparison of the score(s) with one or more thresholds, and in response to the determination, preventing the prompt from being applied to the trained generative model, wherein the preventing comprises filtering the prompt as input into the trained generative model.