# US 2026/0093997 A1 · Systems and methods for generative language model reasoning process optimization

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

- Number: US 2026/0093997 A1
- Document ID: US20260093997A1
- Status: Published application
- Kind: A1
- Application number: 19/043,056
- Filed: 2025-01-31
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Haolin Chen; Yihao Feng; Akshara Prabhakar; Zuxin Liu; Weiran Yao; Ricky Ho; Lik Mui; Silvio Savarese; Huan Wang; Caiming Xiong
- Web page: https://patentgrep.com/patent/US20260093997A1

## CPC

- G06N 3/092: Reinforcement learning
- G06N 3/0475: Generative networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A system, method, and computer program product for training a generative language model (GLM) is provided. A plurality of sampled rationales for various question-answer pairs are generated using the GLM. A gradient estimate of parameters of neurons in the GLM is determined based on these sampled rationales to maximize the learning objective of the GLM. The parameters of the GLM are modified using the gradient estimate over multiple iterations, ultimately providing a trained GLM.

## Claims

### Claim 1

A method for training a generative language model (GLM), the method comprising:
generating, using the GLM, a plurality of sampled rationales for a plurality of question-answer pairs in a training dataset;
determining, using the plurality of sampled rationales, a gradient estimate of parameters of neurons in the GLM, wherein the gradient estimate maximizes a learning objective of the GLM;
modifying the parameters of the GLM using the gradient estimate; and
providing a trained GLM with the modified parameters.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
repeating the determining and the modifying over multiple iterations; and
generating the trained GLM upon completion of the multiple iterations.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining rewards corresponding to the plurality of sampled rationales, wherein the rewards quantify whether the plurality of sampled rationales and questions in the question-answer pairs would cause the GLM to generate answers in the questions in the question-answer pairs; and
maximizing the learning objective of the GLM using the rewards.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
determining a first probability of a first distribution of the parameters of the GLM prior to modifying the parameters;
determining a second probability of a second distribution of the parameters of the GLM after modifying the parameters;
determining divergence of the parameters based on the first probability and the second probability; and
maximizing the learning objective based on the divergence.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
constraining the plurality of sampled rationales to a predetermined length, wherein the constraining further comprising truncating at least one rationale in the plurality of sampled rationales that exceeds the predetermined length.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the gradient estimate further comprises:
determining a first gradient configured to improve the GLM generating a plurality of second sampled rationales during a subsequent iteration; and
determining a second gradient configured to cause the GLM to generate correct answers to questions in the question-answer pairs during the subsequent iteration; and
determining the gradient estimate using the first gradient and the second gradient.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining the first gradient further comprises:
determining an advantage parameter that quantifies how a sampled rationale in a subset of sampled rationales corresponding to a question-answer pair determines a corresponding answer to a question with respect other sampled rationales in the subset of rationales; and
adjusting the first gradient based on the advantage parameter.

### Claim 8 (depends on 1)

The method of claim 1, wherein the GLM is at least one large language model.

### Claim 9

A system for training a generative language model (GLM), the system comprising:
at least one processor; and
at least one memory coupled to at least one processor and configured to store instructions that cause the at least one processor to perform operations, the operations comprising:
generating, using the GLM, a plurality of sampled rationales for a plurality of question-answer pairs;
determining, using the plurality of sampled rationales, a gradient estimate of parameters of neurons in the GLM, wherein the gradient estimate maximizes a learning objective of the GLM;
modifying the parameters of the GLM using the gradient estimate; and
providing a trained GLM with the modified parameters.

### Claim 10 (depends on 9)

The system of claim 9, wherein the operations further comprise:
repeating the determining and the modifying over multiple iterations; and
generating the trained GLM upon completion of the multiple iterations.

### Claim 11 (depends on 9)

The system of claim 9, wherein the operations further comprise:
determining rewards corresponding to the plurality of sampled rationales, wherein the rewards quantify whether the plurality of sampled rationales and questions in question-answer pairs would cause the GLM to generate corresponding answers; and
maximizing the learning objective of the GLM using the rewards.

### Claim 12 (depends on 9)

The system of claim 9, wherein the operations further comprise:
determining a first probability of a first distribution of the parameters of the GLM prior to modifying the parameters;
determining a second probability of a second distribution of the parameters of the GLM after modifying the parameters;
determining divergence of the parameters using the first probability and the second probability; and
maximizing the learning objective based on the divergence.

### Claim 13 (depends on 9)

The system of claim 9, wherein the operations further comprise:
constraining the plurality of sampled rationales to a predetermined length, wherein the constraining further comprising truncating at least one rationale in the plurality of sampled rationales that exceeds the predetermined length.

### Claim 14 (depends on 9)

The system of claim 9, wherein to determine the gradient estimate, the operations further comprise:
determining a first gradient configured to improve the GLM generating a plurality of second sampled rationales during a subsequent iteration; and
determining a second gradient configured to cause the GLM to generate correct answers to questions in the question-answer pairs during the subsequent iteration; and
determining the gradient estimate using the first gradient and the second gradient.

### Claim 15 (depends on 14)

The system of claim 14, wherein to determine the first gradient, the operations further comprise:
determining an advantage parameter that is based on how a sampling rationale in a subset of sampled rationales corresponding to a question-answer pair determines a corresponding answer to a question with respect other sampled rationales in the subset of rationales; and
adjusting the first gradient based on the advantage parameter.

### Claim 16 (depends on 9)

The system of claim 9, wherein the GLM is at least one large language model.

### Claim 17

A non-transitory computer readable medium, having instructions stored thereon, that when executed by a processor, cause the processor to train a generative language model (GLM), the operations comprising:
generating, using the GLM, a plurality of sampled rationales for a plurality of question-answer pairs;
determining, using the plurality of sampled rationales, a gradient estimate of parameters of neurons in the GLM, wherein the gradient estimate maximizes a learning objective of the GLM;
modifying the parameters of the GLM using the gradient estimate; and
providing a trained GLM with the modified parameters.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising:
repeating the determining and the modifying over multiple iterations; and
generating the trained GLM upon completion of the multiple iterations.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising:
determining rewards corresponding to the plurality of sampled rationales, wherein the rewards quantify whether the plurality of sampled rationales and questions in question-answer pairs would cause the GLM to generate corresponding answers; and
maximizing the learning objective of the GLM using the rewards.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the trained GLM receives a question in a natural language and generates an answer.
