A Hybrid Continuous-Discrete Temporal Foundation Model for Probabilistic, Regime-Aware Time-Series Forecasting
Overview
AionFM is a proposed time-series foundation model built around a central thesis: effective forecasting requires both numerical precision and behavioral abstraction. Rather than choosing between continuous value representations (which preserve accuracy but lack structural reasoning) and discrete tokenization (which enables transfer but loses precision), AionFM operates both simultaneously through a dual-stream decoder-only architecture.
The model processes temporal data through two synchronized representational streams:
Continuous Value Patch Stream — segments normalized observations into subseries-level patches projected into dense embeddings, preserving full numerical resolution throughout the forecasting pipeline.
Discrete Regime Token Stream — computes behavioral feature vectors from local temporal summaries and quantizes them into a learned vocabulary of residual regime tokens encoding trend, volatility, seasonality, discontinuities, missingness, and cross-variable structural states.
AionFM simultaneously serves as a point forecaster, probabilistic forecaster, scenario generator, regime detector, missing-data imputer, synthetic trajectory generator, and domain-adaptable forecasting engine — all within a single set of shared parameters.
Key Contribution: The Residual Temporal Language
The defining innovation of AionFM is the Residual Temporal Language — a domain-independent behavioral vocabulary learned from normalized residuals rather than raw observations.
Instead of tokenizing raw values (which are inherently domain-specific), AionFM:
Estimates a local baselineb_t = f_baseline(x_{1:t}) capturing level, trend, and dominant seasonality
Computes a normalized residuale_t = (x_t - b_t) / (s_t + ε) that is scale-free and domain-independent
Maps descriptors to discrete regime tokens via learned vector quantization
A regime token does not encode "the value is 17.2" — it encodes behavioral states such as "stable upward drift,""high-volatility expansion,""negative shock with partial recovery," or "mean-reverting residual compression."
This abstraction enables cross-domain transfer because concepts like "volatility expansion" or "shock recovery" recur across finance, energy, retail, traffic, climate, and operations data — even when raw magnitudes differ by orders of magnitude.
Behavioral Pattern Vocabulary
Pattern
Token Semantics
Description
Drift
Stable directional movement
Sustained positive/negative slope with low curvature
Reversal
Direction change
Sign change in local slope with high curvature
Shock
Abrupt deviation
Large standardized residual exceeding local volatility band
Recovery
Return toward baseline
Post-shock trajectory with exponential/linear decay
Compression
Volatility contraction
Declining local variance and narrowing range
Expansion
Volatility increase
Rising local variance and widening range
Saturation
Flattening near bound
Declining slope near a local max/min
Seasonality Peak/Trough
Cyclic extremum
Residual phase aligned with seasonal cycle at extremum
Regime Break
Structural discontinuity
Persistent change in statistical properties
Coupling
Cross-variable alignment
Increasing correlation among previously independent variables
Decoupling
Cross-variable divergence
Decreasing correlation among previously co-moving variables
Real data spanning: retail sales, energy demand, web traffic, industrial sensors, weather/climate, transportation, healthcare operations, financial markets, economic indicators, manufacturing telemetry, and supply-chain flows.
Synthetic data from a configurable trajectory generator:
Simulates: piecewise/exponential/logistic trends, multiple seasonalities, random shocks, step changes, mean reversion, heteroskedasticity, autoregressive noise, sparse demand, irregular sampling, sensor drift, and correlated multivariate systems — with latent regime labels retained for direct supervision.
Probabilistic Forecasting & Scenario Generation
Six Output Heads
Head
Output
Use Case
Point Forecast
Deterministic mean/median
Planning, benchmarking
Quantile Forecast
Calibrated quantiles at multiple levels
Prediction intervals, safety stock
Distribution
Parametric distribution parameters (Gaussian, Student-t, negative binomial, mixture, zero-inflated)
Stage 1 — Regime Path Sampling: Sample plausible future regime token sequences from the conditional distribution (e.g., "continued growth," "shock at step 3 with recovery," "volatility expansion with reversal")
Stage 2 — Value Decoding: Generate numerical forecasts conditioned on each sampled regime path
1{2"model_version":"AionFM-M v1.0",3"forecast_origin":"2026-05-01T00:00:00Z",4"forecast_horizon":14,5"frequency":"daily",6"target":"store_42_sku_1087_units",7"point_forecast":[142,138,155,161,170,168,152,145,140,158,164,173,171,155],8"quantiles":{9"q05":[112,107,119,124,131,128,117,111,107,121,126,133,131,119],10"q50":[142,138,155,161,170,168,152,145,140,158,164,173,171,155],11"q95":[176,172,194,202,213,210,190,181,175,198,206,217,214,194]12},13"scenario_paths":{14"continued_growth":[145,142,160,168,178,176,160,153,148,166,172,182,180,164],15"shock_recovery":[142,138,118,105,120,135,148,145,140,158,164,173,171,155],16"seasonal_decline":[142,135,128,122,118,115,112,110,108,112,118,125,130,135]17},18"regime_probabilities":{19"stable_growth":0.42,20"seasonal_peak":0.27,21"shock_recovery":0.18,22"reversal":0.1323},24"explanation":{25"current_regime":"stable_upward_drift with seasonal_approach",26"uncertainty_driver":"seasonal_phase_transition at horizon 7-9",27"change_point_probability":0.2328}29}
Constraint-Aware Forecasting — projects raw forecasts into valid space respecting nonnegativity, capacity limits, conservation laws, market hours, monotonic cumulative quantities
Hierarchical Forecasting — forecasts at multiple aggregation levels (Company → Region → Store → Category → SKU) with reconciliation consistency (Hyndman et al., 2011)
Retrieval-Augmented Temporal Forecasting — retrieves historical windows with similar behavioral signatures to condition forecasts; improves rare-event forecasting, cold starts, and explainability
Multivariate & Cross-Series Modeling — cross-variable attention, correlation-regime tokens, graph-aware adapters, metadata-conditioned attention; retrieval-based context selection for very large panels
Agentic Planning Integration — AionFM as a component in planning systems that generate forecasts, simulate actions, compare scenarios, and optimize decisions
Physics-Aware Constraints — incorporating physical equations and conservation laws for industrial, climate, and engineering systems
[2] Box, G.E.P., Jenkins, G.M., Reinsel, G.C., and Ljung, G.M. (2015). Time Series Analysis: Forecasting and Control, 5th edition. John Wiley and Sons.
[3] Durbin, J. and Koopman, S.J. (2012). Time Series Analysis by State Space Methods, 2nd edition. Oxford University Press.
[4] Gneiting, T. and Raftery, A.E. (2007). Strictly Proper Scoring Rules, Prediction, and Estimation. Journal of the American Statistical Association, 102(477), 359–378.
[5] Hamilton, J.D. (1989). A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle. Econometrica, 57(2), 357–384.
[6] Hochreiter, S. and Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780.
[7] Hyndman, R.J. and Athanasopoulos, G. (2021). Forecasting: Principles and Practice, 3rd edition. OTexts, Melbourne, Australia.
[8] Hyndman, R.J., Ahmed, R.A., Athanasopoulos, G., and Shang, H.L. (2011). Optimal Combination Forecasts for Hierarchical Time Series. Computational Statistics and Data Analysis, 55(9), 2579–2589.
[9] Koenker, R. and Bassett, G. (1978). Regression Quantiles. Econometrica, 46(1), 33–50.
[10] van den Oord, A., Vinyals, O., and Kavukcuoglu, K. (2017). Neural Discrete Representation Learning. Advances in Neural Information Processing Systems, 30, 6306–6315.
[11] van den Oord, A., Li, Y., and Vinyals, O. (2018). Representation Learning with Contrastive Predictive Coding. arXiv preprint arXiv:1807.03748.
[12] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems, 30, 5998–6008.
License
This is an open technical specification released for community development. No empirical results are reported. The architecture and methods described are proposed designs intended to guide implementation and invite community contribution.
license: other
license_name: dosl-iie-1.0
license_link: LICENSE