# US 2025/0094729 A1 · Method and device for stepwise purification of sentences with generative artificial intelligence

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

- Number: US 2025/0094729 A1
- Document ID: US20250094729A1
- Status: Published application
- Kind: A1
- Application number: 18/522,709
- Filed: 2023-11-29
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Sangmyung University Industry-Academy Cooperation Foundation
- Applicants: Sangmyung University Industry - Academy Cooperation Foundation
- Inventors: Manseo KIM; Jonghan KIM; Sungchan AHN; Woosung JUNG; Suhwan JO; Sung Jun PARK
- Web page: https://patentgrep.com/patent/US20250094729A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 16/3326: {using relevance feedback from the user, e.g. relevance feedback on documents, documents sets, document terms or passages}
- G06F 16/338: Presentation of query results
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is a method of generating stepwise purified sentences using a deep learning-based interactive model. The method includes receiving input sentences by a user's terminal, detecting malicious words in the input sentences, and generating a plurality of stagewise purified sentences using a plurality of types of purification including purification of the malicious words according to stepwise sentence purification, by a language purification model part of a stepwise purified sentence generation system, and presenting, by the terminal, the plurality of stepwise purified sentences to a user to allow the user to select one of the plurality of stepwise purified sentences, and transmitting, by the terminal, the selected stepwise purified sentence to the stepwise purified sentence generation system to determine a final purified sentence.

## Claims

### Claim 1

A method of generating stepwise purified sentences using a deep learning-based interactive model, the method comprising:
receiving input sentences by a user's terminal;
detecting malicious words in the input sentences, and generating a plurality of stepwise purified sentences using a plurality of types of purification including purification of the malicious words according to stepwise sentence purification by a language purification model part of a stepwise purified sentence generation system; and
presenting, by the terminal, the plurality of stepwise purified sentences to a user to allow the user to select one of the plurality of stepwise purified sentences, and transmitting, by the terminal, the selected stepwise purified sentence to the stepwise purified sentence generation system to determine a final purified sentence.

### Claim 2 (depends on 1)

The method of claim 1,
wherein the language purification model includes a reinforcement learning from human feedback (RLHF)-based large language model (LLM).

### Claim 3 (depends on 2)

The method of claim 2,
wherein the stepwise sentence purification is performed at least three times, and results from each stage of the method of stepwise purification of sentences are stored in a database, wherein the purified sentences stored in the database are presented to and selected by the user.

### Claim 4 (depends on 1)

The method of claim 1,
wherein stages of the method of stepwise purification of sentences are performed at least three times, and results from each stage of the method of stepwise purification of sentences are stored in a database, wherein the purified sentences stored in the database are presented to and selected by the user.

### Claim 5 (depends on 1)

The method of claim 1,
wherein the language purification model part comprises a single model, and when a prompt for each stage from a prompt engineering part is input to the single model, the single model repeatedly performs different types of sentence purification given at each stage.

### Claim 6 (depends on 5)

The method of claim 5,
wherein the different types of sentence purification comprise masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

### Claim 7 (depends on 5)

The method of claim 5,
wherein, after the terminal receives the input sentences, the stepwise purified sentence generation system pre-processes the input sentences, and then the language purification model part purifies the input sentences.

### Claim 8 (depends on 1)

The method of claim 1,
wherein the language purification model part includes a plurality of models specialized for each stage, and each model performs different types of sentence purification given to each stage.

### Claim 9 (depends on 7)

The method of claim 7,
wherein the different types of sentence purification comprise masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

### Claim 10 (depends on 8)

The method of claim 8,
wherein, after the terminal receives the input sentences, the stepwise purified sentence generation system pre-processes the input sentences, and then the language purification model part purifies the input sentences.

### Claim 11

A stepwise purified sentence generation system that purifies input sentences from a user's terminal, the system comprising:
a model part configured to detect malicious words in the input sentences and generate a plurality of stepwise purified sentences using a plurality of types of purification including purification of the malicious words;
an output post-process part configured to store purified sentences from the model part in a database; and
an answer provision part configured to transmit purified sentences generated from the model part to the user's terminal;
wherein the stepwise purified sentence generation system is configured to determine the purified sentence selected through the terminal as a final purified sentence.

### Claim 12 (depends on 11)

The system of claim 11,
wherein the model part includes a reinforcement learning from human feedback (RLHF)-based large language model (LLM).

### Claim 13 (depends on 11)

The system of claim 11,
wherein the model part performs stepwise purified sentence generation at least three times, and stores the purified sentences generated at each stage in a database, wherein the purified sentences stored in the database are transmitted to the user's terminal by the answer provision part.

### Claim 14 (depends on 11)

The system of claim 11,
wherein the model part comprises a single model, and a prompt for each stage from a prompt engineering part is input to the single model so that the single model repeatedly performs different types of sentence purification given at each stage.

### Claim 15 (depends on 14)

The system of claim 14,
wherein the different types of sentence purification comprise masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

### Claim 16 (depends on 11)

The system of claim 11,
wherein the model part comprises a plurality of models specialized for each stage, and each model is configured to perform different types of sentence purification given in each stage.

### Claim 17 (depends on 11)

The system of claim 11,
wherein the different types of sentence purification comprise masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

### Claim 18 (depends on 11)

The system of claim 11,
wherein an input pre-process part is provided on an input side of the model part, and
an output post-process part is provided on an output side of the model part.
