{"paper_id":"2305.14368","title":"Support for Stock Trend Prediction Using Transformers and Sentiment Analysis","authors":["Harsimrat Kaeley","Ye Qiao","Nader Bagherzadeh"],"paper_date":"2023-05-18","paper_type":"empirical","paper_url":"https://arxiv.org/pdf/2305.14368v1","page_url":"https://thequant.space/flowcharts/support-for-stock-trend-prediction-using-transformers-and-se/","scores":{"empirical_rigor":6,"math_complexity":6,"quadrant":"Holy Grail"},"proposes":{"status":"available","statement":"The paper proposes a Transformer‑based model (StockFormer) that combines technical stock data with sentiment analysis and introduces a novel dataset of daily technical data and news headlines.","quote":"in this paper we develop a Transformer based model that uses technical stock data and sentiment analysis to conduct accurate stock trend prediction over long time windows.","summary":"Stock trend analysis has been an influential time-series prediction topic due to its lucrative and inherently chaotic nature. Many models looking to accurately predict the trend of stocks have been based on Recurrent Neural Networks (RNNs). However, due to the limitations of RNNs, such as gradient…","strategy":"Transformer model with technical data and sentiment analysis"},"assumptions":{"status":"available","items":[{"assumption":"Longer lag periods allow the Transformer to capture long‑term dependencies better than RNNs.","type":"model","stated":"implied","quote":"We believe this is attributed to the fact that a lag period of 4 days is not long enough for our Transformer based model’s ability to better extract long-term dependencies"},{"assumption":"Z‑Score normalization of all numerical fields is sufficient to prevent price scale differences from affecting trend prediction.","type":"data","stated":"explicit","quote":"Therefore, we conduct a Z-Score normalization over all numerical ﬁelds to prevent the different prices of each stock in our dataset from skewing our results"}]},"datasets":{"status":"available","items":[{"name":"novel dataset containing daily technical stock data and top news headline data","provider":"EOD Historical Data API and News API","kind":"market-prices","access":"commercial","period":"3/18/2019 - 2/18/2022","universe":"FAANG (Facebook, Amazon, Apple, Netflix, Google) companies","quote":"The dataset consists of 3700 entries of the FAANG (Face-book, Amazon, Apple, Netﬂix, Google) companies. The entries are drawn from actual stock data from a time period of close to three years spanning from 3/18/2019 - 2/18/2022."},{"name":"news headline sentiment scores","provider":"News API processed with FinBert","kind":"text-news","access":"commercial","period":"3/18/2019 - 2/18/2022","universe":"FAANG companies","quote":"Each entry in our dataset corresponds to a business day for a given stock and contains this stock’s technical indicator data and top news headline for the given day. The news headline feature is preprocessed using FinBert"}],"known":[],"sample":{"start":null,"end":null,"market":null,"asset_class":"equities","frequency":"daily"},"data_resolution":"daily"},"transaction_costs":{"status":"not_applicable","modeled":"n/a","headline_net_of_costs":null,"detail":null,"quote":null,"source":"front_matter","rule":"R3","candidates":{"front_matter":"n/a","evidence_card":"n/a","evidence_card_quoted":false},"meaning":"the paper reports no trading or execution result"},"results":{"status":"available","evaluation_type":"forecast-accuracy","findings":[{"finding":"The Transformer model improves directional accuracy over RNNs, achieving up to an 18.63% improvement at a 30‑business‑day window.","kind":"performance","quote":"with the largest improvement being close to 18.63% at 30 business days."},{"finding":"At a lag period of 29 days, the model reaches 0.8919 directional accuracy versus 0.7056 for the S‑EMDAM LSTM baseline.","kind":"predictive-accuracy","quote":"Our model was able to reach 0.8919 in directional accuracy compared to 0.7056 for S EMDAM LSTM."},{"finding":"For a lag period of 24 days, the model attains an AUC of 0.9727 and directional accuracy of 0.7184, outperforming the baseline LSTM.","kind":"predictive-accuracy","quote":"as we increase the lag period to n=24 days, we can see that our model reaches an AUC score of 0.9727 and directional accuracy of 0.7184 as it continues to outperform our baseline LSTM"}],"reported_performance":{"strategy":"Transformer model with technical data and sentiment analysis","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":11,"citations":{"cited_by_in_corpus":1,"by_independent_authors":1,"how_cited":{"used_as_baseline":0,"uses_method_or_data":0,"extends":0,"discusses_findings":0,"mentions":1,"unclassified":0},"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-14T18:26:47Z"},"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/"}