MacroVAE: Counterfactual Financial Scenario Generation via Macroeconomic Conditioning
Kubiak, S., Weyde, T.
ORCID: 0000-0001-8028-9905, Galkin, O.
ORCID: 0009-0004-2801-5260 , Philps, D. & Gopal, R. (2025).
MacroVAE: Counterfactual Financial Scenario Generation via Macroeconomic Conditioning.
In:
Proceedings of the 6th ACM International Conference on AI in Finance.
ICAIF '25: 6th ACM International Conference on AI in Finance, 15-18 Nov 2025, New York, United States.
doi: 10.1145/3768292.3770360
Abstract
How would a portfolio perform under alternative macroeconomic conditions? Traditional scenario analysis in finance relies heavily on historical data, thus limiting risk assessment under rare or unobserved macroeconomic environments. We introduce MacroVAE, a variational autoencoder that generates realistic return sequences based on macroeconomic indicators to enable counterfactual scenario analysis. Trained on historical futures returns and macroeconomic data from global economies, MacroVAE generates return sequences conditioned on specified macroeconomic scenarios. The model uses convolutional ResNet blocks with Feature-wise Linear Modulation for stable macroeconomics-driven generation. In rolling out-of-sample evaluation, MacroVAE outperforms state-of-the-art generative baselines in replicating empirical distributions and financial stylized facts. We demonstrate two applications: counterfactual scenario analysis under alternative macroeconomic conditions, and forward-looking stress testing across diverse inflation-growth combinations, including ones rarely or not observed historically. MacroVAE enables systematic exploration of macroeconomic conditions, expanding the toolkit for portfolio risk management.
| Publication Type: | Conference or Workshop Item (Paper) |
|---|---|
| Additional Information: | This work is licensed under a Creative Commons Attribution 4.0 International License. |
| Publisher Keywords: | Generative machine learning models, synthetic data, time-series, asset allocation, financial risk management |
| Subjects: | H Social Sciences > HB Economic Theory H Social Sciences > HG Finance |
| Departments: | School of Science & Technology School of Science & Technology > Department of Computer Science |
| SWORD Depositor: |
Available under License Creative Commons: Attribution International Public License 4.0.
Download (903kB) | Preview
Export
Downloads
Downloads per month over past year
Metadata
Metadata