Papers › Diffusion Variational Autoencoder for Tackling Stochasticity in Multi-Step Regression...

Diffusion Variational Autoencoder for Tackling Stochasticity in Multi-Step Regression Stock Price Prediction

18 Aug 2023arXiv:2309.00073archive 2025-07-28

Kelvin J. L. Koa, Yunshan Ma, Ritchie Ng, Tat-Seng Chua

Multi-step stock price prediction over a long-term horizon is crucial for forecasting its volatility, allowing financial institutions to price and hedge derivatives, and banks to quantify the risk in their trading books. Additionally, most financial regulators also require a liquidity horizon of several days for institutional investors to exit their risky assets, in order to not materially affect market prices. However, the task of multi-step stock price prediction is challenging, given the highly stochastic nature of stock data. Current solutions to tackle this problem are mostly designed for single-step, classification-based predictions, and are limited to low representation expressiveness. The problem also gets progressively harder with the introduction of the target price sequence, which also contains stochastic noise and reduces generalizability at test-time. To tackle these issues, we combine a deep hierarchical variational-autoencoder (VAE) and diffusion probabilistic techniques to do seq2seq stock prediction through a stochastic generative process. The hierarchical VAE allows us to learn the complex and low-level latent variables for stock prediction, while the diffusion probabilistic model trains the predictor to handle stock price stochasticity by progressively adding random noise to the stock data. Our Diffusion-VAE (D-Va) model is shown to outperform state-of-the-art solutions in terms of its prediction accuracy and variance. More importantly, the multi-step outputs can also allow us to form a stock portfolio over the prediction length. We demonstrate the effectiveness of our model outputs in the portfolio investment task through the Sharpe ratio metric and highlight the importance of dealing with different types of prediction uncertainties.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2309.00073")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · our draft was wrong; 7 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

koa-fin/dva officialmentioned in papermentioned on GitHubpytorchAGPL-3.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 11 ran; 2 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran · our draft was wrong
7ran
3unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from koa-fin/dva. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

default koa-fin/dva/model/diffusion_process.py official repository ran · our draft was wrong AGPL-3.0 (copyleft) · pointer only · b5c54401114d79c1 · report
get_arch_cells koa-fin/dva/model/utils.py official repository ran AGPL-3.0 (copyleft) · pointer only · ab2297e25cf27ba8 · report
get_beta_schedule koa-fin/dva/model/diffusion_process.py official repository ran AGPL-3.0 (copyleft) · pointer only · 156c6ba7d6075f3b · report
get_input_size koa-fin/dva/model/utils.py official repository ran · honoured contract AGPL-3.0 (copyleft) · pointer only · 4ca5ffe947c454b7 · report
get_skip_connection koa-fin/dva/model/neural_operations.py official repository ran AGPL-3.0 (copyleft) · pointer only · 45b830116529bb03 · report
get_stride_for_cell_type koa-fin/dva/model/utils.py official repository ran · honoured contract AGPL-3.0 (copyleft) · pointer only · 417c413f2e89d954 · report
log_density_gaussian koa-fin/dva/model/encoder.py official repository ran AGPL-3.0 (copyleft) · pointer only · de784879435cc93a · report
logit koa-fin/dva/model/neural_operations.py official repository ran fingerprinted AGPL-3.0 (copyleft) · pointer only · d42ce56b29f68801 · report
norm koa-fin/dva/model/neural_operations.py official repository ran · our draft was wrong fingerprinted AGPL-3.0 (copyleft) · pointer only · e68ef3509ca0d2e9 · report
sample_normal_jit koa-fin/dva/model/encoder.py official repository ran fingerprinted AGPL-3.0 (copyleft) · pointer only · 8591e611b706abfe · report
soft_clamp5 koa-fin/dva/model/encoder.py official repository ran fingerprinted AGPL-3.0 (copyleft) · pointer only · 3c16c6b9b824b331 · report
extract koa-fin/dva/model/diffusion_process.py official repository unverified AGPL-3.0 (copyleft) · pointer only · 09c8479d9a5b3e06 · report
time_features koa-fin/dva/utils/timefeatures.py official repository unverified AGPL-3.0 (copyleft) · pointer only · d98f6c6564c7c4e1 · report
time_features_from_frequency_str koa-fin/dva/utils/timefeatures.py official repository unverified AGPL-3.0 (copyleft) · pointer only · f8544563682146e5 · report

Tasks

PredictionStock PredictionStock Price Predictionregression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionHierarchical VAELSTMSeq2SeqSigmoid ActivationTanh Activation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections