When Asset Order Decides the Portfolio: Positional Bias as a Symptom of Long-Only Degeneracy

Many funds are only allowed to buy assets, never to bet against them. Their portfolio weights must be non-negative and sum to one. Machine-learning allocators enforce this rule with a softmax output, which turns arbitrary scores into positive weights that sum to one. Separately, sequence models such as Transformers and large language models have a well-documented habit of favoring whatever appears first or last in their input. This note argues that these two facts are linked. A long-only allocator that is sensitive to the order in which assets are listed is mostly showing that the long-only problem it was asked to solve has many near-equivalent answers. Rearranging the input just picks a different one. The prediction is testable: order sensitivity should be small when one portfolio is clearly best and large when many very different portfolios are nearly tied. An architecture that is mathematically blind to order should not remove this arbitrariness. It should turn it into equally large sensitivity to small noise in the data.

The stakes are practical. Order-blind designs are presented as a cure for unstable learned allocators. If the instability is really a property of the constrained problem, then a model that passes an order-shuffling audit can still churn its holdings on every rebalance, and the audit gave false comfort. The fix this note proposes is to anchor ambiguous choices to what the fund already holds. Averaging over shuffled orders, the standard remedy for positional bias, is not the fix.

Core Claim

Garnier-Brun, Benzaquen, Ciliberti and Bouchaud showed in A New Spin on Optimal Portfolios and Ecological Equilibria that imposing $w_i \ge 0$ creates "disorder chaos." There are exponentially many portfolios with nearly the same variance but very different sets of held assets, and the logarithm of their number grows like $N^\alpha$ with $\alpha \le 2/3$. Tiny changes to the estimated covariance then reshuffle which assets are held. In a separate literature, Addressing Blind Guessing and CMMU show that neural models fall back on position mainly when they cannot tell competing options apart. Here, "position" means the slot an option occupies, for example always picking choice A.

The claim combining these has three parts. First, for long-only allocators that are sensitive to input order, the size of that sensitivity on a given date is predicted by a model-free measure of how degenerate the long-only problem is on that date. Second, for allocators whose output simply permutes along with their input, order sensitivity is zero by construction. Their sensitivity to resampling noise in the input window, however, should track the same degeneracy measure and reach a magnitude comparable to the order sensitivity of order-sensitive models. Third, in degenerate regimes, choosing the near-optimal portfolio closest to current holdings gives allocations that are both stable and order-invariant. Averaging over input permutations instead tends to produce dense, high-turnover portfolios.

We define degeneracy on date $t$ as

$$D_t = \mathbb{E}\,\big\|w - w'\big\|_1,\qquad w, w' \sim \mathcal{U}\big(\{w \in \Delta^{N-1} : \phi_t(w) \le \phi_t(w^*_t) + \varepsilon\}\big).$$

Here $\phi_t$ is the long-only objective estimated from the trailing window (variance, or mean-variance with a fixed risk aversion), $w^*_t$ is its minimizer over the simplex $\Delta^{N-1}$, and $\varepsilon$ is a tolerance set to the objective's own bootstrap standard error. $D_t$ is the typical distance between two portfolios that are statistically indistinguishable from optimal. We estimate it by hit-and-run sampling of the near-optimal set, cross-checked against the dispersion of bootstrap-re-estimated optima.

We define permutation dispersion as $S_t = \mathbb{E}_P \|P^{-1} f(Px_t) - f(x_t)\|_1$, where $f$ is the allocator, $x_t$ is its input, and $P$ is a random reordering of assets. Noise dispersion $R_t$ is the same quantity with $P$ replaced by a block-bootstrap resample of the input window.

How This Sits Against Prior Work

The closest work is WaveCorr. It builds a convolutional policy whose outputs permute exactly with its inputs, and reports that under test-time asset reshuffling its annual-return standard deviation is five times lower than that of the order-sensitive CS-PPN. WaveCorr motivates this proposal but treats order sensitivity as an architectural defect to remove. It never asks whether the arbitrariness reappears as noise sensitivity, and it never conditions on how degenerate the underlying problem is. Our second prediction is directly about what WaveCorr leaves unmeasured.

Three financial Transformer lines supply the order-sensitive architectures we audit, and none audits them for order effects:

We keep the long-only mandate that the Relation-Aware Transformer abandons, because that mandate is what creates the degeneracy.

On the positional-bias side, two lines constrain the design:

The existing remedies all operate on discrete choices. REQUAL-LM shuffles inputs and projects to a centroid. OTTER reweights predictions with optimal transport. QMOS shuffles options and takes a majority vote. We borrow their shuffling machinery as a baseline. We argue it is the wrong aggregation for continuous sparse weights, and we test that rather than assume it.

Research Program

The first component is the diagnostic. For every rebalance date in each dataset, we compute $D_t$ from the trailing return window. We then train a set of long-only allocators, each with a softmax output and a Sharpe-ratio objective net of transaction costs. The order-sensitive models are:

  • a convolutional EIIE/CS-PPN-style policy;
  • a Relation-Aware-Transformer-style cross-asset attention model with learned asset-slot embeddings and a softmax head replacing its leverage decoder.

The order-blind models are:

  • WaveCorr;
  • a cross-asset attention model with no asset-slot embeddings. Time ordering is kept within each asset's sequence, so the model permutes its outputs with its inputs.

A third arm uses an instruction-tuned LLM. It receives a list of tickers with trailing statistics and must return long-only weights that sum to one. This is where serial position effects are best documented.

For each allocator and date we measure $S_t$ and $R_t$. We then fit how they depend on $D_t$, controlling for realized volatility and average correlation. The control matters because degeneracy and crisis conditions overlap, and we want to separate "the problem is ambiguous" from "the market is falling."

The second component tests the scaling prediction. Disorder chaos predicts that the number of near-optimal portfolios grows with $N$. So $D_t$, and with it $S_t$ or $R_t$, should rise as the universe grows from 30 (DJIA) to 50 (WaveCorr data) to roughly 500 (the S&P 500 universe used by the Relation-Aware Transformer). The theory in A New Spin on Optimal Portfolios is proven only for rank-one interaction matrices. Whether empirical full-rank covariances reproduce the growth is itself a finding.

The third component is the fix. We replace the softmax head with an anchored projection layer. The network outputs a predicted objective (expected returns and a covariance adjustment). The final weights are then the portfolio within $\varepsilon$ of that predicted optimum that is closest in $L_1$ distance to the previous holdings. This is a small convex program solved by a differentiable optimization layer. It respects long-only constraints exactly, it is order-invariant whenever its inputs are, and it breaks ties by staying put rather than by position or noise.

Baselines

The do-nothing reference is the equal-weight portfolio. It is trivially order-invariant and long-only, and it has zero dispersion. WaveCorr reports beating it by 3% to 25% absolute annual return across its datasets, but we rerun it on our splits. Any allocator whose stability gain comes with a return loss that brings it below equal-weight has not earned its complexity.

The classical reference is long-only mean-variance quadratic programming with a shrinkage covariance and an explicit turnover penalty, re-estimated on the same rolling windows. It is order-invariant by construction. Because of disorder chaos, it is also the natural test case for the claim that degeneracy, not architecture, drives instability: its $R_t$ should track $D_t$.

The strongest existing learned method on this question is WaveCorr. It reports 56% annual return against 31% for CS-PPN, maximum drawdown of 31% against over 67% for other deep RL baselines on the Covid-period TSX data, and a five-times-lower return standard deviation under asset reshuffling. For long-only performance on large Chinese universes, Quantformer reports a Sharpe ratio of 0.915. For a short-capable regime-aware model, DeepTrader reports an annualized Sharpe of 0.718 on DJIA. No reported result was found on Lacuna for noise-resampling dispersion of any learned allocator. Our $R_t$ comparison therefore has no published number to match and is new measurement.

The positional-debiasing baseline is test-time permutation averaging in the style of QMOS and REQUAL-LM. It runs $M$ shuffled passes of the order-sensitive model and averages the un-permuted weights.

The key ablation holds the backbone fixed and swaps only the output layer. One variant uses a softmax head with a turnover penalty in the reward, tuned over the same grid as our $\varepsilon$. The other uses the anchored projection head. This isolates whether anchoring adds anything beyond a well-tuned cost penalty.

All learned models share data splits, input features, a 0.25% transaction cost, the same hyperparameter-search budget measured in trials, and five training seeds. WaveCorr is reimplemented from its paper, and we report its published numbers alongside our reproduction.

The anchored head beats the field if three conditions hold together:

  • it lowers turnover and $R_t$ in the top tercile of $D_t$ relative to the tuned-penalty ablation;
  • it matches or exceeds WaveCorr's Sharpe ratio within seed variance;
  • it stays above equal-weight net of costs.

Why not just…?

Why not just use an order-blind architecture and declare the problem solved? This is the most serious alternative, and the second prediction is designed to test it. If WaveCorr and the slot-free attention model show noise dispersion $R_t$ that stays flat as $D_t$ rises, while order-sensitive models' $S_t$ climbs, then order sensitivity really was an architectural defect. The degeneracy story would then be wrong for learned allocators, and we would report exactly that. The evidence that it may not be enough is indirect. Classical long-only optimization is perfectly order-invariant and is still the textbook case of noise-driven reshuffling in A New Spin on Optimal Portfolios. Nothing in WaveCorr's evaluation measures stability under data resampling.

Why not just average over shuffled orders at test time? On discrete tasks this works: QMOS reports a 10% accuracy gain from option shuffling alone. Portfolio weights are continuous, though, and long-only optima are sparse. Averaging near-optimal solutions that hold different assets should produce a denser portfolio with more names and more turnover. That is a hypothesis drawn from the geometry, not a measured result, and we test it directly by comparing turnover and number of held names against the anchored head. Averaging also costs $M$ forward passes per rebalance.

Why not just add a turnover penalty or shrink the covariance? This is a real threat to the method contribution, because a turnover penalty also anchors to current holdings. The difference is that a penalty trades return against stickiness everywhere. The anchored head is sticky only inside the statistically indistinguishable set, so it should pay less return in clearly non-degenerate regimes. The output-layer ablation settles this. If a tuned penalty matches the anchored head on Sharpe, turnover and $R_t$ across all degeneracy terciles, the method contribution collapses to a recommendation. The diagnostic findings would still stand.

Why not just use equal weights? Equal-weight wins on stability by construction, so the question is whether learned allocators beat it after costs. WaveCorr says they do on its data. We keep equal-weight as the floor in every comparison.

Proposed Experiments and Decisive Checks

We use the three WaveCorr datasets (Canadian TSX 2003–2019, a 50-stock US S&P 500 sample 2003–2019, and TSX through Covid 2012–2021) and DeepTrader's DJIA, HSI and CSI100 splits. CSI100 is the market where short-selling is genuinely banned. A roughly 500-stock S&P 500 universe over 2013–2018, following the Relation-Aware Transformer, serves as the scaling test. These are rebuilt from daily prices, since the file gives no released copies. The LLM arm uses the 50-stock universes, with sixty random orderings per date.

Metrics are $S_t$, $R_t$, turnover, number of held names, Sharpe ratio net of costs, and maximum drawdown. Each is reported overall and by tercile of $D_t$.

The first decisive check is whether $S_t$ for order-sensitive models rises monotonically across $D_t$ terciles after controlling for volatility and correlation. If it does not, the core link fails.

The second is whether, in the top $D_t$ tercile, order-blind models show $R_t$ of the same order as order-sensitive models' $S_t$. A gap of several-fold would refute the conversion claim.

The third is whether $D_t$ and dispersion grow with universe size from 30 to roughly 500 assets.

The fourth is whether, in the LLM arm, assets listed first receive higher weight specifically on high-$D_t$ dates. That would be the portfolio analogue of the blind-guessing pattern.

The fifth is whether the anchored head beats both permutation averaging and the tuned turnover-penalty ablation on turnover and $R_t$ in degenerate regimes without falling below WaveCorr's Sharpe ratio. A clean negative on the fifth check, combined with positives on the first three, would still be a useful result. It would mean positional-bias audits of financial models must be read against the degeneracy of the problem, and that order invariance alone certifies little.