Rust in Everything
← Papers

AllocFlow: End-to-End Portfolio Trading Action Generation from Raw Market Data

Annan Wang, Yuchen Xie, Yu Cen, Leon Liangyu Chen, Qianyu Julie Zhu, Xin Li et al.

2026-11-17▲ 69arXiv 2611.19937v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

AllocFlow generates joint signed portfolio weights directly from raw multi-asset histories using a frozen financial encoder, a cross-asset flow Transformer, imitation initialization, and group-relative RL refinement.

Problem

Traditional pipelines often decouple signal forecasting from portfolio construction, so an improved forecast or alpha does not by itself determine a better trade. A portfolio must choose direction and size for each instrument under shared capital and exposure considerations, and positions must be considered relative to one another. Learning continuous allocation policies from scratch with RL is sample inefficient and unstable because outcomes are noisy and there is no unique optimal portfolio label.

Method

AllocFlow freezes Kronos and uses its hidden states to produce one coarse and one fine market token per asset. It interleaves these token pairs with their mean, yielding 2N_t+1 tokens for a DiT-style flow head whose allocation-state tokens decode all signed target weights jointly. Starting from Gaussian noise, a market-conditioned velocity field generates a continuous action vector; four Euler steps are used at inference, and a projection enforces dollar neutrality before execution rounding. Training has two stages: imitation of causal strategy allocations with flow matching and auxiliary losses, then Flow-GRPO refinement using group-relative portfolio rewards and a frozen IL policy reference. The RL reward normalizes each candidate book to gross exposure 0.85, holds it over the same 24 forward hourly bars, and scores its gross Sharpe.

Results

  • RL refinement raises annualized net return, Sharpe, and Calmar while reducing maximum drawdown relative to the imitation policy. §4.3. Quantitative Results
  • The same trained policy reaches Calmar 4.90 on six further months of unseen 2026 data without retraining, with return 62.53 percent, MDD 12.77 percent, and Sharpe 2.06. §C.2. The 2026 out-of-sample period
  • AllocFlow achieves the highest reported net return and Calmar in the main table; the strongest listed alpha baseline reaches Calmar 1.720. §4.3. Quantitative Results
  • Under the same RL objective, the flow head reaches Calmar 4.043, while the MLP and one-pass Transformer reach 1.307 and 0.960; a parameter-matched Gaussian policy reaches at most 1.92 across exploration scales. §5.1. The profitability comes from the Joint Action Generation or Kronos
  • Replacing frozen Kronos with a frozen iTransformer under the flow head loses heavily after IL and RL; the iTransformer RL run has return -119.29 and Calmar -0.846 versus Kronos RL return 51.38 and Calmar 4.043. §5.3. Market representation
  • RL improves Calmar for every tested teacher, and AllocFlow surpasses its AgenticAlpha teacher on every metric, with Calmar 4.043 versus 1.733. §5.2. Demonstrations initialize action space; RL creates value

Limitations

  • Paper states no additional hard gross cap in the evaluated decoder, and dollar neutrality does not imply beta neutrality, sector neutrality, or bounded drawdown (3.1, A.2).
  • Main evaluated policy does not receive current holdings as input; holdings enter the ledger, and the closed-loop holdings-conditioned variant is reported separately (3.1, B.4).
  • Training reward scores fixed candidate books over 24 forward hourly bars at gross 0.85, which the paper distinguishes from replaying an entire future sequence of hourly decisions and rebalancing costs (B.3, C.1).
  • The dimension-normalized transition ratio is stated not to be an exact untempered joint-policy likelihood-ratio estimator (B.3).

Key points

  • AllocFlow maps raw multi-asset histories to signed target weights with no intermediate forecast, alpha score, or optimizer; the pretrained encoder stays frozen. §1. Introduction
  • A frozen Kronos encoder yields one coarse and one fine market token per asset; token pairs are interleaved with their mean to form 2N_t+1 tokens for the flow head. §3.1. Generating a portfolio from compact market context
  • The flow head generates a continuous joint action vector via a market-conditioned velocity field; four Euler steps are used at inference. §3.1. Generating a portfolio from compact market context
  • A projection removes the common component and imposes dollar neutrality before rounding; no additional hard gross cap is in the evaluated decoder. §3.1. Generating a portfolio from compact market context
  • Imitation trains a randomly initialized action head on causal AgenticAlpha allocations using flow matching plus score, weight, rank, and gross auxiliary losses. §3.2. Imitation learning
  • Flow-GRPO samples eight candidate books, holds each fixed over the same 24 forward hourly bars, normalizes to gross exposure 0.85, and uses group-relative advantages with a frozen IL reference. §3.3. Refining joint decisions with portfolio rewards
  • Evaluation uses hourly crypto perpetual futures, a weekly top-20 universe by trailing 60-day volume, and 5 bps per unit of absolute traded weight. §4.2. Evaluation design
  • A closed-loop variant adds holdings features to the action head and records Calmar 4.59, MDD 11.9, Sharpe 2.15, and TO 1.38. §B.4. Closed-loop variant and deployment-aligned objectives

Mind map

AllocFlow
Problem
Decoupled forecasting and allocation
Noisy outcomes and no optimal label
Costly exploration in continuous space
Method
Frozen Kronos market tokens
Cross-asset flow Transformer
Joint signed target book
Dollar-neutral projection
Four Euler inference steps
Training
Imitation from causal strategy allocations
Flow matching plus auxiliary losses
Flow-GRPO group-relative reward
Frozen IL policy reference
Evaluation
Hourly crypto perpetual futures
Weekly top 20 by 60-day volume
5 bps traded-weight fee
Nov 2024 to Dec 2025 test
Jan to Jun 2026 unseen test
Results
IL Calmar 0.955 to RL 4.043
Return 27.79 to 51.38 percent
MDD 29.10 to 12.81 percent
2026 Calmar 4.90
Teacher Calmar 1.733 vs 4.043
Limitations
No hard gross cap
Dollar neutrality not beta neutrality
Fixed 24-bar reward not full replay
Holdings not in main policy input
Dimension-normalized ratio not exact likelihood