# US 2026/0093954 A1 · Systems and methods for a time series forecasting transformer network

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

- Number: US 2026/0093954 A1
- Document ID: US20260093954A1
- Status: Published application
- Kind: A1
- Application number: 19/029,457
- Filed: 2025-01-17
- Published: 2026-04-02
- Earliest claimed: 2024-10-01
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Xu Liu; Juncheng Liu; Ibrahim Taha Aksu; Chenghao Liu; Silvio Savarese; Caiming Xiong; Doyen Sahoo
- Web page: https://patentgrep.com/patent/US20260093954A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments described herein provide a Transformer-based neural network architecture that comprises mixture-of-experts time series foundation models to predict different types of time series data. Specifically, given an input multi-variate time series data, a single projection layer may be used to generate patch embeddings for the different time series patterns. The patch embeddings are then passed to a Transformer self-attention layer to compute attention weights, based on which a gating function assigns the patch embeddings into different time series clusters to be further fed to different expert such as feed-forward layers. The feed-forward layers in turn predict a distribution. The output tokens of forecasted time series data are then decoded via the output projection layers from the predicted distribution.

## Claims

### Claim 1

A method of forecasting time series data for a future time period by a neural network based model, the method comprising:
receiving, via a data interface, time series data collected at a first frequency of time-varying activities corresponding to a first period of time;
splitting an input sequence of the time series data into one or more non-overlapping patches of a pre-defined patch size independent of the first frequency;
encoding, by a first neural network projection layer, the one or more non-overlapping patches into one or more patch embeddings;
generating, by a Transformer neural network layer comprising a set of specialized modules each specializes in a distinct patter of time series data, layer outputs corresponding to the one or more patch embeddings,
wherein a subset of the set of specialized modules are selectively activated for each token in the one or more patch embeddings based on a respective pattern of the time series data; and
generating, by a second neural network projection layer, a predicted distribution of time series data over a second period of the time based on the layer outputs.

### Claim 2 (depends on 1)

The method of claim 1, wherein the input sequence comprises a first subsequence corresponding to values of a first variate over the first period of time and a second subsequence concatenated to the first subsequence, corresponding to values of a second variate over the first period of time.

### Claim 3 (depends on 1)

The method of claim 1, wherein the Transformer neural network layer comprises a self-attention module that generate attention outputs indicating correlations between tokens of the one or more patch embeddings.

### Claim 4 (depends on 3)

The method of claim 3, wherein the Transformer neural network layer comprises a gating module that at least one affinity score between at least one of the set of specialized modules and a token from the one or more patch embeddings from the attention outputs.

### Claim 5 (depends on 4)

The method of claim 4, wherein the at least one affinity score is computed as a Softmax operation over a top-K logits of a linear projection applied on the attention outputs.

### Claim 6 (depends on 4)

The method of claim 4, wherein the at least one affinity score is computed as a Softmax operation over a top-K Euclidean distances between the attention outputs and cluster centroids corresponding to the set of specialized modules,
wherein the cluster centroids are computed by performing k-means clustering on the attention outputs using a batch of training time series data.

### Claim 7 (depends on 4)

The method of claim 4, wherein the subset of the set of specialized modules are selectively activated for the each token based on the at least one affinity score, and
wherein at least one specialized module is a feed forward layer.

### Claim 8 (depends on 4)

The method of claim 4, wherein the layer outputs are generated by:
multiplying the at least one affinity score with a module output from at least one selectively activated specialized module; and
aggregating multiplication results over the set of specialized modules.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first neural network projection layer encodes times series patches from time series data of different frequencies, wherein the time series data of different frequencies are split into time series patches of a same pre-defined patch size.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving a training dataset of time series data samples having different frequencies;
dividing each time series data sample into a context window and a prediction window;
encoding, by the first neural network projection layer, the time series data samples having different frequencies;
generating, by the neural network based model comprising the Transformer neural network layer, a predicted training distribution of time series data within the prediction window;
training the neural network based model based on a first loss computed based on the predicted training distribution of time series data and a second loss computed based on token allocation to the set of specialized modules.

### Claim 11

A system of forecasting time series data for a future time period by a neural network based model, the system comprising:
a data interface receiving time series data collected at a first frequency of time-varying activities corresponding to a first period of time;
a memory storing a plurality of processor-executable instructions, the processor-executable instructions being executed by one or more processors to perform operations comprising:
splitting an input sequence of the time series data into one or more non-overlapping patches of a pre-defined patch size independent of the first frequency;
encoding, by a first neural network projection layer, the one or more non-overlapping patches into one or more patch embeddings;
generating, by a Transformer neural network layer comprising a set of specialized modules each specializes in a distinct patter of time series data, layer outputs corresponding to the one or more patch embeddings,
wherein a subset of the set of specialized modules are selectively activated for each token in the one or more patch embeddings based on a respective pattern of the time series data; and
generating, by a second neural network projection layer, a predicted distribution of time series data over a second period of the time based on the layer outputs.

### Claim 12 (depends on 11)

The system of claim 11, wherein the input sequence comprises a first subsequence corresponding to values of a first variate over the first period of time and a second subsequence concatenated to the first subsequence, corresponding to values of a second variate over the first period of time.

### Claim 13 (depends on 11)

The system of claim 11, wherein the Transformer neural network layer comprises a self-attention module that generate attention outputs indicating correlations between tokens of the one or more patch embeddings.

### Claim 14 (depends on 13)

The system of claim 13, wherein the Transformer neural network layer comprises a gating module that at least one affinity score between at least one of the set of specialized modules and a token from the one or more patch embeddings from the attention outputs.

### Claim 15 (depends on 14)

The system of claim 14, wherein the at least one affinity score is computed as one of:
a Softmax operation over a top-K logits of a linear projection applied on the attention outputs; or
a Softmax operation over a top-K Euclidean distances between the attention outputs and cluster centroids corresponding to the set of specialized modules,
wherein the cluster centroids are computed by performing k-means clustering on the attention outputs using a batch of training time series data.

### Claim 16 (depends on 14)

The system of claim 14, wherein the subset of the set of specialized modules are selectively activated for the each token based on the at least one affinity score, and
wherein at least one specialized module is a feed forward layer.

### Claim 17 (depends on 14)

The system of claim 14, wherein the layer outputs are generated by:
multiplying the at least one affinity score with a module output from at least one selectively activated specialized module; and
aggregating multiplication results over the set of specialized modules.

### Claim 18 (depends on 11)

The system of claim 11, wherein the first neural network projection layer encodes times series patches from time series data of different frequencies, wherein the time series data of different frequencies are split into time series patches of a same pre-defined patch size.

### Claim 19 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving a training dataset of time series data samples having different frequencies;
dividing each time series data sample into a context window and a prediction window;
encoding, by the first neural network projection layer, the time series data samples having different frequencies;
generating, by the neural network based model comprising the Transformer neural network layer, a predicted training distribution of time series data within the prediction window;
training the neural network based model based on a first loss computed based on the predicted training distribution of time series data and a second loss computed based on token allocation to the set of specialized modules.

### Claim 20

A non-transitory processor-readable medium storing a plurality of processor-executable instructions for forecasting time series data for a future time period by a neural network based model, the instructions being executed by one or more processors to perform operations comprising:
receiving, via a data interface, time series data collected at a first frequency of time-varying activities corresponding to a first period of time;
splitting an input sequence of the time series data into one or more non-overlapping patches of a pre-defined patch size independent of the first frequency;
encoding, by a first neural network projection layer, the one or more non-overlapping patches into one or more patch embeddings;
generating, by a Transformer neural network layer comprising a set of specialized modules each specializes in a distinct patter of time series data, layer outputs corresponding to the one or more patch embeddings,
wherein a subset of the set of specialized modules are selectively activated for each token in the one or more patch embeddings based on a respective pattern of the time series data; and
generating, by a second neural network projection layer, a predicted distribution of time series data over a second period of the time based on the layer outputs.
