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

Learning Multiple Stock Trading Patterns with Temporal Routing Adaptor and Optimal Transport

Author

Listed:
  • Hengxu Lin
  • Dong Zhou
  • Weiqing Liu
  • Jiang Bian

Abstract

Successful quantitative investment usually relies on precise predictions of the future movement of the stock price. Recently, machine learning based solutions have shown their capacity to give more accurate stock prediction and become indispensable components in modern quantitative investment systems. However, the i.i.d. assumption behind existing methods is inconsistent with the existence of diverse trading patterns in the stock market, which inevitably limits their ability to achieve better stock prediction performance. In this paper, we propose a novel architecture, Temporal Routing Adaptor (TRA), to empower existing stock prediction models with the ability to model multiple stock trading patterns. Essentially, TRA is a lightweight module that consists of a set of independent predictors for learning multiple patterns as well as a router to dispatch samples to different predictors. Nevertheless, the lack of explicit pattern identifiers makes it quite challenging to train an effective TRA-based model. To tackle this challenge, we further design a learning algorithm based on Optimal Transport (OT) to obtain the optimal sample to predictor assignment and effectively optimize the router with such assignment through an auxiliary loss term. Experiments on the real-world stock ranking task show that compared to the state-of-the-art baselines, e.g., Attention LSTM and Transformer, the proposed method can improve information coefficient (IC) from 0.053 to 0.059 and 0.051 to 0.056 respectively. Our dataset and code used in this work are publicly available: https://github.com/microsoft/qlib/tree/main/examples/benchmarks/TRA.

Suggested Citation

  • Hengxu Lin & Dong Zhou & Weiqing Liu & Jiang Bian, 2021. "Learning Multiple Stock Trading Patterns with Temporal Routing Adaptor and Optimal Transport," Papers 2106.12950, arXiv.org, revised Jun 2021.
  • Handle: RePEc:arx:papers:2106.12950
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Clifford S. Asness & Tobias J. Moskowitz & Lasse Heje Pedersen, 2013. "Value and Momentum Everywhere," Journal of Finance, American Finance Association, vol. 68(3), pages 929-985, June.
    2. Lakshay Chauhan & John Alberg & Zachary C. Lipton, 2020. "Uncertainty-Aware Lookahead Factor Models for Quantitative Investing," Papers 2007.04082, arXiv.org, revised Jul 2020.
    3. Jegadeesh, Narasimhan, 1990. "Evidence of Predictable Behavior of Security Returns," Journal of Finance, American Finance Association, vol. 45(3), pages 881-898, July.
    4. Fuli Feng & Huimin Chen & Xiangnan He & Ji Ding & Maosong Sun & Tat-Seng Chua, 2018. "Enhancing Stock Movement Prediction with Adversarial Training," Papers 1810.09936, arXiv.org, revised Jun 2019.
    5. Fama, Eugene F. & French, Kenneth R., 2012. "Size, value, and momentum in international stock returns," Journal of Financial Economics, Elsevier, vol. 105(3), pages 457-472.
    6. Poterba, James M. & Summers, Lawrence H., 1988. "Mean reversion in stock prices : Evidence and Implications," Journal of Financial Economics, Elsevier, vol. 22(1), pages 27-59, October.
    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. Kelvin J. L. Koa & Yunshan Ma & Ritchie Ng & Tat-Seng Chua, 2023. "Diffusion Variational Autoencoder for Tackling Stochasticity in Multi-Step Regression Stock Price Prediction," Papers 2309.00073, arXiv.org, revised Oct 2023.
    2. Lifan Zhao & Shuming Kong & Yanyan Shen, 2023. "DoubleAdapt: A Meta-learning Approach to Incremental Learning for Stock Trend Forecasting," Papers 2306.09862, arXiv.org, revised Apr 2024.
    3. Zikai Wei & Bo Dai & Dahua Lin, 2022. "Factor Investing with a Deep Multi-Factor Model," Papers 2210.12462, arXiv.org.
    4. Wentao Xu & Weiqing Liu & Lewen Wang & Yingce Xia & Jiang Bian & Jian Yin & Tie-Yan Liu, 2021. "HIST: A Graph-based Framework for Stock Trend Forecasting via Mining Concept-Oriented Shared Information," Papers 2110.13716, arXiv.org, revised Jan 2022.
    5. Yuan Gao & Haokun Chen & Xiang Wang & Zhicai Wang & Xue Wang & Jinyang Gao & Bolin Ding, 2024. "DiffsFormer: A Diffusion Transformer on Stock Factor Augmentation," Papers 2402.06656, arXiv.org.
    6. Liang Zeng & Lei Wang & Hui Niu & Ruchen Zhang & Ling Wang & Jian Li, 2021. "Trade When Opportunity Comes: Price Movement Forecasting via Locality-Aware Attention and Iterative Refinement Labeling," Papers 2107.11972, arXiv.org, revised May 2023.
    7. Zikai Wei & Bo Dai & Dahua Lin, 2023. "E2EAI: End-to-End Deep Learning Framework for Active Investing," Papers 2305.16364, arXiv.org.
    8. Shuo Sun & Rundong Wang & Bo An, 2022. "Quantitative Stock Investment by Routing Uncertainty-Aware Trading Experts: A Multi-Task Learning Approach," Papers 2207.07578, arXiv.org.

    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. Cakici, Nusret & Zaremba, Adam, 2022. "Salience theory and the cross-section of stock returns: International and further evidence," Journal of Financial Economics, Elsevier, vol. 146(2), pages 689-725.
    2. Yuming Li, 2017. "Risks and rewards for momentum and reversal portfolios," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 31(3), pages 289-315, August.
    3. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, June.
    4. Semenov, Andrei, 2015. "The small-cap effect in the predictability of individual stock returns," International Review of Economics & Finance, Elsevier, vol. 38(C), pages 178-197.
    5. Hannah Lea Hühn & Hendrik Scholz, 2019. "Reversal and momentum patterns in weekly stock returns: European evidence," Review of Financial Economics, John Wiley & Sons, vol. 37(2), pages 272-296, April.
    6. Ardila-Alvarez, Diego & Forro, Zalan & Sornette, Didier, 2021. "The acceleration effect and Gamma factor in asset pricing," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 569(C).
    7. Baltzer, Markus & Jank, Stephan & Smajlbegovic, Esad, 2019. "Who trades on momentum?," Journal of Financial Markets, Elsevier, vol. 42(C), pages 56-74.
    8. Jennifer N. Carpenter & Fangzhou Lu & Robert F. Whitelaw, 2015. "The Real Value of China's Stock Market," NBER Working Papers 20957, National Bureau of Economic Research, Inc.
    9. Narayan, Paresh Kumar & Phan, Dinh Hoang Bach & Bannigidadmath, Deepa, 2017. "Is the profitability of Indian stocks compensation for risks?," Emerging Markets Review, Elsevier, vol. 31(C), pages 47-64.
    10. Zaremba, Adam & Long, Huaigang & Karathanasopoulos, Andreas, 2019. "Short-term momentum (almost) everywhere," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 63(C).
    11. Tobek, Ondrej & Hronec, Martin, 2021. "Does it pay to follow anomalies research? Machine learning approach with international evidence," Journal of Financial Markets, Elsevier, vol. 56(C).
    12. Gao, Ya & Han, Xing & Li, Youwei & Xiong, Xiong, 2021. "Investor heterogeneity and momentum-based trading strategies in China," International Review of Financial Analysis, Elsevier, vol. 74(C).
    13. Majewski, Adam A. & Ciliberti, Stefano & Bouchaud, Jean-Philippe, 2020. "Co-existence of trend and value in financial markets: Estimating an extended Chiarella model," Journal of Economic Dynamics and Control, Elsevier, vol. 112(C).
    14. Shah Saeed Hassan Chowdhury & Rashida Sharmin & M Arifur Rahman, 2019. "Presence and Sources of Contrarian Profits in the Bangladesh Stock Market," Global Business Review, International Management Institute, vol. 20(1), pages 84-104, February.
    15. Huynh, Thanh D., 2017. "Conditional asset pricing in international equity markets," International Review of Economics & Finance, Elsevier, vol. 49(C), pages 168-189.
    16. Eom, Cheoljun & Park, Jong Won, 2023. "Price behavior of small-cap stocks and momentum: A study using principal component momentum," Research in International Business and Finance, Elsevier, vol. 65(C).
    17. Li, Kai, 2021. "Nonlinear effect of sentiment on momentum," Journal of Economic Dynamics and Control, Elsevier, vol. 133(C).
    18. Stadtmüller, Immo & Auer, Benjamin R. & Schuhmacher, Frank, 2022. "On the time-varying dynamics of stock and commodity momentum returns," Finance Research Letters, Elsevier, vol. 46(PB).
    19. Cakici, Nusret & Zaremba, Adam, 2023. "Recency bias and the cross-section of international stock returns," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 84(C).
    20. Gao, Ya & Guo, Bin & Xiong, Xiong, 2021. "Signed momentum in the Chinese stock market," Pacific-Basin Finance Journal, Elsevier, vol. 68(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:2106.12950. 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.