Rethinking Time Series Forecasting with LLMs via Nearest Neighbor Contrastive Learning
Jayanie Bogahawatte, Sachith Seneviratne, Maneesha Perera, Saman, Halgamuge

TL;DR
This paper introduces NNCL-TLLM, a novel approach that leverages nearest neighbor contrastive learning and token embeddings to improve time series forecasting with large language models, especially in few-shot scenarios.
Contribution
It proposes a new prompt formulation method using text prototypes and contrastive learning, fine-tunes specific LLM layers, and demonstrates superior forecasting performance.
Findings
Outperforms existing methods in few-shot forecasting.
Achieves competitive results in long-term and short-term tasks.
Reduces computational cost by fine-tuning limited LLM layers.
Abstract
Adapting Large Language Models (LLMs) that are extensively trained on abundant text data, and customizing the input prompt to enable time series forecasting has received considerable attention. While recent work has shown great potential for adapting the learned prior of LLMs, the formulation of the prompt to finetune LLMs remains challenging as prompt should be aligned with time series data. Additionally, current approaches do not effectively leverage word token embeddings which embody the rich representation space learned by LLMs. This emphasizes the need for a robust approach to formulate the prompt which utilizes the word token embeddings while effectively representing the characteristics of the time series. To address these challenges, we propose NNCL-TLLM: Nearest Neighbor Contrastive Learning for Time series forecasting via LLMs. First, we generate time series compatible text…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTime Series Analysis and Forecasting · Stock Market Forecasting Methods · Forecasting Techniques and Applications
MethodsContrastive Learning · Layer Normalization
