# US 2026/0065036 A1 · Method, apparatus, device, and storage medium for training generative model

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

- Number: US 2026/0065036 A1
- Document ID: US20260065036A1
- Status: Published application
- Kind: A1
- Application number: 19/318,024
- Filed: 2025-09-03
- Published: 2026-03-05
- Earliest claimed: 2024-09-03
- Assignees: Beijing Zitiao Network Technology Co., Ltd.; Lemon Inc.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.; Lemon Inc.
- Inventors: Yaojie Shen; Xinyao Wang; Yulei Niu; Ying Zhou; Lexin Tang; Fan Chen; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260065036A1

## CPC

- G06N 3/0475: Generative networks
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/56: Natural language generation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the disclosure relate to a method, an apparatus, a device, and a computer-readable storage medium for training a generative model. The method includes: constructing a training prompt; and performing a plurality of rounds of iterative training based on the training prompt, wherein each round of iterative training includes: obtaining a plurality of response contents generated by the generative model based on the training prompt; determining a first response content and a second response content from the plurality of response contents based on evaluation information of the plurality of response contents, wherein an evaluation of the first response content is superior to an evaluation of the second response content; and adjusting a parameter of the generative model to increase a first probability of outputting the first response content and reduce a second probability of outputting the second response content.

## Claims

### Claim 1

A method for training a generative model, comprising:
constructing a training prompt; and
performing a plurality of rounds of iterative training based on the training prompt, wherein each round of iterative training comprises:
obtaining a plurality of response contents generated by the generative model based on the training prompt;
determining a first response content and a second response content from the plurality of response contents based on evaluation information of the plurality of response contents, wherein an evaluation of the first response content is superior to an evaluation of the second response content; and
adjusting a parameter of the generative model to increase a first probability of outputting the first response content and reduce a second probability of outputting the second response content.

### Claim 2 (depends on 1)

The method of claim 1, wherein constructing the training prompt comprises:
generating the training prompt using the generative model.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the first response content and the second response content from the plurality of response contents based on the evaluation information of the plurality of response contents comprises:
ranking the plurality of response contents based on the evaluation information; and
determining the first response content and the second response content based on a ranking result of the plurality of response contents.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first response content is a response content with a best evaluation in the plurality of response contents, and the second response content is a response content with a worst evaluation in the plurality of response contents.

### Claim 5 (depends on 1)

The method of claim 1, wherein adjusting the parameter of the generative model comprises:
determining first preference information of the generative model based on the first probability and the second probability;
determining second preference information of a reference model based on a third probability of the reference model outputting the first response content and a fourth probability of the reference model outputting the second response content; and
determining an objective loss based on the first preference information and the second preference information, to adjust the parameter of the generative model.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the objective loss based on the first preference information and the second preference information comprises:
determining difference information based on a difference between the first preference information and the second preference information;
applying a predetermined weight coefficient to the second preference information to determine third preference information; and
determining the objective loss based on the difference information and the third preference information.

### Claim 7 (depends on 5)

The method of claim 5, wherein a parameter of the reference model corresponds to an initial parameter of the generative model prior to the plurality of rounds of iterative training.

### Claim 8 (depends on 1)

The method of claim 1, wherein the generative model is a language model and the plurality of response contents are text contents.

### Claim 9

An electronic device, comprising:
at least one processor; and
at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions, when executed by the at least one processor, causing the electronic device to perform operations comprising:
constructing a training prompt; and
performing a plurality of rounds of iterative training based on the training prompt, wherein each round of iterative training comprises:
obtaining a plurality of response contents generated by the generative model based on the training prompt;
determining a first response content and a second response content from the plurality of response contents based on evaluation information of the plurality of response contents, wherein an evaluation of the first response content is superior to an evaluation of the second response content; and
adjusting a parameter of the generative model to increase a first probability of outputting the first response content and reduce a second probability of outputting the second response content.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein constructing the training prompt comprises:
generating the training prompt using the generative model.

### Claim 11 (depends on 9)

The electronic device of claim 9, wherein determining the first response content and the second response content from the plurality of response contents based on the evaluation information of the plurality of response contents comprises:
ranking the plurality of response contents based on the evaluation information; and
determining the first response content and the second response content based on a ranking result of the plurality of response contents.

### Claim 12 (depends on 9)

The electronic device of claim 9, wherein the first response content is a response content with a best evaluation in the plurality of response contents, and the second response content is a response content with a worst evaluation in the plurality of response contents.

### Claim 13 (depends on 9)

The electronic device of claim 9, wherein adjusting the parameter of the generative model comprises:
determining first preference information of the generative model based on the first probability and the second probability;
determining second preference information of a reference model based on a third probability of the reference model outputting the first response content and a fourth probability of the reference model outputting the second response content; and
determining an objective loss based on the first preference information and the second preference information, to adjust the parameter of the generative model.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein determining the objective loss based on the first preference information and the second preference information comprises:
determining difference information based on a difference between the first preference information and the second preference information;
applying a predetermined weight coefficient to the second preference information to determine third preference information; and
determining the objective loss based on the difference information and the third preference information.

### Claim 15 (depends on 13)

The electronic device of claim 13, wherein a parameter of the reference model corresponds to an initial parameter of the generative model prior to the plurality of rounds of iterative training.

### Claim 16 (depends on 9)

The electronic device of claim 9, wherein the generative model is a language model and the plurality of response contents are text contents.

### Claim 17

A non-transitory computer-readable storage medium having stored thereon a computer program executable by a processor to perform operations comprising:
constructing a training prompt; and
performing a plurality of rounds of iterative training based on the training prompt, wherein each round of iterative training comprises:
obtaining a plurality of response contents generated by the generative model based on the training prompt;
determining a first response content and a second response content from the plurality of response contents based on evaluation information of the plurality of response contents, wherein an evaluation of the first response content is superior to an evaluation of the second response content; and
adjusting a parameter of the generative model to increase a first probability of outputting the first response content and reduce a second probability of outputting the second response content.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein constructing the training prompt comprises:
generating the training prompt using the generative model.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein determining the first response content and the second response content from the plurality of response contents based on the evaluation information of the plurality of response contents comprises:
ranking the plurality of response contents based on the evaluation information; and
determining the first response content and the second response content based on a ranking result of the plurality of response contents.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the first response content is a response content with a best evaluation in the plurality of response contents, and the second response content is a response content with a worst evaluation in the plurality of response contents.
