arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.01575q-fin.CPecon.EMq-fin.PR
收藏

预训练Transformer中的资产定价

Asset Pricing in Pre-trained Transformer

Univiersity of York(约克大学)

Shanyan Lai

AI总结:

提出单向代表性Transformer(SERT)模型用于美国大盘股定价,并在极端市场波动期间(COVID-19前后)与标准Transformer模型比较,SERT实现最高样本外R²,且基于趋势跟踪的策略在风险对冲中表现优异。

摘要:

本文提出了一种创新的Transformer模型——单向代表性Transformer(SERT),用于美国大盘股定价。同时,创新性地将预训练Transformer模型应用于股票定价和因子投资情境。在涵盖整个COVID-19大流行的三个时期(即COVID-19前、COVID-19期间和COVID-19后一年)中,将它们与标准Transformer模型和仅编码器Transformer模型进行比较,以检验模型在极端市场波动期间的适应性和适用性。最佳提出的SERT模型在极端市场波动发生时分别实现了最高的样本外$R^2$,即11.94%和11.47%,其次是预训练Transformer模型(11.13%和9.72%)。其基于趋势跟踪的策略的表现也证明了它们在市场冲击期间对冲下行风险的卓越能力。在考虑大流行期间的静态交易成本情景下,所提出的SERT模型在等权重投资组合中实现了比买入并持有基准高47%的Sortino比率,在价值加权投资组合中高28%。这证明了Transformer模型在资产定价因子模型中捕捉时间稀疏性模式的能力很强,尤其是在高波动性情况下。我还发现softmax信号过滤器是Transformer模型在不同情境下的常见配置,它仅消除了模型之间的差异,但并未提升策略层面的表现,而增加注意力头数对模型性能的提升不显著,并且应用“先层归一化”方法在我们的案例中并未提升模型性能。

英文摘要:

This paper proposes an innovative Transformer model, Single-directional representative from Transformer (SERT), for US large capital stock pricing. It also innovatively applies the pre-trained Transformer models under the stock pricing and factor investment context. They are compared with standard Transformer models and encoder-only Transformer models in three periods covering the entire COVID-19 pandemic to examine the model adaptivity and suitability during the extreme market fluctuations. Namely, pre-COVID-19 period, COVID-19 period and 1-year post-COVID-19. The best proposed SERT model achieves the highest out-of-sample $R^2$, 11.94\% and 11.47\% respectively, when extreme market fluctuation takes place, followed by pre-trained Transformer models (11.13\% and 9.72\%). Their Trend-following-based strategy's performance also proves their excellent capability for hedging downside risks during market shocks. The proposed SERT model achieves a Sortino ratio 47\% higher than the buy-and-hold benchmark in the equal-weighted portfolio and 28\% higher in the value-weighted portfolio in the static transaction cost scenario when the pandemic period is considered. It proves that Transformer models have a strong ability to capture patterns of temporal sparsity in asset pricing factor models, especially with high volatility. I also find the softmax signal filter as the common configuration of Transformer models in alternative contexts, which only eliminates differences between models, but does not improve strategy-wise performance, while increasing attention heads improves the model performance insignificantly and applying the 'layer normalization first' method does not boost the model performance in our case.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑