Paris Dauphine's Onflow Beats Classic Portfolio Methods When Trading Fees Get High
A new gradient-flow reinforcement learning method rebalances portfolios online without assuming any return distribution, staying stable even under heavy trading fees.
ProTakeaways
- Onflow is a reinforcement learning portfolio allocator built on gradient flows and softmax weights.
- Update rule is an ODE solved each step, with transaction fees baked into the flow.
- Recovers the Markowitz optimum for log-normal assets with zero fees.
- Matches Cover Universal Portfolio and Helmbold EG on the old NYSE benchmark with zero costs.
- Beats both when transaction costs are high, staying stable where others fail.
- Model-free, price-only input, published in Annals of Finance.
Portfolio allocation is one of the oldest optimization problems in finance, and the classical toolkit has a stubborn weakness: the moment you add realistic trading frictions, the neat solutions start to fall apart. A new method called Onflow, from researchers at Université Paris Dauphine-PSL, takes a fresh angle by treating allocation as a reinforcement learning problem driven by gradient flows, and it holds up in regimes where the standard online algorithms simply stop working.
Why the old playbook breaks
The dominant approaches to online portfolio selection come from the information theory and online learning traditions. Helmbold, Schapire, Singer and Warmuth's 1998 algorithm achieves almost the same wealth as the best constant-rebalanced portfolio determined in hindsight, using a multiplicative update rule derived from a framework introduced by Kivinen and Warmuth. Cover's Universal Portfolio, meanwhile, takes a performance weighted average over all portfolios in the simplex, and asymptotically approaches the growth rate of a constant weight rebalanced portfolio with the benefit of hindsight.
These are elegant theoretical results, but they were designed in a world without meaningful transaction costs. In practice, every rebalance costs money, and aggressive reallocation can eat returns alive. Model-based alternatives such as Markowitz mean-variance optimization go the other way: they assume you know the distribution of returns, which introduces model risk that real traders would rather not carry.
The core idea behind Onflow
Onflow sits between these camps. It is a reinforcement learning method for optimizing portfolio allocation via gradient flows that dynamically adjusts allocations to maximize expected log returns while accounting for transaction costs, using a softmax parameterization and an ordinary differential equation derived from gradient flow methods.
A few concepts worth unpacking here:
- Gradient flow. Instead of taking discrete gradient steps, you follow the continuous ODE that gradient descent would trace out in the limit of infinitesimal step size. Each rebalance solves that ODE forward in time.
- Softmax parameterization. Portfolio weights are expressed as a softmax over unconstrained logits, which automatically keeps them positive and summing to one without projection tricks.
- Log return objective. Maximizing expected log wealth is the classic Kelly criterion, the growth-optimal target that underlies most of the online portfolio literature.
The transaction cost term is baked directly into the gradient flow, so the update naturally penalizes moves that churn the portfolio. Onflow uses a softmax representation of the allocation and solves during each time step a gradient flow evolution equation that can be implemented through a simple ODE; this gradient flow also contains terms to minimize the transaction costs.
What the theory guarantees
The authors do not just wave at empirical results. For the case of log-normal continuous time evolution and assuming that true gradients can be used, they show theoretically under some technical assumptions that the procedure will converge to the optimum allocation. In plain terms: when the market behaves like textbook geometric Brownian motion and fees are zero, Onflow replicates the Markowitz optimal portfolio, achieving the best possible allocation. So the algorithm recovers the classical answer in the classical setting, which is a strong sanity check.
Where it actually wins
The empirical tests use the well-known "old NYSE" dataset, the same 22-year stock series used in Helmbold et al.'s original paper. The results split cleanly into two regimes:
- Zero transaction costs. Onflow performs comparably to Cover's Universal Portfolio and the Helmbold multiplicative-updates approach. No free lunch here, and none expected.
- High transaction costs. Onflow performs better than previous procedures when transaction costs are high, and can even remain efficient in regimes where other dynamical allocation techniques do not work anymore.
That second point is the real headline. Universal Portfolio and exponentiated gradient methods were engineered before transaction costs were a first-class concern, and they tend to over-trade. By making the fee penalty part of the flow itself rather than a post-hoc constraint, Onflow keeps rebalancing quiet when the expected edge does not justify the cost.
Why this matters beyond the paper
The published version in Annals of Finance emphasizes something that matters in production: Onflow relies solely on observed prices, requires no assumptions about asset return distributions, and is robust against model risk. Any system that has to survive contact with real markets has to survive being wrong about the data generating process. A method whose only input is the realized price stream sidesteps a whole class of failure modes.
Practically, Onflow is a candidate whenever you have:
- A universe of assets and a stream of prices, but no confidence in a parametric return model.
- Non-trivial trading costs, slippage, or bid-ask spreads that make naive rebalancing expensive.
- A need for an online policy that updates as data arrives, rather than a batch optimizer run overnight.
Limitations are worth flagging too. The convergence proof leans on log-normal dynamics and access to true gradients, which real markets do not provide. The published experiments are on the "old NYSE" benchmark rather than modern high-frequency data, and the method still targets log-wealth, so risk-averse investors who care about drawdowns rather than growth rate will need to modify the objective. The paper does not appear to publish an accompanying open-source repository, so anyone wanting to try Onflow will need to implement the ODE update from the algorithm description themselves.