# US 2026/0093996 A1 · Systems and methods for training language models with automatic curriculum

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

- Number: US 2026/0093996 A1
- Document ID: US20260093996A1
- Status: Published application
- Kind: A1
- Application number: 19/043,137
- Filed: 2025-01-31
- Published: 2026-04-02
- Earliest claimed: 2024-09-27
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Amrita Saha; Caiming Xiong; Doyen Sahoo; Hanze Dong; Zirui Zhao
- Web page: https://patentgrep.com/patent/US20260093996A1

## CPC

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

## Abstract

Embodiments described herein provide a method for training a neural network based language model (LM), comprising: receiving a training dataset including pairs of queries and ground-truth responses; performing a training iteration using a reward based on response length with respect to a tunable value when the predicted response refuses to respond to a query; automatically modifying the tunable value; and repeating the training iteration with the modified tunable value.

## Claims

### Claim 1

A method for training a neural network based language model (LM), comprising:
receiving, via a data interface, a training dataset including pairs of queries and ground-truth responses;
performing a training iteration including:
generating, via the LM, a predicted response based on a training query from the training dataset,
computing a reward for the response based on a length of the predicted response when the predicted response refuses to answer the training query, with a positive reward in response to the length being above a tunable value and a negative reward in response to the length being shorter than the tunable value, and
training the LM based on the training query and the predicted response, the training query being sampled from the training dataset with a sampling frequency determined based on the reward;
automatically modifying the tunable value;
repeating the training iteration with the modified tunable value;
receiving, via a user interface, a user query; and
generating an output response to the user query via the trained LM.

### Claim 2 (depends on 1)

The method of claim 1, wherein the automatically modifying the tunable value includes:
incrementally adjusting the tunable value to maximize an objective function which balances a correctness of non-refusal responses with a proportion of refusal responses.

### Claim 3 (depends on 2)

The method of claim 2, wherein the incrementally adjusting is performed using a step size proportional to a standard deviation of length of responses generated by the LM.

### Claim 4 (depends on 3)

The method of claim 3, wherein the step size has a predetermined maximum value.

### Claim 5 (depends on 1)

The method of claim 1, wherein the tunable value is constrained to be less than or equal to a mean length of responses generated by the LM plus double a standard deviation of length of responses generated by the LM.

### Claim 6 (depends on 1)

The method of claim 1, wherein the length is a number of reasoning steps.

### Claim 7 (depends on 1)

The method of claim 1, wherein computing the reward for the response based on the length of the predicted response includes:
computing the reward according to a curve, wherein the curve has a highest rate of change when the length is the same as the tunable value.

### Claim 8

A system for training a neural network based language model (LM), the system comprising:
a memory that stores the LM and a plurality of processor executable instructions;
a communication interface that receives a training dataset including pairs of queries and ground-truth responses; and
one or more hardware processors that read and execute the plurality of processor-executable instructions from the memory to perform operations comprising:
performing a training iteration including:
generating, via the LM, a predicted response based on a training query from the training dataset,
computing a reward for the response based on a length of the predicted response when the predicted response refuses to answer the training query, with a positive reward in response to the length being above a tunable value and a negative reward in response to the length being shorter than the tunable value, and
training the LM based on the training query and the predicted response, the training query being sampled from the training dataset with a sampling frequency determined based on the reward;
automatically modifying the tunable value;
repeating the training iteration with the modified tunable value;
receiving, via a user interface, a user query; and
generating an output response to the user query via the trained LM.

### Claim 9 (depends on 8)

The system of claim 8, wherein the automatically modifying the tunable value includes:
incrementally adjusting the tunable value to maximize an objective function which balances a correctness of non-refusal responses with a proportion of refusal responses.

### Claim 10 (depends on 9)

The system of claim 9, wherein the incrementally adjusting is performed using a step size proportional to a standard deviation of length of responses generated by the LM.

### Claim 11 (depends on 10)

The system of claim 10, wherein the step size has a predetermined maximum value.

### Claim 12 (depends on 8)

The system of claim 8, wherein the tunable value is constrained to be less than or equal to a mean length of responses generated by the LM plus double a standard deviation of length of responses generated by the LM.

### Claim 13 (depends on 8)

The system of claim 8, wherein the length is a number of reasoning steps.

### Claim 14 (depends on 8)

The system of claim 8, wherein computing the reward for the response based on the length of the predicted response includes:
computing the reward according to a curve, wherein the curve has a highest rate of change when the length is the same as the tunable value.

### Claim 15

A non-transitory machine-readable medium comprising a plurality of machine-executable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform operations comprising:
receiving, via a data interface, a training dataset including pairs of queries and ground-truth responses;
performing a training iteration including:
generating, via a neural network based language model (LM), a predicted response based on a training query from the training dataset,
computing a reward for the response based on a length of the predicted response when the predicted response refuses to answer the training query, with a positive reward in response to the length being above a tunable value and a negative reward in response to the length being shorter than the tunable value, and
training the LM based on the training query and the predicted response, the training query being sampled from the training dataset with a sampling frequency determined based on the reward;
automatically modifying the tunable value;
repeating the training iteration with the modified tunable value;
receiving, via a user interface, a user query; and
generating an output response to the user query via the trained LM.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the automatically modifying the tunable value includes:
incrementally adjusting the tunable value to maximize an objective function which balances a correctness of non-refusal responses with a proportion of refusal responses.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the incrementally adjusting is performed using a step size proportional to a standard deviation of length of responses generated by the LM.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the step size has a predetermined maximum value.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the tunable value is constrained to be less than or equal to a mean length of responses generated by the LM plus double a standard deviation of length of responses generated by the LM.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the length is a number of reasoning steps.
