arXiv:2608.23473cs.LGAug 2026

Manuscript Offprint

arXiv:2608.23473

MetaCaster: Meta-Harness-Optimized Agent for End-to-End Few-Shot Learning of Lightweight Time Series Forecasters

ChengAo Shen, Wenchao Yu, Fangyu Wu, Dongjin Song, Hanghang Tong, Dongsheng Luo, Wei Cheng, Haifeng Chen, Jingchao Ni

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Time series forecasting (TSF) is evolving toward multimodal and agentic settings, yet using foundation models remains uneconomical in resource-constrained scenarios, where compact, specialized forecasters are more desirable. However, lightweight forecasters typically require substantial training data, limiting their use in domains with scarce, slowly accumulated, or privacy-sensitive time series. To address this dilemma, we investigate the challenging problem of few-shot learning for lightweight forecasters. We propose METACASTER, a meta-harness-optimized multi-agent framework that uses agentic data generation to automatically train specialized lightweight forecasters from only a few examples and textual contexts. Our work highlights a new TSF paradigm in which agents act not as forecasters but as intermediary engineers that prepare efficient, task-specific forecasters for deployment. Experiments on 18 datasets, 23 state-of-the-art lightweight forecasters, and 14 baselines demonstrate that METACASTER achieves both data efficiency and computational efficiency while maintaining high-quality TSF performance. 1^{1}

1 Introduction

Time series forecasting (TSF) underpins decision-making and intelligence across domains such as geoscience, healthcare, and energy (Koprinska et al., 2018; Morid et al., 2023; Ardid et al., 2025). Unlike traditional TSF, which focuses on numerical prediction at future timesteps, emergent TSF settings are multimodal, incorporating textual context describing domains, events, or external conditions (Jiang et al., 2025). This transition is driven by advances in large language models (LLMs) and AI agents. As Fig. 1 illustrates, recent LLM-based TSF methods have two main paradigms: (a) LLM-as-Forecaster – where pre-trained LLMs serve as forecasting backbones with additional cross-modal adapters and TSF heads (e.g., TimeLLM (Jin et al., 2024), S2IPLLM (Pan et al., 2024), TimeVLM (Zhong et al., 2025), etc.); and (b) Agent-as-Forecaster – where LLM agents interpret time series in contextual prompts, reason about future trends, and generate forecasts conversationally or visually (e.g., LLMTime (Gruver et al., 2023), TimeOmni-1 (Guan et al., 2026a), Nexus (Das et al., 2026), etc.).

Despite the inspiring progress, using LLMs as the computational core for forecasting is largely obstructed by the modality gap between discrete language tokens and continuous time series values. Consequently, the effectiveness of the paradigms in Fig. 1(a) and (b), compared with specialized non-LLM forecasters, remains under debate (Tan et al., 2024; Merrill et al., 2024). Benchmark studies consistently show that dedicated numerical models, such as DLinear (Zeng et al., 2023) and PatchTST (Nie et al., 2023), can outperform LLM-based approaches (Shen et al., 2025a), motivating the rise of time series foundation models (TSFMs) such as Moirai (Woo et al., 2024), Chronos (Ansari et al., 2024), and Sundial (Liu et al., 2025c).

However, using large models – whether LLMs or TSFMs – as one-size-fits-all solutions raises concerns about sustainability and carbon footprint (Bolón-Canedo et al., 2024). The demand for rapid deployment in resource-constrained settings (e.g., edge devices and small organizations) has therefore sparked growing interest in lightweight forecasters (Ma et al., 2024), analogous to the rise of small language models (SLMs) (Belcak et al., 2025). Notably, recent studies show that lightweight forecasters can rival LLMs and TSFMs in individual TSF tasks (Shen et al., 2025b), their main limitation is the need for sufficient downstream training data, as they lack large-scale pre-training.

In practice, collecting long-history time series for training can significantly delay deployment. In privacy-sensitive domains such as healthcare and

✉Corresponding author. 1^{1}The code is available at https://github.com/D2I-Group/metacaster.

Figure

Figure 1: Comparison of different paradigms of using LLMs for TSF. METACASTER is the proposed model.

finance, acquiring large training datasets may even be infeasible. This raises a challenging question: can lightweight forecasters be effectively trained with only a few samples? Although such models are highly prone to overfitting without large-scale pretraining, we demonstrate that a solution is possible in the era of agentic AI.

To address this challenge, we propose META-CASTER, a Meta-harness-optimized agent for end-to-end few-shot learning of lightweight forecasters. As Fig. 1(c) illustrates, rather than directly generating forecasts, METACASTER's agents act as intermediaries that prepares a specialized forecaster for a target TSF task. At deployment time, given a few-shot support set DsupD_{sup} and contextual description C, METACASTER employs two agents: (1) MGAGENT refers to DsupD_{sup} and C, and generates a sufficient dataset Dˉ\bar{D} that complies with domain constraints; and (2) FTAGENT trains and selects the best lightweight forecasters using Dˉ\bar{D}. To support FTAGENT, we compile 23 state-of-the-art (SOTA) lightweight forecasters (2022-2026) into LT-LIB library ( §\S3.5) with a unified API. Similar to fine-tuning a foundation model, METACASTER performs task adaptation at deployment time, but more efficiently via the novel agents and LLM API calls. After deployment, only the selected lightweight forecaster is used for inference.

Unlike existing time series generation models that focus on data simulation (Huang et al., 2025b; Gu et al., 2025; Ge et al., 2025), METACASTER generates time series specifically to improve forecasting performance. To our knowledge, it is the first framework to align data generation with forecaster quality. Motivated by recent findings on the importance of agent Harnesses (Li et al., 2026a; Lee et al., 2026) – the infrastructure surrounding an LLM (e.g., system prompts, skills, tools) – we optimize MGAGENT's Harness using a meta-harness HPAGENT (Fig. 2), which is more efficient than fine-tuning LLMs. The optimized Harness is also transferable across different LLMs, enabling flexible API switching in downstream deployment, as demonstrated in §4.2. In summary, our contributions are as follows.

• We investigate the challenging problem of few-shot learning for lightweight forecasters.

• We propose METACASTER, a novel meta-harness-optimized multi-agent framework that achieves large-model-like performance with efficient inference for TSF tasks.

• We compile 20+ SOTA lightweight forecasters into LT-LIB, a unified library released alongside METACASTER.

• We conduct comprehensive experiments on 18 datasets against 14 baselines, demonstrating the effectiveness of METACASTER.