On Evaluating Loss Functions for Stock Ranking: An Empirical Analysis With Transformer Model
Not on the map. Why?
Abstract (arXiv)
Quantitative trading strategies rely on accurately ranking stocks to identify profitable investments. Effective portfolio management requires models that can reliably order future stock returns. Transformer models are promising for understanding financial time series, but how different training loss functions affect their ability to rank stocks well is not yet fully understood. Financial markets are challenging due to their changing nature and complex relationships between stocks. Standard loss functions, which aim for simple prediction accuracy, often aren't enough. They don't directly teach models to learn the correct order of stock returns. While many advanced ranking losses exist from fields such as information retrieval, there hasn't been a thorough comparison to see how well they work for ranking financial returns, especially when used with modern Transformer models for stock selection. This paper addresses this gap by systematically evaluating a diverse set of advanced loss functions including pointwise, pairwise, listwise for daily stock return forecasting to facilitate rank-based portfolio selection on S&P 500 data. We focus on assessing how each loss function influences the model's ability to discern profitable relative orderings among assets. Our research contributes a comprehensive benchmark revealing how different loss functions impact a model's ability to learn cross-sectional and temporal patterns crucial for portfolio selection, thereby offering practical guidance for optimizing ranking-based trading strategies.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 11 of its 43 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
11 of 43 references.
References · 11
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,157
- 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 918
- 2019Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecastingcited by 756
- 2018Forecasting Economics and Financial Time Series: ARIMA vs. LSTMcited by 33
- 2023MASTER: Market-Guided Stock Transformer for Stock Price Forecastingcited by 30
- 2024Hedge Fund Portfolio Construction Using PolyModel Theory and iTransformercited by 7
- 2019Machine Learning Optimization Algorithms & Portfolio Allocationcited by 6
- 2024Quantformer: from attention to profit with a quantitative transformer trading strategycited by 6
- 2025Applying Informer for Option Pricing: A Transformer-Based Approachcited by 5
- 2024Hidformer: Transformer-Style Neural Network in Stock Price Forecastingcited by 3
- 2025DeltaHedge: A Multi-Agent Framework for Portfolio Options Optimizationcited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Modeling Decisions in Blockchain Analytics: A Leakage-Aware Evaluation of Tree-Based vs. Sequential Modelscited by 0
- 2026Compression-Based Behavioral Similarity for Open-World Sybil Discovery on Ethereumcited by 0
- 2026Loss Choice or Model Choice? The Role of Forecast Level in Cryptocurrency Volatility Forecastingcited by 0
- 2026Loss Choice or Model Choice? The Role of Forecast Level in Cryptocurrency Volatility Forecasting22 Sep 2026
- 2026Compression-Based Behavioral Similarity for Open-World Sybil Discovery on Ethereum29 Jul 2026
- 2026Modeling Decisions in Blockchain Analytics: A Leakage-Aware Evaluation of Tree-Based vs. Sequential Models29 Jul 2026