Enhancing Large Language Models for Time-Series Forecasting via Vector-Injected In-Context Learning
Not on the map. Why?
Abstract (arXiv)
The World Wide Web needs reliable predictive capabilities to respond to changes in user behavior and usage patterns. Time series forecasting (TSF) is a key means to achieve this goal. In recent years, the large language models (LLMs) for TSF (LLM4TSF) have achieved good performance. However, there is a significant difference between pretraining corpora and time series data, making it hard to guarantee forecasting quality when directly applying LLMs to TSF; fine-tuning LLMs can mitigate this issue, but often incurs substantial computational overhead. Thus, LLM4TSF faces a dual challenge of prediction performance and compute overhead. To address this, we aim to explore a method for improving the forecasting performance of LLM4TSF while freezing all LLM parameters to reduce computational overhead. Inspired by in-context learning (ICL), we propose LVICL. LVICL uses our vector-injected ICL to inject example information into a frozen LLM, eliciting its in-context learning ability and thereby enhancing its performance on the example-related task (i.e., TSF). Specifically, we first use the LLM together with a learnable context vector adapter to extract a context vector from multiple examples adaptively. This vector contains compressed, example-related information. Subsequently, during the forward pass, we inject this vector into every layer of the LLM to improve forecasting performance. Compared with conventional ICL that adds examples into the prompt, our vector-injected ICL does not increase prompt length; moreover, adaptively deriving a context vector from examples suppresses components harmful to forecasting, thereby improving model performance. Extensive experiments demonstrate the effectiveness of our approach.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 34 of its 58 references that are in the map. First posted on arXiv 12 Jan 2026.
Builds on
34 of 58 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 1,981
- 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,200
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
22 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2023One Fits All:Power General Time Series Analysis by Pretrained LMcited by 615
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2021SCINet: Time Series Modeling and Forecasting with Sample Convolution and Interactioncited by 335
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2024Many-Shot In-Context Learningcited by 203
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2023UniTime: A Language-Empowered Unified Model for Cross-Domain Time Series Forecastingcited by 139
- 2023LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasterscited by 127
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2024CALF: Aligning LLMs for Time Series Forecasting via Cross-modal Fine-Tuningcited by 105
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2024Test-Time Model Adaptation with Only Forward Passescited by 74
- 2024Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learningcited by 49
- 2024In-Context Fine-Tuning for Time-Series Foundation Modelscited by 31
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2025Improving Reasoning Performance in Large Language Models via Representation Engineeringcited by 21
- 2021CAMul: Calibrated and Accurate Multi-view Time-Series Forecastingcited by 17
- 2023Towards Understanding How Transformers Learn In-context Through a Representation Learning Lenscited by 15
- 2024Identifying and Manipulating Personality Traits in LLMs Through Activation Engineeringcited by 13
- 2024ELICIT: LLM Augmentation via External In-Context Capabilitycited by 7
- 2025Temporal Alignment of Time Sensitive Facts with Activation Engineeringcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.