Discovery of Diverse and Realistic Financial Tail-Risk Using Generative Flow Networks
Organizations: Faculty of Computer and Information Science, Ben-Gurion University of the Negev, Beer-Sheva, Israel
Abstract
Accurate modeling of rare, high-impact financial events is essential for robust risk management. Sampling-based techniques such as Sequential Markov Chain Monte Carlo (SMCMC) generate diverse scenarios but inefficiently explore high-risk regions, while Deep Reinforcement Learning (DRL) converges on narrow sets of scenarios, limiting diversity. We present GRID, which uses Generative Flow Networks (GFlowNets) -- samplers that draw objects in proportion to a reward -- to systematically generate diverse and realistic financial tail-risk scenarios. Building on continuous GFlowNets, GRID introduces a flexible mixture-policy architecture with variable-specific distribution families for high-dimensional, sequential macro-financial data, together with plausibility constraints that keep generated trajectories realistic. A central practical advantage is robustness to reward-proxy imperfection: because GFlowNets sample proportionally rather than maximize, they remain broadly exploratory even when the oracle's out-of-sample accuracy is low -- an unavoidable reality in financial forecasting. On three real-world crises, GRID improves scenario diversity, realism, and tail-risk coverage over RL and MCMC baselines, and ablations over oracle architectures and distribution families yield practical insights into continuous GFlowNet behavior under noisy rewards.
Figures & tables
| Variable | Description |
|---|---|
| Volume_spx | Trading volume of the S&P 500 index |
| Close_ndx | Closing price of the NASDAQ-100 index |
| Volume_ndx | Trading volume of the NASDAQ-100 index |
| Close_vix | Closing value of the VIX (volatility index) |
| IRLTCT01USM156N | Long-term US interest rate |
| BAMLH0A3HYCEY | High-yield corporate bond spread |
| Metric | Dot-Com (2002) | GFC (2008) | COVID-19 (2021) |
|---|---|---|---|
| -0.4762 | 0.0942 | -0.8638 | |
| RMSE | 11.59 | 4.2048 | 14.3532 |
| MAE | 9.78 | 2.92 | 12.81 |
| Component / Setting | Value |
|---|---|
| GRID policy ( ) | |
| Architecture | 3-layer MLP, LeakyReLU, layer norm |
| Horizon | 12 timesteps |
| Replay buffer size | 5000 |
| Optimizer / learning rate | Adam / |
| Batch size | 16 |
| Method | Median Reward | Q90 Reward | ||||
|---|---|---|---|---|---|---|
| 2002 | 2008 | 2021 | 2002 | 2008 | 2021 | |
| GRID | 43.11 | 31.13 | 18.12 | 58.57 | 54.52 | 100.00 |
| REINFORCE | 32.02 | 19.37 | 24.33 | 65.57 | 57.06 | 98.53 |
| SAC | 5.34 | 18.86 | 34.00 | 40.99 | 67.92 | 100.00 |
| SMCMC | 26.01 | 29.62 | 42.71 | 30.52 | 34.22 | 49.03 |
| Method | Traj Div (DTW) | Norm. Traj Div | Terminal-State Div | Norm. Terminal-State Div | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 | 2008 | 2021 | 2002 | 2008 | 2021 | 2002 | 2008 | 2021 | 2002 | 2008 | 2021 | |
| GRID | 108.85 | 550.39 | 399.15 | 99.02 | 481.41 | 399.15 | 79.80 | 266.13 | 200.81 | 72.60 | 232.78 | 200.81 |
| REINFORCE | 94.31 | 402.24 | 229.17 | 90.71 | 352.80 | 229.17 | 77.24 | 271.92 | 160.71 | 74.29 | 238.50 | 160.71 |
| SAC | 260.25 | 136.10 | 264.38 | 244.84 | 136.10 | 264.38 | 182.53 | 92.27 | 187.60 | 171.72 | 92.27 | 187.60 |
| SMCMC | 182.01 | 186.48 | 164.81 | 163.69 | 167.92 | 139.29 | 100.93 | 103.47 | 96.53 | 90.77 | 93.17 | 81.58 |
| 2002 (Dot-Com) | 2008 (GFC) | 2021 (COVID-19) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Top- | Max | Mean | Std | Max | Mean | Std | Max | Mean | Std |
| GRID | 10 | 0.374 | 0.267 | 0.073 | 0.433 | 0.247 | 0.132 | 0.500 | 0.420 | 0.059 |
| 50 | 0.380 | 0.265 | 0.084 | 0.562 | 0.276 | 0.133 | 0.533 | 0.430 | 0.067 | |
| REINFORCE | 10 | 0.108 | 0.056 | 0.078 | -0.534 | -0.600 | 0.040 | 0.407 | 0.353 | 0.048 |
| 50 | 0.136 | 0.066 | 0.054 | -0.455 | -0.559 | 0.045 | 0.425 | 0.374 | 0.035 | |
| SAC | 10 | -0.179 | -0.243 | 0.044 | 0.416 | 0.374 | 0.024 | -0.124 | -0.143 | 0.013 |
| MaxDD (%) | VaR 95 (%) | CVaR 95 (%) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | 2002 | 2008 | 2021 | 2002 | 2008 | 2021 | 2002 | 2008 | 2021 |
| GRID | 34.3 | 100 | 100 | 30.4 | 94.0 | 90.5 | 22.2 | 38.3 | 30.3 |
| REINFORCE | 0.0 | 9.6 | 10.7 | 0.0 | 0.0 | 7.5 | 0.0 | 0.0 | 0.0 |
| SAC | 32.8 | 65.2 | 33.0 | 27.5 | 56.9 | 25.3 | 12.9 | 45.7 | 12.8 |
| SMCMC | 24.3 | 19.7 | 4.9 | 15.6 | 2.3 | 0.0 | 8.0 | 0.0 | 0.0 |
| 2002 | 2008 | 2021 | ||||
|---|---|---|---|---|---|---|
| Oracle | N.DTW | N.DTW | N.DTW | |||
| Elastic Net | 81.0 | 98.3 | 24.9 | 165.5 | 38.6 | 83.2 |
| Ensemble | 41.4 | 97.4 | 29.4 | 496.3 | 29.8 | 83.6 |
| Gradient Boost. | 12.0 | 113.2 | 5.5 | 194.5 | 6.2 | 216.2 |
| MLP | 27.1 | 90.8 | 80.2 | 189.7 | 77.7 | 149.0 |
| Random Forest | 4.9 | 118.4 | 13.9 | 176.6 | 10.5 | 158.2 |
| 2002 | 2008 | 2021 | ||||
|---|---|---|---|---|---|---|
| Family | N.DTW | N.DTW | N.DTW | |||
| Beta | 35.7 | 137.7 | 100.0 | 181.0 | 100.0 | 328.2 |
| Cauchy | 22.2 | 81.4 | 15.0 | 106.1 | 30.4 | 153.4 |
| Beta (Mix.) | 35.4 | 171.8 | 76.4 | 128.1 | 99.3 | 410.3 |
| Gaussian (Mix.) | 34.5 | 139.6 | 75.0 | 134.7 | 49.3 | 48.4 |
| Gaussian | 29.4 | 213.3 | 56.0 | 98.9 | 26.3 | 61.1 |
| Crisis | Mixture | Reward | Eucl. | DTW |
|---|---|---|---|---|
| 2002 | Beta | |||
| Gaussian | ||||
| 2008 | Beta | |||
| Gaussian | ||||
| 2021 | Beta | |||
| Gaussian |
| Method | Train (s) | Inference (ms/traj) |
|---|---|---|
| GRID | 23.3 | 106.8 |
| REINFORCE | 3.9 | 27.7 |
| SAC | 7.2 | 6.6 |
| SMCMC | – | 51.8 |
| Capability | GRID | SMCMC | DRL | Deep Gen. |
|---|---|---|---|---|
| Amortized one-shot sampling | ✓ | ✓ | ✓ | |
| High tail severity (MaxDD/VaR) | ✓ | |||
| Trajectory diversity | ✓ | ✓ | ||
| Multi-modal coverage | ✓ | |||
| Robust to noisy oracle | ✓ | – | ||
| Historical plausibility constraints | ✓ |
Generative Flow Networks
Generative Flow Networks learn to sample diverse objects with probabilities proportional to their rewards.
See all 60 papers