Miami University's ReGEN-TAD Catches Market Crashes and Names the Guilty Assets
ReGEN-TAD combines a convolutional-transformer backbone with six diagnostic signals to catch financial market anomalies without labeled data — and explain which assets caused them.
ProTakeaways
- ReGEN-TAD is an unsupervised anomaly detection framework for high-dimensional financial time series that requires no labeled data.
- It aggregates six complementary diagnostic signals (forecast error, reconstruction error, latent density, trajectory deviation, Mahalanobis distance, residual dispersion) into a single anomaly score.
- A gradient-based attribution mechanism identifies which specific assets or sectors drove each detected anomaly, validated on real NASDAQ-100 data.
- On financially-structured benchmarks (13 market regimes, 3,900 Monte Carlo runs), it achieves F1=0.77, precision=0.97, and FPR=0.0018 — top across all 11 baselines including TranAD, TimeGPT, and GARCH.
- Weakness: underperforms simpler methods on isolated spike anomalies and is ~100x slower than GARCH at training time.
- Code is open-source at github.com/martinwg/ReGEN-TAD; paper at arxiv.org/abs/2603.07864.
Financial markets are noisy by design. Prices jump, correlations shift, volatility clusters, and regimes change without warning. The hard part is not just detecting when something goes wrong , it is knowing which assets caused it and doing so without a single labeled example to train on. A new paper from Miami University introduces ReGEN-TAD (Refined Generative Ensemble for Temporal Anomaly Detection), a framework that tackles both problems at once.
Why This Is Hard
Most existing approaches rely on a single diagnostic signal , commonly reconstruction error or predictive likelihood , implicitly assuming that one dimension of model failure sufficiently characterizes abnormality. That assumption breaks down fast in real markets. In financial panels where anomalies may affect subsets of assets, alter cross-sectional dependence, or unfold gradually across horizons, reliance on a single criterion can be unstable and economically opaque.
There is also a contamination problem. In financial time series, where regime changes and structural breaks are common, contaminated training samples may lead the model to internalize abnormal dynamics, weakening subsequent discrimination. In other words, if a crash happens during your training window, the model learns that crashes are normal.
The broader industry context makes this urgent. By 2025, about 87% of global financial institutions had implemented AI-powered fraud detection systems, up from 72% in early 2024. But financial institutions already operate extensive monitoring systems for market risk, credit exposure, and regulatory compliance , and these systems often rely on static rule sets or manually maintained indicators. ReGEN-TAD is a direct response to that gap.
Six Signals, One Score
The core idea is to stop relying on any single measure of "something is wrong" and instead aggregate six complementary diagnostic signals derived from a shared generative model. Rather than relying on a single score, the method combines prediction errors, reconstruction loss, latent-space geometry, temporal instability, and volatility variation , each capturing a distinct manifestation of abnormal behavior.
The six component scores are:
- Refined forecasting residual magnitude , how badly the model mispredicts the next window
- Reconstruction residual magnitude , how poorly the model reconstructs the current window
- k-NN latent density score , how isolated the current window is in the learned embedding space
- Latent residual dynamics deviation , whether the trajectory through latent space is behaving unusually
- Mahalanobis distance from baseline latent distribution , how far the current window is from the typical cluster in embedding space (using Ledoit-Wolf shrinkage to keep the covariance estimate stable)
- Dispersion of forecast residuals , whether forecast errors are becoming more spread out, a proxy for volatility regime shifts
Each score is robustly normalized using median and interquartile range (rather than mean and standard deviation, which are sensitive to outliers), then combined into a single anomaly score via weighted averaging. The whole pipeline is fully unsupervised , no anomaly labels required.
The Architecture Under the Hood
At the core of ReGEN-TAD is a generative backbone that simultaneously supports short-horizon forecasting and input reconstruction. A convolutional front-end feeds into a transformer-based encoder and recurrent temporal pathway, producing compact latent representations of rolling windows. The transformer handles global dependencies across the full window; a bidirectional LSTM handles ordered sequential dynamics. Their outputs are concatenated and projected into a latent vector.
A key design choice is a two-pass refinement mechanism. The model first generates an initial forecast, computes the residual between that forecast and the actual future values, then feeds that residual back into a second network to produce a corrected forecast. This two-pass architecture enables the refinement stage to model structured residual components not captured by the initial forecast, thereby improving robustness to structural shifts and heterogeneous temporal dynamics.
Before any of this happens, the model runs a purification stage: it trains on reconstruction loss only, flags the top 3% of windows by reconstruction error as likely contaminated, removes them, and repeats until stable. This prevents market crashes from being baked into the model's definition of "normal."
Here is a simplified sketch of the scoring pipeline:
# Pseudocode: ReGEN-TAD scoring for a single window
X_t = rolling_window(returns, t, L=36) # past L timesteps
F_t = future_block(returns, t, H=5) # next H timesteps
z_t = backbone.encode(X_t) # latent embedding
F_hat_1 = backbone.forecast(z_t) # initial forecast
residual = F_t - F_hat_1
F_hat_2 = refine(z_t, residual) # corrected forecast
# Six diagnostic scores
s1 = frobenius_norm(F_t - F_hat_2) # refined forecast error
s2 = frobenius_norm(X_t - X_hat) # reconstruction error
s3 = knn_distance(z_t, baseline_latents) # latent density
s4 = latent_dynamic_deviation(z_t) # trajectory instability
s5 = mahalanobis(z_t, mu_z, Sigma_z) # regime distance
s6 = std(F_t - F_hat_2) # residual dispersion
S_t = weighted_avg([robust_normalize(s) for s in [s1..s6]])
anomaly = S_t > quantile(calibration_scores, 0.95)
Not Just Detection , Attribution
The part that sets ReGEN-TAD apart from most anomaly detectors is what happens after a flag is raised. For each anomalous window, the aggregate anomaly score is decomposed into variable-specific contributions derived from standardized deviations relative to the estimated baseline regime and model-implied sensitivities from the reconstruction pathway.
Concretely, each asset's attribution score is the product of two terms: how far that asset deviated from its historical baseline (in volatility-scaled units), multiplied by the gradient of the latent anomaly score with respect to that asset's returns. High attribution means the asset was both statistically abnormal and structurally influential in the model's representation. Assets are then ranked, and a cumulative-mass rule identifies the smallest subset explaining a target proportion of the total anomaly.
In the financial crash scenario, the anomaly is injected directly into financial stocks, and the dominant contributions are correspondingly assigned to financial institutions (e.g., AXP, GS, JPM), reflecting concentrated stress within that sector rather than diffuse cross-sectional noise. The model does not just say "something is wrong" , it says "Goldman Sachs, JPMorgan, and AmEx are the culprits."
What the Numbers Say
The paper runs 3,900 Monte Carlo simulation runs across six anomaly types (mean shifts, trend shifts, variance shifts, spikes, collective cross-asset disruptions, and contextual anomalies) at both low and high contamination levels, plus a separate battery of 13 financially-structured market scenarios (flash crashes, contagion, momentum reversals, correlation breakdowns, etc.).
On the general structural anomaly benchmark, ReGEN-TAD achieves the highest overall F1-score (0.6239), outperforming the next-best competitor, GARCH (0.5945), by a non-trivial margin, accompanied by the highest overall precision (0.8340) and strong AUROC (0.9477), while maintaining a low average FPR (0.0092).
On the financially-structured market regime benchmark, the gap widens: ReGEN-TAD attains the highest mean F1-score (0.7717), combining very high precision (0.9684) with stable recall (0.6427) and an extremely low false positive rate (0.0018).
The model's weaknesses are worth noting:
- Spike anomalies , isolated, transient shocks are where simpler residual-based methods like OLS actually outperform ReGEN-TAD (OLS F1: 0.65 vs. ReGEN-TAD F1: 0.56 at low contamination)
- Long forecast horizons , overall F1 and recall are strongest at short horizons and decline gradually as H increases, reflecting the accumulation of forecast uncertainty in multi-step prediction
- Jump bursts , in the sector attribution experiment, jump-burst anomalies in Health Care produced a match ratio of only 0.110, far below the 0.693 achieved for volatility spikes in tech
- Runtime , at ~24 seconds per run on an RTX 3090, it is slower than GARCH (0.015s) or OLS (3s), though the overhead is incurred only during training
Validated on Real Crises
Beyond synthetic benchmarks, the authors test ReGEN-TAD on unmodified Dow 30 returns during two historical crises with no recalibration. In the 2008 case, the score remains low and stable throughout 2007 and early 2008, followed by a sharp and concentrated elevation beginning in September 2008, coinciding with the Lehman bankruptcy and peak systemic stress. The COVID-19 episode shows a similarly abrupt break in late February 2020. In both cases, attribution correctly identifies broad contagion in 2008 and financial/consumer-exposed firms in 2020 , consistent with how those crises actually unfolded.
Who Should Use This
ReGEN-TAD is best suited for practitioners who need to monitor large cross-sectional panels of assets and need to explain detected anomalies to stakeholders. Concrete use cases include:
- Systematic risk monitoring , flagging regime changes in multi-asset portfolios before they propagate
- Sector-level stress attribution , identifying which sectors or factors are driving instability during a market dislocation
- Compliance and surveillance , unsupervised detection of unusual cross-asset coordination without requiring labeled historical incidents
- Macro factor monitoring , tracking when latent factor structure in a panel of returns is breaking down
It is less suited for detecting isolated single-asset spikes or high-frequency microstructure noise, where simpler residual-based methods remain competitive and far cheaper to run.
Code and Reproducibility
The full implementation, including data generation scripts and simulation code, is publicly available at github.com/martinwg/ReGEN-TAD. The paper itself is available on arXiv. No pre-trained model weights are distributed , the framework is designed to be trained on your own panel data, which is the right call for a method whose whole premise is learning what "normal" looks like for your specific asset universe.
The real contribution here is not a marginal F1 improvement. It is the argument that anomaly detection in financial panels should be treated as multi-dimensional structural monitoring , and that the explanation of what broke is just as important as the flag itself. For anyone building risk infrastructure on top of large asset panels, that framing is worth taking seriously.