IP Library › Granted Patent US 11,983,488
Granted Patent B1
US 11,983,488 · App. 18/183,902 · Granted May 14, 2024

Systems and methods for language model-based text editing

Inventors: Raul Puri (San Francisco, CA); Qiming Yuan (San Francisco, CA); Alexander Paino (San Francisco, CA); Nikolas Tezak (San Francisco, CA); Nicholas Ryder (San Francisco, CA)
Assignee: OpenAI OpCo, LLC
G06F40/166G06F40/103G06F40/40
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 11,983,488
App. No.
18/183,902
Filed
Mar 14, 2023
Granted
May 14, 2024
Kind
B1
Art Unit
2658
USPC
704/9
Abstract

Disclosed herein are methods, systems, and computer-readable media for automatically generating and editing text. In an embodiment, a method may include receiving an input text prompt and receiving one or more user instructions. The method may also include accessing a language model based on the input text prompt and the one or more user instructions. The method may also include outputting, using the accessed language model, language model output text. The method may also include editing the input text prompt based on the language model and the one or more user instructions by replacing at least a portion of the input text prompt with the language model output text.

Claims (52)

1. A system comprising:

at least one memory storing instructions;

at least one processor configured to execute the instructions to perform operations for automatically generating and editing text, the operations comprising:

receiving an input text prompt, the input text prompt comprising a null set;

receiving one or more user instructions;

determining a set of model parameters based on the one or more user instructions;

accessing a language model using the at least one processor based on the input text prompt, the set of model parameters, and the one or more user instructions;

generating, using the accessed language model, an output text based on the input text prompt, the one or more user instructions, and at least one of a sampling temperature parameter or a nucleus sampling parameter;

receiving one or more new user instructions;

editing the output text based on the language model and the one or more new user instructions by replacing at least a portion of the output text; and

optimizing the accessed language model by aligning the language model based on the output text using machine learning;

wherein:

the language model is optimized through one or more iterative cycles of training based on one or more outcome metrics associated with the output text and one or more datasets; and

the one or more datasets comprise at least one of annotated data, labeled data, enriched data, or demonstration data based on one or more output text.

2. The system of claim 1 , wherein the input text prompt comprises text or computer code.

3. The system of claim 1 , wherein:

the one or more user instructions comprise user-specified natural language instructions; and

the operations further comprise determining one or more model parameters, based on the user-specified natural language instructions, that constrain the editing of the input output text.

4. The system of claim 3 , wherein the one or more model parameters comprise at least one of a tone, structure, or format associated with the input text.

5. The system of claim 3 , wherein the one or more model parameters comprise at least one property associated with an author of the input text.

6. The system of claim 1 , wherein:

the language model is configured to determine at least one context parameter based on the input text; and

editing the output text is based on the language model and the at least context parameter.

7. The system of claim 1 , wherein:

the nucleus sampling parameter is a decimal value that influences tokens considered by the language model; and

the output text comprises a training dataset for optimization.

8. The system of claim 1 , wherein aligning the language model based on the output text using machine learning comprises using reinforcement machine learning.

9. The system of claim 1 , wherein editing the output text is based on the output of at least one context parameter through at least one iteration of editing.

10. A method for automatically generating and editing text, comprising:

receiving an input text prompt, the input text prompt comprising a null set;

receiving one or more user instructions;

determining a set of model parameters based on the one or more user instructions;

accessing the language model using the at least one processor based on the input text, the set of model parameters, and the one or more user instructions;

generating, using the accessed language model, an output text based on the input text, the one or more user instructions, and at least one of a sampling temperature parameter or a nucleus sampling parameter;

receiving one or more new user instructions;

editing the output text based on the language model and the one or more new user instructions by replacing at least a portion of the output text; and

optimizing the accessed language model by aligning the language model based on the output text using machine learning;

wherein:

the language model is optimized through one or more iterative cycles of training based on one or more outcome metrics associated with the output text and one or more datasets; and

the one or more datasets comprise at least one of annotated data, labeled data, enriched data, or demonstration data based on one or more output text.

11. The method of claim 10 , wherein the input text comprises text or computer code.

12. The method of claim 10 , wherein:

the one or more user instructions comprise user-specified natural language instructions; and

the operations further comprise determining one or more model parameters, based on the user-specified natural language instructions, that constrain the editing of the input text.

13. The method of claim 12 , wherein the one or more model parameters comprise at least one of a tone, structure, or format associated with the input text.

14. The method of claim 12 , wherein the one or more model parameters comprise at least one property associated with an author of the input text.

15. The method of claim 10 , wherein:

the language model is configured to determine at least one context parameter based on the input text; and

editing the output text is based on the language model and the at least context parameter.

16. The system of claim 10 , wherein:

the nucleus sampling parameter is a decimal value that influences tokens considered by the language model; and

the output text comprises a training dataset for optimization.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 7, 2024
From: PURI, RAUL; YUAN, QIMING; PAINO, ALEXANDER; TEZAK, NIKOLAS; RYDER, NICHOLAS
To: OPENAI OPCO LLC
Reel/Frame 066406/0604 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 30, 2023
From: BAVARIAN, MOHAMMAD; JUN, HEEWOO
To: OPENAI OPCO LLC
Reel/Frame 065715/0169 →
Cited By (13)
US 12,299,139 US 12,430,498 US 12,505,132 US 12,536,210 US 12,591,607 US 12,613,902 US 12,645,716 US 12,657,393 US 12,688,212 US 12,694,578 US 12,699,850 US 12,737,815 US 12,737,816