# US 2026/0065065 A1 · Securing Generative Model Output Using Guardrail-Augmented Prompts And Related System And Methods

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0065065 A1
- Document ID: US20260065065A1
- Status: Published application
- Kind: A1
- Application number: 18/825,296
- Filed: 2024-09-05
- Published: 2026-03-05
- Earliest claimed: 2024-09-05
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Olaitan Philip Olaleye
- Web page: https://patentgrep.com/patent/US20260065065A1

## CPC

- G06N 3/091: Active learning
- G06N 3/0475: Generative networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques for generating augmented prompts are disclosed herein. Augmented prompts and/or guardrails for augmenting prompts are identified and/or generated. Augmented prompts intended to secure output generated by a generative model resulting from the augmented prompts are scored for efficacy. A risk classifier and a rules-based dictionary for augmenting prompts according to a risk class of an initial prompt are used to generate training data. The training data is used to train and/or fine-tune an error-to-prompt model. Augmented prompts and/or efficacy scores for the augmented prompts are used for feedback-based optimization of the error-to-prompt model. The error-to-prompt model selects and/or generates prompt augmentations, such as guardrail phrases, edits, deletions, or the like that secure output generated by the augmented prompt.

## Claims

### Claim 1

A method, comprising:
accessing a first prompt;
determining a risk classification for the first prompt;
generating one or more prompts based on the risk classification, the first prompt, and an output of an error to prompt service, the output of the error to prompt service being generated by the error to prompt service based on determining augmenting language for the risk classification;
inputting the one or more prompts into a generative model to produce an output of the generative model; and
storing the output of the generative model, wherein the method is performed by at least one device including a hardware processor.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
accessing an initial output of the generative model, the initial output being generated by the generative model in response to the first prompt being input into the generative model; and
analyzing the initial output of the generative model to determine a risk classification for the initial output of the generative model.

### Claim 3 (depends on 2)

The method of claim 2, comprising:
determining the risk classification for the first prompt based on the output of a classification model;
responsive to the risk classification being safe, outputting the initial output; and
responsive to the risk classification being not safe:
determining a risk class for the first prompt; and
providing the risk class to the error to prompt model.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the output of the error to prompt service is generated based on a dictionary rule for risk classification, the dictionary rule including a mapping from one or more risk classes to one or more augmenting phrases.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
the output of the error to prompt service is based on an output of a guardrail generation model in response to the risk classification, the guardrail generation model having been trained using machine learning to generate and out augmenting phrases for prompts input into the guardrail generation model.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
the guardrail generation model is trained using training data comprising (1) outputs of the error to prompt service generated based on dictionary rules and (2) efficacy scores for the outputs of the error to prompt service generated based on dictionary rules.

### Claim 7 (depends on 5)

The method of claim 5, comprising:
generating an augmented prompt based on the output of the guardrail generation model;
generating a secured output of the generative model by inputting the augmented prompt into the generative model;
determining an efficacy score for the output of the error to prompt service based on the secured output of the generative model; and
providing the efficacy score as feedback to the guardrail generation model to optimize the guardrail generation model.

### Claim 8

One or more non-transitory computer readable media comprising instructions which, when executed by one or more hardware processors, cause performance of operations comprising:
accessing a first prompt;
determining a risk classification for the first prompt;
generating a one or more prompts based on the risk classification, the first prompt, and an output of an error to prompt service, the output of the error to prompt service being generated by the error to prompt service based on determining augmenting language for the risk classification;
inputting the one or more prompts into a generative model to produce an output of the generative model; and
storing the output of the generative model.

### Claim 9 (depends on 8)

The media of claim 8, the operations comprising:
accessing an initial output of the generative model, the initial output being generated by the generative model in response to the first prompt being input into the generative model; and
analyzing the initial output of the generative model to determine a risk classification for the initial output of the generative model.

### Claim 10 (depends on 9)

The media of claim 9, the operations comprising:
determining the risk classification for the first prompt based on the output of a classification model;
responsive to the risk classification being safe, outputting the initial output; and
responsive to the risk classification being not safe:
determining a risk class for the first prompt; and
providing the risk class to the error to prompt model.

### Claim 11 (depends on 8)

The media of claim 8, wherein:
the output of the error to prompt service is generated based on a dictionary rule for risk classification, the dictionary rule including a mapping from one or more risk classes to one or more augmenting phrases.

### Claim 12 (depends on 8)

The media of claim 8, wherein:
the output of the error to prompt service is based on an output of a guardrail generation model in response to the risk classification, the guardrail generation model having been trained using machine learning to generate and out augmenting phrases for prompts input into the guardrail generation model.

### Claim 13 (depends on 12)

The media of claim 12, wherein:
the guardrail generation model is trained using training data comprising (1) outputs of the error to prompt service generated based on dictionary rules and (2) efficacy scores for the outputs of the error to prompt service generated based on dictionary rules.

### Claim 14 (depends on 12)

The media of claim 12, the operations comprising:
generating an augmented prompt based on the output of the guardrail generation model;
generating a secured output of the generative model by inputting the augmented prompt into the generative model;
determining an efficacy score for the output of the error to prompt service based on the secured output of the generative model; and
providing the efficacy score as feedback to the guardrail generation model to optimize the guardrail generation model.

### Claim 15

A system comprising:
at least one device including a hardware processor;
the system being configured to perform operations comprising:
accessing a first prompt;
determining a risk classification for the first prompt;
generating one or more prompts based on the risk classification, the first prompt, and an output of an error to prompt service, the output of the error to prompt service being generated by the error to prompt service based on determining augmenting language for the risk classification;
inputting the one or more prompts into a generative model to produce an output of the generative model; and
storing the output of the generative model.

### Claim 16 (depends on 15)

The system of claim 15, the operations comprising:
accessing an initial output of the generative model, the initial output being generated by the generative model in response to the first prompt being input into the generative model; and
analyzing the initial output of the generative model to determine a risk classification for the initial output of the generative model.

### Claim 17 (depends on 16)

The system of claim 16, the operations comprising:
determining the risk classification for the first prompt based on the output of a classification model;
responsive to the risk classification being safe, outputting the initial output; and
responsive to the risk classification being not safe:
determining a risk class for the first prompt; and
providing the risk class to the error to prompt model.

### Claim 18 (depends on 15)

The system of claim 15, wherein:
the output of the error to prompt service is generated based on a dictionary rule for risk classification, the dictionary rule including a mapping from one or more risk classes to one or more augmenting phrases.

### Claim 19 (depends on 15)

The system of claim 15, wherein:
the output of the error to prompt service is based on an output of a guardrail generation model in response to the risk classification, the guardrail generation model having been trained using machine learning to generate and out augmenting phrases for prompts input into the guardrail generation model.

### Claim 20 (depends on 19)

The system of claim 19, wherein:
the guardrail generation model is trained using training data comprising (1) outputs of the error to prompt service generated based on dictionary rules and (2) efficacy scores for the outputs of the error to prompt service generated based on dictionary rules; the operations comprising:
generating an augmented prompt based on the output of the guardrail generation model;
generating a secured output of the generative model by inputting the augmented prompt into the generative model;
determining an efficacy score for the output of the error to prompt service based on the secured output of the generative model; and
providing the efficacy score as feedback to the guardrail generation model to optimize the guardrail generation model.
