# US 2025/0148293 A1 · Multi-source domain adaptation via prompt-based meta-learning

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

- Number: US 2025/0148293 A1
- Document ID: US20250148293A1
- Status: Published application
- Kind: A1
- Application number: 18/934,676
- Filed: 2024-11-01
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: NEC Laboratories America, Inc.
- Applicants: NEC Laboratories America, Inc.
- Inventors: Junxiang Wang; Wei Cheng; Haifeng Chen
- Web page: https://patentgrep.com/patent/US20250148293A1

## CPC

- G06N 3/094: Adversarial learning
- G06N 3/045: Combinations of networks
- G06N 3/096: Transfer learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems include adapting an initial prompt to a target domain corresponding to an input time series to generate an adapted prompt. The adapted prompt and the input time series are combined. The input time series is processed with the adapted prompt using a modular transformer encoder that has a plurality of sub-encoders, with a policy network selecting a subset of the plurality of encoders that are applied to the input time series and the adapted prompt.

## Claims

### Claim 1

A computer-implemented method, comprising:
adapting an initial prompt to a target domain corresponding to an input time series to generate an adapted prompt;
combining the adapted prompt and the input time series; and
processing the input time series with the adapted prompt using a modular transformer encoder that has a plurality of sub-encoders, with a policy network selecting a subset of the plurality of encoders that are applied to the input time series and the adapted prompt.

### Claim 2 (depends on 1)

The method of claim 1, wherein combining the adapted prompt and the input time series includes appending the adapted prompt to the input time series as additional time series segments.

### Claim 3 (depends on 1)

The method of claim 1, further comprising learning the initial prompt based on a plurality of training datasets from respective source domains.

### Claim 4 (depends on 3)

The method of claim 3, further comprising training the transformer encoder on the plurality of training datasets along with the policy network so that the policy network learns sub-encoders associated with different respective source domains.

### Claim 5 (depends on 1)

The method of claim 1, wherein the adapting, combining, and processing is performed in a first expert model, and is performed in parallel in at least one additional expert model using one or more respective additional modular transformer encoders.

### Claim 6 (depends on 5)

The method of claim 5, further comprising combining outputs of the first expert model and the at least one additional expert model with a linear head to generate a prediction.

### Claim 7 (depends on 1)

The method of claim 1, wherein the policy network is trained to configure routing between the plurality of encoders responsive to a plurality of different domains.

### Claim 8 (depends on 7)

The method of claim 7, wherein the target domain is one of a plurality of discrete operational states of a system.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
detecting an anomaly in a system that originates the input time series based on an output of the modular transformer encoder; and
performing an action in the system to correct the anomaly.

### Claim 10 (depends on 9)

The method of claim 9, wherein the action is selected from the group consisting of changing parameters of a climate control system to change a temperature or humidity level, engaging a fire suppression system, turning a machine or computer on or off, and changing a configuration of such a computer.

### Claim 11

A system, comprising:
a hardware processor; and
a memory that stores a computer program which, when executed by the hardware processor, causes the hardware processor to:
adapt an initial prompt to a target domain corresponding to an input time series to generate an adapted prompt;
combine the adapted prompt and the input time series; and
process the input time series with the adapted prompt using a modular transformer encoder that has a plurality of sub-encoders, with a policy network selecting a subset of the plurality of encoders that are applied to the input time series and the adapted prompt.

### Claim 12 (depends on 11)

The system of claim 11, wherein the combination of the adapted prompt and the input time series includes appending the adapted prompt to the input time series as additional time series segments.

### Claim 13 (depends on 11)

The system of claim 11, wherein the computer program further causes the hardware processor to learn the initial prompt based on a plurality of training datasets from respective source domains.

### Claim 14 (depends on 13)

The system of claim 13, wherein the computer program further causes the hardware processor to train the transformer encoder on the plurality of training datasets along with the policy network so that the policy network learns sub-encoders associated with different respective source domains.

### Claim 15 (depends on 11)

The system of claim 11, wherein the adaptation, combination, and processing is performed in a first expert model, and is performed in parallel in at least one additional expert model using one or more respective additional modular transformer encoders.

### Claim 16 (depends on 15)

The system of claim 15, wherein the computer program further causes the hardware processor to combine outputs of the first expert model and the at least one additional expert model with a linear head to generate a prediction.

### Claim 17 (depends on 11)

The system of claim 11, wherein the policy network is trained to configure routing between the plurality of encoders responsive to a plurality of different domains.

### Claim 18 (depends on 17)

The system of claim 17, wherein the target domain is one of a plurality of discrete operational states of a system.

### Claim 19 (depends on 11)

The system of claim 11, wherein the computer program further causes the hardware processor to:
detect an anomaly in a system that originates the input time series based on an output of the modular transformer encoder; and
perform an action in the system to correct the anomaly.

### Claim 20 (depends on 19)

The system of claim 19, wherein the action is selected from the group consisting of changing parameters of a climate control system to change a temperature or humidity level, engaging a fire suppression system, turning a machine or computer on or off, and changing a configuration of such a computer.
