IDEAS home Printed from https://ideas.repec.org/a/eee/finlet/v85y2025ipds1544612325014655.html

Volatility and value-at-risk forecasting using BERT and transformer models incorporating investors' textual sentiments

Author

Listed:
  • Song, Yuping
  • Zhang, Yilun
  • Huang, Jiefei
  • Yang, Aijun

Abstract

Effective risk management contributes to the stability of financial markets. This study investigates how decomposed investor sentiments affect financial volatility, emphasizing the role of sentiment polarity. Using BERT to extract positive and negative sentiment indices from stock forums, we find that negative sentiment has a stronger effect on realized volatility than positive sentiment, reflecting asymmetric investor reactions. Integrating these decomposed sentiment indices with technical indicators into a Transformer model significantly improves the forecasting of both realized volatility and value-at-risk (VaR). Our findings underscore the economic relevance of distinguishing sentiment polarity and offer novel insights into combining fine-grained sentiment features with deep learning for financial risk forecasting.

Suggested Citation

  • Song, Yuping & Zhang, Yilun & Huang, Jiefei & Yang, Aijun, 2025. "Volatility and value-at-risk forecasting using BERT and transformer models incorporating investors' textual sentiments," Finance Research Letters, Elsevier, vol. 85(PD).
  • Handle: RePEc:eee:finlet:v:85:y:2025:i:pd:s1544612325014655
    DOI: 10.1016/j.frl.2025.108210
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.frl.2025.108210?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. Bolin Lei & Zhengdi Liu & Yuping Song, 2021. "On stock volatility forecasting based on text mining and deep learning under high‐frequency data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(8), pages 1596-1610, December.
    2. Llacay, Bàrbara & Peffer, Gilbert, 2017. "Impact of value-at-risk models on market stability," Journal of Economic Dynamics and Control, Elsevier, vol. 82(C), pages 223-256.
    3. Fulvio Corsi, 2009. "A Simple Approximate Long-Memory Model of Realized Volatility," Journal of Financial Econometrics, Oxford University Press, vol. 7(2), pages 174-196, Spring.
    4. Andersen, Torben G & Bollerslev, Tim, 1998. "Answering the Skeptics: Yes, Standard Volatility Models Do Provide Accurate Forecasts," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 39(4), pages 885-905, November.
    5. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    6. Liu, Yanchu & Zhang, Yu & Peng, Xinyi, 2024. "Textual analysis and gold futures price forecasting: Evidence from the Chinese market," Finance Research Letters, Elsevier, vol. 69(PA).
    7. Winston Wei Dou & Xiang Fang & Andrew W. Lo & Harald Uhlig, 2023. "Macro-Finance Models with Nonlinear Dynamics," Annual Review of Financial Economics, Annual Reviews, vol. 15(1), pages 407-432, November.
    8. Jing, Zhongbo & Li, Qin & Zhao, Hongyi & Zhao, Yang, 2024. "Predicting stock price crash risk in China: A modified graph WaveNet model," Finance Research Letters, Elsevier, vol. 64(C).
    9. Bams, Dennis & Blanchard, Gildas & Lehnert, Thorsten, 2017. "Volatility measures and Value-at-Risk," International Journal of Forecasting, Elsevier, vol. 33(4), pages 848-863.
    10. Liu, Yingnan & Bu, Ningbo & Li, Zhiqiang & Zhang, Yongmin & Zhao, Zhenyu, 2025. "AT-FinGPT: Financial risk prediction via an audio-text large language model," Finance Research Letters, Elsevier, vol. 77(C).
    11. repec:bla:jfinan:v:59:y:2004:i:3:p:1259-1294 is not listed on IDEAS
    12. Peter Christoffersen, 2004. "Backtesting Value-at-Risk: A Duration-Based Approach," Journal of Financial Econometrics, Oxford University Press, vol. 2(1), pages 84-108.
    13. Ito, Katsuki & Iima, Hitoshi & Kitamura, Yoshihiro, 2022. "LSTM forecasting foreign exchange rates using limit order book," Finance Research Letters, Elsevier, vol. 47(PA).
    Full references (including those not matched with items on IDEAS)

    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. Yuetong Zhang & Ying Peng & Yuping Song, 2025. "Realized Volatility Forecasting for Stocks and Futures Indices with Rolling CEEMDAN and Machine Learning Models," Computational Economics, Springer;Society for Computational Economics, vol. 66(2), pages 1215-1268, August.
    2. Christophe Chorro & Florian Ielpo & Benoît Sévi, 2017. "The contribution of jumps to forecasting the density of returns," Post-Print halshs-01442618, HAL.
    3. Raggi, Davide & Bordignon, Silvano, 2012. "Long memory and nonlinearities in realized volatility: A Markov switching approach," Computational Statistics & Data Analysis, Elsevier, vol. 56(11), pages 3730-3742.
    4. Liu, Lily Y. & Patton, Andrew J. & Sheppard, Kevin, 2015. "Does anything beat 5-minute RV? A comparison of realized measures across multiple asset classes," Journal of Econometrics, Elsevier, vol. 187(1), pages 293-311.
    5. Vassallo, Danilo & Buccheri, Giuseppe & Corsi, Fulvio, 2021. "A DCC-type approach for realized covariance modeling with score-driven dynamics," International Journal of Forecasting, Elsevier, vol. 37(2), pages 569-586.
    6. Mei, Dexiang & Liu, Jing & Ma, Feng & Chen, Wang, 2017. "Forecasting stock market volatility: Do realized skewness and kurtosis help?," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 481(C), pages 153-159.
    7. Kim Christensen & Mathias Siggaard & Bezirgen Veliyev, 2023. "A Machine Learning Approach to Volatility Forecasting," Journal of Financial Econometrics, Oxford University Press, vol. 21(5), pages 1680-1727.
    8. Filip Žikeš & Jozef Baruník, 2016. "Semi-parametric Conditional Quantile Models for Financial Returns and Realized Volatility," Journal of Financial Econometrics, Oxford University Press, vol. 14(1), pages 185-226.
    9. Fei, Tianlun & Liu, Xiaoquan & Wen, Conghua, 2019. "Cross-sectional return dispersion and volatility prediction," Pacific-Basin Finance Journal, Elsevier, vol. 58(C).
    10. Degiannakis, Stavros & Filis, George, 2017. "Forecasting oil price realized volatility using information channels from other asset classes," Journal of International Money and Finance, Elsevier, vol. 76(C), pages 28-49.
    11. Yang, Cai & Gong, Xu & Zhang, Hongwei, 2019. "Volatility forecasting of crude oil futures: The role of investor sentiment and leverage effect," Resources Policy, Elsevier, vol. 61(C), pages 548-563.
    12. Nikolaos A. Kyriazis, 2021. "A Survey on Volatility Fluctuations in the Decentralized Cryptocurrency Financial Assets," JRFM, MDPI, vol. 14(7), pages 1-46, June.
    13. Martin Magris, 2019. "A Vine-copula extension for the HAR model," Papers 1907.08522, arXiv.org.
    14. Todorova, Neda & Souček, Michael, 2014. "The impact of trading volume, number of trades and overnight returns on forecasting the daily realized range," Economic Modelling, Elsevier, vol. 36(C), pages 332-340.
    15. Manabu Asai & Michael McAleer & Marcelo C. Medeiros, 2012. "Asymmetry and Long Memory in Volatility Modeling," Journal of Financial Econometrics, Oxford University Press, vol. 10(3), pages 495-512, June.
    16. Liao, Yin, 2013. "The benefit of modeling jumps in realized volatility for risk prediction: Evidence from Chinese mainland stocks," Pacific-Basin Finance Journal, Elsevier, vol. 23(C), pages 25-48.
    17. Li, Wenlan & Cheng, Yuxiang & Fang, Qiang, 2020. "Forecast on silver futures linked with structural breaks and day-of-the-week effect," The North American Journal of Economics and Finance, Elsevier, vol. 53(C).
    18. Zhang, Hongwei & Zhao, Xinyi & Gao, Wang & Niu, Zibo, 2023. "The role of higher moments in predicting China's oil futures volatility: Evidence from machine learning models," Journal of Commodity Markets, Elsevier, vol. 32(C).
    19. Yuping Song & Bolin Lei & Xiaolong Tang & Chen Li, 2024. "Volatility forecasting for stock market index based on complex network and hybrid deep learning model," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(3), pages 544-566, April.
    20. Louzis, Dimitrios P. & Xanthopoulos-Sisinis, Spyros & Refenes, Apostolos P., 2014. "Realized volatility models and alternative Value-at-Risk prediction strategies," Economic Modelling, Elsevier, vol. 40(C), pages 101-116.

    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:finlet:v:85:y:2025:i:pd:s1544612325014655. 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.elsevier.com/locate/frl .

    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.