IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2407.18645.html
   My bibliography  Save this paper

Contrastive Learning of Asset Embeddings from Financial Time Series

Author

Listed:
  • Rian Dolphin
  • Barry Smyth
  • Ruihai Dong

Abstract

Representation learning has emerged as a powerful paradigm for extracting valuable latent features from complex, high-dimensional data. In financial domains, learning informative representations for assets can be used for tasks like sector classification, and risk management. However, the complex and stochastic nature of financial markets poses unique challenges. We propose a novel contrastive learning framework to generate asset embeddings from financial time series data. Our approach leverages the similarity of asset returns over many subwindows to generate informative positive and negative samples, using a statistical sampling strategy based on hypothesis testing to address the noisy nature of financial data. We explore various contrastive loss functions that capture the relationships between assets in different ways to learn a discriminative representation space. Experiments on real-world datasets demonstrate the effectiveness of the learned asset embeddings on benchmark industry classification and portfolio optimization tasks. In each case our novel approaches significantly outperform existing baselines highlighting the potential for contrastive learning to capture meaningful and actionable relationships in financial data.

Suggested Citation

  • Rian Dolphin & Barry Smyth & Ruihai Dong, 2024. "Contrastive Learning of Asset Embeddings from Financial Time Series," Papers 2407.18645, arXiv.org.
  • Handle: RePEc:arx:papers:2407.18645
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Se-Hak Chun & Young-Woong Ko, 2020. "Geometric Case Based Reasoning for Stock Market Prediction," Sustainability, MDPI, vol. 12(17), pages 1-11, September.
    2. William F. Sharpe, 1964. "Capital Asset Prices: A Theory Of Market Equilibrium Under Conditions Of Risk," Journal of Finance, American Finance Association, vol. 19(3), pages 425-442, September.
    3. Bhaskarjit Sarmah & Nayana Nair & Dhagash Mehta & Stefano Pasquali, 2022. "Learning Embedded Representation of the Stock Correlation Matrix using Graph Machine Learning," Papers 2207.07183, arXiv.org.
    4. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    5. Weiner, Christian, 2005. "The impact of industry classification schemes on financial research," SFB 649 Discussion Papers 2005-062, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    6. 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. Rian Dolphin & Barry Smyth & Ruihai Dong, 2023. "Industry Classification Using a Novel Financial Time-Series Case Representation," Papers 2305.00245, arXiv.org.
    2. Giovanni Bonaccolto & Massimiliano Caporin & Sandra Paterlini, 2018. "Asset allocation strategies based on penalized quantile regression," Computational Management Science, Springer, vol. 15(1), pages 1-32, January.
    3. Csóka Péter & Pintér Miklós, 2016. "On the Impossibility of Fair Risk Allocation," The B.E. Journal of Theoretical Economics, De Gruyter, vol. 16(1), pages 143-158, January.
    4. Ali Habibnia & Esfandiar Maasoumi, 2021. "Forecasting in Big Data Environments: An Adaptable and Automated Shrinkage Estimation of Neural Networks (AAShNet)," Journal of Quantitative Economics, Springer;The Indian Econometric Society (TIES), vol. 19(1), pages 363-381, December.
    5. Cheng Juan Zhan & William Rea & Alethea Rea, 2016. "Stock Selection as a Problem in Phylogenetics—Evidence from the ASX," IJFS, MDPI, vol. 4(4), pages 1-19, September.
    6. Paul Handro & Bogdan Dima, 2024. "Analyzing Financial Markets Efficiency: Insights from a Bibliometric and Content Review," Journal of Financial Studies, Institute of Financial Studies, vol. 16(9), pages 119-175, May.
    7. Matthias Raddant & Friedrich Wagner, 2017. "Transitions in the stock markets of the US, UK and Germany," Quantitative Finance, Taylor & Francis Journals, vol. 17(2), pages 289-297, February.
    8. Onali, Enrico & Goddard, John, 2011. "Are European equity markets efficient? New evidence from fractal analysis," International Review of Financial Analysis, Elsevier, vol. 20(2), pages 59-67, April.
    9. Guillaume Coqueret, 2016. "Empirical properties of a heterogeneous agent model in large dimensions," Post-Print hal-02088097, HAL.
    10. Raddant, Matthias & Wagner, Friedrich, 2013. "Phase transition in the S&P stock market," Kiel Working Papers 1846, Kiel Institute for the World Economy (IfW Kiel).
    11. Nolan Alexander & William Scherer, 2024. "Using Machine Learning to Forecast Market Direction with Efficient Frontier Coefficients," Papers 2404.00825, arXiv.org.
    12. Bilel Jarraya & Abdelfettah Bouri, 2013. "A Theoretical Assessment on Optimal Asset Allocations in Insurance Industry," International Journal of Finance & Banking Studies, Center for the Strategic Studies in Business and Finance, vol. 2(4), pages 30-44, October.
    13. Jung, Sean S. & Chang, Woojin, 2016. "Clustering stocks using partial correlation coefficients," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 462(C), pages 410-420.
    14. Zhaofeng Zhang & Banghao Chen & Shengxin Zhu & Nicolas Langren'e, 2024. "Quantformer: from attention to profit with a quantitative transformer trading strategy," Papers 2404.00424, arXiv.org, revised Oct 2024.
    15. DiTraglia, Francis J. & Gerlach, Jeffrey R., 2013. "Portfolio selection: An extreme value approach," Journal of Banking & Finance, Elsevier, vol. 37(2), pages 305-323.
    16. Mbairadjim Moussa, A. & Sadefo Kamdem, J. & Shapiro, A.F. & Terraza, M., 2014. "CAPM with fuzzy returns and hypothesis testing," Insurance: Mathematics and Economics, Elsevier, vol. 55(C), pages 40-57.
    17. Rian Dolphin & Barry Smyth & Ruihai Dong, 2022. "A Multimodal Embedding-Based Approach to Industry Classification in Financial Markets," Papers 2211.06378, arXiv.org.
    18. Owen Futter & Blanka Horvath & Magnus Wiese, 2023. "Signature Trading: A Path-Dependent Extension of the Mean-Variance Framework with Exogenous Signals," Papers 2308.15135, arXiv.org, revised Aug 2023.
    19. M. Raddant & T. Di Matteo, 2023. "A look at financial dependencies by means of econophysics and financial economics," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 18(4), pages 701-734, October.
    20. Hannah Cheng Juan Zhan & William Rea & Alethea Rea, 2015. "A Comparision of Three Network Portfolio Selection Methods -- Evidence from the Dow Jones," Papers 1512.01905, arXiv.org.

    More about this item

    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:2407.18645. 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: http://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.