


Time series multi-task integrated large-scale model based on Adapter and GPT
Today I would like to talk to you about the latest work on large model time series forecasting. From Alibaba Damo Academy, a general time series analysis framework based on adapter is proposed, which can be used in long-term forecasting, short-term forecasting, and zero-shot. Remarkable results have been achieved on 7 time series tasks, including few-shot, anomaly detection, time series classification, and time series filling.
Paper title: One size fits all: Universal time series analysis using pre-trained language models and specially designed adapters
Downloadable link: https://arxiv .org/pdf/2311.14782v1.pdf
1. Background
In the field of time series prediction, one of the difficulties in building large models is the lack of sufficient training data like in the NLP or CV fields. . This article proposes a solution, which is to adapt it to time series based on large-scale models trained in the field of NLP or CV, combined with Adapter technology, to solve various time series problems
Adapters are widely used in fields such as NLP and CV. Especially in recent large model applications, adapters are often used to perform lightweight finetune of large models. The Adapter is a lightweight network. By inserting it into some modules in the large model, then fixing the parameters of the large model, and only updating the parameters of the adapter, you can achieve lightweight large model finetune.
Picture
Next, I will introduce to you how in this work of Alibaba Damo Academy, we use adapter to combine pre-trained NLP and CV models to build a unified time series model.
2. Overall structure
The model proposed in this article is based on the pre-trained language model of Freeze parameters and is implemented by combining 4 types of adapters. The overall model structure is shown in the figure below.
Picture
First, for the input time series, we will use the RevIN method for normalization. This means that we subtract the mean from each time series and divide by the variance. Next, we will use the PatchTST method to split the time series into multiple segments through sliding windows and generate segment embeddings. The processed time series will be input into a pre-trained language model in the NLP field. During the entire training process, the original parameters of the language model will remain unchanged, and we will only update the newly added 4 types of adapter parameters
3. Adapter design
This article introduces four types of Adapters that can be plugged into different locations in large models in the fields of NLP and CV to achieve the goal of adapting time series. These four adapters are time adapter, channel adapter, frequency adapter and exception adapter
Time adapter: Time adapter is an MLP network used to fuse time dimension information. In this paper, we adopt a bottleneck structure to first map high-dimensional information in the time dimension or space dimension to a low-dimensional space, and then map it back to the high-dimensional space. The purpose of this is to avoid the risk of over-fitting in the process of extracting time series relationships
Channel Adaptor: The structure of the channel adapter is similar to the temporal adapter. The difference is that it is performed in the spatial dimension and is used to extract the variables of the multivariate sequence. The relationship between them also uses bottleect;
Picture
Frequency Adapter: The frequency adapter extracts time series information in the frequency domain. This part will The time series is mapped to the frequency domain, MLP is performed in the frequency domain, and then mapped back to the time domain to achieve the extraction of global information in the frequency domain.
Anomaly Adapter: This part mainly implements a new time series anomaly detection method. The attention score matrix is used here. For normal sequences, the attention score matrix exhibits periodic repetition characteristics, while abnormal sequences do not. Therefore, a Gaussian kernel is used as anomaly adapter in this article, and the output result of attention and its calculated KL divergence are used for time series anomaly detection.
Picture
In addition, different data will be affected by each adapter to varying degrees. Therefore, a gated network is used in this article to selectively Using adapter
4 and experimental results
, the effects of 7 time series tasks were compared. The time series unified large model proposed in this article achieved results in each task that exceeded those of various SOTA models in the industry. Effect. Taking the long-term prediction task as an example, the unified model based on GPT2 Adapter performs best
picture
The above is the detailed content of Time series multi-task integrated large-scale model based on Adapter and GPT. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Imagine an artificial intelligence model that not only has the ability to surpass traditional computing, but also achieves more efficient performance at a lower cost. This is not science fiction, DeepSeek-V2[1], the world’s most powerful open source MoE model is here. DeepSeek-V2 is a powerful mixture of experts (MoE) language model with the characteristics of economical training and efficient inference. It consists of 236B parameters, 21B of which are used to activate each marker. Compared with DeepSeek67B, DeepSeek-V2 has stronger performance, while saving 42.5% of training costs, reducing KV cache by 93.3%, and increasing the maximum generation throughput to 5.76 times. DeepSeek is a company exploring general artificial intelligence

AI is indeed changing mathematics. Recently, Tao Zhexuan, who has been paying close attention to this issue, forwarded the latest issue of "Bulletin of the American Mathematical Society" (Bulletin of the American Mathematical Society). Focusing on the topic "Will machines change mathematics?", many mathematicians expressed their opinions. The whole process was full of sparks, hardcore and exciting. The author has a strong lineup, including Fields Medal winner Akshay Venkatesh, Chinese mathematician Zheng Lejun, NYU computer scientist Ernest Davis and many other well-known scholars in the industry. The world of AI has changed dramatically. You know, many of these articles were submitted a year ago.

The performance of JAX, promoted by Google, has surpassed that of Pytorch and TensorFlow in recent benchmark tests, ranking first in 7 indicators. And the test was not done on the TPU with the best JAX performance. Although among developers, Pytorch is still more popular than Tensorflow. But in the future, perhaps more large models will be trained and run based on the JAX platform. Models Recently, the Keras team benchmarked three backends (TensorFlow, JAX, PyTorch) with the native PyTorch implementation and Keras2 with TensorFlow. First, they select a set of mainstream

Do not change the meaning of the original content, fine-tune the content, rewrite the content, and do not continue. "Quantile regression meets this need, providing prediction intervals with quantified chances. It is a statistical technique used to model the relationship between a predictor variable and a response variable, especially when the conditional distribution of the response variable is of interest When. Unlike traditional regression methods, quantile regression focuses on estimating the conditional magnitude of the response variable rather than the conditional mean. "Figure (A): Quantile regression Quantile regression is an estimate. A modeling method for the linear relationship between a set of regressors X and the quantiles of the explained variables Y. The existing regression model is actually a method to study the relationship between the explained variable and the explanatory variable. They focus on the relationship between explanatory variables and explained variables

Boston Dynamics Atlas officially enters the era of electric robots! Yesterday, the hydraulic Atlas just "tearfully" withdrew from the stage of history. Today, Boston Dynamics announced that the electric Atlas is on the job. It seems that in the field of commercial humanoid robots, Boston Dynamics is determined to compete with Tesla. After the new video was released, it had already been viewed by more than one million people in just ten hours. The old people leave and new roles appear. This is a historical necessity. There is no doubt that this year is the explosive year of humanoid robots. Netizens commented: The advancement of robots has made this year's opening ceremony look like a human, and the degree of freedom is far greater than that of humans. But is this really not a horror movie? At the beginning of the video, Atlas is lying calmly on the ground, seemingly on his back. What follows is jaw-dropping

Earlier this month, researchers from MIT and other institutions proposed a very promising alternative to MLP - KAN. KAN outperforms MLP in terms of accuracy and interpretability. And it can outperform MLP running with a larger number of parameters with a very small number of parameters. For example, the authors stated that they used KAN to reproduce DeepMind's results with a smaller network and a higher degree of automation. Specifically, DeepMind's MLP has about 300,000 parameters, while KAN only has about 200 parameters. KAN has a strong mathematical foundation like MLP. MLP is based on the universal approximation theorem, while KAN is based on the Kolmogorov-Arnold representation theorem. As shown in the figure below, KAN has

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

This paper explores the problem of accurately detecting objects from different viewing angles (such as perspective and bird's-eye view) in autonomous driving, especially how to effectively transform features from perspective (PV) to bird's-eye view (BEV) space. Transformation is implemented via the Visual Transformation (VT) module. Existing methods are broadly divided into two strategies: 2D to 3D and 3D to 2D conversion. 2D-to-3D methods improve dense 2D features by predicting depth probabilities, but the inherent uncertainty of depth predictions, especially in distant regions, may introduce inaccuracies. While 3D to 2D methods usually use 3D queries to sample 2D features and learn the attention weights of the correspondence between 3D and 2D features through a Transformer, which increases the computational and deployment time.
