r/quantfinance • • 17d ago

Amortized optimization for portfolio construction

/r/quant/comments/1xt42fp/amortized_optimization_for_portfolio_construction/
1 Upvotes

5 comments sorted by

1

u/AoideusWasBanned 17d ago

It works for speed, but the catch is that the network gives you something close to optimal, not something that respects the constraints. Weights 0.3% over a position limit or summing to 1.002 are fine for research and not fine for an order. A common approach is using the NN output as a warm start and letting the solver finish, which still saves most of the time.

The other issue is distribution shift. It learns the map from covariance and expected returns to weights on the regimes it was trained on, and covariance matrices in a crisis look pretty different. I'd measure the gap to the solver's objective on stress periods specifically, not just the average.

Also worth checking if it's really faster at your size. For a few hundred assets a QP solver is already very quick, so the gain mostly shows when you're solving thousands of portfolios at once.

1

u/Illustrious-Pace-585 17d ago

That’s very very useful! I guess I’m comparing it to MIQP problems where you got to trade whole shares and it becomes slow to use a solver. My main idea is really to see if it makes sense to have a portfolio optimization for agents, but traditional optimization is slow and agents need a faste service

1

u/AoideusWasBanned 17d ago

For whole shares, the integer constraint is the part that makes MIQP hard, so a model's continuous weights don't remove the need to satisfy budget and position limits after rounding. I'd test it as a warm start under your latency budget and compare the feasible incumbent and optimality gap against the plain solver, with a fallback to the last feasible portfolio if it times out.

1

u/Illustrious-Pace-585 17d ago

But I’m also thinking could you create a foundational model for portfolio construction?

1

u/AoideusWasBanned 17d ago

A foundation model could learn a useful prior over allocations from many covariance, return, and constraint sets, but I would still keep the optimizer as the final authority. The failure mode is task mismatch: a model trained on one objective or constraint family can look good on average and violate limits or degrade in a new regime, so enforce constraints with a solver. I would compare its warm-start objective gap and solve time on held-out crisis windows, not just random splits.