arXiv:2610.28784cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28784

Extreme Low-State Quantized Transformer for Electricity-Load Forecasting

Muhammad Sabbir Alam, Harindra Sandun Mavikumbure, Victor Cobilean, Milos Manic, Jayasimha Atulasimha

Abstract

Aggressive low-state weight quantization can substantially reduce the representational flexibility of neural networks, making it difficult to preserve predictive performance when only a few discrete weight states are available. Here, we investigate this regime for Transformer-based electricity-load forecasting using 3-, 5-, 7-, and 16-state weight quantization across feedforward-only and attention-plus-feed-forward quantization. Two forecasting tasks are considered, predicting either the next hour or the next 24 hours from the preceding 48 hours, across two co-primary electricity-consumption datasets. Direct post-training quantization (PTQ) increased mean normalized root-mean-square error (NRMSE) relative to full precision by 6.25 and 7.04 percentage points in Datasets A and B, respectively, whereas quantization-aware fine-tuning (QAT-FT) recovered approximately 90.2% and 94.5% of these penalties. Quantization-aware training directly from random initialization (Scratch-QAT) also produced competitive low-state solutions without requiring a pretrained full-precision starting point, with particularly favorable behavior in the three-state regime. We further introduce accumulated-update thresholding, which accumulates optimizer-proposed target-weight changes before committing them to the continuous shadow weights. Relative to exactly paired Scratch-QAT controls, this reduced committed shadow-weight updates by approximately 99.7% and discrete quantized state transitions by approximately 77–80%, while mean NRMSE changed by only +0.042 and +0.197 percentage points in Datasets A and B. These results demonstrate that useful Transformer forecasting can be retained under highly discrete weight representations while strongly suppressing committed and discrete target-state activity, highlighting a promising route toward edge-based load forecasting in which multilevel synaptic devices could natively encode low-state weights and support compact, low-activity, resource-efficient learning and inference.

1 Introduction

Deploying neural networks under severe numerical constraints requires more than simply reducing parameter precision after training. When weights are restricted to only a few discrete states, the representational flexibility available to the model becomes strongly limited, making it increasingly difficult to preserve full-precision behavior. This aggressive low-state regime is particularly relevant when model parameters must ultimately be represented by a small number of accessible levels, but it also poses a fundamental learning question: how much predictive capability can be retained when the weight space itself is highly discrete? Addressing this question requires training strategies designed for low-state operation rather than treating quantization only as a final compression step (Hubara et al., 2018; Esser et al., 2020; Nagel et al., 2021; Lin et al., 2024; Shao et al., 2024). Recent work continues to show that preserving accuracy becomes particularly demanding in highly constrained low-bit Transformer representations (Lin et al., 2024; Shao et al., 2024).

Post-training quantization (PTQ) is attractive because it can reduce weight precision without modifying the original training procedure or requiring end-to-end retraining. At moderate precision, this simplicity can make PTQ an efficient route from a pretrained full-precision model to a lower-precision representation, and improved rounding, reconstruction, and calibration methods have extended its reach toward lower bit widths (Nagel et al., 2020; Li et al., 2021; Frantar et al., 2023; Xiao et al., 2023; Lin et al., 2024; Shao et al., 2024). However, the difficulty becomes much greater when the available weight space collapses to only a few discrete states, where coarse projection can substantially disturb the learned solution. Quantization-aware training (QAT) addresses this limitation by incorporating the low-state representation into training itself, allowing the model to adapt while quantization is active (Krishnamoorthi, 2018; Jacob et al., 2018; Esser et al., 2020; Nagel et al., 2021).

When such quantization is incorporated during training, a common pathway is quantization-aware fine-tuning (QAT-FT), which begins from a pretrained full-precision solution and adapts it to the discrete weight space (Nagel et al., 2021). This raises a different question from whether QAT can recover PTQ-induced degradation: must a useful extremely low-state model originate from a full-precision precursor at all? Prior studies show that neural networks can be optimized directly with very low-bit weights and activations (Hubara et al., 2018; Esser et al., 2020). If competitive solutions can emerge directly from random initialization while quantization is active from the outset, low-state learning need not be viewed only as adaptation of an already trained continuous model. Direct random-initialized QAT (Scratch-QAT) therefore provides a complementary test of whether the constrained weight space itself can support effective learning without any pretraining.

Low-state learning also raises an issue not captured by forecasting accuracy alone: how often training actually requires a committed parameter change or a transition between discrete weight states. This distinction is relevant to in-memory and synaptic-device computing, where discrete weights can be represented by programmable conductance states and physical reprogramming carries implementation costs (Le Gallo et al., 2018; Sebastian et al., 2020; Azam et al., 2020; Misba et al., 2022; Alam et al., 2024; Dhull et al., 2025; Sehgal et al., 2025; Aguirre et al., 2024; Jiang et al., 2026).

Mixed-precision computational-memory work has further shown that small numerical updates can be accumulated at higher precision and transferred to device states only when sufficiently large relative to programming granularity (Nandakumar et al., 2020). We therefore separate optimizer-proposed updates from committed weight updates and actual discrete state transitions, and ask whether small adjustments can be accumulated before commitment. Such a strategy could reduce state-changing activity while preserving gradual optimization, with prospective relevance to multilevel synaptic devices and resource-constrained edge hardware (Sebastian et al., 2020; Alam et al., 2024; Dhull et al., 2025; Bettayeb et al., 2024).

These questions are particularly relevant to electricity-load forecasting, where models must capture recurring temporal structure and short-term variability over near-term and multi-step horizons (Hong and Fan, 2016; Amarasinghe et al., 2017; Al Misba et al., 2023). Transformer and attention-based architectures have become prominent in time-series forecasting, with recent developments targeting interpretable multi-horizon prediction, long-sequence efficiency, decomposition, patch-based representations, and variable-centric modeling (Lim et al., 2021; Zhou et al., 2021; Wu et al., 2021; Zhou et al., 2022; Nie et al., 2023; Liu et al., 2024; Su et al., 2025). Transformer-based methods have also been applied directly to electricity-load forecasting (Chan and Yeo, 2024). We therefore investigate aggressive low-state quantization in this setting. The Transformer (Vaswani et al., 2017) is well suited to this study because its self-attention mechanism can model temporal dependencies across the input sequence, while its distinct attention and feed-forward weight blocks provide two major parameter groups whose sensitivity to severe quantization can be examined separately. By evaluating both one-hour and 24-hour forecasting across two co-primary electricity-consumption datasets with contrasting load characteristics, this study examines whether extremely low-state Transformer learning remains effective across different forecasting horizons, demand patterns, and quantization scopes.

This study makes five principal contributions. First, it establishes the behavior of Transformer forecasting under aggressive 3-, 5-, 7-, and 16-state weight quantization across feed-forward-only and attention-plus-feed-forward quantization, showing that direct PTQ becomes particularly damaging at the lowest state counts, whereas performance progressively approaches full-precision behavior as state resolution increases. Second, it shows that quantization-aware fine-tuning recovers most of the severe PTQ penalty, recovering approximately 90.2% in Dataset A and 94.5% in Dataset B. Third, it demonstrates that training directly from random initialization under quantized forward conditions—Scratch-QAT—can also produce competitive low-state solutions without requiring a pretrained full-precision starting point, with particularly favorable behavior in the most restrictive three-state regime. Fourth, it introduces accumulated-update thresholding, in which small optimizer-proposed weight changes are accumulated before being committed to the target weights; only committed changes can subsequently alter the corresponding quantized weight from one discrete state to another. This approach reduces committed weight updates by approximately 99.7% and discrete state transitions by approximately 77–80% while producing only small mean changes in forecasting error, demonstrating that optimizer activity can be strongly decoupled from the weight

Table 1: Co-primary datasets and forecasting protocol.

Dataset ADataset B
SourceUCI ElectricityLoadDiagrams20112014UCI Individual Household Electric Power Consumption
RoleCo-primaryCo-primary dataset
SeriesMT_004, MT_022, MT_324Household_Power
Distinct series31
Modeling resolutionHourly mean from 15-minute measurementsHourly
Study period2012-01-01 through 2014-12-312007-01-01 through 2009-12-31
Input window48 h48 h
Forecast tasksH1 (48→1 h), H24 (48→24 h)H1 (48→1 h), H24 (48→24 h)
H24 strategyDirect multi-output forecastingDirect multi-output forecasting
Final training period2012-01-01 through 2014-06-302007-01-01 through 2009-06-30 23:00
Final test period2014-07-01 through 2014-12-312009-07-01 through 2009-12-31
Final sample countsH1 train = 21,693; H1 test = 4,416; H24 train = 21,601; H24 test = 4,393H1 train = 19,558; H1 test = 4,059; H24 train = 18,556; H24 test = 3,875
Data-validity handlingMain modeling series not interpolated; samples touching identified DST artifact hours were excluded.An hourly value is valid only when exactly 60 valid minute-level Global_active_power measurements are present. Invalid hours are retained as NaN. No interpolation or imputation is performed. Forecast samples are retained only when all 48 input hours and all target hours are finite.

changes that are actually committed and from those that change the discrete state representation. Finally, the principal PTQ, QAT-FT, and thresholding effects reproduce across the two co-primary datasets and all four distinct load-series analysis units, including transfer of the methodology to Dataset B without Dataset-B-specific retuning, supporting the robustness of the observed low-state learning behavior across heterogeneous electricity-demand settings.

The remainder of this paper is organized as follows. Section 2 describes the datasets, forecasting protocol, quantized Transformer framework, training strategies, and evaluation methods. Section 3 presents the main forecasting, quantization, thresholding, and cross-dataset results. Section 4 discusses the implications, limitations, and prospective hardware relevance of the findings. Section 5 concludes the paper.

References (37)