# US 2025/0378347 A1 · Systems and methods for training and evaluating multimodal neural network based language models

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

- Number: US 2025/0378347 A1
- Document ID: US20250378347A1
- Status: Published application
- Kind: A1
- Application number: 18/973,803
- Filed: 2024-12-09
- Published: 2025-12-11
- Earliest claimed: 2024-06-05
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Artemis Panagopoulou; Le Xue; Honglu Zhou; Silvio Savarese; Ran Xu; Juan Carlos Niebles Duque; Caiming Xiong
- Web page: https://patentgrep.com/patent/US20250378347A1

## CPC

- G06N 3/096: Transfer learning
- B60W 50/00: Details of control systems for road vehicle drive control not related to the control of a particular sub-unit {, e.g. process diagnostic or vehicle driver interfaces}
- B60W 60/001: {Planning or execution of driving tasks}
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- B60W 2050/0075: {Automatic parameter input, automatic initialising or calibrating means}
- B60W 2556/20: Data confidence level
- B60W 2556/45: External transmission of data to or from the vehicle
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- B60W: CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT

## Abstract

Embodiments described herein provide a method of building an artificial intelligence (AI) agent to respond to a task request from a user. The method includes: receiving a set of single-modal data samples of a plurality of modalities; selecting a first single-modal data sample of a first modality and a second single-modal data sample of a second modality; generating a question associated with the first single-modal data sample and the second single-modal data sample; generating an answer with a reasoning to the question based on a second input prompt; training, a second neural network based language model, using a dataset comprising the question and the answer to generate a candidate answer in response to a training query; building the AI conversation bot through an application programming interface to the trained second neural network language model; and generating, using the AI conversation bot, a response to the task request.

## Claims

### Claim 1

A method of building an artificial intelligence (AI) agent to respond to a task request from a user, comprising:
receiving, via a communication interface, a set of single-modal data samples of a plurality of modalities;
selecting, by a first neural network based language model, a first single-modal data sample of a first modality and a second single-modal data sample of a second modality;
generating, by the first neural network based language model, a question associated with the first single-modal data sample and the second single-modal data sample based on a first input prompt combining one or more first examples and a first instruction to generate the question;
generating, by the first neural network based language model, an answer with a reasoning to the question based on a second input prompt combining one or more second examples and a second instruction to generate the answer;
training, a second neural network based language model, using a dataset comprising the question and the answer to generate a candidate answer conditioned on a concatenation of the first single-modal data sample and the second single-modal data sample in the dataset in response to a training query;
building, at a server, the AI conversation bot through an application programming interface (API) to the trained second neural network language model; and
generating, using the AI conversation bot, a response to the task request conditioned on the set of single-modal data samples.

### Claim 2 (depends on 1)

The method of claim 1, wherein
the first single-modal data sample comprises a natural language description of a first scene, and the second single-modal data sample comprises a natural language description of a second scene; and
the first modality and the second modality comprise an audio, an image, a video, or a three-dimensional (3D) point cloud.

### Claim 3 (depends on 1)

The method of claim 1, wherein the question comprises a discriminatory question between the first scene and the second scene.

### Claim 4 (depends on 1)

The method of claim 1, further comprising filtering out the question in response to the question including one or more terms describing textual qualities.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first single-modal data sample and the second single-modal data sample are selected based on a similarity between the first single-modal data sample and the second single-modal data sample or randomness.

### Claim 6 (depends on 1)

The method of claim 1, further comprising evaluating an accuracy of the answer by computing an accuracy metric based on an order of the first single-modal data sample and the second single-modal data sample, a label of the first single-modal data sample and the second single-modal data sample, or types of modalities of the first single-modal data sample and the second single-modal data sample.

### Claim 7 (depends on 1)

The method of claim 1, further comprising evaluating a quality of the question and the answer by:
determining a first performance value of the first neural network based language model in response to a first evaluation input prompt combining single-modal data samples of a plurality modalities with an evaluation question associated with the single-modal data samples;
determining a mean value of a second performance value of the second neural network based language model in response to a second evaluation input prompt combining the evaluation question without the single-modal data samples and a third performance value of the first neural network based language model in response to a third evaluation input prompt combining the evaluation question with random single-modal data samples; and
computing a multimodal signal-to-noise ratio (MSNR) based on a ratio of a difference between the first performance value and the mean value over the mean value.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
generating, by one or more third neural network based language models, second candidate answers with reasoning in response to a third input prompt combining the first single-modal data sample, the second single-modal data sample, and the question;
retaining the dataset in response to a percentage of the second candidate answers being consistent with the candidate answer exceeding a predetermined value; and
disregarding the dataset in response to the percentage of the second candidate answers being consistent with the candidate answer being below the predetermined value.

### Claim 9 (depends on 8)

The method of claim 8, further comprising changing an order of the first single-modal data sample and the second single-modal data sample.

### Claim 10 (depends on 1)

The method of claim 1, wherein the task request comprises a navigational request from an autonomous driving system, and the set of single-modal data samples comprises one or more real-time images of surroundings of the autonomous driving system and one or more videos of the surroundings of the autonomous driving system, and the method further comprises:
causing one or more control commands to be sent and executed by the autonomous driving system based on the response.

### Claim 11

A system for building an artificial intelligence (AI) agent to respond to a task request from a user, the system comprising:
a memory that stores a first neural network based language model, a second neural network based language model, and a plurality of processor executable instructions;
a communication interface that receives a set of single-modal data samples of a plurality of modalities; and
one or more hardware processors that read and execute the plurality of processor-executable instructions from the memory to perform operations comprising:
selecting, by the first neural network based language model, a first single-modal data sample of a first modality and a second single-modal data sample of a second modality;
generating, by the first neural network based language model, a question associated with the first single-modal data sample and the second single-modal data sample based on a first input prompt combining one or more first examples and a first instruction to generate the question;
generating, by the first neural network based language model, an answer with a reasoning to the question based on a second input prompt combining one or more second examples and a second instruction to generate the answer;
training, the second neural network based language model, using a dataset comprising the question and the answer to generate a candidate answer conditioned on a concatenation of the first single-modal data sample and the second single-modal data sample in the dataset in response to a training query;
building, at a server, the AI conversation bot through an application programming interface (API) to the trained second neural network language model; and
generating, using the AI conversation bot, a response to the task request conditioned on the set of single-modal data samples.

### Claim 12 (depends on 11)

The system of claim 11, wherein
the first single-modal data sample comprises a natural language description of a first scene, and the second single-modal data sample comprises a natural language description of a second scene; and
the first modality and the second modality comprise an audio, an image, a video, or a three-dimensional (3D) point cloud.

### Claim 13 (depends on 11)

The system of claim 11, wherein the question comprises a discriminatory question between the first scene and the second scene.

### Claim 14 (depends on 11)

The system of claim 11, wherein the operations further comprise filtering out the question in response to the question including one or more terms describing textual qualities.

### Claim 15 (depends on 11)

The system of claim 11, wherein the first single-modal data sample and the second single-modal data sample are selected based on a similarity between the first single-modal data sample and the second single-modal data sample or randomness.

### Claim 16 (depends on 11)

The system of claim 11, wherein the operations further comprise evaluating an accuracy of the answer by computing an accuracy metric based on an order of the first single-modal data sample and the second single-modal data sample, a label of the first single-modal data sample and the second single-modal data sample, or types of modalities of the first single-modal data sample and the second single-modal data sample.

### Claim 17 (depends on 11)

The system of claim 11, wherein the operations further comprise evaluating a quality of the question and the answer by:
determining a first performance value of the first neural network based language model in response to a first evaluation input prompt combining single-modal data samples of a plurality modalities with an evaluation question associated with the single-modal data samples;
determining a mean value of a second performance value of the second neural network based language model in response to a second evaluation input prompt combining the evaluation question without the single-modal data samples and a third performance value of the first neural network based language model in response to a third evaluation input prompt combining the evaluation question with random single-modal data samples; and
computing a multimodal signal-to-noise ratio (MSNR) based on a ratio of a difference between the first performance value and the mean value over the mean value.

### Claim 18 (depends on 11)

The system of claim 11, wherein the operations further comprise:
generating, by one or more third neural network based language models, second candidate answers with reasoning in response to a third input prompt combining the first single-modal data sample, the second single-modal data sample, and the question;
retaining the dataset in response to a percentage of the second candidate answers being consistent with the candidate answer exceeding a predetermined value; and
disregarding the dataset in response to the percentage of the second candidate answers being consistent with the candidate answer being below the predetermined value.

### Claim 19 (depends on 18)

The system of claim 18, wherein the operations further comprise changing an order of the first single-modal data sample and the second single-modal data sample.

### Claim 20

A non-transitory machine-readable medium comprising a plurality of machine-executable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform operations comprising:
receiving, via a communication interface, a set of single-modal data samples of a plurality of modalities;
selecting, by a first neural network based language model, a first single-modal data sample of a first modality and a second single-modal data sample of a second modality;
generating, by the first neural network based language model, a question associated with the first single-modal data sample and the second single-modal data sample based on a first input prompt combining one or more first examples and a first instruction to generate the question;
generating, by the first neural network based language model, an answer with a reasoning to the question based on a second input prompt combining one or more second examples and a second instruction to generate the answer;
training, a second neural network based language model, using a dataset comprising the question and the answer to generate a candidate answer conditioned on a concatenation of the first single-modal data sample and the second single-modal data sample in the dataset in response to a training query;
building, at a server, the AI conversation bot through an application programming interface (API) to the trained second neural network language model; and
generating, using the AI conversation bot, a response to a task request conditioned on the set of single-modal data samples.
