IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2608.05755.html

Cross-Sectional Heterogeneity in LSTM Networks for Financial Time Series

Author

Listed:
  • Julius Dobelt

Abstract

Predicting financial asset returns remains one of the most difficult challenges in empirical finance, driven by the low signal-to-noise ratio and the semi-strong form of market efficiency. While deep learning models, especially LSTM networks, have shown promise in capturing temporal dependencies, standard architectures often struggle to account for the cross-sectional heterogeneity of asset returns. This paper proposes a novel architectural extension to the basic LSTM model designed to improve both predictive accuracy and model interpretability. The framework integrates macro-financial covariates to capture broader economic signals and learnable sector embeddings to encompass heterogeneity by sector. The trading strategy involves constructing a long-short portfolio based on daily directional forecasts for each S&P 500 constituent, targeting stocks expected to under- or outperform the cross-sectional median return of the S&P 500. Model Performance is evaluated against three competitive benchmarks: a basic LSTM, a Random Forest model and a traditional market buy-and-hold strategy. The empirical results demonstrate that the LSTM with sector embeddings outperforms all benchmarks across key risk and return metrics. By utilizing sector embeddings, the model explicitly incorporates cross-sectional heterogeneity, allowing it to adapt to varying industry dynamics within the market. To address the black-box nature of deep learning, I use latent space visualizations to analyse how the model differentiates between sectors, providing insights into the internal representation of the sectors in the LSTM. The impact of the sector information can be quantified using a novel contribution metric by inspecting the weights of the LSTM. The predictive signal is driven by a short-term reversal factor and an industry momentum factor.

Suggested Citation

  • Julius Dobelt, 2026. "Cross-Sectional Heterogeneity in LSTM Networks for Financial Time Series," Papers 2608.05755, arXiv.org, revised Aug 2026.
  • Handle: RePEc:arx:papers:2608.05755
    as

    Download full text from publisher

    File URL: https://arxiv.org/pdf/2608.05755
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Ivo Welch & Amit Goyal, 2008. "A Comprehensive Look at The Empirical Performance of Equity Premium Prediction," The Review of Financial Studies, Society for Financial Studies, vol. 21(4), pages 1455-1508, July.
    2. Tarun Chordia, 2005. "An Empirical Analysis of Stock and Bond Market Liquidity," The Review of Financial Studies, Society for Financial Studies, vol. 18(1), pages 85-129.
    3. Jegadeesh, Narasimhan & Titman, Sheridan, 1993. "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency," Journal of Finance, American Finance Association, vol. 48(1), pages 65-91, March.
    4. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    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. Xu, Dezhong & Li, Bin & Singh, Tarlok & Chen, Xiaoyue & Li, Jinze, 2025. "Cross-market overnight time-series momentum," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 105(C).
    2. Hou, Yang & Meng, Jiayin, 2018. "The momentum effect in the Chinese market and its relationship with the simultaneous and the lagged investor sentiment," MPRA Paper 94838, University Library of Munich, Germany.
    3. Andrea Bucci, 2020. "Realized Volatility Forecasting with Neural Networks," Journal of Financial Econometrics, Oxford University Press, vol. 18(3), pages 502-531.
    4. Maik Dierkes & Sebastian Schroen, 2023. "Betting against sentiment? Seemingly unrelated anomalies and the low‐risk effect," Review of Financial Economics, John Wiley & Sons, vol. 41(2), pages 152-176, April.
    5. de Oliveira Souza, Thiago, 2019. "A critique of momentum anomalies," Discussion Papers on Economics 5/2019, University of Southern Denmark, Department of Economics.
    6. Langlois, Hugues, 2020. "Measuring skewness premia," Journal of Financial Economics, Elsevier, vol. 135(2), pages 399-424.
    7. Christian Fieberg & Daniel Metko & Thorsten Poddig & Thomas Loy, 2023. "Machine learning techniques for cross-sectional equity returns’ prediction," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 45(1), pages 289-323, March.
    8. Yuan, Xianghui & Li, Xiang, 2022. "Delta-hedging demand and intraday momentum: Evidence from China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 600(C).
    9. Clarke, Charles, 2022. "The level, slope, and curve factor model for stocks," Journal of Financial Economics, Elsevier, vol. 143(1), pages 159-187.
    10. Jondeau, Eric & Zhang, Qunzi & Zhu, Xiaoneng, 2019. "Average skewness matters," Journal of Financial Economics, Elsevier, vol. 134(1), pages 29-47.
    11. Golab, Anna & Bannigidadmath, Deepa & Pham, Thach Ngoc & Thuraisamy, Kannan, 2022. "Economic policy uncertainty and industry return predictability – Evidence from the UK," International Review of Economics & Finance, Elsevier, vol. 82(C), pages 433-447.
    12. Shafiqur Rahman & Matthew J. Schneider, 2019. "Tests of Alternative Asset Pricing Models Using Individual Security Returns and a New Multivariate F-Test," Review of Pacific Basin Financial Markets and Policies (RPBFMP), World Scientific Publishing Co. Pte. Ltd., vol. 22(01), pages 1-34, March.
    13. Dezhong Xu & Bin Li & Tarlok Singh & Jung Chul Park, 2025. "Cross‐asset time‐series momentum strategy: A new perspective," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 65(3), pages 2387-2419, September.
    14. Xin Chen & Wei He & Libin Tao & Jianfeng Yu, 2023. "Attention and Underreaction-Related Anomalies," Management Science, INFORMS, vol. 69(1), pages 636-659, January.
    15. Ian W. R. Martin & Christian Wagner, 2019. "What Is the Expected Return on a Stock?," Journal of Finance, American Finance Association, vol. 74(4), pages 1887-1929, August.
    16. Grønborg, Niels S. & Lunde, Asger & Olesen, Kasper V. & Vander Elst, Harry, 2022. "Realizing correlations across asset classes," Journal of Financial Markets, Elsevier, vol. 59(PA).
    17. Niels S. Grønborg & Asger Lunde & Kasper V. Olesen & Harry Vander Elst, 2018. "Realizing Correlations Across Asset Classes," CREATES Research Papers 2018-37, Department of Economics and Business Economics, Aarhus University.
    18. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    19. Wen, Zhuzhu & Gong, Xu & Ma, Diandian & Xu, Yahua, 2021. "Intraday momentum and return predictability: Evidence from the crude oil market," Economic Modelling, Elsevier, vol. 95(C), pages 374-384.
    20. Bams, Dennis & Honarvar, Iman, 2021. "VIX and liquidity premium," International Review of Financial Analysis, Elsevier, vol. 74(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2608.05755. 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: arXiv administrators (email available below). General contact details of provider: https://arxiv.org/ .

    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.