{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/master-market-guided-stock-transformer-for","title":"MASTER: Market-Guided Stock Transformer for Stock Price Forecasting","arxiv_id":"2312.15235","date":"2023-12-23","proceeding":null,"authors":["Tong Li","Zhaoyang Liu","Yanyan Shen","Xue Wang","Haokun Chen","Sen Huang"],"abstract":"Stock price forecasting has remained an extremely challenging problem for many decades due to the high volatility of the stock market. Recent efforts have been devoted to modeling complex stock correlations toward joint stock price forecasting. Existing works share a common neural architecture that learns temporal patterns from individual stock series and then mixes up temporal representations to establish stock correlations. However, they only consider time-aligned stock correlations stemming from all the input stock features, which suffer from two limitations. First, stock correlations often occur momentarily and in a cross-time manner. Second, the feature effectiveness is dynamic with market variation, which affects both the stock sequential patterns and their correlations. To address the limitations, this paper introduces MASTER, a MArkert-Guided Stock TransformER, which models the momentary and cross-time stock correlation and leverages market information for automatic feature selection. MASTER elegantly tackles the complex stock correlation by alternatively engaging in intra-stock and inter-stock information aggregation. Experiments show the superiority of MASTER compared with previous works and visualize the captured realistic stock correlation to provide valuable insights.","url_abs":"https://arxiv.org/abs/2312.15235v1","url_pdf":"https://arxiv.org/pdf/2312.15235v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"master-market-guided-stock-transformer-for","repo_url":"https://github.com/SJTU-Quant/MASTER","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"master-market-guided-stock-transformer-for","repo_url":"https://github.com/SJTU-DMTai/MASTER","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2312.15235","atlas_url":"https://app.syntology.ai/?focus=2312.15235","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.15235"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SJTU-DMTai/MASTER","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SJTU-Quant/MASTER","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4},"by_repo_kind":{"official":{"samples":4,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"56769462a41ddeaa","entry":"calc_ic","repo":"SJTU-Quant/MASTER","repo_kind":"official","path":"base_model.py","file_url":"https://github.com/SJTU-Quant/MASTER/blob/HEAD/base_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"56769462a41ddeaa"}},{"code_sha256_prefix":"c4b289d81ecb40ac","entry":"drop_extreme","repo":"SJTU-Quant/MASTER","repo_kind":"official","path":"qlib-update/pytorch_master_ts.py","file_url":"https://github.com/SJTU-Quant/MASTER/blob/HEAD/qlib-update/pytorch_master_ts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4b289d81ecb40ac"}},{"code_sha256_prefix":"8560128f6975b469","entry":"drop_na","repo":"SJTU-Quant/MASTER","repo_kind":"official","path":"qlib-update/pytorch_master_ts.py","file_url":"https://github.com/SJTU-Quant/MASTER/blob/HEAD/qlib-update/pytorch_master_ts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8560128f6975b469"}},{"code_sha256_prefix":"a10dc2b3fb7f59ea","entry":"zscore","repo":"SJTU-Quant/MASTER","repo_kind":"official","path":"qlib-update/pytorch_master_ts.py","file_url":"https://github.com/SJTU-Quant/MASTER/blob/HEAD/qlib-update/pytorch_master_ts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a10dc2b3fb7f59ea"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}