All models

Load Forecasting LSTM (STLF)

A BiLSTM encoder-decoder that forecasts next-day electric load using feature weighting and similar-day attention.

Time series · 873 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (185 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
754.9K
Operations
873
Framework
PyTorch
Recurrent
Yes
Published
IEEE Access (arXiv 2023)
Cited by
8 (as of 28 October 2026)
Authors
Jing Xiong, Yu Zhang
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17972
Graph hash
d0a563171f3b4a241352aabb2b0a131acc52c9dee2dfb4e9f33aa9b732e5c1c5
Skeleton hash
a1cd14a894d0f0eb4515e0b5ba6b9c11243d2aa0d863a7c398c256d19479b825
Architecture hash
e07a563a64a97ac78091c70e18f91973dc92cf4733c6a725ebd1bad9a634c1e3
Diagram SHA-256
77b6380cf50a87a337a9fe11ac63678f1cba2c824ef4aedb33bd24190006b7e3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This is the LSTM implementation (PM-LSTM) of a deep learning framework for short-term load forecasting, the prediction of electricity demand on a power grid. The paper notes that short-term load forecasting is indispensable for day-ahead unit commitment, market clearing and economic load dispatch.

The framework has three parts: time-varying feature weighting, hierarchical temporal attention and feature-reinforced error correction. A feature-weighting layer, kept separate from the encoder, assigns each input feature a different level of importance at each time step. The predictor is a recurrent encoder-decoder in which a bi-directional recurrent layer is used for both encoder and decoder. Its hierarchical attention adds a selection of similar days, which re-evaluates the importance of historical information at each time step. The error-correction module is initialized from the trained forecaster and trained on forecast errors with the feature-weighting layer fixed.

In the paper's setup the model forecasts the next 24 hours of load from the previous seven days of load and features. The paper evaluates on two public datasets, ISO New England and North-American Utility, and reports that PM-LSTM and its GRU counterpart had the smallest forecasting errors among the compared models on both. The same feature weighting and error correction were also applied to the transformer-based Informer to test how well they generalize.

Key idea. The paper builds a modular load forecaster from time-varying feature weighting, a recurrent encoder-decoder with similar-day attention, and error correction transferred from the trained forecaster.

  • PM-LSTM
  • ANLFF
  • attention-based neural load forecasting
  • short-term load forecasting
  • STLF
  • electric load forecasting
  • feature weighting
  • similar day attention
  • error correction
  • LSTM load forecasting

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{xiong2023unifyingframeworkattentionbasedneural,
      title={A Unifying Framework of Attention-based Neural Load Forecasting}, 
      author={Jing Xiong and Yu Zhang},
      year={2023},
      eprint={2305.05082},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1109/ACCESS.2023.3275095},
      url={https://arxiv.org/abs/2305.05082}, 
}