Next Article in Journal
Numerical Study on the Energy-Harvesting Performance of a Flapping Foil Under Vortical-Gust Encounters
Previous Article in Journal
Comparison Between Transportation and Disjunctive DC Models in the Transmission Expansion Planning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Numerical–Textual Dual-Channel Forecasting Framework for Short-Term Load Forecasting

1
State Grid Tianjin Electric Power Company, Tianjin 300010, China
2
School of Artificial Intelligence, Tianjin University, Tianjin 300350, China
3
State Key Laboratory of Smart Power Distribution Equipment and System, Tianjin University, Tianjin 300072, China
*
Author to whom correspondence should be addressed.
Energies 2026, 19(16), 3930; https://doi.org/10.3390/en19163930
Submission received: 17 July 2026 / Revised: 17 August 2026 / Accepted: 19 August 2026 / Published: 21 August 2026

Abstract

Short-term load forecasting underpins power-system dispatching, yet classical models degrade when historical samples are scarce. This paper proposes NTSForecast, a numerical–textual dual-channel framework: a trainable multi-layer perceptron encodes the numerical input, a frozen large language model (LLM) embeds the task instruction and the field labels, and a small head returns the load from the frozen decoder output. No backbone parameter is updated at any point. At each of six rolling origins training sees only a seven-day record of 94 samples, while the non-overlapping test windows supply 7824 held-out hourly points across four seasons, five seeds each. NTSForecast attains the lowest MAE, RMSE and MAPE of the methods compared (5.66 ± 0.04% against 5.68% for the strongest baseline), but that margin is small and sensitive to how serial dependence is handled; under scarce history the framework is competitive with that baseline, not superior to it. What the evidence does establish is the contribution of the frozen backbone. With architecture, trainable-parameter count, hyperparameters and data held identical, removing it costs 1.38 percentage points of MAPE. Backbone scale runs against a capacity argument; on a 0.5B-to-8B ladder the smallest pretrained backbone is the most accurate and becomes the reference configuration (1445 MB peak memory). Removing the textual channel costs 1.17 percentage points.

1. Introduction

Short-term load forecasting (STLF) aims to predict the load curve for the next several hours to the following day and directly serves unit commitment, economic dispatch, and demand-side management [1]. With the large-scale integration of distributed energy resources, the load fluctuations observed at the distribution-station level have become increasingly pronounced, and the dependence on meteorological factors has also grown [2]. These trends create two distinctive challenges for load forecasting: (i) the available samples at a target station area are typically scarce, which is particularly evident after topology renovation or the commissioning of a new substation; and (ii) the joint distribution of weather and load undergoes seasonal drift, so that a model that performs well in one season often loses accuracy after the seasonal switch.
Classical STLF methods can be grouped into three families: statistical models, represented by ARIMA and Holt–Winters [3]; shallow machine-learning methods such as support vector regression (SVR) [4] and gradient-boosting decision trees (GBDTs) [5]; and deep models such as LSTM [6], Transformer [7], DLinear [8], and PatchTST [9]. Such methods describe time-series regularities through parameterized functions but contain no information outside the training set; their ability to adapt to new scenarios therefore degrades noticeably when samples are scarce or when the distribution shifts.
Large language models (LLMs) introduce a new kind of usable prior for time-series forecasting. The pre-training corpora of LLMs cover vast amounts of physical common sense, calendar regularities, and economic knowledge, which can be transferred to forecasting tasks through prompt engineering [10], in-context learning [11], or lightweight fine-tuning such as LoRA [12]. Existing LLM-based forecasting methods, such as PromptCast [13], LLMTime [14], and GPT4TS [15], generally adopt a text-based input that serializes numerical values into tokens. This design requires the model to infer numerical magnitudes from character tokens, which is computationally expensive and accuracy-limited in long-horizon forecasting. Another family of approaches focuses on the numerical channel: a small projection layer maps the numerical sequence into the embedding space of the LLM, while the LLM body remains frozen. This design substantially reduces the training cost, but using only a single numerical modality forfeits the contextual information carried by the task text.
This paper proposes NTSForecast. A trainable multi-layer perceptron projects each numerical field into the hidden space of a frozen language model, a frozen text encoder embeds the task instruction and the field labels, and the two sets of embeddings are concatenated along the sequence dimension and passed through the frozen decoder, from which a lightweight regression head returns the load. No backbone parameter is updated at any point, layer normalization and positional embeddings included, whereas comparable frozen-backbone methods adapt both. The reference configuration uses the frozen Qwen2.5-0.5B decoder; Section 6.6 compares it with a randomly initialized backbone, Qwen2.5-1.5B and Llama-3.1-8B [16] under identical settings, where accuracy runs opposite to backbone size. Multimodal fusion in itself is not the claim: compact multimodal forecasters such as the CNN–LSTM day-ahead price model of [17] establish that premise without a language model. One qualification belongs with the architecture. The text channel is load-bearing, but on this dataset, it carries a fixed instruction and a set of field labels that are identical in every sample, so its contribution is not semantic.
The main contributions of this paper are summarized as follows:
(1) A “frozen backbone + trainable numerical channel” dual-modal architecture tailored to short-term load forecasting, in which multimodal fusion is completed without updating any parameter of the language model, including its layer-normalization and positional-embedding parameters. A controlled comparison measures what the frozen backbone contributes: on the HEEW dataset removing the frozen backbone raises MAPE by 1.38 percentage points (7.0374 without it versus 5.6621 with it; Welch t-test on per-seed MAPE, p = 0.0038). Since the two variants share architecture, trainable-parameter count, hyperparameters and data, that difference belongs to the frozen backbone and not to capacity or tuning. Against the full comparison set the framework attains the lowest error on all three scale-dependent and relative metrics, though the margin over the strongest baseline is small, and its significance depends on how serial dependence is handled (Section 6.2). The evidence has three limits: one region and one deployment year, a margin over the strongest baseline of a fraction of a percentage point in MAPE, and no gain from larger backbones. Section 6.2 gives the full ordering, Section 6.8 the per-origin breakdown, and Section 7 the boundary of the claim.
(2) A Bayesian-optimization procedure for the full model: with the LLM backbone fixed, we jointly search a five-dimensional hyperparameter space and tune directly against the validation MAPE, only training the learnable modules.
(3) A hyperparameter sensitivity study of the resulting configuration. We apply fANOVA to decompose the validation objective across the searched hyperparameters, and we report the result together with bootstrap confidence intervals over the optimization trials. Those intervals overlap for all five hyperparameters at the trial budget used here, so no importance ranking is claimed; the analysis is reported as a sensitivity study, and Section 7.3 states what it does and does not establish. We include it because the trial budget required to obtain stable importance estimates is itself a practically relevant finding for work that tunes frozen-backbone forecasters.
The remainder of this paper is organized as follows. Section 2 describes the data and the feature construction. Section 3 develops the dual-channel architecture. Section 4 describes the Bayesian optimization and the fANOVA procedure. Section 5 defines the evaluation metrics. Section 6 reports the experimental results. Section 7 discusses the findings, and Section 8 concludes the paper.

2. Data and Feature Construction

2.1. Data Source

The evaluation uses the region-level aggregate of the publicly available HEEW dataset (Hierarchical Energy, Emissions and Weather) [18], which records hourly electricity consumption and synchronous meteorological observations for the Arizona State University campuses (Arizona, USA) under a CC-BY 4.0 licence; the meteorological variables are reported in the source units of the dataset (°F, inHg). The forecast target is the electricity channel of that dataset, which the source distributes in kilowatts and which is expressed in megawatts throughout this paper (1 MW = 1000 kW); the total-energy channel, which the source reports in mmBtu after aggregating electricity, cooling and heat, is not used.
The source covers 2014 to 2022 at hourly resolution. This study uses the 9294 consecutive hours from 9 December 2018 to 31 December 2019. The series is gap-free over that window, so the rule that removes records affected by communication outages or obvious anomalies discards nothing, and every hour enters the protocol below. For each forecast time slot, a sample pairs the three meteorological variables retained by the screening of Section 2.2 with nine historical load lags: the load at the forecast slot and at one and two slots earlier on each of the three preceding days. The window is split strictly chronologically at six rolling origins. Each origin trains on a seven-day raw record. The lags reach back three days and two hours, so the last 94 of its 168 h form complete training samples; the following 1302 h form the validation window and the next 1304 h the held-out test window. The three periods are contiguous, strictly ordered and disjoint, and the six test blocks are consecutive and non-overlapping, so they tile a 9 February 2019 to 31 December 2019 record of 6 × 1304 = 7824 hourly points across all four seasons, and every hour of the study window is used exactly once as a test hour. The origins sit about 54 days apart, so neighbouring ones draw on overlapping history and only the six test blocks are disjoint. Each origin is retrained from scratch and tested strictly after its own training and validation periods.
The seven-day training record is a deliberate choice rather than a shortage: feeders that have just been commissioned, reconnected or reconfigured often have no more than a week of history. Training on a week while evaluating on a full year reproduces that situation without making the assessment itself small.

2.2. Correlation Analysis of Meteorological Covariates

Meteorological inputs are selected with five screening criteria instead of the Pearson correlation alone. The load–temperature relationship is nonlinear and mediated by comfort, so a linear coefficient on its own cannot settle whether a variable belongs in the input. What drives cooling and heating demand is occupant thermal comfort, which responds to thresholds and saturates as ambient conditions change [19]. A variable can therefore drive load strongly and still show a near-zero linear coefficient. We report the absolute Pearson correlation, the absolute Spearman rank correlation, mutual information, the Hilbert–Schmidt independence criterion (HSIC) and permutation importance, computed on the historical record preceding the validation period (feature screening uses no validation or test data). The candidate pool comprises temperature, relative humidity, wind speed, dew point and pressure. Temperature ranks first under all five criteria ( r = 0.657, ρ = 0.690, MI = 0.379, HSIC = 0.036, permutation importance = 0.709), followed by dew point (0.539, 0.485, 0.221, 0.014, 0.324) and pressure; relative humidity and wind speed rank at the bottom under every criterion, and the permutation importance of humidity is not distinguishable from zero. The three retained exogenous covariates are therefore temperature, dew point and pressure. Temperature is used by the model in every experiment reported in this manuscript. Figure 1 summarises the screening.

2.3. Autocorrelation Structure of the Load Series

Figure 2 shows the autocorrelation function (ACF) of the hourly load series over the contiguous evaluation block. Pronounced peaks appear at lag 24 (one full day, ACF = 0.884) and at lag 48 (two days, ACF = 0.802), and the weekly cycle is equally visible (lag 168, ACF = 0.801). This strong daily periodicity motivates the historical-load features of Table 1—the same hour and its two predecessors on each of the three preceding days—and it also fixes the reference that every learned model must beat: a naive forecast that repeats the previous day’s load at the same hour already captures most of this structure.

2.4. Sample Format of the Dual-Channel Model

Each sample is organized as a JSON object with four parts: a task description, three meteorological variables, nine historical load lags, and the target value. The numerical fields are fed to the numerical channel; the task description and the field labels enter the frozen text encoder. Section 2.1 gives the chronological three-way split used at each of the six rolling origins. Two points follow from it for the samples described above. Because the feature representation reaches back 74 h, only the last 94 h of a seven-day record form complete input–target pairs, and the construction checks sample by sample that no lag feature reaches outside that record. Epoch selection and every other model-selection decision use the validation window alone, and the held-out block is evaluated once. Table 1 lists the input fields of a complete sample with example values. The labels inherit the naming used in the JSON file: D denotes the forecast day and T the forecast time slot, so that “D-1 day T load” is the load at the same time slot on the previous day.

3. Numerical–Textual Dual-Channel Architecture

3.1. Overall Framework

The overall architecture of NTSForecast is shown in Figure 3. It consists of five main modules: (i) a trainable numerical encoder that maps the 12-dimensional input vector to a hidden vector whose dimension matches the LLM token embedding space; (ii) a frozen pretrained LLM text encoder that projects the task instruction into the same hidden space; (iii) a fusion module that concatenates the two outputs along the sequence dimension; (iv) a frozen pretrained LLM decoder that performs self-attention on the concatenated sequence; and (v) a lightweight regression head that maps the last hidden state to a scalar load prediction. The Bayesian-optimization module on the right of the figure is separate from the forward path and is responsible for determining the hyperparameters of the numerical encoder. It should be emphasized that the LLM text encoder and decoder are fully frozen during training (snowflake markers); only the numerical encoder and the regression head receive gradient updates (flame markers). The training cost is therefore much lower than that of a full-parameter fine-tuning scheme.

3.2. Trainable Numerical Encoder

Let x R 12 denote the standardized input vector. The numerical encoder is implemented as an L-layer MLP with an element-wise nonlinear activation:
h ( l ) = σ W l h ( l 1 ) + b l ,   l = 1 , , L
The above output is then fed into the frozen text-encoder side as a token-like embedding sequence.
e n u m = W p r o j h ( L ) + b p r o j

3.3. Frozen Text Encoder

The task instruction t (a fixed natural-language prompt that declares the forecasting target) is tokenized into a sequence of length T. The frozen text encoder maps it to token embeddings:
E t x t = f L L M t
where f L L M is the embedding layer of the pretrained LLM, whose weights remain frozen throughout training. This design preserves the semantic information learned during pre-training and avoids catastrophic forgetting during fine-tuning.

3.4. Fused Embedding and Frozen Decoder

The numerical embedding and the text embeddings are concatenated along the sequence dimension to obtain a fused embedding sequence:
E = e n u m ;   E t x t
which is then fed to the decoder module of the pretrained LLM. The weights of this module are frozen in both training and inference phases, and the module only acts as a “context understanding” component, so that there is no risk of catastrophic forgetting caused by a small-sample task. Let g L L M denote the forward operator of the frozen decoder, and take the hidden state of the last token as the sequence summary:
z = g L L M E [ l a s t ]

3.5. Regression Head and Training Objective

The hidden state z is mapped to the scalar load prediction by a lightweight regression head (a two-layer MLP):
y ^ = W 2 σ W 1 z + b 1 + b 2
During training, the trainable parameter set θ only comprises the numerical-encoder weights ( W l ,   b l ,   W p r o j ,   b p r o j ) and the regression-head weights ( W 1 ,   b 1 ,   W 2 ,   b 2 ) . The loss function is the mean squared error augmented with an L2 regularization term:
L = 1 N i = 1 N y ^ i y i 2 + λ θ 2
Because the language model is frozen, back-propagation updates only the numerical encoders and the regression head—1,841,793 parameters in total—and no optimizer state is maintained for the backbone. This is the source of the training-cost reduction relative to full-parameter or LoRA-style adaptation of the same backbone. We quantify the cost in Section 7.1 rather than asserting it here, and we note at the outset that the reduction applies to training only: the forward pass executes the full backbone in every case, so inference latency and peak memory are not reduced by freezing.

4. Bayesian Optimization and Hyperparameter Importance Analysis

4.1. Motivation

The accuracy of neural-network forecasters is highly sensitive to hyperparameters: model capacity, regularization strength, and optimizer choices can all significantly affect the final result. In a setting where each single training run is expensive, the computational cost of grid search grows exponentially with the dimensionality, and random search cannot leverage information from existing trials; both sample efficiencies are therefore unsatisfactory. Bayesian optimization (BO) performs the search in a sequential manner: a probabilistic surrogate of the objective function is fitted to the completed trials, and the next candidate is selected by maximizing an acquisition function [20]. BO has a high sample efficiency and is well suited to STLF tasks with relatively high per-run training cost.

4.2. Search Space

This section performs joint tuning of the five key hyperparameters directly on the full NTSForecast model. The search space is given in Table 2. The LLM backbone remains frozen; only the numerical embedder, the text projection, and the regression head are trained. Learning rate and weight decay are sampled on a logarithmic scale across their intervals to cover different orders of magnitude, while batch size, accum steps, and activation are categorical variables drawn with uniform priors. Batch size and accum steps together determine the effective gradient batch, and their ranges are chosen to cover effective batch sizes between two and 32 within a 48 GB memory budget. Activation is shared by the hidden layers of the numerical embedder and the load embedder.

4.3. TPE-Sampler-Based Bayesian Optimization

We use the Tree-structured Parzen Estimator (TPE) sampler, which fits two density estimators on the hyperparameter space: l ( x ) describes the configurations whose objective value is below a quantile threshold, and g ( x ) describes the rest. The next trial is selected by maximizing l ( x ) g ( x ) , which is monotonically related to the Expected Improvement (EI) acquisition function, as given in Equation (8):
x i + 1 = a r g   m a x x S l ( x ) g ( x )
The optimization follows the sequential model-based framework of [21], as implemented in Optuna [22], with the TPE sampler; the importance decomposition uses the variance-based sensitivity indices of [23]. Considering the cost of a full training run, the trial budget is set to N = 24 with the first n0 = 4 random warm-up trials; each trial trains the learnable modules of NTSForecast for six epochs on the training subset and evaluates the MAPE on the validation subset. The held-out test subset is never used for trial scoring. To save computing further, a median pruner terminates unpromising trials early. As reported in Section 6.7, even this budget is too small to support stable importance rankings, and the analysis is presented as a sensitivity study only. Figure 4 sets out the procedure.

4.4. fANOVA-Based Importance Analysis

Given the BO trial history H = { ( x i ,   y i ) } , fANOVA orthogonally decomposes the objective-function variance into contributions from individual hyperparameters and their interactions [24]. The marginal importance of hyperparameter x k is defined as
I k = Var x k E x k f ^ x x k Var x f ^ x
where f ^ is the random-forest surrogate fitted on H. The larger I k is, the more of the performance fluctuation is explained by x k .

5. Evaluation Metrics

All five metrics used in this manuscript are defined in Equations (10)–(13), before their first use: y denotes the observed load, y ^ the forecast, and n the number of held-out test samples. MAE (10) is the mean absolute error, in the same unit as the load; MSE and its root RMSE (11) penalize large deviations more heavily than MAE. MAPE (12) is the mean absolute percentage error, and SMAPE (13) its symmetric variant, which is bounded and does not diverge as the observed load approaches zero. MAE and RMSE are scale-dependent and therefore comparable only within a dataset; MAPE and SMAPE are dimensionless and comparable across datasets.
M A E = 1 n i = 1 n y ^ i y i
M S E = 1 n i = 1 n y ^ i y i 2 ,   R M S E = M S E
M A P E = 100 % n i = 1 n y ^ i y i y i
S M A P E = 100 % n i = 1 n 2 y ^ i y i y ^ i + y i
Because several of the differences reported in Section 6 are small relative to seed-to-seed variation, we test them rather than reading them off the tables. For two forecasts with error series e1 and e2, the loss differential and the Diebold–Mariano statistic are given in Equation (14), where V ^ denotes the long-run variance estimated from the autocovariances of the differential. For a one-step horizon we apply the Harvey–Leybourne–Newbold small-sample correction of Equation (15) with h = 1, and refer the corrected statistic to a t-distribution with n 1 degrees of freedom. A negative statistic indicates that the first forecast has the lower squared error. The test is computed per seed against the strongest baseline in the comparison set, and Table 3 reports both the mean statistic and the number of seeds at which the difference is significant at the 5% level.
d i = e 1 i 2 e 2 i 2 ,   D M = d ¯ V ^ d ¯
D M H L N = D M · n + 1 2 h + h ( h 1 ) n n
Computational environment. All experiments were run on a single NVIDIA RTX A6000 (48 GB) under Ubuntu, with Python 3.10 and PyTorch 2.9.1 (CUDA 12.8 build). The frozen backbone is loaded through the HuggingFace Transformers library. Bayesian optimization uses Optuna with the TPE sampler and a median pruner. The comparison methods use the implementations released by their authors: GPT4TS and PatchTST from the official One-Fits-All repository, Time-LLM through the NeuralForecast library, and TimeMoE, Sundial and Chronos-Bolt from the published model weights; the classical baselines use scikit-learn. Random seeds, library versions and the single hyperparameter configuration used throughout are listed in Section 6.1 so that the results can be reproduced.

6. Experiments and Results

6.1. Experimental Setup

All baselines and the proposed method use the same 12-dimensional input and the same chronological three-way split at every origin. The backbone of the reference configuration is the frozen Qwen2.5-0.5B model loaded in float16; all of its weights remain frozen, and no LoRA or other adaptation is applied. The backbone-scale study of Section 6.6 compares this configuration with a randomly initialized backbone and with frozen Qwen2.5-1.5B and Llama-3.1-8B backbones under identical settings; the 0.5B configuration is used as the reference throughout because it is the most accurate of the four on this task and has the smallest seed-to-seed spread. The numerical encoders and the regression head contain 1,841,793 trainable parameters in total. Optimization uses AdamW with the configuration located by the Bayesian optimization of Section 4, run on the reference configuration and scored on the validation split only: learning rate 3.35 × 10−3, weight decay 2.05 × 10−5, batch size two with one gradient-accumulation step, and ReLU activation. This single configuration carries over unchanged to the full model and to every ablation and backbone-scale variant, so no variant receives tuning of its own. Each configuration is trained with five random seeds, and all results are reported as mean ± standard deviation. The validation subset governs early stopping. The held-out test subset is evaluated once, after training is complete.

6.2. Comparison Against Mainstream Baselines

Table 3 reports the four metrics on the held-out test set. All baselines are retrained under the same protocol as the proposed method. The recurrent baselines follow the residential and multi-source load-forecasting settings of [25,26]; the institutional-building study of [27] is the closest published setting to the campus load studied here; and the attention-based baselines follow [28,29,30], with the general sensitivity of recurrent architectures to distribution drift discussed in [31] and the broader survey of attention models for time series in [32]. The comparison set includes three classical regressors (ridge regression, random forest and gradient-boosted trees), three sequence baselines (LSTM, GRU and a Transformer encoder), the published linear and patch-based baselines DLinear [8] and PatchTST [9], the published implementations of GPT4TS [15] and Time-LLM [33], three domain-specific time-series foundation models evaluated zero-shot—TimeMoE-50M [34], Sundial-128M [35] and Chronos-Bolt-Base [36]—and a numerical encoder matched to NTSForecast in architecture and trainable-parameter count but with the backbone removed. NTSForecast attains MAE = 1.4926 ± 0.0113, RMSE = 2.0672 ± 0.0071 and MAPE = 5.6621 ± 0.0448, the lowest value of each in the table. The strongest baseline is Chronos-Bolt-Base applied zero-shot at 5.6772 MAPE, and the Diebold–Mariano test against it favours the proposed framework (DM = −4.17, p = 0.0002, with the difference significant at the 5% level for five of the five seeds).
Every significance statement in this paper is computed per seed and summarized as mean ± standard deviation across seeds. Seed-averaged ensemble forecasts are not reported, since averaging across seeds yields a predictor that was never trained and flatters every multi-seed method against the single-run baselines. The loss in the Diebold–Mariano test of Equation (14) is the squared error, the same loss the models are trained on (Equation (7)); the ordering of the table is by MAPE. The two need not agree, and here they do not: TimeMoE and Time-LLM reach a lower squared error than Chronos-Bolt-Base while their MAPE is higher, which is why the test can favour a row whose MAPE is worse than the reference. NTSForecast ranks first under both losses (MAE 1.4926 ± 0.0113, RMSE 2.0672 ± 0.0071, MAPE 5.6621 ± 0.0448), so the choice of loss does not decide the comparison that matters here.
A one-step loss differential is serially uncorrelated only when the forecasts are optimal, so the zero-lag bandwidth of Equation (15) is worth checking rather than assuming. Re-estimating the long-run variance with a Bartlett kernel leaves the direction unchanged and the magnitude smaller: against the strongest baseline the statistic is −2.42 at the automatic Newey–West bandwidth (p = 0.0362, significant for 3/5 seeds) and −2.10 at a bandwidth spanning a full daily cycle (p = 0.0660). The margin thus holds under the automatic bandwidth and is marginal under the daily-cycle bandwidth. For that reason, this paper describes the framework as competitive with the strongest baseline rather than superior to it.
Table 3 falls into three bands, and that separation is the main empirical finding of this paper. Methods that must learn the load–weather mapping from the 94 in-window samples without a pretrained prior collapse: the recurrent and attention sequence models exceed 45% MAPE, and the classical regressors reach 13.9314 (random forest) and 16.4762 (ridge). A middle band carries a prior but does not draw on it fully at this sample size: PatchTST (7.6149 ± 0.4920), the parameter-matched MLP (7.0374 ± 0.4624) and GPT4TS (6.4829 ± 0.1327). The leading band brings a large pretrained prior to a scarce training window: the three zero-shot foundation models (5.6772, 5.7749 and 5.9186), Time-LLM (5.8491) and NTSForecast, which is the most accurate of them. The comparison with the zero-shot foundation models is the informative one. TimeMoE is pretrained on roughly 300 billion time points, Sundial on a trillion-point corpus and Chronos-Bolt on billions of observations, and none of them trains on this task. The framework matches and slightly exceeds all three from 94 training samples on a frozen text-pretrained backbone.
GPT4TS, Time-LLM and NTSForecast form one family, in that all three drive a language-model backbone with a numerical series instead of replacing it, and what separates them is how much of the backbone they touch. GPT4TS holds the attention and feed-forward blocks fixed but fine-tunes the affine parameters of every layer normalization together with the positional embeddings [15]. Time-LLM trains a reprogramming module of 143,958,913 parameters. NTSForecast updates nothing inside the backbone and trains 1,841,793 parameters in the numerical encoder and the head, roughly one eightieth of Time-LLM’s budget. The accuracy each choice buys is visible in the table. The margin over the strongest baseline is 0.02 percentage points of MAPE, significant under the per-seed test, small in absolute terms, and reversed at two of the six origins, which Section 6.8 identifies. Figure 5 shows the same comparison graphically.

6.3. Test-Day Prediction Curves

Figure 6 places the actual load curve, the NTSForecast forecast and the forecast of the strongest baseline of Table 3 on the same time axis for the first week (168 h) of the held-out evaluation period. The framework’s curve is the average of the five seed runs, plotted for readability only; every quantitative comparison in this paper is computed per seed. The visual impression matches Table 3: the daily cycle dominates, both forecasts track it closely, and the differences that separate the methods statistically are small at the scale of the plot, which is why the comparison is settled by the significance test rather than by inspection.

6.4. Error Distribution Analysis

To compare forecast quality beyond aggregate metrics, Figure 7 shows the absolute-error distribution of NTSForecast on the held-out test set (7824 samples) from two perspectives. (a) The boxplot gives the median, interquartile range and extreme values of the absolute errors; the median reflects overall accuracy, and the interquartile range reflects consistency. (b) The empirical cumulative distribution function shows the proportion of forecasts falling below a given absolute-error threshold, which is the quantity of operational interest when a tolerance band is specified.

6.5. Training Dynamics

Figure 8 shows the convergence behaviour of NTSForecast. (a) The training loss decreases monotonically, and its slope flattens once the trainable modules have largely converged. (b) The validation error is used for epoch selection and for early stopping; the held-out test error is computed once, after training is complete, and is materially higher than the validation error. We report both because the size of that gap is what determines whether a validation-selected model transfers to an unseen period, and it is not visible when a single split serves both purposes.

6.6. Channel Ablation, Backbone-Scale Study and Subgroup Analysis

Two ablations are run under the protocol of Section 6.1, with the configuration, data and seeds of the full model held fixed: one removes the text channel, the other the numerical channel. Removing the text channel raises MAPE from 5.6621 ± 0.0448 to 6.8280 ± 0.5833, a loss of 1.17 percentage points that exceeds the seed spread of either variant. Removing the numerical channel gives 6.1083 ± 0.2942, which is not the contribution of that channel: without it the model has no sample-varying input, its predictions on the held-out blocks have zero dispersion, and the error is that of a constant forecast. This run serves only as a sanity check.
Two further controls isolate what the text channel supplies. Scrambling the word order of the task description, at equal token length and with the same vocabulary, gives MAPE 5.6582 ± 0.0390; replacing the description with a learnable prefix of equal length gives 5.7029 ± 0.0327; the full model gives 5.6621 ± 0.0448. Neither control moves the mean beyond the seed-to-seed spread.
The channel therefore carries weight, but not through its linguistic content. This is what the corpus predicts: the task description and the field labels are identical in every sample, so there is no sample-level semantic content to convey, and the channel acts as a stable, high-dimensional conditioning signal on which the numerical encoder is aligned. Operational text that does vary with the sample, such as maintenance and switching orders, outage notices, holiday and production schedules or severe-weather warnings, can travel the same pathway. Demonstrating that requires a corpus in which such records are time-aligned with the load series, which this dataset does not provide. Ablating the text channel degrades accuracy most where forecasting is hardest—the largest significant MAPE increases (bootstrap 95% CIs excluding zero) occur on the bottom load decile (−3.51 pp); the holiday weeks (Thanksgiving and the December break) (−1.80 pp); the extreme pressure deciles (−1.64 pp); the quartile with the largest 24 h temperature swing (−1.63 pp)—indicating that the constant text embedding stabilizes the learned representation precisely on the samples least served by historical extrapolation. The reversal is reported with equal prominence: on the top load decile (+0.79 pp) the text-ablated variant is significantly more accurate, so the effect is a trade-off across operating conditions rather than a uniform gain. All subgroup comparisons are tested with bootstrap confidence intervals, and the subgroups on which the comparison favours the ablated variant are reported above alongside those on which it does not. Table 4 collects these results.
The same protocol supports a backbone-scale study, in which the frozen backbone is replaced while architecture, data and seeds are held fixed, and the projection widths follow the hidden size of the backbone in use; a randomly initialized backbone of the largest size attains MAPE 5.8742 ± 0.1448, Qwen2.5-0.5B 5.6621 ± 0.0448, Qwen2.5-1.5B 5.6889 ± 0.0254 and Llama-3.1-8B 5.9714 ± 0.2120. This ordering is the opposite of what a capacity argument predicts. The smallest pretrained backbone is the most accurate of the four, accuracy does not improve monotonically with size, and the largest pretrained backbone is the least accurate, indistinguishable from the randomly initialized control of the same size.
The explanation is a sample-size effect. The binding constraint at 94 training samples is the pair of alignment projections between the numerical channel and the backbone, whose width follows the hidden size of the backbone. A larger backbone widens them, and a seven-day record cannot supply enough supervision to fit the wider mapping, so whatever semantic prior a larger model holds stays out of reach. The seed-to-seed spread follows the same pattern, growing from 0.0448 at 0.5B to 0.2120 percentage points at 8B. Qwen2.5-0.5B is therefore adopted as the reference configuration: most accurate on this task, smallest seed-to-seed spread, and cheapest in memory and latency, as Section 7.1 quantifies.
The ladder deliberately omits one substitution. The domain-specific time-series foundation models of Table 3 cannot serve as the backbone: they accept numerical series only, and with neither a tokenizer nor a text-embedding layer they cannot instantiate the textual channel on which a numerical–textual framework rests. Replacing the backbone with one of them would give a different, numerical-only model rather than a variant of NTSForecast, so they are evaluated as the zero-shot forecasters they were built to be and appear in Table 3 among the baselines.

6.7. Bayesian Optimization on the Full Model

This subsection reports the Bayesian optimization of the full model: the LLM backbone remains frozen, and the search covers the five hyperparameters of Table 2. The budget is 24 TPE trials of six epochs each, scored exclusively on the validation window; the held-out test set plays no role in the search. Consistent with the relabelling of this section as a sensitivity study, the outputs we report are the search trajectory and the stability of the importance estimates, not a ranking.
Figure 9a shows the search trajectory of the 24 trials, scored on the validation subset only, so that the held-out blocks take no part in model selection. The most informative feature of the trajectory is how little it moves: the running best improves from 5.248 to 5.235 percent, a total of 0.013 percentage points over the whole budget, and 21 of the 24 trials fall within a band of 0.5 percentage points. We read this as a property of the model rather than a failure of the search. Accuracy here is not contingent on locating a particular corner of the hyperparameter space: learning rate, weight decay, batch size, accumulation depth and activation can all be varied over the ranges of Table 2 without materially changing the outcome. For a method intended for feeders that are commissioned with a week of history and no tuning budget, that insensitivity is the operationally relevant property, and it is worth more than the 0.013 percentage points the search itself returns. The search retains a second use, which is the importance analysis reported below: even when the achievable gain is small, the sampled trials support a relative ranking of the hyperparameters and thereby indicate where a practitioner should look first. What the budget does not support is a claim of global near-optimality, and we do not make one. Procedurally, the located configuration is the one stated in Section 6.1 and used unchanged for the full model and every variant reported, so the search and the results are consistent by construction. Table 5 lists the configuration located by the search.

6.8. Per-Origin Breakdown Across the Six Rolling Origins

Table 3 pools the six origins into a single year-long series before computing metrics, which is the correct way to obtain seed-level dispersion but hides how much the individual origins differ. This subsection reports that breakdown. The protocol of Section 6.1 is held fixed, and the origin is the only thing that moves: at each origin the seven-day raw record immediately preceding the validation window supplies the 94 training samples, the following 1302 h form the validation window and the next 1304 h the test window, and the six test windows are consecutive and non-overlapping, so their union is the 9 February 2019 to 31 December 2019 evaluation period of 7824 hourly points used in Table 3. Every method is retrained from scratch at every origin; nothing is carried across origins except the code. A single hyperparameter configuration, located once by the Bayesian optimization of Section 4, is applied unchanged at every origin, and no per-origin tuning is performed for any method. The origins differ in difficulty before any model is trained, and the difficulty is measurable in advance: the mean load of the seven-day training record differs from that of the corresponding test window by −6.7% at the most favourable origin and by +35.5% at the least favourable one, so the six origins span the range from a well-matched window to a window that misrepresents the deployment period by more than a third.
Table 6 gives the per-origin figures. Against the strongest baseline of Table 3 the framework attains the lowest MAPE at four of the six origins, and its across-origin mean of 5.66 ± 0.27 is below that baseline’s 5.68 ± 0.21. At the two remaining origins the two methods lie within 0.18 percentage points of each other, and at Origin 4 they agree to two decimal places. Those origins are listed individually instead of being absorbed into the mean. Against the parameter-matched MLP the ordering is uniform: the complete structure is more accurate at every origin, by between 0.81 and 1.80 percentage points, which is the per-origin form of the controlled comparison in Section 6.6. The spread across origins carries its own information. The framework’s per-origin MAPE varies by 0.83 percentage points over the six windows, and that variation belongs to the window, not to the method. The per-origin figures of the framework and of the strongest baseline move together almost perfectly (Pearson r = 0.94 across the six origins), so an origin that is hard for one is hard for the other. The level gap of the preceding paragraph does not predict which origins those are: the origin with the largest gap (+35.5%) is one of the framework’s better windows. Window representativeness is thus more than a difference in mean level, and Section 7.4 carries the residual dependence on it as a limitation.

7. Discussion

7.1. Operating Envelope: What the Frozen Backbone Contributes, Where It Stops, and What It Costs

This section asks three things of the frozen backbone: whether it contributes at all, where its contribution stops, and what it costs. The first is settled by the parameter-matched comparison, in which a numerical encoder keeps the architecture, the trainable-parameter count (1,841,793), the hyperparameters and the data of the full model and loses only the backbone: on the HEEW dataset removing the frozen backbone raises MAPE by 1.38 percentage points (7.0374 without it versus 5.6621 with it; Welch t-test on per-seed MAPE, p = 0.0038). Two further comparisons run the same way. A randomly initialized backbone reaches 5.8742 ± 0.1448 against 5.6621 ± 0.0448, which separates pretraining from architecture, and LoRA adaptation of the same backbone reaches 10.8546, so under a window this short adapting the backbone is worse than leaving it alone.
Where the contribution stops depends on what a method has to estimate. Every baseline that must learn the load–weather mapping from the seven-day record without a large pretrained prior falls well behind: the parameter-matched encoder, the randomly initialized backbone, LoRA adaptation, the classical regressors, the compact linear-decomposition and patch-based forecasters, and the recurrent and attention sequence models. Only the methods that bring such a prior stay close, namely Time-LLM (5.8491) and the three zero-shot foundation models (5.6772, 5.7749 and 5.9186), and the framework leads them by a fraction of a percentage point rather than by the margin that separates the bands. What matters is the presence of a pretrained prior, not its size, since the ladder is non-monotonic, and the largest backbone is the least accurate. The error common to the whole leading band is then not a limit on capacity but the distribution gap between a seven-day training record and a deployment period up to a third away from it in level, which Section 6.8 quantifies origin by origin. This is what the architecture buys in the scarce-history regime: 94 training samples reach the accuracy that purpose-built pretraining at nine orders of magnitude larger scale delivers on the same task.
The cost is measured rather than argued. In the reference configuration NTSForecast needs 1445 MB of peak GPU memory and 28.59 ms per forecast, against 995 MB and 7.17 ms for GPT4TS. Because the reference backbone is the smallest rung of the ladder, that is an order of magnitude below the same design at 8B (17,164 MB, 51.17 ms), which Section 6.6 also shows to be the less accurate of the two. Training is far cheaper than full fine-tuning or LoRA adaptation of the same backbone because no backbone parameter is updated, and no optimizer state is held for it. The efficiency claim is scoped accordingly: it holds against adaptation of the same backbone, not as a general claim about deployability.
The framework never fine-tunes the backbone. The pretrained decoder serves only as a context-processing component in the forward pass, and its weights stay frozen in training and in inference alike. Against LoRA or full-parameter fine-tuning this removes the optimizer state and the gradient computation for the backbone, which is where the training-cost advantage comes from. The advantage stops at training. Both settings run the full backbone in the forward pass, so freezing buys nothing in latency or peak memory, and the figures above leave both an order of magnitude above a compact baseline. Any statement about deployability has to keep that distinction. Table 7 reports the measurements for every configuration.

7.2. Relation to Compact Multimodal Forecasters

A compact, non-LLM demonstration of the same premise helps place the present contribution. The convolutional-recurrent ensemble of [17] integrates multimodal inputs for day-ahead electricity-price forecasting without serializing anything into a language model, and it reports gains from that integration. Two things follow. Multimodal fusion by itself is not what a frozen language backbone provides, since a compact supervised architecture can fuse heterogeneous inputs and profit from it. The claim made here is the narrower one, about what the frozen backbone adds on top of fusion, which is why the controlled comparison of Section 6.6 fixes the fusion architecture and the trainable-parameter count and varies only the presence of the backbone. That line of work also supplies the cost reference against which a language backbone has to be judged, and the same comparison runs inside our own experiments: the parameter-matched encoder trains the same 1,841,793 parameters as the full framework, peaks at 59 MB and forecasts in 0.49 ms, against 1445 MB and 28.59 ms for the proposed framework, at a MAPE difference of 1.38 percentage points in the framework’s favour. Whether that accuracy is worth that overhead is an application-level decision, and both sides of it are on the table here.

7.3. Hyperparameter Sensitivity: What the Importance Analysis Does and Does Not Establish

The hyperparameter importance analysis serves as a reference, not as a result. Bootstrapping the fANOVA estimates over the 24 trials yields 95% confidence intervals whose mean width is 45.3 percentage points, and the interval for the learning rate alone runs from 12 to 86 percent of the explained variance. No numerical ranking survives that. A second observation points the same way, and it bears on how such analyses should be read in general. We ran the identical search space and trial budget twice, changing only the frozen backbone. The leading term held, with the activation function first in both runs, but the rest of the order was rearranged: accumulation depth fell from second to fourth while the learning rate rose, and the two located learning rates differed by more than two orders of magnitude. Hyperparameter importance is thus conditional on the input window, the backbone and the search space. It is not a transferable property of the method. The analysis is useful for direction, not magnitude. It shows where a practitioner adapting the framework to another feeder should look first, and we report it with that scope. It should be read together with Section 6.7, where the same trials show that accuracy varies little across the searched ranges. A nearly flat response surface makes the decomposition of a small variance unstable, and the flatness is the more useful finding of the two.

7.4. Limitations and Outlook

Four limitations bound the envelope of Section 7.1. First, the forward pass executes the full backbone whether or not it is frozen. Taking the smallest rung of the ladder as the reference configuration cuts that cost by an order of magnitude relative to 8B, and Section 7.1 reports both, but a compact supervised model is cheaper still wherever latency or memory is tightly constrained. Second, the margin is small exactly where the comparison is closest. Against the methods that also bring a large pretrained prior, Time-LLM and the three zero-shot foundation models, the advantage is a fraction of a percentage point of MAPE. It is significant under the per-seed test on the pooled evaluation period, and Section 6.8 gives the individual origins where it does not hold.
Third, the envelope rests on one region and one deployment period. The boundary reported here, that a frozen backbone recovers much but not all of the deficit from learning on a short window and that backbone scale does not move that boundary, is supported by a single dataset. The rolling-origin protocol of Section 6.8 tests it across four seasons of one deployment period; testing it fully would take the same protocol on further datasets, regions and load profiles, which is the natural continuation of this study. Fourth, the design targets the seasonal drift between training and deployment periods, a form of dataset shift [37]. Demand itself is changing as flexible resources are adopted, so the weather–load mapping is a moving target, and the robustness effect of Section 6.6 deserves re-examination over horizons longer than we can cover here.

8. Conclusions

This paper presents NTSForecast, a numerical–textual dual-channel framework for short-term load forecasting that combines a trainable numerical encoder with a strictly frozen pretrained LLM, leaving every backbone parameter untouched. The evaluation stays inside the regime the method is built for. At each of six rolling origins the only history available for training is a seven-day raw record, which yields 94 training samples, and the six non-overlapping test windows together cover 7824 held-out hourly points. Five seeds and Diebold–Mariano testing support four conclusions. First, on accuracy: The framework attains the lowest MAE, RMSE and MAPE of every method compared. The margin over the strongest baseline, Chronos-Bolt-Base applied zero-shot, is 0.02 percentage points of MAPE and holds under the shorter of the two bandwidths examined in Section 6.2, so the framework is competitive with that baseline rather than superior to it. Second, on the source of that accuracy: On the HEEW dataset removing the frozen backbone raises MAPE by 1.38 percentage points (7.0374 without it versus 5.6621 with it; Welch t-test on per-seed MAPE, p = 0.0038). Since the two variants share architecture, trainable-parameter count, hyperparameters and data, that difference belongs to the frozen backbone and not to capacity or tuning. The same direction holds against a randomly initialized backbone of the same size and against LoRA adaptation, which on a seven-day record is markedly worse than leaving the backbone frozen. Third, on backbone scale: Accuracy across the random-initialization/0.5B/1.5B/8B ladder is non-monotonic and runs against a capacity argument, the smallest pretrained backbone being the most accurate and the largest the least. A sub-billion-parameter backbone is therefore adopted as the reference configuration, and the remaining error is attributed to the distribution gap between the seven-day training record and the deployment period. The ladder spans four backbones on one dataset, enough to rule out a monotone capacity effect here but not to establish a general scaling law. Fourth, on the text channel: Ablating it costs 1.17 percentage points, yet destroying the semantic content while keeping the channel in place changes accuracy by less than 0.01 percentage points. The textual side of this dataset is a fixed instruction and a set of field labels rather than sample-level operating information, so semantic content is not what the channel contributes.
Two boundaries come with these results: the margin over the methods that also carry a large pretrained prior is a fraction of a percentage point and does not hold at every origin, and the hyperparameter-importance analysis is a sensitivity study rather than a ranking because the trial budget cannot support stable importance estimates. Future work should establish whether a sample-varying text channel turns the conditional effect seen here into a consistent gain, whether the envelope reproduces on other regions and load profiles, and whether distillation can remove the remaining backbone cost.

Author Contributions

Conceptualization, methodology, and writing—original draft preparation, J.Y.; software, validation, formal analysis, and visualization, X.X.; investigation, resources, and data curation, J.X.; writing—review and editing, B.S. and X.W.; supervision, project administration, and funding acquisition, W.X., Y.Y., C.W. and B.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by “the Science and Technology Project of State Grid Tianjin Electric Power Company” (Jizhou Science and Technology Project 2025-06, Grant No. SGTJJX00YJJS2500876).

Data Availability Statement

The load and weather observations used in this study are from the publicly available HEEW dataset described in [18], distributed under a CC-BY 4.0 licence through the repository referenced there. The exact chronological splits, preprocessing rules and evaluation windows are stated in Section 2.1 and Section 6.1.

Acknowledgments

The authors thank the anonymous reviewers for their constructive comments and the data provider for granting access to the field measurements used in this work.

Conflicts of Interest

Authors Xiaohu Xin, Jing Xu, Xin Wang, Weili Xu, Yang Yue and Chengshuai Wang were employed by the company State Grid Tianjin Electric Power Company. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The authors declare that this study received funding from State Grid Tianjin Electric Power Company. The funder was not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication.

Abbreviations

STLF, short-term load forecasting; LLM, large language model; MLP, multi-layer perceptron; BO, Bayesian optimization; TPE, Tree-structured Parzen Estimator; fANOVA, functional analysis of variance; MAPE, mean absolute percentage error; MAE, mean absolute error; RMSE, root mean squared error; SMAPE, symmetric mean absolute percentage error; LoRA, low-rank adaptation; GPU, graphics processing unit; MSE, mean squared error; ACF, autocorrelation function; CDF, cumulative distribution function; LSTM, long short-term memory; GRU, gated recurrent unit; GBDT, gradient boosting decision tree; ARIMA, autoregressive integrated moving average; SVR, support vector regression; IQR, interquartile range; EI, expected improvement; AdamW, Adam with weight decay.

References

  1. Hong, T.; Pinson, P.; Wang, Y.; Weron, R.; Yang, D.; Zareipour, H. Energy Forecasting: A Review and Outlook. IEEE Open Access J. Power Energy 2020, 7, 376–388. [Google Scholar] [CrossRef] [Scilit]
  2. Wang, Y.; Chen, Q.; Hong, T.; Kang, C. Review of Smart Meter Data Analytics: Applications, Methodologies, and Challenges. IEEE Trans. Smart Grid 2019, 10, 3125–3148. [Google Scholar] [CrossRef] [Scilit]
  3. Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control, 5th ed.; Wiley: Hoboken, NJ, USA, 2015. [Google Scholar]
  4. Smola, A.J.; Schölkopf, B. A Tutorial on Support Vector Regression. Stat. Comput. 2004, 14, 199–222. [Google Scholar] [CrossRef] [Scilit]
  5. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD’16); ACM: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  6. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. In Advances in Neural Information Processing Systems 30 (NeurIPS 2017); Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 5998–6008. [Google Scholar]
  8. Zeng, A.; Chen, M.; Zhang, L.; Xu, Q. Are Transformers Effective for Time Series Forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2023; Volume 37, pp. 11121–11128. [Google Scholar]
  9. Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A Time Series is Worth 64 Words: Long-Term Forecasting with Transformers. In International Conference on Learning Representations (ICLR); Curran Associates, Inc.: Red Hook, NY, USA, 2023. [Google Scholar]
  10. Brown, T.B.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020); Curran Associates, Inc.: Red Hook, NY, USA, 2020; pp. 1877–1901. [Google Scholar]
  11. Dong, Q.; Li, L.; Dai, D.; Zheng, C.; Wu, Z.; Chang, B.; Sun, X.; Xu, J.; Sui, Z. A Survey on In-context Learning. arXiv 2023, arXiv:2301.00234. [Google Scholar]
  12. Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations (ICLR); Curran Associates, Inc.: Red Hook, NY, USA, 2022. [Google Scholar]
  13. Xue, H.; Salim, F.D. PromptCast: A New Prompt-based Learning Paradigm for Time Series Forecasting. IEEE Trans. Knowl. Data Eng. 2024, 36, 6851–6864. [Google Scholar] [CrossRef] [Scilit]
  14. Gruver, N.; Finzi, M.; Qiu, S.; Wilson, A.G. Large Language Models are Zero-Shot Time Series Forecasters. In Advances in Neural Information Processing Systems 36 (NeurIPS 2023); Curran Associates, Inc.: Red Hook, NY, USA, 2023. [Google Scholar]
  15. Zhou, T.; Niu, P.; Wang, X.; Sun, L.; Jin, R. One Fits All: Power General Time Series Analysis by Pretrained LM. In Advances in Neural Information Processing Systems 36 (NeurIPS 2023); Curran Associates, Inc.: Red Hook, NY, USA, 2023. [Google Scholar]
  16. Touvron, H.; Lavril, T.; Izacard, G.; Martinet, X.; Lachaux, M.-A.; Lacroix, T.; Rozière, B.; Goyal, N.; Hambro, E.; Azhar, F.; et al. LLaMA: Open and Efficient Foundation Language Models. arXiv 2023, arXiv:2302.13971. [Google Scholar]
  17. Wang, Z.; Mae, M.; Yamane, T.; Ajisaka, M.; Nakata, T.; Matsuhashi, R. Enhanced Day-Ahead Electricity Price Forecasting Using a Convolutional Neural Network–Long Short-Term Memory Ensemble Learning Approach with Multimodal Data Integration. Energies 2024, 17, 2687. [Google Scholar] [CrossRef] [Scilit]
  18. Dong, H.; Zhu, J.; Chung, C.-Y.; Liang, Z.; Yang, H.; Wen, X. A Hierarchical Dataset on Multiple Energy Consumption and PV Generation with Emissions and Weather Information. Sci. Data 2025, 12, 1727. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Wang, Z.; Matsuhashi, R. Low-Energy Miniature Wearable Air-Conditioner with Direct Cold-Air Delivery: A Novel Water–Electricity Hybrid Energy System. Build. Environ. 2026, 297, 114590. [Google Scholar] [CrossRef] [Scilit]
  20. Bergstra, J.; Bardenet, R.; Bengio, Y.; Kégl, B. Algorithms for Hyper-Parameter Optimization. In Advances in Neural Information Processing Systems 24 (NeurIPS 2011); Curran Associates, Inc.: Red Hook, NY, USA, 2011; pp. 2546–2554. [Google Scholar]
  21. Snoek, J.; Larochelle, H.; Adams, R.P. Practical Bayesian Optimization of Machine Learning Algorithms. In Advances in Neural Information Processing Systems 25 (NeurIPS 2012); Curran Associates, Inc.: Red Hook, NY, USA, 2012; pp. 2951–2959. [Google Scholar]
  22. Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A Next-Generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD’19); ACM: New York, NY, USA, 2019; pp. 2623–2631. [Google Scholar]
  23. Sobol, I.M. Global Sensitivity Indices for Nonlinear Mathematical Models and Their Monte Carlo Estimates. Math. Comput. Simul. 2001, 55, 271–280. [Google Scholar] [CrossRef] [Scilit]
  24. Hutter, F.; Hoos, H.; Leyton-Brown, K. An Efficient Approach for Assessing Hyperparameter Importance. In Proceedings of the 31st International Conference on Machine Learning (ICML 2014); PMLR: Beijing, China, 2014; Volume 32, pp. 754–762. [Google Scholar]
  25. Kong, W.; Dong, Z.Y.; Jia, Y.; Hill, D.J.; Xu, Y.; Zhang, Y. Short-Term Residential Load Forecasting Based on LSTM Recurrent Neural Network. IEEE Trans. Smart Grid 2019, 10, 841–851. [Google Scholar] [CrossRef] [Scilit]
  26. Wang, Y.; Liu, M.; Bao, Z.; Zhang, S. Short-Term Load Forecasting with Multi-Source Data Using Gated Recurrent Unit Neural Networks. Energies 2018, 11, 1138. [Google Scholar] [CrossRef] [Scilit]
  27. Kim, Y.; Son, H.; Kim, S. Short Term Electricity Load Forecasting for Institutional Buildings. Energy Rep. 2019, 5, 1270–1280. [Google Scholar] [CrossRef] [Scilit]
  28. Lim, B.; Arık, S.Ö.; Loeff, N.; Pfister, T. Temporal Fusion Transformers for Interpretable Multi-Horizon Time Series Forecasting. Int. J. Forecast. 2021, 37, 1748–1764. [Google Scholar] [CrossRef] [Scilit]
  29. Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Advances in Neural Information Processing Systems 34 (NeurIPS 2021); Curran Associates, Inc.: Red Hook, NY, USA, 2021; pp. 22419–22430. [Google Scholar]
  30. Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. ITransformer: Inverted Transformers Are Effective for Time Series Forecasting. In International Conference on Learning Representations (ICLR); Curran Associates, Inc.: Red Hook, NY, USA, 2024. [Google Scholar]
  31. Hewamalage, H.; Bergmeir, C.; Bandara, K. Recurrent Neural Networks for Time Series Forecasting: Current Status and Future Directions. Int. J. Forecast. 2021, 37, 388–427. [Google Scholar] [CrossRef] [Scilit]
  32. Wen, Q.; Zhou, T.; Zhang, C.; Chen, W.; Ma, Z.; Yan, J.; Sun, L. Transformers in Time Series: A Survey. In Proceedings of the 32nd International Joint Conference on Artificial Intelligence (IJCAI 2023); IJCAI Organization: Macao, China, 2023; pp. 6778–6786. [Google Scholar]
  33. Jin, M.; Wang, S.; Ma, L.; Chu, Z.; Zhang, J.Y.; Shi, X.; Chen, X.-Y.; Tang, Y.; Wong, K.-F. Time-LLM: Time Series Forecasting by Reprogramming Large Language Models. In International Conference on Learning Representations (ICLR); Curran Associates, Inc.: Red Hook, NY, USA, 2024. [Google Scholar]
  34. Shi, X.; Wang, S.; Nie, Y.; Li, D.; Ye, Z.; Wen, Q.; Jin, M. Time-MoE: Billion-Scale Time Series Foundation Models with Mixture of Experts. arXiv 2024, arXiv:2409.16040. [Google Scholar]
  35. Liu, Y.; Qin, G.; Shi, Z.; Chen, Z.; Yang, C.; Huang, X.; Wang, J.; Long, M. Sundial: A Family of Highly Capable Time Series Foundation Models. arXiv 2025, arXiv:2502.00816. [Google Scholar]
  36. Ansari, A.F.; Stella, L.; Turkmen, C.; Zhang, X.; Mercado, P.; Shen, H.; Shchur, O.; Rangapuram, S.S.; Pineda Arango, S.; Kapoor, S.; et al. Chronos: Learning the Language of Time Series. Trans. Mach. Learn. Res. 2024. Available online: https://openreview.net/forum?id=gerNCVqqtR (accessed on 18 August 2026). [CrossRef] [Scilit]
  37. Quiñonero-Candela, J.; Sugiyama, M.; Schwaighofer, A.; Lawrence, N.D. (Eds.) Dataset Shift in Machine Learning; MIT Press: Cambridge, MA, USA, 2008. [Google Scholar]
Figure 1. Screening of candidate meteorological variables under five criteria: absolute Pearson correlation, absolute Spearman rank correlation, mutual information, HSIC and permutation importance. Temperature ranks first under every criterion. A linear coefficient alone cannot capture the nonlinear, comfort-mediated load–temperature relationship.
Figure 1. Screening of candidate meteorological variables under five criteria: absolute Pearson correlation, absolute Spearman rank correlation, mutual information, HSIC and permutation importance. Temperature ranks first under every criterion. A linear coefficient alone cannot capture the nonlinear, comfort-mediated load–temperature relationship.
Energies 19 03930 g001
Figure 2. Autocorrelation function of the hourly load series over the contiguous evaluation block. The peaks at lag 24 and lag 48 confirm a strong daily cycle; the peak at lag 168 marks the weekly cycle.
Figure 2. Autocorrelation function of the hourly load series over the contiguous evaluation block. The peaks at lag 24 and lag 48 confirm a strong daily cycle; the peak at lag 168 marks the weekly cycle.
Energies 19 03930 g002
Figure 3. Overall architecture of NTSForecast. The LLM text encoder and decoder are both frozen (snowflake markers); only the numerical encoder and the regression head participate in training (flame markers). The Bayesian-optimization module in the lower right is responsible for hyperparameter tuning.
Figure 3. Overall architecture of NTSForecast. The LLM text encoder and decoder are both frozen (snowflake markers); only the numerical encoder and the regression head participate in training (flame markers). The Bayesian-optimization module in the lower right is responsible for hyperparameter tuning.
Energies 19 03930 g003
Figure 4. Flow-chart of the TPE-based Bayesian optimization used for NTSForecast. Trials are scored on the validation split only; the held-out test split takes no part in the search.
Figure 4. Flow-chart of the TPE-based Bayesian optimization used for NTSForecast. Trials are scored on the validation split only; the held-out test split takes no part in the search.
Energies 19 03930 g004
Figure 5. MAPE (a) and RMSE (b) of each model on the held-out test set, with error bars over five random seeds where applicable. Differences among the leading methods are small relative to seed-to-seed variation; Table 3 gives the significance tests.
Figure 5. MAPE (a) and RMSE (b) of each model on the held-out test set, with error bars over five random seeds where applicable. Differences among the leading methods are small relative to seed-to-seed variation; Table 3 gives the significance tests.
Energies 19 03930 g005
Figure 6. Prediction curves on the first week (168 h) of the held-out test set. The black solid line is the actual load, and the red solid line is NTSForecast.
Figure 6. Prediction curves on the first week (168 h) of the held-out test set. The black solid line is the actual load, and the red solid line is NTSForecast.
Energies 19 03930 g006
Figure 7. Absolute-error distribution on the held-out test set. (a) Boxplot (vertical axis: absolute error); (b) empirical cumulative distribution function (horizontal axis: absolute-error threshold, vertical axis: cumulative probability).
Figure 7. Absolute-error distribution on the held-out test set. (a) Boxplot (vertical axis: absolute error); (b) empirical cumulative distribution function (horizontal axis: absolute-error threshold, vertical axis: cumulative probability).
Energies 19 03930 g007
Figure 8. Training dynamics of NTSForecast at one origin. Each coloured line is the validation MAE of one random seed, the star marks the epoch selected for that seed, and the open circle marks the epoch at which early stopping was triggered; the curves therefore differ in length by construction, with a patience of three epochs so the curves differ in length by construction. The dashed line is the mean across seeds of the per-seed held-out test MAE.
Figure 8. Training dynamics of NTSForecast at one origin. Each coloured line is the validation MAE of one random seed, the star marks the epoch selected for that seed, and the open circle marks the epoch at which early stopping was triggered; the curves therefore differ in length by construction, with a patience of three epochs so the curves differ in length by construction. The dashed line is the mean across seeds of the per-seed held-out test MAE.
Energies 19 03930 g008
Figure 9. (a) Per-trial validation MAPE (grey) and running best (red) of the 24 Bayesian-optimization trials, scored on the validation split only; the vertical axis is clipped to the main band, and three trials fall outside it (6.5, 7.1 and 14.0 percent), marked by triangles at the top of panel (a). (b) fANOVA importance with 95% bootstrap confidence intervals, whose mean width is 45.3 percentage points. Section 7.3 discusses what this width does and does not allow to be concluded.
Figure 9. (a) Per-trial validation MAPE (grey) and running best (red) of the 24 Bayesian-optimization trials, scored on the validation split only; the vertical axis is clipped to the main band, and three trials fall outside it (6.5, 7.1 and 14.0 percent), marked by triangles at the top of panel (a). (b) fANOVA importance with 95% bootstrap confidence intervals, whose mean width is 45.3 percentage points. Section 7.3 discusses what this width does and does not allow to be concluded.
Energies 19 03930 g009
Table 1. Input fields of one complete sample, exactly as presented to the model. Three meteorological variables and nine historical load lags form the 12-dimensional input; the target is the load at the forecast slot. D denotes the forecast day and T the forecast time slot.
Table 1. Input fields of one complete sample, exactly as presented to the model. Three meteorological variables and nine historical load lags form the 12-dimensional input; the target is the load at the forecast slot. D denotes the forecast day and T the forecast time slot.
CategoryField Label (as Presented to the Model)UnitExample Value
Meteorological variableD day T time temperature°F91
D day T time dew point°F38
D day T time pressureinHg28.66
Historical loadD-3 day T-2 h loadMW31.07357
Historical loadD-3 day T-1 h loadMW32.19715
Historical loadD-3 day T loadMW32.55978
Historical loadD-2 day T-2 h loadMW30.97558
Historical loadD-2 day T-1 h loadMW32.2129
Historical loadD-2 day T loadMW33.24257
Historical loadD-1 day T-2 h loadMW30.11902
Historical loadD-1 day T-1 h loadMW30.87537
Historical loadD-1 day T loadMW31.16313
Prediction targetD day T time loadMW27.82631
Table 2. Hyperparameter search space for Bayesian optimization.
Table 2. Hyperparameter search space for Bayesian optimization.
HyperparameterRange/Choices
learning rate[1 × 10−5, 5 × 10−3] (log-scale)
weight decay[1 × 10−5, 1 × 10−1] (log-scale)
batch size{2, 4, 8}
accum steps{1, 2, 4}
activation{GELU, ReLU, tanh, sigmoid}
Table 3. Comparison of NTSForecast against classical, deep, published LLM-based and zero-shot foundation-model forecasters on the held-out evaluation period (7824 hourly points). Learned models are reported as mean ± standard deviation over five random seeds. The last column tests each row against Chronos-Bolt-Base, the baseline with the lowest MAPE, by the Diebold–Mariano statistic of Equation (14), whose loss is the squared error: a negative value favours the row, and n/N counts the seeds, out of those run, at which the row is significantly better at the 5% level. A significant difference in the opposite direction therefore counts as zero. These statistics are re-estimated under wider bandwidths later in this section. The statistic is a t-ratio computed over the 7824 evaluation points, so its magnitude reflects how consistent a difference is, not how large it is; the size of a difference is given by the metric columns.
Table 3. Comparison of NTSForecast against classical, deep, published LLM-based and zero-shot foundation-model forecasters on the held-out evaluation period (7824 hourly points). Learned models are reported as mean ± standard deviation over five random seeds. The last column tests each row against Chronos-Bolt-Base, the baseline with the lowest MAPE, by the Diebold–Mariano statistic of Equation (14), whose loss is the squared error: a negative value favours the row, and n/N counts the seeds, out of those run, at which the row is significantly better at the 5% level. A significant difference in the opposite direction therefore counts as zero. These statistics are re-estimated under wider bandwidths later in this section. The statistic is a t-ratio computed over the 7824 evaluation points, so its magnitude reflects how consistent a difference is, not how large it is; the size of a difference is given by the metric columns.
ModelMAERMSEMAPE/%SMAPE/%DM vs. Strongest Baseline
Ridge regression4.59266.396616.476219.1504+43.27 (p < 0.0001, 0/1)
Random forest3.75584.759013.931414.2221+48.93 (p < 0.0001, 0/1)
Gradient-boosted trees3.90525.045014.424914.8618+47.22 (p < 0.0001, 0/1)
LSTM15.3793 ± 0.232615.9156 ± 0.225056.3479 ± 0.886979.0527 ± 1.7183+164.79 (p < 0.0001, 0/5)
GRU15.2212 ± 0.452215.7619 ± 0.436255.7475 ± 1.726377.9277 ± 3.2754+163.31 (p < 0.0001, 0/5)
Transformer encoder12.4326 ± 0.271813.0874 ± 0.258145.1126 ± 1.036558.9986 ± 1.7102+134.58 (p < 0.0001, 0/5)
DLinear16.0893 ± 24.586916.7360 ± 24.647060.1021 ± 91.824352.7884 ± 74.2840+99.75 (p < 0.0001, 0/5)
PatchTST2.0278 ± 0.13832.6214 ± 0.17887.6149 ± 0.49207.5711 ± 0.5040+19.27 (p < 0.0001, 0/5)
TimeMoE-50M (zero-shot)1.52752.07065.77495.7500−3.63 (p = 0.0003, 1/1)
Sundial-128M (zero-shot)1.56522.10485.91865.8869−0.32 (p = 0.7491, 0/1)
Chronos-Bolt-Base (zero-shot)1.50442.10875.67725.6858reference
Parameter-matched MLP1.8333 ± 0.10712.3173 ± 0.13457.0374 ± 0.46246.9066 ± 0.3498+8.50 (p = 0.0012, 0/5)
GPT4TS1.6952 ± 0.03172.2016 ± 0.02906.4829 ± 0.13276.3895 ± 0.1314+4.57 (p = 0.0107, 0/5)
Time-LLM1.54692.07495.84915.8064−2.13 (p = 0.0334, 1/1)
NTSForecast (proposed)1.4926 ± 0.01132.0672 ± 0.00715.6621 ± 0.04485.6105 ± 0.0448−4.17 (p = 0.0002, 5/5)
Table 4. Channel ablations and two equal-length text controls: a word-order-scrambled task description with the same tokens, and a learnable constant prefix of the same length. All variants use the configuration, data and seeds of the full model; values are mean ± standard deviation over five seeds. * This variant has no sample-varying input and is retained only as a sanity check.
Table 4. Channel ablations and two equal-length text controls: a word-order-scrambled task description with the same tokens, and a learnable constant prefix of the same length. All variants use the configuration, data and seeds of the full model; values are mean ± standard deviation over five seeds. * This variant has no sample-varying input and is retained only as a sanity check.
Model VariantMAERMSEMAPE/%
Numerical channel only (text ablated)1.8248 ± 0.16122.4701 ± 0.21156.8280 ± 0.5833
Text channel only (numerical ablated) *1.6183 ± 0.07752.2403 ± 0.08676.1083 ± 0.2942
Word-order-scrambled task description (equal length)1.4942 ± 0.01232.0745 ± 0.01645.6582 ± 0.0390
Learnable constant prefix (equal length)1.5048 ± 0.00782.0949 ± 0.00815.7029 ± 0.0327
Full NTSForecast1.4926 ± 0.01132.0672 ± 0.00715.6621 ± 0.0448
Table 5. Best hyperparameter configuration located by the Bayesian optimization study on the validation split. It is used unchanged for the full model and for every variant reported in this manuscript.
Table 5. Best hyperparameter configuration located by the Bayesian optimization study on the validation split. It is used unchanged for the full model and for every variant reported in this manuscript.
HyperparameterBest Value
learning rate3.35 × 10−3
weight decay2.05 × 10−5
batch size2
accum steps1
activationReLU
validation MAPE5.23%
Table 6. Per-origin results under the main setting. The second column is the hold-out test window, the period over which that row’s errors are computed; it is not an input window. The third column is the 168 h record on which the trainable parameters are fitted, and validation lies between the two. Entries are MAPE (%) averaged over five random seeds; the final row is the mean ± standard deviation across origins. One hyperparameter configuration is used at every origin, with no per-origin tuning for any method.
Table 6. Per-origin results under the main setting. The second column is the hold-out test window, the period over which that row’s errors are computed; it is not an input window. The third column is the 168 h record on which the trainable parameters are fitted, and validation lies between the two. Entries are MAPE (%) averaged over five random seeds; the final row is the mean ± standard deviation across origins. One hyperparameter configuration is used at every origin, with no per-origin tuning for any method.
OriginHold-Out Test WindowTraining Record (168 h)NTSForecastChronos-Bolt (Zero-Shot)Time-LLMParameter-Matched MLP
Origin 19 February 2019 to 4 April 20199 December 2018 to 16 December 20185.465.445.577.09
Origin 24 April 2019 to 28 May 20192 February 2019 to 9 February 20195.405.455.717.20
Origin 328 May 2019 to 21 July 201928 March 2019 to 4 April 20195.635.796.016.74
Origin 422 July 2019 to 14 September 201921 May 2019 to 28 May 20195.665.665.756.81
Origin 514 September 2019 to 7 November 201915 July 2019 to 22 July 20196.236.056.397.04
Origin 67 November 2019 to 31 December 20197 September 2019 to 14 September 20195.595.675.667.35
Mean across origins5.66 ± 0.275.68 ± 0.215.85 ± 0.287.04 ± 0.21
Table 7. Computational cost under the protocol of Section 6.1, measured on the hardware and software stack of Section 5. NTSForecast with the frozen Qwen2.5-0.5B backbone is the reference configuration; the Llama-3.1-8B row is the largest rung of the ladder of Section 6.6, and LoRA represents backbone adaptation.
Table 7. Computational cost under the protocol of Section 6.1, measured on the hardware and software stack of Section 5. NTSForecast with the frozen Qwen2.5-0.5B backbone is the reference configuration; the Llama-3.1-8B row is the largest rung of the ladder of Section 6.6, and LoRA represents backbone adaptation.
ConfigurationTrainable ParamsPeak GPU Memory (MB)Wall-Clock per Epoch (s)Inference Latency (ms/Forecast)
Parameter-matched MLP1,841,793590.20.49
GPT4TS814,8499950.37.17
LoRA adaptation of the same backbone2,382,46517913.0139.34
NTSForecast (frozen Qwen2.5-0.5B)1,841,79314451.128.59
NTSForecast (frozen Llama-3.1-8B)8,404,99317,1642.551.17
Time-LLM143,958,91339,428935.1138.11
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xin, X.; Xu, J.; Wang, X.; Xu, W.; Yue, Y.; Wang, C.; Yang, J.; Sun, B. A Numerical–Textual Dual-Channel Forecasting Framework for Short-Term Load Forecasting. Energies 2026, 19, 3930. https://doi.org/10.3390/en19163930

AMA Style

Xin X, Xu J, Wang X, Xu W, Yue Y, Wang C, Yang J, Sun B. A Numerical–Textual Dual-Channel Forecasting Framework for Short-Term Load Forecasting. Energies. 2026; 19(16):3930. https://doi.org/10.3390/en19163930

Chicago/Turabian Style

Xin, Xiaohu, Jing Xu, Xin Wang, Weili Xu, Yang Yue, Chengshuai Wang, Junwei Yang, and Bing Sun. 2026. "A Numerical–Textual Dual-Channel Forecasting Framework for Short-Term Load Forecasting" Energies 19, no. 16: 3930. https://doi.org/10.3390/en19163930

APA Style

Xin, X., Xu, J., Wang, X., Xu, W., Yue, Y., Wang, C., Yang, J., & Sun, B. (2026). A Numerical–Textual Dual-Channel Forecasting Framework for Short-Term Load Forecasting. Energies, 19(16), 3930. https://doi.org/10.3390/en19163930

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop