# US 2026/0093934 A1 · Data generation

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

- Number: US 2026/0093934 A1
- Document ID: US20260093934A1
- Status: Published application
- Kind: A1
- Application number: 19/342,981
- Filed: 2025-09-29
- Published: 2026-04-02
- Earliest claimed: 2024-09-29
- Applicants: Beijing Zitiao Network Technology Co., Ltd.; Lemon Inc.
- Inventors: Ying Zhou; Xinyao Wang; Yulei Niu; Yaojie Shen; Lexin Tang; Fan Chen; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260093934A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments of the disclosure relate to a method, an apparatus, a device and a computer readable storage medium for generating data. The method proposed herein includes: obtaining a first feature representation by sampling from a target feature space, the target feature space being determined by processing a set of training samples with an encoding unit; processing the first feature representation with a diffusion unit to determine a second feature representation; and providing a second feature representation to a pre-trained language model to generate a target data sample.

## Claims

### Claim 1

A method of generating data, comprising:
obtaining a first feature representation by sampling from a target feature space, the target feature space being determined by processing a set of training samples with an encoding unit;
processing the first feature representation with a diffusion unit to determine a second feature representation; and
providing the second feature representation to a pre-trained language model to generate a target data sample.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encoding unit is trained based on a process comprising:
determining a first training feature representation of a training sample with an encoding unit to be trained;
processing the first training feature representation with the pre-trained language model, to determine a first training loss of a variational autoencoder (VAE) comprising the encoding unit and the pre-trained language model; and
adjusting a parameter of the encoding unit based on the first training loss.

### Claim 3 (depends on 1)

The method of claim 1, wherein processing the first feature representation using the diffusion unit to determine the second feature representation comprises:
processing the first feature representation with a noise addition module of the diffusion unit to generate a noise addition feature representation; and
processing the noise addition feature representation with a denoising module of the diffusion unit to generate the second feature representation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the diffusion unit is trained based on a process comprising:
determining a second training feature representation by sampling from a training feature space, the training feature space being determined with the trained encoding unit;
processing the second training feature representation with the diffusion unit to determine a second training loss associated with the diffusion unit; and
adjusting a parameter of the diffusion unit based on the second training loss.

### Claim 5 (depends on 1)

The method of claim 1, wherein providing the second feature representation to the pre-trained language model to generate the target data sample comprises:
mapping the second feature representation to a target token embedding; and
injecting the target token embedding into the pre-trained language model to generate the target data sample.

### Claim 6 (depends on 5)

The method of claim 5, wherein injecting the set of token embeddings to the pre-trained language model comprises one of the following:
injecting the target token embedding as a soft prompt token of the language model to be added before a preset marker token of the language model;
injecting the target token embedding into a key-value cache of the language model; or
injecting the target token embedding into a token embedding space of the language model to be combined with an original token embedding of the language model.

### Claim 7 (depends on 1)

The method of claim 1, wherein the target feature space is determined by processing training text content corresponding to the set of training samples with the encoding unit.

### Claim 8 (depends on 7)

The method of claim 7, wherein the language model is configured to output target text content based on the second feature representation for generating the target data sample corresponding to the target text content.

### Claim 9 (depends on 1)

The method of claim 1, wherein the target data sample comprises at least one of the following:
a text sample, a code sample, a chart sample, or a tool sample.

### Claim 10

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 acts comprising:
obtaining a first feature representation by sampling from a target feature space, the target feature space being determined by processing a set of training samples with an encoding unit;
processing the first feature representation with a diffusion unit to determine a second feature representation; and
providing the second feature representation to a pre-trained language model to generate a target data sample.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the encoding unit is trained based on a process comprising:
determining a first training feature representation of a training sample with an encoding unit to be trained;
processing the first training feature representation with the pre-trained language model, to determine a first training loss of a variational autoencoder (VAE) comprising the encoding unit and the pre-trained language model; and
adjusting a parameter of the encoding unit based on the first training loss.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein processing the first feature representation using the diffusion unit to determine the second feature representation comprises:
processing the first feature representation with a noise addition module of the diffusion unit to generate a noise addition feature representation; and
processing the noise addition feature representation with a denoising module of the diffusion unit to generate the second feature representation.

### Claim 13 (depends on 10)

The electronic device of claim 10, wherein the diffusion unit is trained based on a process comprising:
determining a second training feature representation by sampling from a training feature space, the training feature space being determined with the trained encoding unit;
processing the second training feature representation with the diffusion unit to determine a second training loss associated with the diffusion unit; and
adjusting a parameter of the diffusion unit based on the second training loss.

### Claim 14 (depends on 10)

The electronic device of claim 10, wherein providing the second feature representation to the pre-trained language model to generate the target data sample comprises:
mapping the second feature representation to a target token embedding; and
injecting the target token embedding into the pre-trained language model to generate the target data sample.

### Claim 15 (depends on 14)

The electronic device of claim 14, wherein injecting the set of token embeddings to the pre-trained language model comprises one of the following:
injecting the target token embedding as a soft prompt token of the language model to be added before a preset marker token of the language model;
injecting the target token embedding into a key-value cache of the language model; or
injecting the target token embedding into a token embedding space of the language model to be combined with an original token embedding of the language model.

### Claim 16 (depends on 10)

The electronic device of claim 10, wherein the target feature space is determined by processing training text content corresponding to the set of training samples with the encoding unit.

### Claim 17 (depends on 16)

The electronic device of claim 16, wherein the language model is configured to output target text content based on the second feature representation for generating the target data sample corresponding to the target text content.

### Claim 18 (depends on 10)

The electronic device of claim 10, wherein the target data sample comprises at least one of the following:
a text sample, a code sample, a chart sample, or a tool sample.

### Claim 19

A non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement acts comprising:
obtaining a first feature representation by sampling from a target feature space, the target feature space being determined by processing a set of training samples with an encoding unit;
processing the first feature representation with a diffusion unit to determine a second feature representation; and
providing the second feature representation to a pre-trained language model to generate a target data sample.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the encoding unit is trained based on a process comprising:
determining a first training feature representation of a training sample with an encoding unit to be trained;
processing the first training feature representation with the pre-trained language model, to determine a first training loss of a variational autoencoder (VAE) comprising the encoding unit and the pre-trained language model; and
adjusting a parameter of the encoding unit based on the first training loss.
