# US 2026/0099707 A1 · Safety alignment for language models based on language model-generated safety categories

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

- Number: US 2026/0099707 A1
- Document ID: US20260099707A1
- Status: Published application
- Kind: A1
- Application number: 19/331,849
- Filed: 2025-09-17
- Published: 2026-04-09
- Earliest claimed: 2024-10-02
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Shaona GHOSH; Prasoon Varshney; Makesn Narsimhan Sreedhar; Aishwarya Padmakumar; Traian Eugen Rebedea; Christopher Marc Rarisien
- Web page: https://patentgrep.com/patent/US20260099707A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 20/20: Ensemble learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In various examples, techniques for training a language model to implement guardrails on generated outputs include receiving a data set including a plurality of interactions with a language model, each interaction of the plurality of interactions being associated with a predefined safety label; generating, using an ensemble of generative artificial intelligence models, one or more machine-defined safety labels for each interaction in the plurality of interactions; generating a training data set based on revising a label associated with each interaction of the plurality of interactions, the revising being based on a majority vote of the one or more machine-defined safety labels and the predefined safety label associated with each interaction of the plurality of interactions; and training the language model based on the training data set, wherein the training implements guardrails on an output of the language model such that the language model is restricted from generating responses including unsafe content.

## Claims

### Claim 1

A processor-implemented method, comprising:
receiving a data set including a plurality of interactions with a language model, each interaction of the plurality of interactions being associated with a predefined safety label included in a taxonomy;
updating the plurality of interactions based on one or more annotation labels provided for the plurality of interactions, wherein at least one of the annotation labels is absent from the taxonomy;
modifying the taxonomy to include the at least one of the annotation labels;
generating, using an ensemble of generative machine learning models, one or more machine-defined safety labels for each interaction in the plurality of interactions;
generating a training data set based on revising a label associated with each interaction of the plurality of interactions, the revising being based on a majority vote of the one or more machine-defined safety labels, the predefined safety label associated with each interaction of the plurality of interactions, and the one or more annotation labels provided for the plurality of interactions; and
updating the language model based on the training data set, wherein the updating implements guardrails on one or more of a user prompt or an output of the language model such that the language model is restricted from generating responses including unsafe content.

### Claim 2 (depends on 1)

The method of claim 1, wherein the predefined safety label comprises one of a label indicating that an interaction is safe, a label associated with one of a plurality of unsafe categories, or an ambiguous safety label.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of unsafe categories comprises one or more categories not included in a predefined set of unsafe categories.

### Claim 4 (depends on 2)

The method of claim 2, wherein the guardrails on the output of the language model further restrict the language model from generating responses including content that is associated with the ambiguous safety label.

### Claim 5 (depends on 1)

The method of claim 1, wherein each respective interaction of the plurality of interactions comprises a plurality of sub-interactions, and wherein each sub-interaction is associated with a respective predefined safety label.

### Claim 6 (depends on 5)

The method of claim 5, wherein a first sub-interaction comprises a prompt and a second sub-interaction comprises a response to the prompt.

### Claim 7 (depends on 6)

The method of claim 6, wherein receiving the label associated with the respective interaction comprises revising a safety label assigned to the second sub-interaction but not the first sub-interaction.

### Claim 8 (depends on 1)

The method of claim 1, wherein generating the one or more machine-defined safety labels for each interaction in the plurality of interactions comprises, for each respective interaction, generating a binary safety classification and an unsafe category using each generative artificial intelligence model in the ensemble of generative artificial intelligence models.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the training data set comprises:
determining that a predefined safety label associated with an interaction in the plurality of interactions differs from a label identified based on the majority vote of the one or more machine-defined safety labels; and
assigning the identified label to the interaction in the training data set.

### Claim 10 (depends on 9)

The method of claim 9, further comprising assigning one or more unsafe categories to the interaction based on unsafe categories assigned to the interaction by the one or more generative artificial intelligence models.

### Claim 11 (depends on 1)

The method of claim 1, wherein generating the training data set comprises:
determining that a predefined safety label associated with an interaction in the plurality of interactions is identical to a label identified based on the majority vote of the one or more machine-defined safety labels; and
copying the interaction from the received data set to the training data set.

### Claim 12 (depends on 1)

The method of claim 1, wherein the language model is trained to classify an input prompt and a response to the input prompt as safe or unsafe and generate a response based on the classification of the input prompt.

### Claim 13 (depends on 12)

The method of claim 12, wherein the language model is trained to classify the input prompt and the response to the input prompt as safe or unsafe based on topic following.

### Claim 14 (depends on 1)

The method of claim 1, wherein training the language model comprises fine-tuning a base language model based on the training data set.

### Claim 15 (depends on 1)

The method of claim 1, wherein the at least one of the annotation labels comprises a full set of annotation labels absent from the taxonomy.

### Claim 16

A system, comprising:
at least one memory having executable instructions stored thereon; and
one or more processors configured to execute the executable instructions to cause the system to:
receive a data set including a plurality of interactions with a language model, each interaction of the plurality of interactions being associated with a predefined safety label included in a taxonomy;
update the plurality of interactions based on one or more annotation labels provided for the plurality of interactions, wherein at least one of the annotation labels is absent from the taxonomy;
modify the taxonomy to include the at least one of the annotation labels;
generate, using an ensemble of generative machine learning models, one or more machine-defined safety labels for each interaction in the plurality of interactions;
generate a training data set based on revising a label associated with each interaction of the plurality of interactions, the revising being based on a majority vote of the one or more machine-defined safety labels, the predefined safety label associated with each interaction of the plurality of interactions, and the one or more annotation labels provided for the plurality of interactions; and
update the language model based on the training data set, wherein the updating implements guardrails on one or more of a user prompt or an output of the language model such that the language model is restricted from generating responses including unsafe content.

### Claim 17 (depends on 16)

The system of claim 16, wherein the system is comprised in at least one of:
a system for performing simulation operations;
a system for performing digital twin operations;
a system for performing collaborative content creation for 3D assets;
a system for performing one or more deep learning operations;
a system implemented using an edge device;
a system for generating or presenting at least one of virtual reality content, augmented reality content, or mixed reality content;
a system implemented using a robot;
a system for performing one or more conversational AI operations;
a system implemented using one or more large language models (LLMs);
a system implemented using one or more small language models (SLMs);
a system implementing one or more vision language models (VLMs);
a system implementing one or more multi modal language models;
a system for generating synthetic data;
a system for performing one or more generative AI operations;
a system incorporating one or more virtual machines (VMs);
a system implemented at least partially in a data center; or
a system implemented at least partially using cloud computing resources.

### Claim 18

A processor-implemented method for generating a training data set, the method comprising:
receiving a data set comprising a plurality of interactions, each interaction of the plurality of interactions associated with a predefined safety label;
for an interaction of the plurality of interactions, generating a plurality of machine-defined safety labels using a corresponding plurality of machine learning models in an ensemble;
revising the predefined safety label associated with the interaction based on a majority vote of the plurality of machine-defined safety labels, thereby creating a revised interaction; and
generating a training data set for a language model, the training data set comprising the revised interaction.

### Claim 19 (depends on 18)

The method of claim 18, wherein generating the plurality of machine-defined safety labels for each interaction in the plurality of interactions comprises, for each respective interaction, generating a binary safety classification and an unsafe category using each generative artificial intelligence model in the ensemble of generative artificial intelligence models.

### Claim 20 (depends on 18)

The method of claim 18, wherein each interaction in the plurality of interactions comprises a prompt and a response to the prompt, and wherein the prompt is associated with a first plurality of machine-defined safety labels and the response to the prompt is associated with a second plurality of machine-defined safety labels.
