IDEAS home Printed from https://ideas.repec.org/a/eee/renene/v252y2025ics0960148125011279.html

A novel attention-enhanced LLM approach for accurate power demand and generation forecasting

Author

Listed:
  • Hu, Zehuan
  • Gao, Yuan
  • Sun, Luning
  • Mae, Masayuki

Abstract

Accurate forecasting of electricity demand and generation is crucial for efficient grid management and sustainable energy planning. While large language models (LLM) have shown promise in various fields, their application to time series forecasting presents challenges, including limited cross-channel information capture and the complexity of prompt design. In this study, we propose a novel framework that combines multiple attention mechanisms with LLM, enabling effective feature extraction from both target and non-target variables without the need for prompt engineering. We conducted extensive experiments using real-world electricity demand and generation data from multiple regions in Japan to evaluate the proposed model. The results demonstrate that our model outperforms state-of-the-art LLM-based and other time-series forecasting models in terms of electricity demand and generation forecast task, achieving better performance than the latest LLM-based models without using prompts or increasing model size. Compared with the Long short-term memory network (LSTM), the mean absolute error (MAE) is reduced by 20.8%. Compared with the previous time-series LLM, the proposed model reduces memory usage by 49.3% and shortens training time by 35.7%. Additionally, the proposed model exhibits superior generalization ability, maintaining high performance even in zero-shot learning scenarios. Compared with the LSTM, MAE on the four test datasets is reduced by 16.6%.

Suggested Citation

  • Hu, Zehuan & Gao, Yuan & Sun, Luning & Mae, Masayuki, 2025. "A novel attention-enhanced LLM approach for accurate power demand and generation forecasting," Renewable Energy, Elsevier, vol. 252(C).
  • Handle: RePEc:eee:renene:v:252:y:2025:i:c:s0960148125011279
    DOI: 10.1016/j.renene.2025.123465
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0960148125011279
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.renene.2025.123465?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Khalili, Reza & Khaledi, Arian & Marzband, Mousa & Nematollahi, Amin Foroughi & Vahidi, Behrooz & Siano, Pierluigi, 2023. "Robust multi-objective optimization for the Iranian electricity market considering green hydrogen and analyzing the performance of different demand response programs," Applied Energy, Elsevier, vol. 334(C).
    2. Sekhar, Charan & Dahiya, Ratna, 2023. "Robust framework based on hybrid deep learning approach for short term load forecasting of building electricity demand," Energy, Elsevier, vol. 268(C).
    3. Wu, Tangjie & Ling, Qiang, 2024. "STELLM: Spatio-temporal enhanced pre-trained large language model for wind speed forecasting," Applied Energy, Elsevier, vol. 375(C).
    4. Xinli Yu & Zheng Chen & Yuan Ling & Shujing Dong & Zongyi Liu & Yanbin Lu, 2023. "Temporal Data Meets LLM -- Explainable Financial Time Series Forecasting," Papers 2306.11025, arXiv.org.
    5. González Grandón, T. & Schwenzer, J. & Steens, T. & Breuing, J., 2024. "Electricity demand forecasting with hybrid classical statistical and machine learning algorithms: Case study of Ukraine," Applied Energy, Elsevier, vol. 355(C).
    6. Yannick Oswald & Anne Owen & Julia K. Steinberger, 2020. "Publisher Correction: Large inequality in international and intranational energy footprints between income groups and across consumption categories," Nature Energy, Nature, vol. 5(4), pages 349-349, April.
    7. Olabi, A.G. & Abdelkareem, Mohammad Ali, 2022. "Renewable energy and climate change," Renewable and Sustainable Energy Reviews, Elsevier, vol. 158(C).
    8. Tao Hong & Pierre Pinson & Yi Wang & Rafal Weron & Dazhi Yang & Hamidreza Zareipour, 2020. "Energy forecasting: A review and outlook," WORking papers in Management Science (WORMS) WORMS/20/08, Department of Operations Research and Business Intelligence, Wroclaw University of Science and Technology.
    9. Wang, Wenyang & Luo, Yuping & Ma, Mingrui & Wang, Jinglin & Sui, Cong, 2025. "A novel forecasting framework leveraging large language model and machine learning for methanol price," Energy, Elsevier, vol. 320(C).
    10. Dingbang, Cang & Cang, Chen & Qing, Chen & Lili, Sui & Caiyun, Cui, 2021. "Does new energy consumption conducive to controlling fossil energy consumption and carbon emissions?-Evidence from China," Resources Policy, Elsevier, vol. 74(C).
    11. Yannick Oswald & Anne Owen & Julia K. Steinberger, 2020. "Large inequality in international and intranational energy footprints between income groups and across consumption categories," Nature Energy, Nature, vol. 5(3), pages 231-239, March.
    12. Evangelos Spiliotis, 2023. "Time Series Forecasting with Statistical, Machine Learning, and Deep Learning Methods: Past, Present, and Future," Palgrave Advances in Economics of Innovation and Technology, in: Mohsen Hamoudia & Spyros Makridakis & Evangelos Spiliotis (ed.), Forecasting with Artificial Intelligence, chapter 0, pages 49-75, Palgrave Macmillan.
    13. Hsiao, Chih-Tung & Liu, Chung-Shu & Chang, Dong-Shang & Chen, Chun-Cheng, 2018. "Dynamic modeling of the policy effect and development of electric power systems: A case in Taiwan," Energy Policy, Elsevier, vol. 122(C), pages 377-387.
    14. Hasnain Iftikhar & Josue E. Turpo-Chaparro & Paulo Canas Rodrigues & Javier Linkolk López-Gonzales, 2023. "Day-Ahead Electricity Demand Forecasting Using a Novel Decomposition Combination Method," Energies, MDPI, vol. 16(18), pages 1-22, September.
    15. Shanker, M. & Hu, M. Y. & Hung, M. S., 1996. "Effect of data standardization on neural network training," Omega, Elsevier, vol. 24(4), pages 385-397, August.
    16. Paria Akbary & Mohammad Ghiasi & Mohammad Reza Rezaie Pourkheranjani & Hamidreza Alipour & Noradin Ghadimi, 2019. "Extracting Appropriate Nodal Marginal Prices for All Types of Committed Reserve," Computational Economics, Springer;Society for Computational Economics, vol. 53(1), pages 1-26, January.
    17. Wu, Cong & Li, Jiaxuan & Liu, Wenjin & He, Yuzhe & Nourmohammadi, Samad, 2023. "Short-term electricity demand forecasting using a hybrid ANFIS–ELM network optimised by an improved parasitism–predation algorithm," Applied Energy, Elsevier, vol. 345(C).
    18. Han, Di & Guo, Wei & Chen, Han & Wang, Bocheng & Guo, Zikun, 2024. "LEST: Large language models and spatio-temporal data analysis for enhanced Sino-US exchange rate forecasting," International Review of Economics & Finance, Elsevier, vol. 96(PA).
    19. Velasquez, Carlos E. & Zocatelli, Matheus & Estanislau, Fidellis B.G.L. & Castro, Victor F., 2022. "Analysis of time series models for Brazilian electricity demand forecasting," Energy, Elsevier, vol. 247(C).
    20. Jiang, Yuqi & Gao, Tianlu & Dai, Yuxin & Si, Ruiqi & Hao, Jun & Zhang, Jun & Gao, David Wenzhong, 2022. "Very short-term residential load forecasting based on deep-autoformer," Applied Energy, Elsevier, vol. 328(C).
    21. Nahid Sultana & S. M. Zakir Hossain & Salma Hamad Almuhaini & Dilek Düştegör, 2022. "Bayesian Optimization Algorithm-Based Statistical and Machine Learning Approaches for Forecasting Short-Term Electricity Demand," Energies, MDPI, vol. 15(9), pages 1-26, May.
    22. Eric Cebekhulu & Adeiza James Onumanyi & Sherrin John Isaac, 2022. "Performance Analysis of Machine Learning Algorithms for Energy Demand–Supply Prediction in Smart Grids," Sustainability, MDPI, vol. 14(5), pages 1-26, February.
    23. Tian Guo & Emmanuel Hauptmann, 2024. "Fine-Tuning Large Language Models for Stock Return Prediction Using Newsflow," Papers 2407.18103, arXiv.org, revised Aug 2024.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Sun, Luning & Hu, Zehuan & Nitta, Mitsufusa & Ohsugi, Shimpei & Sasa, Yuki & Mae, Masayuki & Imaizumi, Taiji, 2025. "Bayesian robust reinforcement learning for coordinated air conditioning and energy storage system control in high-performance residential buildings under forecast uncertainty," Applied Energy, Elsevier, vol. 400(C).
    2. Li, Ke & Qin, Zheng & Mu, Yuchen & Wang, Haiyang & Bie, Qingfeng & Yin, Xianxin & Yan, Yi, 2025. "Transfer learning-based multi-energy load forecasting method for integrated energy system with zero-shot," Applied Energy, Elsevier, vol. 401(PC).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Jin, Haowei & Guo, Jue & Tang, Lei & Du, Pei, 2024. "Long-term electricity demand forecasting under low-carbon energy transition: Based on the bidirectional feedback between power demand and generation mix," Energy, Elsevier, vol. 286(C).
    2. Mustafa Saglam & Catalina Spataru & Omer Ali Karaman, 2023. "Forecasting Electricity Demand in Turkey Using Optimization and Machine Learning Algorithms," Energies, MDPI, vol. 16(11), pages 1-23, June.
    3. Lu, Wanbo & Liu, Qibo & Wang, Jie, 2024. "Effect of electricity policy uncertainty and carbon emission prices on electricity demand in China based on mixed-frequency data models," Utilities Policy, Elsevier, vol. 91(C).
    4. Yuru Guan & Jin Yan & Yuli Shan & Yannan Zhou & Ye Hang & Ruoqi Li & Yu Liu & Binyuan Liu & Qingyun Nie & Benedikt Bruckner & Kuishuang Feng & Klaus Hubacek, 2023. "Burden of the global energy price crisis on households," Nature Energy, Nature, vol. 8(3), pages 304-316, March.
    5. Pottier, Antonin, 2022. "Expenditure elasticity and income elasticity of GHG emissions: A survey of literature on household carbon footprint," Ecological Economics, Elsevier, vol. 192(C).
    6. Huwe, Vera & Steitz, Janek & Sigl-Glöckner, Philippa, 2022. "Kommunale Klimaschutzinvestitionen und deren Finanzierung: Eine Fallstudienanalyse," Papers 277902, Dezernat Zukunft - Institute for Macrofinance, Berlin.
    7. Li, Jiajia & Li, Houjian, 2022. "Spiritual support or living support: Which alleviates solid fuel use for rural households in ethnical minority regions of China?," Renewable Energy, Elsevier, vol. 189(C), pages 479-491.
    8. Martín Lallana & Adrián Almazán & Alicia Valero & Ángel Lareo, 2021. "Assessing Energy Descent Scenarios for the Ecological Transition in Spain 2020–2030," Sustainability, MDPI, vol. 13(21), pages 1-34, October.
    9. Shady Attia, 2020. "Spatial and Behavioral Thermal Adaptation in Net Zero Energy Buildings: An Exploratory Investigation," Sustainability, MDPI, vol. 12(19), pages 1-15, September.
    10. Pesantez, Jorge E. & Li, Binbin & Lee, Christopher & Zhao, Zhizhen & Butala, Mark & Stillwell, Ashlynn S., 2023. "A Comparison Study of Predictive Models for Electricity Demand in a Diverse Urban Environment," Energy, Elsevier, vol. 283(C).
    11. Hongliang Zhang & Jianhong E. Mu & Bruce A. McCarl & Jialing Yu, 2022. "The impact of climate change on global energy use," Mitigation and Adaptation Strategies for Global Change, Springer, vol. 27(1), pages 1-19, January.
    12. Joel Millward-Hopkins & Vivien Fisch-Romito & Sascha Nick & Emile Chevrel, 2025. "Energy requirements for securing wellbeing in Switzerland and the space for affluence and inequality," Nature Communications, Nature, vol. 16(1), pages 1-12, December.
    13. Tallgauer, Maximilian & Schank, Christoph, 2024. "Challenging the growth-prosperity Nexus: Redefining undergraduate economics education for the Anthropocene," Ecological Economics, Elsevier, vol. 216(C).
    14. Jacksohn, Anke & Tovar Reaños, Miguel Angel & Pothen, Frank & Rehdanz, Katrin, 2024. "Corrigendum to “Trends in household demand and greenhouse gas footprints in Germany: Evidence from microdata of the last 20 years” [Ecological Economics 208 (2023) 1077575]," Ecological Economics, Elsevier, vol. 216(C).
    15. Tang, Longhai & Mahmood, Hamid & Khalid, Samia, 2025. "Examining the impact of structural reforms on energy poverty: A threshold effect of energy affordability," Energy, Elsevier, vol. 320(C).
    16. Ferreira, João-Pedro & Marques, João Lourenço & Moreno Pires, Sara & Iha, Katsunori & Galli, Alessandro, 2023. "Supporting national-level policies for sustainable consumption in Portugal: A socio-economic Ecological Footprint analysis," Ecological Economics, Elsevier, vol. 205(C).
    17. Marlyne Sahakian & Malaïka Nagel & Valentine Donzelot & Orlane Moynat & Wladyslaw Senn, 2021. "Flying Less for Work and Leisure? Co-Designing a City-Wide Change Initiative in Geneva," Urban Planning, Cogitatio Press, vol. 6(2), pages 299-313.
    18. Sun, Shuyu & Tong, Kangkang, 2024. "Rural-urban inequality in energy use sufficiency and efficiency during a rapid urbanization period," Applied Energy, Elsevier, vol. 364(C).
    19. Lina Volodzkiene & Dalia Streimikiene, 2024. "Towards Energy Equity: Understanding and Addressing Multifaceted Energy Inequality," Energies, MDPI, vol. 17(17), pages 1-20, September.
    20. Ying Pan & Ke Shi & Zhongxu Zhao & Yao Li & Junxi Wu, 2024. "The effects of China’s poverty eradication program on sustainability and inequality," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 11(1), pages 1-15, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:renene:v:252:y:2025:i:c:s0960148125011279. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/renewable-energy .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.