Manuscript Offprint
arXiv:2610.26456Regime-Aware Interpretable Ranking for Sector Rotation
Kelvin J.L. Koa
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Shuowei Feng
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Eugene Y. Wen
Manulife
Toronto, Ontario, Canada
Ziling Liu
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Ruoyu Liang
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Xuan Yao
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Xinyang Li
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Mathieu Giroux
Manulife Investment Management
Montreal, Quebec, Canada
Hugo Lamarre
Manulife Investment Management
Montreal, Quebec, Canada
Ke-Wei Huang
Asian Institute of Digital Finance,
National University of Singapore
Singapore
Abstract
Sector rotation is a common decision in benchmark-relative portfolio management, where portfolio managers rank sectors for overweight and underweight positions. We formulate this task as ranking sector actions by expected future risk-adjusted active performance, measured with forward sector–benchmark Sharpe ratios. Such rankings should preserve temporal information, express model outputs through economically familiar signal characteristics, account for changes in signal relevance across macroeconomic environments, and capture dependencies among sectors. We propose REGIMERANK, an interpretable sector-ranking model that represents fundamental and technical signals through expert-defined temporal characteristics, conditions them on learned macro factors via cross-attention, and models cross-sector dependencies through self-attention. Expected-gradient attributions identify the contributions of individual signal–transformation pairs, while macroeconomic and cross-sector attention maps provide diagnostics of the learned conditioning and relational structure. We evaluate REGIMERANK
on weekly S&P 500 data from 2002 to 2024 under combinatorial purged cross-validation, where it outperforms representative ranking and machine-learning baselines across multiple ranking metrics. Ablation studies support the contributions of latent macro states, regime conditioning, and cross-sector modelling, while attribution and attention analyses illustrate the temporal characteristics, macro states, and sector relationships underlying its rankings.
CCS Concepts
• Information systems → Learning to rank; • Computing methodologies → Machine learning; • Applied computing → Economics.
ACM Reference Format:
Kelvin J.L. Koa, Ziling Liu, Xinyang Li, Shuowei Feng, Ruoyu Liang, Mathieu Giroux, Eugene Y. Wen, Xuan Yao, Ke-Wei Huang, and Hugo Lamarre. 2026. Regime-Aware Interpretable Ranking for Sector Rotation. In 7th ACM International Conference on AI in Finance (ICAIF '26), November 14–17, 2026, Milan, AA, Italy. ACM, New York, NY, USA, 9 pages. https://doi.org/10.1145/3858063.3858823
These authors contributed equally to this research.
The views and opinions expressed in this article are solely those of the authors and do not necessarily reflect the views, positions, or policies of Manulife or any of its affiliates. Any methodological or empirical errors are the sole responsibility of the authors and should not be attributed to Manulife.
1 Introduction

Sector rotation is a core decision in active portfolio management, in which portfolio managers (PMs) determine which sectors to overweight as economic conditions evolve [27, 28]. The economic significance of this decision is reflected in the persistent dispersion of sector returns: between 1989 and 2025, the average calendar-year
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. ICAIF '26, Milan, AA, Italy © 2026 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-3087-0/2026/11 https://doi.org/10.1145/3858063.3858823
Koa et al.
Table 1: Comparison of methodological capabilities across financial and AI-based asset-ranking approaches.
| Approach | Ranking Formulation | Temporal Dynamics | Regime Aware | Asset Relational | Mechanism Interpretability | Attribution Interpretability |
|---|---|---|---|---|---|---|
| Asset Ranking in Finance | ||||||
| RankNet / ListNet [40] | ✓ | ✕ | ✕ | ✕ | ✓ | ✕ |
| Cross-sectional LTR [31] | ✓ | ✕ | ✕ | ✕ | ✓ | ✕ |
| Listwise Node2Vec [35] | ✓ | ✓ | ✕ | ✓ | ✓ | ✕ |
| Long-Short Listwise LTR [44] | ✓ | ✕ | ✕ | ✕ | ✓ | ✕ |
| SABER [23] | ✓ | ✕ | ✕ | ✕ | ✓ | ✕ |
| Asset Ranking in AI | ||||||
| RSR [13] | ✓ | ✓ | ✕ | ✓ | ✕ | ✕ |
| STHAN-SR [37] | ✓ | ✓ | ✕ | ✓ | ✕ | ✕ |
| RT-GCN [45] | ✓ | ✓ | ✕ | ✓ | ✕ | ✕ |
| ADB-TRM [9] | ✓ | ✓ | ✓ | ✓ | ✕ | ✕ |
| PDU [15] | ✓ | ✓ | ✕ | ✓ | ✕ | ✕ |
| REGIMERANK (Ours) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
difference between the best- and worst-performing S&P 500 sectors was approximately 45 percentage points [29]. Such dispersion creates both an opportunity and a risk for benchmarked portfolios: overweighting the right sectors can enhance active performance.
The central challenge is not to identify sector winners and losers ex post, but to rank their relative attractiveness ex ante. Because portfolio tilts naturally emerge from an ordering of sectors, we formulate sector rotation as a learning-to-rank problem [1, 31, 35, 44]. This formulation avoids requiring precise return forecasts—a particularly difficult task in financial markets [13, 23]—and instead focuses the model on the relative ordering that directly informs overweight and underweight decisions. We rank portfolios on forward Sharpe ratios to ensure that a sector is rewarded for return earned per unit of risk. This is consistent with benchmarked mandates to surface best risk-adjusted opportunities. Our model combines fundamental and technical signals, conditioning both on macroeconomic indicators that characterize the prevailing market environment.
Predictive accuracy alone, however, is insufficient. PMs remain accountable to investment and risk committees and must therefore be able to understand and communicate the rationale behind a recommended sector tilt. We consequently target two complementary forms of interpretability. Mechanism interpretability requires the model's internal components to correspond to economically meaningful operations, whereas attribution interpretability requires an individual ranking outcome to be traced to the signals that drive it. Existing sequential models make this alignment difficult because they typically encode historical observations into latent representations. Post-hoc methods such as TimeSHAP [5] can attribute a prediction to particular time steps, but PMs more commonly reason in terms of higher-level characteristics such as trend, persistence, and volatility. An interpretable sector ranking model should preserve temporal information while expressing it through concepts that can be related to investment reasoning.
A common sector-allocation workflow suggests three additional modeling requirements. First, PMs form complementary views from fundamental signals, such as valuations, earnings, and growth, and technical signals, such as momentum, volume, and volatility, before combining them into an overall conviction. Second, the relevance of these signals may vary across macroeconomic environments: a low valuation, for example, may indicate an oversold investment opportunity in one environment but deteriorating fundamentals in another. Third, sectors cannot be evaluated independently. Sectors exposed to common inflation, commodity, or interest-rate forces often move jointly, so information about one sector may affect the relative attractiveness of others. These considerations motivate a model that separately represents fundamental and technical information, conditions their interpretation on the macroeconomic environment, and jointly models cross-sector dependencies.
We propose REGIMERANK, an interpretable learning-to-rank architecture with four components. First, a temporal-projection layer represents each signal through expert-defined characteristics [6, 11]. Second, a macro-conditioning module uses cross-attention to condition these signal representations on learned macroeconomic factors, allowing their relevance to vary across market environments [7, 30]. Temporal projection and macro conditioning are applied separately within fundamental and technical encoders, preserving the distinction between the two information pillars. Third, a cross-sector self-attention layer then propagates information across sectors exposed to related economic forces [13, 24, 32, 37]. Finally, a listwise ranking head [43] converts the resulting sector representations into an ordering of overweight and underweight opportunities.
Through extensive experiments, we show that REGIMERANK outperforms representative ranking, machine-learning and deep-learning baselines across multiple evaluation metrics in a simulation study applied to the S&P 500 sectors. Ablation studies demonstrate the contribution of each architectural component, while analyses of Shapley values [25] and attention weights [3, 10] provide insights into the temporal characteristics, market regimes, and sector interdependencies underlying its rankings.
2 Related Work
2.1 Asset Ranking
Asset ranking has emerged as an active research area across both the finance and artificial intelligence (AI) literature. In both communities, the formulation is motivated by the relative nature of
Disclaimer: This article is presented for research and informational purposes only and does not constitute investment advice or a recommendation to buy or sell any security or financial instrument. The results presented are based on simulated performance; simulated results have inherent limitations, and neither simulated nor past performance is indicative of future results.

Figure 1: Overall framework for REGIMERANK. The solid Regime Conditioning box is the per-sector plate, replicated S times, and the dashed boxes are the two per-pillar encoders, conditioned on the shared latent states (dashed arrows). Boxes are labelled by their outputs, and the pillar embeddings are concatenated before the Cross-Sector Attention component.
investment decisions [35]: investors primarily need to identify relative winners, a target that generalizes better and is more robust than predicting exact future returns [13, 31]. Finance works build upon this formulation by incorporating financial structure, such as news sentiment [40], long-short strategies [44] and price stochasticity [23] into the ranking optimization. AI works instead extend the learning machinery, through graph convolutions [45], adversarial training [9] and contrastive learning [15]. As summarized in Table 1, few surveyed methods combine temporal or regime structure with mechanisms a PM could interpret, and we are not aware of existing approaches that provide attribution over their ranking outcomes.
2.2 Model Interpretability
Interpretability in financial models [21, 22, 39] has been approached from two complementary directions. Mechanism interpretability seeks economically meaningful explanations of model behavior, with examples ranging from nonlinear factor interpretations of neural networks [18] to attention-based asset-pricing models [19] and graph-based dependency modeling [36]. Attribution interpretability, in contrast, focuses on identifying the signals responsible for model predictions through methods such as SHAP [25], LIME [34], TreeInterpreter [38], Accumulated Local Effects [2], and attention-based explanations [10, 26].
3 The REGIMERANK Framework
3.1 Architecture Overview
The goal is to rank sector overweights and underweights relative to a benchmark. REGIMERANK (Figure 1) proceeds in four stages:
(1) Temporal Projection. Encode each feature’s recent history into a fixed-length temporal summary (trend, volatility, etc.).
(2) Regime conditioning. Let sector signals attend to macro indicators so that the same valuation or momentum reading can mean different things under different economic regimes.
(3) Cross-sector attention. Allow sectors to exchange information; e.g., a rally in cyclicals informs the outlook for defensives.
(4) Ranking head. Map the resulting sector embeddings to scalar scores whose ordering defines the recommended tilt ranking. Stages 1–2 run independently for each information pillar (fundamentals and technicals); the per-pillar embeddings are concatenated before stage 3. This separation reflects how practitioners typically form a fundamental view and a technical view before combining them into a single conviction.
3.2 Notation Conventions
Lowercase bold denotes vectors (u), uppercase bold denotes matrices (W), and uppercase italics denote dimensions (S, F, N, D). Subscripts are reserved for integer indices (e.g., t for time steps, s for sectors). Superscripts identify the block or parameter family (e.g., , ). A hat marks predictions ( ). Parentheses index vector entries ( is the a-th entry of y), and primes mark successive residual updates within a block (H, , ).
3.3 Problem Setting
For each sector at timestamp , we observe a sector-specific feature vector (fundamental and technical signals, processed in separate pillars) and a shared macro vector . Each action corresponds to overweighting or underweighting a sector against the benchmark; we index actions by . Let denote the vector of forward Sharpe ratios calculated on the sector returns in excess of the benchmark return . The action-level target stacks overweight and underweight sides:
Computed ex post: the mean of spread returns over the forward window divided by their standard deviation over the same window. Risk-free rate is set to zero since spreads are self-financed. This quantity is also known as the information ratio.
Koa et al.
The learning target is the permutation that sorts actions from best to worst by realized quality: is the index of the highest-valued action, the lowest. Formally, . The model produces scores whose induced ordering is trained to match via a listwise likelihood. The supervision is purely ordinal ( is identified only up to order-preserving transformations), consistent with the motivation that relative rankings are more robust than exact performance levels.
3.4 Temporal Projection
The temporal projection, regime conditioning, and attention pooling stages are applied independently to the fundamental and technical pillars. We describe a single pillar and suppress the pillar tag until the merge; the other pillar is identical. Within a pillar, F denotes that pillar's feature count.
The model ingests a cross-sectional snapshot, so temporal dynamics must be encoded explicitly. Each feature's values over a lookback window of length T are mapped by a transformation operator T to a P-dimensional vector of temporal summaries (z-scores, trend, volatility, persistence). For sector-specific features:
where each row holds the P transformed values of one feature.
These are projected onto a D-dimensional hidden space:
where is the learned projection matrix and contains learned feature-identity embeddings that disambiguate features with otherwise identical transformed values. The shared macro features are processed analogously:
with and .
3.4.1 Transformation-level Attribution. For interpretability, we compute approximate SHAP values via expected gradients [12] on the transformed inputs before projection. Let collect the transformations for sector s. The attribution is:
where is a background observation and . The values approximate how much each feature transformation contributes to the action score relative to the background distribution.
3.5 Regime Conditioning
The informational value of sector signals is regime-dependent [33]: the same signal may be bullish in one regime and bearish in another. We reduce the macro features to R latent market states:
where mixes across the feature axis (not the hidden axis); each row represents a latent aspect of the prevailing regime. In practice, the projection and reduction are factored into two stages with an intermediate normalization.
We then condition sector features on these states via multi-head cross-attention, using the sector features as queries and the latent macro states as keys and values. We define:
where and , and is the attention projection width. The attention weights and residual update are computed as:
The context is projected back via a residual connection:
where . Following the block convention, a position-wise FFN (with GELU activation) completes each layer:
Multi-head attention with L stacked layers is used, each layer recomputing from its input. The attention map is directly inspectable: it shows how strongly the model conditions each signal on the prevailing macro environment; cheap valuations may signal opportunity in one regime and a value trap in another.
3.5.1 Attention Pooling and Pillar Merge. The regime-conditioned features are aggregated into an embedding via attention pooling:
where and are learned pooling parameters. The weights are inspectable and indicate the relative contribution of each feature under the current regime.
This encoder runs independently for each pillar. The downstream sector embedding concatenates the pillar embeddings:
where denotes the combined dimension.
3.6 Cross-Sector Attention
Sector rankings are shaped by interdependencies: cyclicals move together and against defensives as the outlook shifts [13, 35]. To model this, we stack the sector embeddings and add learned sector-identity embeddings (analogous to positional encodings [42]):
We define:
where , , , with projection width . Self-attention is applied:
The context is projected and combined via a residual:
where . The map surfaces the cross-sector relationships encoded by the network; a portfolio manager can compare these against their own reading of the cross-section.
A position-wise FFN with GELU activation completes each block (following the pre-norm convention):
Multi-head attention and layers, each recomputing from its input, produce the final sector embeddings .
3.7 Ranking Head
The sector embeddings are passed through a GELU dense layer:
where . The readout is sector-specific: each sector has its own weight vector and bias , reflecting the fact that the dimensions of the shared embedding relevant for ranking differ across sectors. Writing , the overweight-side score is:
Overweight–underweight antisymmetry is enforced by negation:
Since each position is a sector–benchmark spread, overweighting and underweighting are opposite trades, justifying the sign flip.
The model is trained with the ListMLE objective [43]:
where orders actions from best to worst by realized rank. Although the 2S scores are determined by S overweight scores through antisymmetry, applying ListMLE to the full list emphasizes both the strongest overweight and strongest underweight candidates.
4 Experiment
4.1 Dataset
We source weekly sector-level fundamental, technical and shared macro data from Bloomberg, covering 11 sectors with 49 sector-specific features and 156 shared macro features. Available dates range from January 2002 to December 2024; as the label requires a full forward year, the last usable observation date is December 2023. Fundamental data is point-in-time. The target ranking is constructed from the 1-year forward Sharpe, computed from weekly returns over the following 52 weeks.
4.1.1 Combinatorial Purged Cross-Validation. To account for the overlapping forward labels and prevent information leakage, we adopt combinatorial purged cross-validation (CPCV) [4, 17].
The complete sample is first divided chronologically into six groups; see Figure 2. For each split, two groups are selected as the test set, while the remaining groups are used for training. This gives a total of train-test combinations.
Purge and embargo. The purge and embargo lengths arise from two distinct channels: the forward label horizon and the backward feature window. Preceding each test group we purge 52 weeks, matching the label span exactly—a training observation at t carries a label realised over —thereby removing in full the channel through which target information propagates directly. Following each test group we set an embargo of 52 weeks. This addresses a weaker channel: a training observation placed shortly afterwards draws part of its inputs from realisations inside the test period for calculating temporal transformations such as volatility, trend, etc.
Because we use weekly observations with a 52-week forward label, consecutive training examples exhibit overlap in their target windows. Specifically, the full sample of roughly 1,200 weeks yields only about 23 non-overlapping label periods. Consequently, each training fold contains roughly 13–15 independent periods, and each test fold contains fewer than 8. The cross-section offers limited additional independence, as sector returns are highly contemporaneously correlated and the regime-conditioning component encounters only a modest number of distinct macroeconomic regimes over 2002–2024. This constraint on independent samples is inherent to long-horizon financial prediction rather than specific to our setup. It directly motivates our combinatorial design: while a single hold-out split would rely on a fragile number of independent periods, evaluating across all 15 combinations exposes each model to a substantially broader range of market conditions.

Figure 2: We adopt combinatorial purged cross-validation, which is often used in financial machine learning [4, 17].
4.2 Baselines
We benchmark REGIMERANK against four groups of baselines.
The first group, Naive Benchmarks, contains a random ranking model, which establishes the chance level for each performance metric, and a 12-month momentum rule, which ranks the long and short sector actions based solely on their trailing 12-month performance. The next two groups contain state-of-the-art asset ranking models discussed in Table 2.
For Asset Ranking in Finance, we have: RankNet and ListNet [40], Cross-sectional Learning to Rank (LTR) [31], Listwise Node2Vec [35], Long-Short Listwise LTR [44], and Stochastic-Aware Bootstrap Ensemble Ranking (SABER) [23].
For Asset Ranking in AI, we have: Relational Stock Ranking (RSR) [13], Spatio Temporal Hypergraph Attention Network for Stock Ranking (STHAN-SR) [37], Relational Temporal Graph Convolutional Network (RT-GCN) [45], Automatic De-Biased Temporal-Relational Modeling (ADB-TRM) [9], and Progressive Dependency representation learning with Uncertain risk contrasting (PDU) [15].
In the final group, we compare with general machine learning methods fitted with the same listwise ranking head used in our model. These are: OLS, ElasticNet [46], XGBoost [8], a graph neural network (GNN) [20], and a Diffusion model [14].
Koa et al.
Table 2: Performance comparison of ranking baselines and general methods utilizing a ranking head. Each cell reports the mean and standard deviation (in subscript) across 5 runs. The best baselines are underlined, and the best results are bolded.
| Mean Spearman | Pred Acc | NDCG@3 | NDCG@5 | NDCG@11 | |
| Naive Benchmarks | |||||
|---|---|---|---|---|---|
| Random Ranking | |||||
| 12-Month Momentum | |||||
| Asset Ranking in Finance | |||||
| RankNet [40] | |||||
| ListNet [40] | |||||
| Cross-sectional LTR [31] | |||||
| Listwise Node2Vec [35] | |||||
| Long-Short Listwise LTR [44] | |||||
| SABER [23] | |||||
| Asset Ranking in AI | |||||
| RSR [13] | |||||
| STHAN-SR [37] | |||||
| RT-GCN [45] | |||||
| ADB-TRM [9] | |||||
| PDU [15] | |||||
| ML + Ranking Head | |||||
| OLS | |||||
| ElasticNet [46] | |||||
| XGBoost [8] | |||||
| GNN [20] | |||||
| Diffusion [14] | |||||
| Our Model | |||||
| REGIMERANK | |||||
4.3 Experimental Settings
The Adam optimizer is used to optimize the model, with an initial learning rate of and a weight decay of . The batch size is set to 64. All models are trained for a fixed budget of 80 epochs, applied uniformly across methods. We set the learnt embedding dimension to , with a feed-forward hidden dimension of 512 and a dropout rate of 0.1.
For both the regime-conditioning cross-attention and cross-sector self-attention components, we use 4 attention heads. The cross-sector self-attention block is also repeated across layers.
4.4 Evaluation Metrics
We evaluate models over multiple out-of-sample metrics: Pairwise accuracy measures the ratio of ranking pairs that are ordered correctly by the model; Spearman's rank correlation [41] evaluates the correlation between the set of predicted and realized rankings; Normalized Discounted Cumulative Gain (NDCG) [16] calculates the relevance of the results discounted by their position in the list. Specifically, we use NDCG@3, NDCG@5 and NDCG@11. Higher values indicate better performance for all metrics.
All experiments are repeated five times and the mean and standard deviation are reported. Reported standard deviations are computed across the five training runs and reflect run-to-run stability. As the 15 test combinations overlap by construction, their dispersion does not constitute an independent error bar.
5 Results
5.1 Performance Comparison.
Table 2 reports the ranking results. We can observe the following:
-
Overall, REGIMERANK matches or exceeds well-established ranking baselines, suggesting that the constraints of interpretability and expert-informed structure cost little in ranking accuracy.
-
The naive benchmarks calibrate the table. Random ranking pins each metric at its chance level (accuracy , NDCG@3 ), revealing that several published baselines sit at or below chance. The 12-month momentum rule falls below random, indicating that trailing one-year sector performance mean-reverts at this horizon rather than persisting.
-
Among the finance baselines, the strongest add structure to the plain cross-sectional objective: Listwise Node2Vec encodes asset relationships through node embeddings, and Long-Short Listwise LTR optimizes a relative rather than absolute target. Both improve on Cross-sectional LTR: the first suggesting a sector's rank depends on other sectors, the second that a relative target is the more informative signal. Our architecture combines both.
-
The AI ranking models underperform the simpler baselines and exhibit high variance. RSR is the strongest of this group, benefiting from temporal-relational modeling, whereas the more complex graph and hypergraph models (i.e., STHAN-SR, RT-GCN) collapse to near-zero mean Spearman with high variance. With
Table 3: Ablation study. Each cell reports the mean and standard deviation (in subscript) across 5 runs.
| Mean Spearman | Pred Acc | NDCG@3 | NDCG@5 | NDCG@11 | |
|---|---|---|---|---|---|
| w/o Latent Market States | |||||
| w/o Regime Conditioning | |||||
| w/o Sector Self-Attention | |||||
| REGIMERANK (Ours) |
the smaller sector-level universe, these high-capacity relational models appear more prone to overfitting.
-
ElasticNet and XGBoost perform well with a ranking head, consistent with the paucity of independent observations at our horizon: a one-year forward target over two decades yields few effectively independent outcomes, which favours parsimonious models. The strongest baseline, Diffusion, leads on every metric; its denoising formulation handles the noise inherent in financial signals, while GNN, which learns sector relations, follows close behind.
-
REGIMERANK achieves the best result on every metric. It improves mean Spearman correlation by 40.8% over the strongest baseline and lifts pairwise accuracy by 2.0% (relative). Notably, its largest relative gains fall on the top-ranked NDCG (NDCG@3/@5), the metrics most relevant to portfolio positioning.
-
SABER scores poorly here, perhaps because it optimizes a risk-shrunk portfolio objective rather than a ranking one, a gap that an economic evaluation might close or reverse.
5.2 Ablation Study
Table 3 reports the contribution of each component, measured by removing it from the full model. We observe the following:
-
Sector self-attention matters most, with the largest drop on every metric: sector interdependencies are central to the task.
-
Latent market states come second: removing them lowers the mean and raises the run-to-run variance on every metric. Conditioning on raw macro features directly performs worse than removing regime conditioning altogether, indicating that the latent-state bottleneck is what makes macro information usable.
-
Regime conditioning contributes the smallest yet consistent increment: the prevailing macro state still adds information that the sector-level features alone do not carry.
5.3 Interpretability Study
Feature Attribution. Next, we interpret the feature and transform importance through their SHAP values . We can observe:
-
From Figure 3, the five largest attributions are all technical signals, each exceeding the strongest fundamental. For a one-year forward Sharpe target, price and volatility dynamics carry more of the ranking signal than valuation fundamentals – OBV (on-balance volume) leads, ahead of 52-week ATR (average true range), semivolatility and volatility.
-
From Figure 4, persistence is the most influential temporal transformation, ahead of z-score, trend-persistence, volatility and trend. The pattern also holds within the fundamental pillar, where

Figure 3: Top-5 attributions for each feature type.

Figure 4: Attribution by temporal transformation.
the most influential features come from the persistence channel rather than any other transformation.
- This supports the autocorrelation premise behind our transformation-projection layer: how strongly a signal continues appears more informative for cross-sectional ranking than its level or direction.
Macro Regime Conditioning. We interpret the latent macro states through their cross-attention weights . We observe:
-
From Figure 5, feature importance varies with the learnt regimes: technical features weigh most heavily under latent state 2, fundamentals under latent state 4. The active states thus separate into price-driven and valuation-driven regimes, recovering a regime-dependence of signal informativeness that a standard cross-sectional model discards by construction.
-
From Figure 6, these states align with recognisable market periods. State 2 dominates the volatile 2002–2010 window, peaking
Koa et al.
(a) Fundamental features

(b) Technical features
attention weights
Figure 5: Attention weights for (a) fundamental and (b) technical features.
Figure 6: Attention weights over time.
around the 2008 Global Financial Crisis, and resurges over 2021–2024; state 4 activates in the calmer intervening years. The remaining states stay largely dormant. The model therefore reweights features as conditions change, leaning on technical signals in stressed markets and on fundamentals when volatility subsides.
Cross-Sector Interdependencies. We also study the sector interdependencies using their self-attention weights . We can see:
-
In Figure 7, the sample-averaged attention concentrates on a few sectors: nearly every query sector attends strongly to Real Estate, Materials, Consumer Staples and Utilities.
-
The diagonal is weak, indicating that sectors draw on other sectors’ signals rather than reinforcing their own, whose information is already preserved through the residual connection .
-
The learnt structure is economically coherent, with strong attention between cyclical sectors (e.g., Energy and Materials) and among the rate-sensitive Real Estate, Financials and Utilities, consistent with a risk-based view of the cross-section [19].
6 Conclusion
We presented REGIMERANK, an interpretable cross-sectional ranking model for long-short sector allocation that recovers temporal dynamics through signal transformation projections and conditions features on latent macro regimes via cross-attention. Across our experiments it ranks ahead of the baselines we consider on several ranking metrics, while its SHAP values and attention weights expose attributions over feature transformations, macro regimes, and sector interdependencies that portfolio managers can inspect. Overall, these findings highlight the complementary roles of temporal signal representations, macroeconomic conditioning, and cross-sector interactions in producing interpretable sector rankings.

Figure 7: Cross-sector self-attention weights.
Future Work. Three directions follow. First, we plan to evaluate economic value directly, translating the top-ranked over- and underweights into portfolio positions and measuring the fund performance they induce, net of turnover and trading costs. Second, we plan to add a sentiment pillar, which the architecture accommodates as-is, to test whether news and analyst signals rank sectors beyond fundamentals and technicals. Third, we plan to translate the structured attributions into verbal explanations through large language models, producing rationales PMs can read directly.
References
[1] Mohammad Alsulmi. 2022. From Ranking Search Results to Managing Investment Portfolios: Exploring Rank-Based Approaches for Portfolio Stock Selection. Electronics 11, 23 (2022), 4019.
[2] Daniel W. Apley and Jingyu Zhu. 2020. Visualizing the Effects of Predictor Variables in Black Box Supervised Learning Models. Journal of the Royal Statistical Society Series B: Statistical Methodology 82, 4 (2020), 1059–1086.
[3] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural Machine Translation by Jointly Learning to Align and Translate. In International Conference on Learning Representations (ICLR).
[4] David H. Bailey, Jonathan M. Borwein, Marcos López de Prado, and Qiji Jim Zhu. 2017. The Probability of Backtest Overfitting. The Journal of Computational Finance 20, 4 (2017), 39–69.
[5] João Bento, Pedro Saleiro, André F. Cruz, Mário A.T. Figueiredo, and Pedro Bizarro. 2021. TimeSHAP: Explaining Recurrent Models through Sequence Perturbations. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining (KDD '21). ACM, 2565–2573.
[6] Anna Carbone, Giuliano Castelli, and H. Eugene Stanley. 2004. Time-Dependent Hurst Exponent in Financial Time Series. Physica A: Statistical Mechanics and its Applications 344, 1-2 (2004), 267–271.
[7] Luyang Chen, Markus Pelger, and Jason Zhu. 2024. Deep Learning in Asset Pricing. Management Science 70, 2 (2024), 714–750.
[8] Tianqi Chen and Carlos Guestrin. 2016. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '16). ACM, 785–794.
[9] Weijun Chen, Shun Li, Xipu Yu, Heyuan Wang, Wei Chen, and Tengjiao Wang. 2024. Automatic De-Biased Temporal-Relational Modeling for Stock Investment Recommendation. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI-24). 1999–2008.
[10] Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D. Manning. 2019. What Does BERT Look At? An Analysis of BERT's Attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, 276–286.
[11] Rama Cont. 2001. Empirical Properties of Asset Returns: Stylized Facts and Statistical Issues. Quantitative Finance 1, 2 (2001), 223–236.
[12] Gabriel Erion, Joseph D. Janizek, Pascal Sturmfels, Scott M. Lundberg, and Su-In Lee. 2021. Improving Performance of Deep Learning Models with Axiomatic Attribution Priors and Expected Gradients. Nature Machine Intelligence 3, 7 (2021), 620–631.
[13] Fuli Feng, Xiangnan He, Xiang Wang, Cheng Luo, Yiqun Liu, and Tat-Seng Chua. 2019. Temporal Relational Ranking for Stock Prediction. ACM Transactions on Information Systems 37, 2 (2019), 27:1–27:30.
[14] Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020). 6840–6851.
[15] Li Huang, Yanzhe Xie, Qiang Gao, Kunpeng Zhang, Guisong Liu, and Xueqin Chen. 2025. Progressive Dependency Representation Learning for Stock Ranking in Uncertain Risk Contrasting. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1 (KDD '25). ACM, 532–543.
[16] Kalervo Järvelin and Jaana Kekäläinen. 2002. Cumulated Gain-Based Evaluation of IR Techniques. ACM Transactions on Information Systems 20, 4 (2002), 422–446.
[17] Jacques Joubert, Dragan Sestovic, Illya Barziy, Walter Distaso, and Marcos López de Prado. 2024. Enhanced Backtesting for Practitioners. The Journal of Portfolio Management 51, 2 (2024), 12–27.
[18] Bryan T. Kelly, Boris Kuznetsov, Semyon Malamud, and Teng Andrea Xu. 2024. Large (and Deep) Factor Models. arXiv preprint arXiv:2402.06635 (2024).
[19] Bryan T. Kelly, Boris Kuznetsov, Semyon Malamud, and Teng Andrea Xu. 2025. Artificial Intelligence Asset Pricing Models. Working Paper 33351. National Bureau of Economic Research.
[20] Thomas N. Kipf and Max Welling. 2017. Semi-Supervised Classification with Graph Convolutional Networks. In International Conference on Learning Representations (ICLR).
[21] Kelvin J.L. Koa, Jan Chen, Yunshan Ma, Huanhuan Zheng, and Tat-Seng Chua. 2026. Reasoning on Time-Series for Financial Technical Analysis. In International Conference on Learning Representations (ICLR). 64059–64079.
[22] Kelvin J.L. Koa, Filip Orestav, Shengqiong Wu, Michael J. Wooldridge, and Ke-Wei Huang. 2026. Self-Evolving Multi-Agent Symbolic Discovery for Financial Fundamental Analysis. arXiv preprint arXiv:2609.32746 (2026).
[23] Eleftherios Kouloumpris, Konstantinos Moutsianas, and Ioannis P. Vlahavas. 2024. SABER: Stochastic-Aware Bootstrap Ensemble Ranking for Portfolio Management. Expert Systems with Applications 249 (2024), 123637.
[24] Marcos López de Prado. 2016. Building Diversified Portfolios that Outperform Out of Sample. The Journal of Portfolio Management 42, 4 (2016), 59–69.
[25] Scott M. Lundberg and Su-In Lee. 2017. A Unified Approach to Interpreting Model Predictions. In Advances in Neural Information Processing Systems 30 (NIPS 2017). 4765–4774.
[26] Evelyn J. Mannix, Liam Hodgkinson, and Howard D. Bondell. 2025. ComFe: An Interpretable Head for Vision Transformers. Transactions on Machine Learning Research (2025).
[27] Tobias J. Moskowitz and Mark Grinblatt. 1999. Do Industries Explain Momentum? The Journal of Finance 54, 4 (1999), 1249–1290.
[28] Edward S. O'Neal. 2000. Industry Momentum and Sector Mutual Funds. Financial Analysts Journal 56, 4 (2000), 37–49.
[29] Amit Pathak. 2026. The S&P 500 Sector Indices: The Blueprint for Precision Analysis. Index Education, S&P Dow Jones Indices.
[30] Markus Pelger and Ruoxuan Xiong. 2022. State-Varying Factor Models of Large Dimensions. Journal of Business & Economic Statistics 40, 3 (2022), 1315–1333.
[31] Daniel Poh, Bryan Lim, Stefan Zohren, and Stephen Roberts. 2021. Building Cross-Sectional Systematic Strategies by Learning to Rank. The Journal of Financial Data Science 3, 2 (2021), 70–86.
[32] Daniel Poh, Bryan Lim, Stefan Zohren, and Stephen Roberts. 2022. Enhancing Cross-Sectional Currency Strategies by Context-Aware Learning to Rank with Self-Attention. The Journal of Financial Data Science 4, 3 (2022), 89–107.
[33] Bruno Rémillard, Alexandre Hocquard, Hugo Lamarre, and Nicolas Papageorgiou. 2017. Option Pricing and Hedging for Discrete Time Regime-Switching Models. Modern Economy 8, 8 (2017), 1005–1032.
[34] Marco Túlio Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "Why Should I Trust You?": Explaining the Predictions of Any Classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '16). ACM, 1135–1144.
[35] Suman Saha, Junbin Gao, and Richard Gerlach. 2021. Stock Ranking Prediction Using List-Wise Approach and Node Embedding Technique. IEEE Access 9 (2021), 88981–88996.
[36] Bhaskarjit Sarmah, Nayana Nair, Riya Jain, Dhagash Mehta, and Stefano Pasquali. 2024. Learning Embedded Representation of the Stock Correlation Matrix Using Graph Machine Learning. In Proceedings of the 2024 IEEE Symposium on Computational Intelligence for Financial Engineering and Economics (CIFER). IEEE, 1–9.
[37] Ramit Sawhney, Shivam Agarwal, Arnav Wadhwa, Tyler Derr, and Rajiv Ratn Shah. 2021. Stock Selection via Spatiotemporal Hypergraph Attention Network: A Learning to Rank Approach. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35. 497–504.
[38] Pulkit Sharma, Shezan Rohinton Mirzan, Apurva Bhandari, Anish Pimpley, Abhiram Eswaran, Soundar Srinivasan, and Liqun Shao. 2020. Evaluating Tree Explanation Methods for Anomaly Reasoning: A Case Study of SHAP Tree-Explainer and TreeInterpreter. In Advances in Conceptual Modeling: ER 2020 Workshops (Lecture Notes in Computer Science, Vol. 12584). Springer, 35–45.
[39] Galit Shmueli. 2010. To Explain or to Predict? Statistical Science 25, 3 (2010), 289–310.
[40] Qiang Song, Anqi Liu, and Steve Y. Yang. 2017. Stock Portfolio Selection Using Learning-to-Rank Algorithms with News Sentiment. Neurocomputing 264 (2017), 20–28.
[41] Charles Spearman. 1904. The Proof and Measurement of Association between Two Things. The American Journal of Psychology 15, 1 (1904), 72–101.
[42] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention Is All You Need. In Advances in Neural Information Processing Systems 30 (NIPS 2017). 5998–6008.
[43] Fen Xia, Tie-Yan Liu, Jue Wang, Wensheng Zhang, and Hang Li. 2008. Listwise Approach to Learning to Rank: Theory and Algorithm. In Proceedings of the 25th International Conference on Machine Learning (ICML '08). ACM, 1192–1199.
[44] Xin Zhang, Lan Wu, and Zhixue Chen. 2022. Constructing Long-Short Stock Portfolio with a New Listwise Learn-to-Rank Algorithm. Quantitative Finance 22, 2 (2022), 321–331.
[45] Zetao Zheng, Jie Shao, Jia Zhu, and Heng Tao Shen. 2023. Relational Temporal Graph Convolutional Networks for Ranking-Based Stock Prediction. In Proceedings of the 39th IEEE International Conference on Data Engineering (ICDE). IEEE, 123–136.
[46] Hui Zou and Trevor Hastie. 2005. Regularization and Variable Selection via the Elastic Net. Journal of the Royal Statistical Society Series B: Statistical Methodology 67, 2 (2005), 301–320.