# US 2025/0094821 A1 · Multi-task fine-tuning for planning performed by large language model

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

- Number: US 2025/0094821 A1
- Document ID: US20250094821A1
- Status: Published application
- Kind: A1
- Application number: 18/885,496
- Filed: 2024-09-13
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Bhagya Gayathri Hettige; Ahmed Ataallah Ataallah Abobakr; Vanshika Sridharan; Yakupitiyage Don Thanuja Samodhye Dharmasiri; Ying Xu; Thanh Long Duong; Srinivasa Phani Kumar Gadde; Vishal Vishnoi
- Web page: https://patentgrep.com/patent/US20250094821A1

## CPC

- G06N 3/096: Transfer learning
- G06N 3/0475: Generative networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques are disclosed for fine-tuning a pre-trained machine learning model to be used by a digital assistant for supporting a user's interactions. In one aspect, a method includes accessing a set of training examples, generating a set of synthesized training examples using an iterative process including accessing a dialog script and corresponding prompt template and response template for a predefined scenario, generating one or more prompts based on the dialog script and corresponding prompt template, generating one or more responses associated with each of the one or more prompts based on the dialog script and the response template, and linking each of the responses with the associated prompts to generate one or more synthesized training examples in the set of synthesized training examples. The pre-trained machine learning model is then fine-tuned using the set of training examples and the set of synthesized training examples.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing a set of training examples, wherein each training example of the set of training examples comprises a dialog script between a user and a digital assistant;
generating a set of synthesized training examples using an iterative process that is performed for each of one or more predefined scenarios, wherein the iterative process comprises;
accessing a dialog script and corresponding prompt template and response template for a predefined scenario, wherein the prompt template comprises prompt placeholders associated with candidate actions, context, and an utterance, and wherein the response template comprises response placeholders associated with executable actions;
generating one or more prompts based on the dialog script and corresponding prompt template for the predefined scenario, wherein generating the one or more prompts comprises inserting prompt values into the prompt placeholders associated with the candidate actions, the context, and the utterance based on the dialog script for the predefined scenario;
generating one or more responses associated with each of the one or more prompts based on the dialog script and the response template for the predefined scenario, wherein generating the one or more responses comprises inserting response values into the response placeholders associated with the executable actions based on the dialog script for the predefined scenario and the associated one or more prompts; and
linking each of the one or more responses with each of the associated one or more prompts to generate one or more synthesized training examples in the set of synthesized training examples; and
fine-tuning, using the set of training examples and the set of synthesized training examples, a pre-trained machine learning model to learn tasks of action routing and slot-filling for generating an execution plan, wherein the action routing comprises identifying one or more of the executable actions from one or more of the candidate actions that are relevant for responding to the utterance based on the context, and slot-filling comprises inserting values into argument slots associated with the one or more executable actions based on the context.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the one or more prompts and the one or more responses further comprises selecting, using a random or predefined data split scheme, the prompt values for the prompt placeholders and the response values for the response placeholders based on the dialog script for the predefined scenario, and wherein the random or predefined data split scheme causes the prompt values and the response values to be selected in such a manner that variation within the one or more prompts and the one or more responses is realized in a number of the candidate actions and/or executable actions, type of the candidate actions and/or executable actions, number of tasks within the context, type of tasks within the context, number of argument slots to be filled within the context and/or executable actions, type of argument slots to be filled within the context and/or executable actions, or any combination thereof when the prompt values and the response values are inserted into the prompt placeholders and the response placeholders, respectively.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the dialog script for the predefined scenario comprises an in-order dialog flow between a user and a digital assistant, an out of order dialog flow between a user and a digital assistant, or at least a portion of a dialog flow between a user and a digital assistant does not logically flow from another portion of the dialog flow.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the prompt placeholders associated with the candidate actions include one or more argument slots to be filled by the digital assistant, and the response placeholders associated with the executable actions include the one or more argument slots filled with one or more response values.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the prompt placeholders associated with the context include at least a portion of an execution plan, the execution plan comprises an action including at least one argument slot having missing values, the utterance comprises information for filling in the missing values, the response placeholders associated with the executable actions include the action including the at least one argument slot, and the at least one argument slot is filled in with one or more response values derived from the information in the utterance.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the fine-tuning comprises:
generating batches of examples selected from the set of training examples and the set of synthesized training examples; and
performing an iterative training loop process that comprises:
inputting examples from the batches into the pre-trained machine learning model;
for each batch, computing a loss for the task of action routing;
for each batch, computing a loss for the task of slot-filling; and
optimizing model parameters based on a combined loss function that takes into account the loss for the task of action routing and the loss for the task of slot-filling.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more prompts and the one or more responses are generated using a generative artificial intelligence model.

### Claim 8

A system comprising:
one or more processors; and
one or more computer-readable media storing instructions which, when executed by the one or more processors, cause the system to perform operations comprising:
accessing a set of training examples, wherein each training example of the set of training examples comprises a dialog script between a user and a digital assistant;
generating a set of synthesized training examples using an iterative process that is performed for each of one or more predefined scenarios, wherein the iterative process comprises;
accessing a dialog script and corresponding prompt template and response template for a predefined scenario, wherein the prompt template comprises prompt placeholders associated with candidate actions, context, and an utterance, and wherein the response template comprises response placeholders associated with executable actions;
generating one or more prompts based on the dialog script and corresponding prompt template for the predefined scenario, wherein generating the one or more prompts comprises inserting prompt values into the prompt placeholders associated with the candidate actions, the context, and the utterance based on the dialog script for the predefined scenario;
generating one or more responses associated with each of the one or more prompts based on the dialog script and the response template for the predefined scenario, wherein generating the one or more responses comprises inserting response values into the response placeholders associated with the executable actions based on the dialog script for the predefined scenario and the associated one or more prompts; and
linking each of the one or more responses with each of the associated one or more prompts to generate one or more synthesized training examples in the set of synthesized training examples; and
fine-tuning, using the set of training examples and the set of synthesized training examples, a pre-trained machine learning model to learn tasks of action routing and slot-filling for generating an execution plan, wherein the action routing comprises identifying one or more of the executable actions from one or more of the candidate actions that are relevant for responding to the utterance based on the context, and slot-filling comprises inserting values into argument slots associated with the one or more executable actions based on the context.

### Claim 9 (depends on 8)

The system of claim 8, wherein generating the one or more prompts and the one or more responses further comprises selecting, using a random or predefined data split scheme, the prompt values for the prompt placeholders and the response values for the response placeholders based on the dialog script for the predefined scenario, and wherein the random or predefined data split scheme causes the prompt values and the response values to be selected in such a manner that variation within the one or more prompts and the one or more responses is realized in a number of the candidate actions and/or executable actions, type of the candidate actions and/or executable actions, number of tasks within the context, type of tasks within the context, number of argument slots to be filled within the context and/or executable actions, type of argument slots to be filled within the context and/or executable actions, or any combination thereof when the prompt values and the response values are inserted into the prompt placeholders and the response placeholders, respectively.

### Claim 10 (depends on 9)

The system of claim 9, wherein the dialog script for the predefined scenario comprises an in-order dialog flow between a user and a digital assistant, an out of order dialog flow between a user and a digital assistant, or at least a portion of a dialog flow between a user and a digital assistant does not logically flow from another portion of the dialog flow.

### Claim 11 (depends on 10)

The system of claim 10, wherein the prompt placeholders associated with the candidate actions include one or more argument slots to be filled by the digital assistant, and the response placeholders associated with the executable actions include the one or more argument slots filled with one or more response values.

### Claim 12 (depends on 10)

The system of claim 10, wherein the prompt placeholders associated with the context include at least a portion of an execution plan, the execution plan comprises an action including at least one argument slot having missing values, the utterance comprises information for filling in the missing values, the response placeholders associated with the executable actions include the action including the at least one argument slot, and the at least one argument slot is filled in with one or more response values derived from the information in the utterance.

### Claim 13 (depends on 8)

The system of claim 8, wherein the fine-tuning comprises:
generating batches of examples selected from the set of training examples and the set of synthesized training examples; and
performing an iterative training loop process that comprises:
inputting examples from the batches into the pre-trained machine learning model;
for each batch, computing a loss for the task of action routing;
for each batch, computing a loss for the task of slot-filling; and
optimizing model parameters based on a combined loss function that takes into account the loss for the task of action routing and the loss for the task of slot-filling.

### Claim 14 (depends on 8)

The system of claim 8, wherein the one or more prompts and the one or more responses are generated using a generative artificial intelligence model.

### Claim 15

One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
accessing a set of training examples, wherein each training example of the set of training examples comprises a dialog script between a user and a digital assistant;
generating a set of synthesized training examples using an iterative process that is performed for each of one or more predefined scenarios, wherein the iterative process comprises;
accessing a dialog script and corresponding prompt template and response template for a predefined scenario, wherein the prompt template comprises prompt placeholders associated with candidate actions, context, and an utterance, and wherein the response template comprises response placeholders associated with executable actions;
generating one or more prompts based on the dialog script and corresponding prompt template for the predefined scenario, wherein generating the one or more prompts comprises inserting prompt values into the prompt placeholders associated with the candidate actions, the context, and the utterance based on the dialog script for the predefined scenario;
generating one or more responses associated with each of the one or more prompts based on the dialog script and the response template for the predefined scenario, wherein generating the one or more responses comprises inserting response values into the response placeholders associated with the executable actions based on the dialog script for the predefined scenario and the associated one or more prompts; and
linking each of the one or more responses with each of the associated one or more prompts to generate one or more synthesized training examples in the set of synthesized training examples; and
fine-tuning, using the set of training examples and the set of synthesized training examples, a pre-trained machine learning model to learn tasks of action routing and slot-filling for generating an execution plan, wherein the action routing comprises identifying one or more of the executable actions from one or more of the candidate actions that are relevant for responding to the utterance based on the context, and slot-filling comprises inserting values into argument slots associated with the one or more executable actions based on the context.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein generating the one or more prompts and the one or more responses further comprises selecting, using a random or predefined data split scheme, the prompt values for the prompt placeholders and the response values for the response placeholders based on the dialog script for the predefined scenario, and wherein the random or predefined data split scheme causes the prompt values and the response values to be selected in such a manner that variation within the one or more prompts and the one or more responses is realized in a number of the candidate actions and/or executable actions, type of the candidate actions and/or executable actions, number of tasks within the context, type of tasks within the context, number of argument slots to be filled within the context and/or executable actions, type of argument slots to be filled within the context and/or executable actions, or any combination thereof when the prompt values and the response values are inserted into the prompt placeholders and the response placeholders, respectively.

### Claim 17 (depends on 16)

The one or more non-transitory computer-readable media of claim 16, wherein the dialog script for the predefined scenario comprises an in-order dialog flow between a user and a digital assistant, an out of order dialog flow between a user and a digital assistant, or at least a portion of a dialog flow between a user and a digital assistant does not logically flow from another portion of the dialog flow.

### Claim 18 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the prompt placeholders associated with the candidate actions include one or more argument slots to be filled by the digital assistant, and the response placeholders associated with the executable actions include the one or more argument slots filled with one or more response values.

### Claim 19 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the prompt placeholders associated with the context include at least a portion of an execution plan, the execution plan comprises an action including at least one argument slot having missing values, the utterance comprises information for filling in the missing values, the response placeholders associated with the executable actions include the action including the at least one argument slot, and the at least one argument slot is filled in with one or more response values derived from the information in the utterance.

### Claim 20 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the fine-tuning comprises:
generating batches of examples selected from the set of training examples and the set of synthesized training examples; and
performing an iterative training loop process that comprises:
inputting examples from the batches into the pre-trained machine learning model;
for each batch, computing a loss for the task of action routing;
for each batch, computing a loss for the task of slot-filling; and
optimizing model parameters based on a combined loss function that takes into account the loss for the task of action routing and the loss for the task of slot-filling.
