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. 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.
    2. 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).
    3. 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).
    4. 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).
    5. Wu, Tangjie & Ling, Qiang, 2024. "STELLM: Spatio-temporal enhanced pre-trained large language model for wind speed forecasting," Applied Energy, Elsevier, vol. 375(C).
    6. 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).
    7. 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).
    8. 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.
    9. 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).
    10. 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.
    11. Olabi, A.G. & Abdelkareem, Mohammad Ali, 2022. "Renewable energy and climate change," Renewable and Sustainable Energy Reviews, Elsevier, vol. 158(C).
    12. 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.
    13. 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).
    14. 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).
    15. 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.
    16. 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).
    17. 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.
    18. 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.
    19. 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.
    20. 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.
    21. 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.
    22. 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.
    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. Sun, J. & Wen, W. & Wang, M. & Zhou, P., 2022. "Optimizing the provincial target allocation scheme of renewable portfolio standards in China," Energy, Elsevier, vol. 250(C).
    5. 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.
    6. Duro, Juan Antonio & Ramirez, Noemí & Wieland, Hanspeter & Wiedenhofer, Dominik & Haberl, Helmut, 2025. "Global inequalities in countries' demand for raw materials: Twenty years of expansion and insufficient convergence," Ecological Economics, Elsevier, vol. 234(C).
    7. 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).
    8. Kristian S. Nielsen & Kimberly A. Nicholas & Felix Creutzig & Thomas Dietz & Paul C. Stern, 2021. "The role of high-socioeconomic-status people in locking in or rapidly reducing energy-driven greenhouse gas emissions," Nature Energy, Nature, vol. 6(11), pages 1011-1016, November.
    9. Lange Steffen & Schmelzer Matthias, 2025. "Beyond Growth: Europe’s Path to Sustainability and Stability," Intereconomics: Review of European Economic Policy, Sciendo, vol. 60(6), pages 329-335.
    10. Huwe, Vera & Steitz, Janek & Sigl-Glöckner, Philippa, 2022. "Kommunale Klimaschutzinvestitionen und deren Finanzierung: Eine Fallstudienanalyse," Papers 277902, Dezernat Zukunft - Institute for Macrofinance, Berlin.
    11. Liang, Longwu & Chen, Mingxing & Zhang, Xiaoping & Sun, Mingxing, 2024. "Understanding changes in household carbon footprint during rapid urbanization in China," Energy Policy, Elsevier, vol. 185(C).
    12. 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.
    13. Lena Kilian & Anne Owen & Andy Newing & Diana Ivanova, 2022. "Exploring Transport Consumption-Based Emissions: Spatial Patterns, Social Factors, Well-Being, and Policy Implications," Sustainability, MDPI, vol. 14(19), pages 1-26, September.
    14. 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.
    15. 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.
    16. 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).
    17. Dorn, Franziska & Maxand, Simone & Kneib, Thomas, 2024. "The nonlinear dependence of income inequality and carbon emissions: Potentials for a sustainable future," Ecological Economics, Elsevier, vol. 216(C).
    18. Atif Maqbool Khan & Artur Wyrwa, 2024. "A Survey of Quantitative Techniques in Electricity Consumption—A Global Perspective," Energies, MDPI, vol. 17(19), pages 1-38, September.
    19. Duarte, Rosa & Miranda-Buetas, Sara & Sarasa, Cristina, 2021. "Household consumption patterns and income inequality in EU countries: Scenario analysis for a fair transition towards low-carbon economies," Energy Economics, Elsevier, vol. 104(C).
    20. Nicole B. Baker & Christian Haddad, 2024. "Private ownership and management control decisions in infrastructure from the perspective of Transaction Cost Theory: Evidence from emerging economies," Economics and Politics, Wiley Blackwell, vol. 36(2), pages 764-791, July.

    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.