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

Enhancing Cross-Sectional Currency Strategies by Context-Aware Learning to Rank with Self-Attention

Author

Listed:
  • Daniel Poh
  • Bryan Lim
  • Stefan Zohren
  • Stephen Roberts

Abstract

The performance of a cross-sectional currency strategy depends crucially on accurately ranking instruments prior to portfolio construction. While this ranking step is traditionally performed using heuristics, or by sorting the outputs produced by pointwise regression or classification techniques, strategies using Learning to Rank algorithms have recently presented themselves as competitive and viable alternatives. Although the rankers at the core of these strategies are learned globally and improve ranking accuracy on average, they ignore the differences between the distributions of asset features over the times when the portfolio is rebalanced. This flaw renders them susceptible to producing sub-optimal rankings, possibly at important periods when accuracy is actually needed the most. For example, this might happen during critical risk-off episodes, which consequently exposes the portfolio to substantial, unwanted drawdowns. We tackle this shortcoming with an analogous idea from information retrieval: that a query's top retrieved documents or the local ranking context provide vital information about the query's own characteristics, which can then be used to refine the initial ranked list. In this work, we use a context-aware Learning-to-rank model that is based on the Transformer architecture to encode top/bottom ranked assets, learn the context and exploit this information to re-rank the initial results. Backtesting on a slate of 31 currencies, our proposed methodology increases the Sharpe ratio by around 30% and significantly enhances various performance metrics. Additionally, this approach also improves the Sharpe ratio when separately conditioning on normal and risk-off market states.

Suggested Citation

  • Daniel Poh & Bryan Lim & Stefan Zohren & Stephen Roberts, 2021. "Enhancing Cross-Sectional Currency Strategies by Context-Aware Learning to Rank with Self-Attention," Papers 2105.10019, arXiv.org, revised Jan 2022.
  • Handle: RePEc:arx:papers:2105.10019
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Craig Burnside & Martin Eichenbaum & Sergio Rebelo, 2011. "Carry Trade and Momentum in Currency Markets," Annual Review of Financial Economics, Annual Reviews, vol. 3(1), pages 511-535, December.
    2. Menkhoff, Lukas & Sarno, Lucio & Schmeling, Maik & Schrimpf, Andreas, 2012. "Currency momentum strategies," Journal of Financial Economics, Elsevier, vol. 106(3), pages 660-684.
    3. de Groot, Wilma & Pang, Juan & Swinkels, Laurens, 2012. "The cross-section of stock returns in frontier emerging markets," Journal of Empirical Finance, Elsevier, vol. 19(5), pages 796-818.
    4. Andy C.W. Chui & Sheridan Titman & K.C. John Wei, 2010. "Individualism and Momentum around the World," Journal of Finance, American Finance Association, vol. 65(1), pages 361-392, February.
    5. Alexander Jakob Dautel & Wolfgang Karl Härdle & Stefan Lessmann & Hsin-Vonn Seow, 2020. "Forex exchange rate forecasting using deep recurrent neural networks," Digital Finance, Springer, vol. 2(1), pages 69-96, September.
    6. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    7. LeBaron, Blake, 1999. "Technical trading rule profitability and foreign exchange intervention," Journal of International Economics, Elsevier, vol. 49(1), pages 125-143, October.
    8. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    9. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    10. Okunev, John & White, Derek, 2003. "Do Momentum-Based Strategies Still Work in Foreign Currency Markets?," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 38(2), pages 425-447, June.
    11. Gu, Shihao & Kelly, Bryan & Xiu, Dacheng, 2021. "Autoencoder asset pricing models," Journal of Econometrics, Elsevier, vol. 222(1), pages 429-450.
    12. Moskowitz, Tobias J. & Ooi, Yao Hua & Pedersen, Lasse Heje, 2012. "Time series momentum," Journal of Financial Economics, Elsevier, vol. 104(2), pages 228-250.
    13. John M. Griffin & Xiuqing Ji & J. Spencer Martin, 2003. "Momentum Investing and Business Cycle Risk: Evidence from Pole to Pole," Journal of Finance, American Finance Association, vol. 58(6), pages 2515-2547, December.
    14. 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.
    15. Saejoon Kim, 2019. "Enhancing the momentum strategy through deep regression," Quantitative Finance, Taylor & Francis Journals, vol. 19(7), pages 1121-1133, July.
    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. Daiya Mita & Akihiko Takahashi, 2022. "Multi-Agent Model Based Proactive Risk Management For Equity Investment," CIRJE F-Series CIRJE-F-1207, CIRJE, Faculty of Economics, University of Tokyo.
    2. Nozomu Kobayashi & Yoshiyuki Suimon & Koichi Miyamoto & Kosuke Mitarai, 2023. "The cross-sectional stock return predictions via quantum neural network and tensor network," Papers 2304.12501, arXiv.org, revised Feb 2024.
    3. Wee Ling Tan & Stephen Roberts & Stefan Zohren, 2023. "Spatio-Temporal Momentum: Jointly Learning Time-Series and Cross-Sectional Strategies," Papers 2302.10175, arXiv.org.
    4. Kieran Wood & Sven Giegerich & Stephen Roberts & Stefan Zohren, 2021. "Trading with the Momentum Transformer: An Intelligent and Interpretable Architecture," Papers 2112.08534, arXiv.org, revised Nov 2022.
    5. Daniel Poh & Stephen Roberts & Stefan Zohren, 2022. "Transfer Ranking in Finance: Applications to Cross-Sectional Momentum with Data Scarcity," Papers 2208.09968, arXiv.org, revised Feb 2023.
    6. Wee Ling Tan & Stephen Roberts & Stefan Zohren, 2024. "Deep Learning for Options Trading: An End-To-End Approach," Papers 2407.21791, 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. Daniel Poh & Bryan Lim & Stefan Zohren & Stephen Roberts, 2020. "Building Cross-Sectional Systematic Strategies By Learning to Rank," Papers 2012.07149, arXiv.org.
    2. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, December.
    3. Menkhoff, Lukas & Sarno, Lucio & Schmeling, Maik & Schrimpf, Andreas, 2012. "Currency momentum strategies," Journal of Financial Economics, Elsevier, vol. 106(3), pages 660-684.
    4. Raza, Ahmad & Marshall, Ben R. & Visaltanachoti, Nuttawat, 2014. "Is there momentum or reversal in weekly currency returns?," Journal of International Money and Finance, Elsevier, vol. 45(C), pages 38-60.
    5. Zhang, Shaojun, 2022. "Dissecting currency momentum," Journal of Financial Economics, Elsevier, vol. 144(1), pages 154-173.
    6. Simarjeet Singh & Nidhi Walia, 2022. "Momentum investing: a systematic literature review and bibliometric analysis," Management Review Quarterly, Springer, vol. 72(1), pages 87-113, February.
    7. Neely, Christopher J. & Weller, Paul A., 2013. "Lessons from the evolution of foreign exchange trading strategies," Journal of Banking & Finance, Elsevier, vol. 37(10), pages 3783-3798.
    8. Ruenzi, Stefan & Weigert, Florian, 2018. "Momentum and crash sensitivity," Economics Letters, Elsevier, vol. 165(C), pages 77-81.
    9. Zhuang, Chunjuan, 2018. "Improving performance of exchange rate momentum strategy using volatility information," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 510(C), pages 741-753.
    10. Gao, Ya & Guo, Bin & Xiong, Xiong, 2021. "Signed momentum in the Chinese stock market," Pacific-Basin Finance Journal, Elsevier, vol. 68(C).
    11. Jamali, Ibrahim & Yamani, Ehab, 2019. "Out-of-sample exchange rate predictability in emerging markets: Fundamentals versus technical analysis," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 61(C), pages 241-263.
    12. Theissen, Erik & Yilanci, Can, 2020. "Momentum? What Momentum?," CFR Working Papers 20-09, University of Cologne, Centre for Financial Research (CFR).
    13. Grobys, Klaus & Heinonen, Jari-Pekka & Kolari, James, 2018. "Return dispersion risk in FX and global equity markets: Does it explain currency momentum?," International Review of Financial Analysis, Elsevier, vol. 56(C), pages 264-280.
    14. Blanco, Ivan & De Jesus, Miguel & Remesal, Alvaro, 2023. "Overlapping momentum portfolios," Journal of Empirical Finance, Elsevier, vol. 72(C), pages 1-22.
    15. Li, Zeming & Sakkas, Athanasios & Urquhart, Andrew, 2022. "Intraday time series momentum: Global evidence and links to market characteristics," Journal of Financial Markets, Elsevier, vol. 57(C).
    16. Martin H. Schmidt, 2017. "Trading strategies based on past returns: evidence from Germany," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 31(2), pages 201-256, May.
    17. Yamani, Ehab, 2021. "Can technical trading beat the foreign exchange market in times of crisis?," Global Finance Journal, Elsevier, vol. 48(C).
    18. Panahidargahloo, Akram, 2020. "Positional momentum and liquidity management; a bivariate rank approach," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    19. Mario Cerrato & Zhekai Zhang, 2019. "Can we predict currency momentum crashes?," Working Papers 2019-12, Business School - Economics, University of Glasgow.
    20. Tim A. Kroencke & Felix Schindler & Andreas Schrimpf, 2014. "International Diversification Benefits with Foreign Exchange Investment Styles," Review of Finance, European Finance Association, vol. 18(5), pages 1847-1883.

    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:2105.10019. 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.