{"paper_id":"2412.19932","title":"Hidformer: Transformer-Style Neural Network in Stock Price Forecasting","authors":["Kamil Ł. Szydłowski","Jarosław A. Chudziak"],"paper_date":"2024-12-27","paper_type":"methodological","paper_url":"https://arxiv.org/pdf/2412.19932v1","page_url":"https://thequant.space/flowcharts/hidformer-transformer-style-neural-network-in-stock-price-f/","scores":{"empirical_rigor":6,"math_complexity":4,"quadrant":"Street Traders"},"proposes":{"status":"available","statement":"The paper proposes using the Hidformer transformer-style neural network to predict future stock prices based on past quotations, extending it to forecast multiple future quotes.","quote":"Below, we present an idea on how to use the Hidformer artificial neural network to predict future stock prices","summary":"This paper investigates the application of Transformer-based neural networks to stock price forecasting, with a special focus on the intersection of machine learning techniques and financial market analysis. The evolution of Transformer models, from their inception to their adaptation for time…","strategy":"Hidformer"},"assumptions":{"status":"available","items":[{"assumption":"Technical analysis premises: market discounts everything, prices move in trends, and history repeats itself.","type":"market","stated":"explicit","quote":"The justification for using technical analysis as a tool for market analysts is based on three premises [10]. First, the market discounts everything, meaning that all factors affecting market prices are reflected in those prices. Second, prices move in trends, indicating that an existing trend will continue until it re"},{"assumption":"Daily valuation frequency is used to balance trend capture and data complexity.","type":"data","stated":"explicit","quote":"For our study, we assume a set of parameters based on daily valuations, which provide a balance between capturing market trends and managing data complexity [11]."},{"assumption":"Prediction uses the previous T_x prices and volumes to forecast the close price on the next T_y trading days.","type":"model","stated":"explicit","quote":"In each prediction, we use the previous Tx prices and volumes to predict the close price on the next Ty trading days, utilizin…"},{"assumption":"Trading strategy assumes buying one unit if predicted close > current close, otherwise short one unit, with returns calculated as log price change times sign of prediction difference.","type":"execution","stated":"explicit","quote":"If the predicted close price ˆyt+1 is larger than the latest observed close price yt, we long one position index (buy one unit of the index); otherwise, we short one position index (sell one unit of the index). Thus, the return at time t + 1 is expressed as follows (yt+1 is the true next close price): Rt+1 = ln yt+1 / "},{"assumption":"Normalization of price data to [0,1] range using min‑max scaling across all dimensions.","type":"data","stated":"explicit","quote":"where ˆxt is the normalized price at time t and xmax (xmin) is the maximum (the minimum) value in the entire sample regarding all dimensions of the prices."}]},"datasets":{"status":"available","items":[{"name":"6 stock indices from Consumer Goods sector","provider":"Yahoo Finance","kind":"market-prices","access":"public","period":"12/12/1980 to 29/12/2023","universe":"Consumer Goods sector stocks (AAPL, KO, MO, PEP, PG, TM)","quote":"As a historical price dataset we selected the 43-year price movements from 12/12/1980 to 29/12/2023 of 6 stock indices (see Table 1) which are part of the Consumer Goods sector. We used Yahoo Finance as the data source.","known_id":"yahoo-finance"}],"known":[{"id":"yahoo-finance","name":"Yahoo Finance","provider":"Yahoo","kind":"market-prices","access":"public","quote":"We used Yahoo Finance as the data source.","mentions":1,"used_in":1}],"sample":{"start":null,"end":null,"market":null,"asset_class":"equities","frequency":"daily"},"data_resolution":"daily"},"transaction_costs":{"status":"available","modeled":"no","headline_net_of_costs":false,"detail":null,"quote":null,"source":"front_matter","rule":"R1","candidates":{"front_matter":"no","evidence_card":"no","evidence_card_quoted":false},"meaning":"a trading or execution result is reported without costs"},"results":{"status":"available","evaluation_type":"unclear","findings":[{"finding":"Hidformer achieved the lowest MAE (0.159) among compared models, with comparable MSE and MAPE, and statistically significant improvements (p‑values < 0.01).","kind":"performance","quote":"Hidformer 0.159 (0.001) 0.040 (0.001) 66 (1) The preliminary results of the experiments demonstrate that Hidformer out‑performs in many cases other classic methods significantly (P-values lower than 0.01) or achieves at least similar results both from the perspective of absolute errors (MAE and MSE) and relative error "}],"reported_performance":{"strategy":"Hidformer","sharpe":null,"sharpe_benchmark":null,"annual_return_pct":null,"total_return_pct":null,"max_drawdown_pct":null},"out_of_sample":{"method":"holdout","headline_out_of_sample":true}},"independent_evidence":{"status":"none_found","supports":[],"contradicts":[],"qualifies":[],"compared_with":37,"citations":{"cited_by_in_corpus":1,"by_independent_authors":0,"how_cited":{"used_as_baseline":0,"uses_method_or_data":0,"extends":0,"discusses_findings":0,"mentions":0,"unclassified":1},"independent_papers":[],"scope":"Citations between papers in this corpus only; citations from outside it are not counted."}},"implementation":{"status":"available","public":false,"code_url":null,"note":"No repository presented by the authors as their own was found in the paper. Absence here is not proof that no code exists."},"replication":{"status":"none_found","card":null,"note":"No replication of this paper has been run by thequant.space yet."},"extraction":{"text_source":"fulltext","model":"openai/gpt-oss-120b","version":1,"extracted_at":"2026-11-14T17:48:31Z"},"provenance":{"claims":"Everything here is what the authors state in the paper. Nothing was re-run or reproduced by the platform.","quotes":"Assumptions, datasets, cost detail and findings were extracted by a language model. Every quote is verbatim paper text. Where an item has `support`, \"full\" means every figure in it appears in the quoted sentences and \"partial\" means a figure is stated elsewhere in the paper; items with a figure found nowhere in the paper were discarded.","datasets_known":"datasets.known lists well-known vendors and public datasets by a stable id, found by a dictionary over the full text where the sentence says the data is used; it is independent of the model and covers only names in the dictionary.","flags":"transaction_costs.modeled, results.evaluation_type and results.out_of_sample.method are platform classifications (structured-decision models); see https://thequant.space/score-guide/#penalty-flags","comparisons":"supports / contradicts / qualifies are a language model's reading of two papers' quoted findings, restricted to closely related papers that share no author. They are pointers to read, not verified replications, and coverage is partial.","implementation":"code_url is a repository the paper itself presents as its own (rule-scored, ambiguous cases judged by a model), checked for liveness when it was recorded."},"docs":"https://thequant.space/agents/"}