# US 2024/0202466 A1 · Adapting prompts selected from prompt task collections

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

- Number: US 2024/0202466 A1
- Document ID: US20240202466A1
- Status: Published application
- Kind: A1
- Application number: 18/067,674
- Filed: 2022-12-16
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Sheng Zha; Miguel Ballesteros Martinez; Yassine Benajiba; Cole Hawkins; Aditya Rawal; Dhananjay Ram; Min Rong Samson Tan; Vittorio Castelli
- Web page: https://patentgrep.com/patent/US20240202466A1

## CPC

- G06F 40/56: Natural language generation
- G06N 20/00: Machine learning
- G06N 5/04: Inference or reasoning models
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Prompt development techniques are implemented for tuning natural language processing machine learning models using selected prompts from a prompt task collection. A prompt development system may support requests to further adapt a pre-trained natural language processing machine learning model to tune the pre-trained natural language processing machine learning model for use with a selected prompt. Evaluation of the tuned natural language processing machine learning model may be performed and provided as a result.

## Claims

### Claim 1

A system, comprising:
at least one processor; and
a memory, storing program instructions that when executed by the at least one processor, cause the at least one processor to implement a prompt development system for natural language processing (NLP) machine learning (ML) models, the prompt development system configured to:
receive, via an interface of the prompt development system, a request to perform further adaptation that tunes performance of a pre-trained NLP ML model that performs an NLP task according to an input prompt selected from a prompt task collection maintained by the prompt development system;
generate an adaption job to perform the requested further adaptation that tunes performance of the pre-trained NLP ML model using an adaption data set specified by the request;
cause the adaptation job to be performed;
evaluate performance of the adaptation job to generate a result of the adaptation job; and
return, via the interface of the prompt development system, a result of the adaptation job.

### Claim 2 (depends on 1)

The system of claim 1, wherein the adaptation job performs a prompt tuning technique to tune the pre-trained NLP ML model.

### Claim 3 (depends on 1)

The system of claim 1, wherein adaptation job performs an in-context learning technique to tune the pre-trained NLP ML model.

### Claim 4 (depends on 1)

The system of claim 1, wherein the prompt development system is a machine learning service offered by a provider network, and wherein the prompt development system is further configured to:
receive, via the interface, a request to deploy the tuned NLP ML model;
provision a host for the tuned NLP ML model; and
provide, via the interface, a model endpoint for a client application to submit inference requests to the host to generate respective inferences using the tuned NLP ML model.

### Claim 5

A method, comprising:
receiving, by a prompt development system, a request to perform further adaptation that tunes performance of a pre-trained natural language processing (NLP) machine learning (ML) model that performs an NLP task according to an input prompt selected from a prompt task collection maintained by the prompt development system;
generating, by the prompt development system, an adaption job to perform the requested further adaptation using an adaption data set specified by the request;
evaluating, by the prompt development system, performance of the adaptation job that tunes performance of the pre-trained NLP ML model based on the input prompt to generate a result of the adaptation job; and
providing, by the prompt development system, the result of the adaptation job.

### Claim 6 (depends on 5)

The method of claim 5, wherein the adaptation job performs a prompt tuning technique to tune the pre-trained NLP ML model.

### Claim 7 (depends on 5)

The method of claim 5, wherein the adaptation job performs an in-context learning technique to tune the pre-trained NLP ML model.

### Claim 8 (depends on 5)

The method of claim 5, wherein the adaptation job performs a fine-tuning technique to tune the pre-trained NLP ML model.

### Claim 9 (depends on 5)

The method of claim 5, wherein the pre-trained NLP ML model was included in a prompt recommendation provided in response to a discovery request performed by the prompt development system.

### Claim 10 (depends on 5)

The method of claim 5, wherein evaluating performance of the adaptation job that tunes performance of the pre-trained NLP ML model comprises:
generating using the tune NLP ML model one or more inferences for input test data in accordance with the selected prompt; and
determining inference performance for the one or more inferences based on ground truth labels for the input test data.

### Claim 11 (depends on 5)

The method of claim 5, wherein the result of the adaptation job comprises computational performance and inference performance.

### Claim 12 (depends on 5)

The method of claim 5, further comprising:
receiving, by the prompt development system, a request to deploy the tuned NLP ML model;
provisioning, by the prompt development system, a host for the tuned NLP ML model; and
providing a model endpoint for a client application to submit inference requests to the host to generate respective inferences using the tuned NLP ML model.

### Claim 13 (depends on 5)

The method of claim 5, further comprising:
receiving, by the prompt development system, the selected prompt as a prompt submission to be maintained by the prompt development system; and
adding, by the prompt development system, the selected prompt to the prompt task collection.

### Claim 14

One or more non-transitory, computer-readable storage media, storing program instructions that when executed on or across one or more computing devices cause the one or more computing devices to implement:
receiving, via an interface of a prompt development system, a request to perform further adaptation that tunes performance of a pre-trained natural language processing (NLP) machine learning (ML) model that performs an NLP task according to an input prompt selected from a prompt task collection maintained by the prompt development system;
generating, by the prompt development system, an adaption job to perform the requested further adaptation using an adaption data set specified by the request;
evaluating, by the prompt development system, performance of the adaptation job that tunes performance of the pre-trained NLP ML model based on the input prompt to generate a result of the adaptation job; and
returning, via the interface of the prompt development system, the result of the adaptation job.

### Claim 15 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, wherein the adaptation job performs a prompt tuning technique to tune the pre-trained NLP ML model.

### Claim 16 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, wherein the adaptation job performs an in-context learning technique to tune the pre-trained NLP ML model.

### Claim 17 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, wherein the adaptation job performs a fine-tuning technique to tune the pre-trained NLP ML model.

### Claim 18 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, wherein the selected prompt was included in a prompt recommendation provided in response to a discovery request performed by the prompt development system.

### Claim 19 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, storing further program instructions that when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:
receiving, by the prompt development system, the selected prompt as a prompt submission to be maintained by the prompt development system; and
adding, by the prompt development system, the selected prompt to the prompt task collection.

### Claim 20 (depends on 14)

The one or more non-transitory, computer-readable storage media of claim 14, wherein the prompt development system is a machine learning service offered by a provider network, and wherein the one or more non-transitory, computer-readable storage media store further program instructions that when executed on or across the one or more computing devices, cause the one or more computing devices to further implement:
receiving, via the interface, a request to deploy the tuned NLP ML model;
provisioning, by the machine learning service, a host for the tuned NLP ML model; and
providing, via the interface, a model endpoint for a client application to submit inference requests to the host to generate respective inferences using the tuned NLP ML model.
