search
HomeTechnology peripheralsAITime Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting

Today I want to share a recent research work from the University of Connecticut that proposes a method to align time series data with large natural language processing (NLP) models on the latent space to improve The performance of time series forecasting. The key to this method is to use latent spatial hints (prompts) to enhance the accuracy of time series predictions.

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting

Paper title: S2IP-LLM: Semantic Space Informed Prompt Learning with LLM for Time Series Forecasting

Download address: https://www .php.cn/link/3695d85c350d924e662ea2cd3b760d40

1. Problem background

Large models are increasingly used in time series, mainly divided into two categories: the first category uses Various types of time series data train a large model of its own in the time series field; the second type directly uses a large text model trained in the NLP field and applies it to the time series. Because time series are different from images and texts, different data sets have different input formats and distributions, and there are problems such as distribution shift, making it difficult to train a unified model using all time series data. Therefore, more and more work has begun to try to directly use NLP large models to solve time series related problems.

This article also focuses on the second method of solving time series problems, which is to use NLP large models. Current practice often uses a description of the time series as a cue, but not all time series datasets contain this information. In addition, the patch-based time series data processing method cannot completely retain all the information of the time series data.

Based on the above problems, this article proposes a new modeling method, the core modeling idea, on the one hand, the time series is mapped into embedding after tokenize processing, on the other hand, the space of these time series Representations are aligned to word embeddings in the larger model. In this way, during the time series prediction process, the information related to the aligned word embedding can be found as a prompt to improve the prediction effect.

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series ForecastingPicture

2. Implementation method

The following will introduce this from three aspects: data processing, latent space alignment, and model details. How to implement this work.

Data processing: Due to problems such as distribution shift of time series, this article performs a one-step trend term seasonal term decomposition on the input sequence. Each decomposed time series is standardized separately and then divided into overlapping patches. Each set of patches corresponds to the trend term patch, seasonal term patch, and residual patch. These three sets of patches are spliced ​​together and input into the MLP to obtain the basic embedding representation of each set of patches.

Implicit space alignment: This is the core step in this article. The design of prompts has a great impact on the performance of large models, and time series prompts are difficult to design. Therefore, this article proposes to align the patch representation of the time series with the word embedding of the large model in the latent space, and then retrieve the topK word embeddings as implicit prompts. The specific method is to use the patch embedding generated in the previous step to calculate the cosine similarity with the word embedding in the language model, select the topK word embeddings, and then use these word embeddings as prompts to splice them to the front of the time series patch embeddings. Since there are many word embeddings in large models, in order to reduce the amount of calculation, we first map the word embeddings to a small number of cluster centers.

Model details: In terms of model details, GPT2 is used as the language model part. Except for the parameters of the position embedding and layer normalization parts, the rest are frozen. In addition to MSE, the optimization goal also introduces the similarity between the patch embedding and the retrieved topK cluster embedding as a constraint, requiring that the distance between the two be as small as possible. The final prediction result is also

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series ForecastingPicture

3. Experimental results

This article compares with some large time series models, iTransformer, The effect of SOTA models such as PatchTST has achieved relatively good improvement in the prediction of different time windows in most data sets.

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series ForecastingPicture

At the same time, the article also visually analyzes embedding through t-SNE. As can be seen from the figure, the embedding of the time series is not aligned before alignment. There is no obvious clustering phenomenon, but the embedding generated through prompt has obvious clustering changes, which shows that the method proposed in this article effectively uses the spatial alignment of text and time series, and the corresponding prompt, to improve the quality of time series representation.

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecastingpicture

The above is the detailed content of Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
How to Run LLM Locally Using LM Studio? - Analytics VidhyaHow to Run LLM Locally Using LM Studio? - Analytics VidhyaApr 19, 2025 am 11:38 AM

Running large language models at home with ease: LM Studio User Guide In recent years, advances in software and hardware have made it possible to run large language models (LLMs) on personal computers. LM Studio is an excellent tool to make this process easy and convenient. This article will dive into how to run LLM locally using LM Studio, covering key steps, potential challenges, and the benefits of having LLM locally. Whether you are a tech enthusiast or are curious about the latest AI technologies, this guide will provide valuable insights and practical tips. Let's get started! Overview Understand the basic requirements for running LLM locally. Set up LM Studi on your computer

Guy Peri Helps Flavor McCormick's Future Through Data TransformationGuy Peri Helps Flavor McCormick's Future Through Data TransformationApr 19, 2025 am 11:35 AM

Guy Peri is McCormick’s Chief Information and Digital Officer. Though only seven months into his role, Peri is rapidly advancing a comprehensive transformation of the company’s digital capabilities. His career-long focus on data and analytics informs

What is the Chain of Emotion in Prompt Engineering? - Analytics VidhyaWhat is the Chain of Emotion in Prompt Engineering? - Analytics VidhyaApr 19, 2025 am 11:33 AM

Introduction Artificial intelligence (AI) is evolving to understand not just words, but also emotions, responding with a human touch. This sophisticated interaction is crucial in the rapidly advancing field of AI and natural language processing. Th

12 Best AI Tools for Data Science Workflow - Analytics Vidhya12 Best AI Tools for Data Science Workflow - Analytics VidhyaApr 19, 2025 am 11:31 AM

Introduction In today's data-centric world, leveraging advanced AI technologies is crucial for businesses seeking a competitive edge and enhanced efficiency. A range of powerful tools empowers data scientists, analysts, and developers to build, depl

AV Byte: OpenAI's GPT-4o Mini and Other AI InnovationsAV Byte: OpenAI's GPT-4o Mini and Other AI InnovationsApr 19, 2025 am 11:30 AM

This week's AI landscape exploded with groundbreaking releases from industry giants like OpenAI, Mistral AI, NVIDIA, DeepSeek, and Hugging Face. These new models promise increased power, affordability, and accessibility, fueled by advancements in tr

Perplexity's Android App Is Infested With Security Flaws, Report FindsPerplexity's Android App Is Infested With Security Flaws, Report FindsApr 19, 2025 am 11:24 AM

But the company’s Android app, which offers not only search capabilities but also acts as an AI assistant, is riddled with a host of security issues that could expose its users to data theft, account takeovers and impersonation attacks from malicious

Everyone's Getting Better At Using AI: Thoughts On Vibe CodingEveryone's Getting Better At Using AI: Thoughts On Vibe CodingApr 19, 2025 am 11:17 AM

You can look at what’s happening in conferences and at trade shows. You can ask engineers what they’re doing, or consult with a CEO. Everywhere you look, things are changing at breakneck speed. Engineers, and Non-Engineers What’s the difference be

Rocket Launch Simulation and Analysis using RocketPy - Analytics VidhyaRocket Launch Simulation and Analysis using RocketPy - Analytics VidhyaApr 19, 2025 am 11:12 AM

Simulate Rocket Launches with RocketPy: A Comprehensive Guide This article guides you through simulating high-power rocket launches using RocketPy, a powerful Python library. We'll cover everything from defining rocket components to analyzing simula

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.