IP Library › Granted Patent US 12,608,564
Granted Patent B2
US 12,608,564 · App. 18/522,709 · Granted Apr 21, 2026

Method and device for stepwise purification of sentences with generative artificial intelligence

Inventors: Manseo Kim (Seoul, KR); Jonghan Kim (Seoul, KR); Sungchan Ahn (Seoul, KR); Woosung Jung (Seoul, KR); Suhwan Jo (Seoul, KR); Sung Jun Park (Seoul, KR)
Assignee: Sangmyung University Industry—Academy Cooperation Foundation
G06F40/40G06F16/3326G06F16/338
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,608,564
App. No.
18/522,709
Granted
Apr 21, 2026
Kind
B2
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 (25)

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, wherein

the language purification model part includes a model repeatedly performing different types of sentence purification given at each stage, and

the different types of sentence purification include masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

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

3 . 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.

4 . 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.

5 . The method of claim 1 , wherein the language purification model part includes 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 the different types of sentence purification given at each stage.

6 . 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.

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

8 . The method of claim 7 , 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.

9 . 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

a processing unit configured to detect the purified sentences in the database through polling and to send the purified sentences, generated from the model part and stored by the output post-process 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,

wherein the model part includes a model repeatedly performing different types of sentence purification given at each stage, and

wherein the different types of sentence purification include masking malicious words, replacing masked words with purified terms, and softening the entire sentence.

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

11 . The system of claim 9 , 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.

12 . The system of claim 9 , wherein the model part includes 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 the different types of sentence purification given at each stage.

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

14 . The system of claim 9 , 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 29, 2023
From: KIM, MANSEO; KIM, JONGHAN; AHN, SUNGCHAN; JUNG, WOOSUNG; JO, SUHWAN; PARK, SUNG JUN
To: SANGMYUNG UNIVERSITY INDUSTRY - ACADEMY COOPERATION FOUNDATION
Reel/Frame 065710/0658 →
Priority Claims (1)
KR 10-2023-0123130 · Sep 15, 2023 · national
Continuity (1)
Related Publication 20250094729A1 · Mar 20, 2025
References Cited (11)
US 20220343066A1 · Kwong · 2022 [cited by examiner]
US 20240370660A1 · Cha · 2024 [cited by examiner]
KR 20230059859A · 2023 [cited by examiner]
KR 102552297B1 · 2023 [cited by applicant]
Mohamed et al, Literature Survey: Data-driven Approach for Selection of an Ensemble Model of Profane Words Detection in Social Media, International Journal of Scientific & Engineering Research vol. 9, Issue 10, Oct. 201… [cited by examiner]
Puengsom et al, Social Media Profanity Word Filtering System Development, 2025 22nd International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology, Aug. 8, 2025 (… [cited by examiner]
Willem et al, Detecting Racist and Bad Words using Text Mining in Social Media, 2021 8th International Conference on Information Technology, Computer and Electrical Engineering, Dec. 3, 2021 (Year: 2021). [cited by examiner]
Chen et al, Detecting Offensive Language in Social Media to Protect Adolescent Online Safety, 2012 International Conference on Privacy, Security, Risk and Trust and 2012 International Conference on Social Computer, Jan.… [cited by examiner]
Henrik Axelson et al., “Can AI Moderate Online Communities?,” ARXIV:2306.05122, https://doi.org/10.48550/ arXiv.2306.05122, Jun. 8, 2023; (14 pages). [cited by applicant]
Ju-Hyoung Lee et al., “Detecting context abusiveness using hierarchical deep learning,” Proceedings of the 2nd Workshop on NLP for Internet Freedom: Censorship, Disinformation and Propaganda, Association for Computation… [cited by applicant]
Ke Wang et al., “Controllable Unsupervised Text Attribute Transfer via Editing Entangled Latent Representation,” 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), arXiv:1905, 12926v2, Dec. 12, 201… [cited by applicant]