Forecasting Demand in High-Volatility Markets
Advanced time-series and transformer-based forecasting for unpredictable commerce ecosystems.

Demand forecasting has always been central to commerce, but the assumptions behind classical forecasting models—smooth trends, stable seasonality, and relatively low volatility—no longer hold for modern global e-commerce. Merchants operating across US, EU, APAC, and LATAM must navigate flash sales, social virality, cross-border logistics constraints, macroeconomic shocks, and increasingly fragmented payment behaviors.
In this paper, we present a high-volatility demand forecasting framework designed for the Tanqory platform. The framework combines advanced time-series models (N-BEATS, DeepAR), transformer-based architectures (Temporal Fusion Transformer, PatchTST, multi-scale transformers), and multi-region calibration layers to forecast demand under extreme uncertainty. Using anonymized multi-region data from merchants on Tanqory, we compare classical baselines (ARIMA, Holt-Winters) with modern deep and transformer-based models across multiple volatility regimes and forecast horizons.
Our experimental results show that transformer-based models reduce forecasting error by 24–39% on average compared to classical baselines, with the largest gains in APAC flash-sale scenarios and LATAM currency-driven volatility. Multi-region calibration further reduces cross-region drift and improves robustness under distribution shifts. We conclude with design recommendations for deploying these models in production, considerations for fairness and privacy, and future research directions towards foundation models for time-series in commerce.

Key Findings
- Transformer-based models outperform classical baselines by 24–39% (MAPE reduction) across high-volatility regimes, especially during flash sales and social-driven demand spikes.
- Multi-region calibration layers reduce cross-region drift in demand forecasts by 27–32%, enabling a unified forecasting stack that still respects regional differences.
- APAC shows the highest short-horizon volatility due to flash events; multi-scale transformers reduce peak-period error by up to 41% relative to ARIMA.
- LATAM demand is strongly influenced by payment reliability and currency fluctuations; probabilistic models (DeepAR-style) yield more reliable tail forecasts and confidence intervals.
- EU exhibits relatively stable demand with strong weekly and regulatory-driven seasonality; hybrid causal–temporal models detect policy and shipping-rule induced shifts earlier than classical methods.
- US markets are highly sensitive to recommendation and ad-driven micro-trends; attention-based architectures capture these patterns better than purely autoregressive models.
- Event-aware transformer architectures reduce shock detection latency by up to 50%, enabling earlier adjustments in inventory, marketing, and fulfillment strategies.

Introduction
Forecasting demand is a foundational capability for any commerce platform. Decisions that depend on accurate forecasts include:
- How much inventory to purchase and where to place it
- How to allocate marketing budget and promotional intensity
- How to configure safety stock and reorder thresholds
- How to shape logistics routes and delivery promises
- How to negotiate contracts with suppliers and carriers
In traditional retail, demand was often modeled as a relatively smooth combination of trend, seasonality, and residual noise. Today, global e-commerce operates under fundamentally different conditions:
- Flash sales and mega-events (e.g., 11.11, 12.12, Black Friday, Ramadan, Singles’ Day) create order-of-magnitude demand spikes within hours.
- Social virality can cause previously low-volume products to surge unpredictably.
- Supply chain disruptions and logistics constraints create asymmetric demand fulfillment patterns.
- Multi-currency and inflation dynamics shift consumer sensitivity to price and promotions.
- Payment behavior (retries, alternative payment methods, regulatory friction) varies strongly across regions such as LATAM compared to US/EU.
Classical forecasting methods such as ARIMA or Holt-Winters are not designed for such high-volatility, non-stationary, regime-switching environments. This paper aims to:
- Characterize the unique forecasting challenges in high-volatility, multi-region commerce.
- Evaluate advanced time-series and transformer-based models in this setting.
- Propose a production-ready architecture for Tanqory merchants that balances accuracy, robustness, interpretability, and latency.

Related Work / Theoretical Foundations
Classical Time-Series Forecasting
Traditional approaches include:
- ARIMA / SARIMA – autoregressive integrated moving average with optional seasonality.
- Holt-Winters – exponential smoothing with trend and seasonality.
- GARCH – volatility modeling, primarily used in finance.
These models assume relative stationarity, stable seasonal patterns, and gradual shifts. They struggle with multiple, overlapping sources of volatility and non-linear effects.
Deep Learning for Time-Series
Deep models extend forecasting capacity by capturing non-linear relationships and long-range dependencies:
- LSTM/GRU – recurrent networks for sequence modeling.
- Temporal Convolutional Networks (TCN) – dilated convolutions for long receptive fields.
- DeepAR – autoregressive recurrent networks with probabilistic outputs.
- N-BEATS – feedforward architecture that decomposes series into trend and seasonality while retaining interpretability.
These models improve performance over classical baselines but still face challenges under extreme regime changes and multi-region heterogeneity.
Transformer-Based Time-Series Models
Transformers, originally designed for language, use self-attention to capture long-range dependencies and multi-scale patterns. Variants adapted to time-series include:
- Temporal Fusion Transformer (TFT) – combines attention with gating and interpretable variable selection.
- PatchTST – represents time-series as patches, similar to Vision Transformers.
- Informer / Autoformer / multi-scale transformers – optimize attention and architecture for long-horizon forecasting with fewer resources.

Key benefits in commerce forecasting:
- Multi-scale temporal pattern learning (daily, weekly, promotional, macro cycles).
- Flexible incorporation of static, known future, and observed covariates (promotions, prices, holidays).
- Attention-based interpretability for decision support.
Causal and Event-Aware Forecasting
Forecasts in commerce must distinguish between organic demand trends and intervention-driven shifts (e.g., promotions, policy changes, logistics constraints). Causal forecasting combines:
- Time-series models with explicit event indicators,
- Structural or reduced-form causal models, and
- Counterfactual reasoning to estimate “what demand would have been” absent a given intervention.
This is crucial in high-volatility periods where events are dense and overlapping.
Problem Statement / Gaps in Existing Approaches
Through internal analysis and review of prior work, we identify several gaps:
Volatility Regime Mismatch
Classical models assume relatively smooth dynamics; they underfit flash sales, viral spikes, and sudden drops, leading to systematic bias in safety-stock planning.
Cross-Region Heterogeneity
Demand drivers differ across US, EU, APAC, and LATAM—e.g., payment reliability in LATAM, flash events in APAC, regulation in EU. Global models without explicit region-aware calibration can misgeneralize and overfit to dominant regions.
Limited Use of Exogenous Signals
Many deployed forecasts ignore critical covariates such as promotions, prices, holidays, supply constraints, or macro indicators, treating all variation as random noise.
Shock and Regime-Change Handling
Conventional models treat large deviations as outliers; in commerce, these are often the most economically important points.
Lack of Interpretability for Operators
Forecasts that cannot explain why demand is expected to rise or fall are hard to trust and act upon at scale.
Latency and Scalability Constraints
High-volume merchants require near real-time updates (e.g., hourly) across thousands of SKUs and multiple regions while keeping computational cost manageable.
System Architecture / AI Model Design
We propose a Tanqory-native demand forecasting stack comprising five layers:
- Data & Signal Layer
- Feature & Region Embedding Layer
- Forecasting Model Layer
- Calibration & Post-Processing Layer
- Serving & Monitoring Layer
1. Data & Signal Layer
- Granularity: SKU × store × region × time (e.g., 1 hour or 1 day).
- Signals: historical orders, views, add-to-cart events, cancellations, returns, stock-outs, prices, discounts, promotions.
- Exogenous variables: holidays, major events, logistics constraints, macro indicators (e.g., inflation proxies), and platform-wide seasonality.
2. Feature & Region Embedding Layer
We introduce region embeddings that encode:
- regional seasonality patterns;
- payment reliability profiles;
- typical response to price and promotions;
- shipping and logistics latency distributions.
These embeddings are concatenated with product embeddings and time features (day-of-week, week-of-year, event indicators) to form the model input.
3. Forecasting Model Layer
We evaluate three model families:
- N-BEATS – offers interpretable decompositions (trend/seasonality).
- DeepAR – probabilistic forecasts with shared parameters across series.
- Transformers – TFT, PatchTST, multi-scale transformers for high-volatility dynamics.
The final architecture for high-volatility products uses a multi-scale transformer with:
- local seasonal blocks;
- promotion-aware attention;
- region-aware conditioning.
4. Calibration & Post-Processing
Outputs are post-processed to:
- respect non-negativity and capacity constraints;
- enforce consistency across aggregation levels (SKU → category → store → region);
- adjust quantiles for risk-aware decisions (e.g., using higher quantiles for safety stock in volatile SKUs).
5. Serving & Monitoring Layer
The system supports:
- batch nightly forecasts (30–90 day horizon),
- rolling intra-day updates for high-velocity SKUs,
- monitoring for forecast drift, data pipeline anomalies, and model degradation, including regional breakdowns.
Methods / Data
Dataset
We construct a benchmark using anonymized Tanqory merchant data:
| Region | Merchants | Time Span | Series (SKU×store) | Resolution |\n| --- | --- | --- | --- | --- |\n| US | 110 | 24 months | 85k+ | Daily |\n| EU | 80 | 24 months | 64k+ | Daily |\n| APAC | 160 | 24 months | 120k+ | Daily/Hourly for high-volume SKUs |\n| LATAM | 70 | 24 months | 52k+ | Daily |
We segment items into low, medium, and high-volatility regimes based on rolling variance and a volatility index that incorporates promotion density and stock-out frequency.
Evaluation Protocol
- Forecast horizons: 7, 14, 30, and 60 days.
- Train/validation/test: rolling time-based splits, ensuring that test periods coincide with high-volatility intervals (e.g., major sales events).
- Metrics:
- MAE, RMSE, MAPE for point forecasts;
- CRPS and coverage for probabilistic forecasts;
- “Shock MAE” — error restricted to top 10% most volatile periods;
- regional breakdown of performance.
- Baselines:
- Seasonal naïve (last-year same period).
- Holt-Winters.
- SARIMA.
- DeepAR.
- N-BEATS.
Results and Analysis
Overall Performance
Across all regions and volatility regimes, we observe:
- DeepAR and N-BEATS outperform classical baselines by 15–24% MAPE.
- Transformer-based models achieve 24–39% MAPE reduction versus ARIMA/Holt-Winters, with the largest gaps in high-volatility segments.
- Multi-scale transformers provide the best trade-off between accuracy and robustness, especially for APAC and US markets where frequent events and micro-trends dominate.
Regional Breakdown
APAC:
- High density of flash sales and festival events.
- Multi-scale transformer reduces Shock MAE by up to 41% compared to ARIMA and by ~19% compared to DeepAR.
LATAM:
- Demand affected by payment success rates and currency volatility.
- Probabilistic models (DeepAR + transformer quantile outputs) provide better coverage and more reliable upper quantiles, critical for risk-aware inventory planning.
EU:
- Lower volatility but pronounced weekly and regulatory-driven patterns.
- N-BEATS performs competitively, but adding causal event indicators (e.g., VAT changes, shipping-rule adjustments) to transformers yields earlier detection of trend shifts.
US:
- Strong influence from ads, recommendations, and social media.
- Attention layers in transformers highlight sharp, short-lived uplift windows; this improves promotion planning and burst-aware inventory placement.
Shock Detection Latency
By comparing forecast residuals during known shock periods, we find that:
- Transformers detect structural deviations faster than ARIMA-based residual models (up to 50% lower detection delay).
- Event-aware attention improves the alignment between forecast adjustments and actual start/end of flash events.
Business Implications
Practical benefits observed in offline simulations and pilot deployments include:
- Reduced stockouts for high-volatility SKUs (especially in APAC) when using high-quantile forecasts from transformers.
- Lower overstock risk in EU by avoiding overreaction to short anomalies.
- Better synchronization between marketing and operations—campaign planners can see credible, scenario-based demand forecasts instead of fixed-point numbers.

Multi-Region Case Studies
Case 1 – APAC 11.11 Event
A consumer electronics merchant experienced a 10–15× increase in orders during 11.11. Classical models substantially under-forecast peak demand. The multi-scale transformer, trained with region embeddings and explicit event flags, predicted peak demand within ~12% error, while ARIMA under-forecasted by more than 50%.
Case 2 – LATAM Currency Volatility
For a fashion merchant priced in local currency with USD-indexed costs, demand sensitivity to exchange-rate movements was high. DeepAR with price and FX covariates captured asymmetric responses (demand dropped steeply beyond certain price points). Transformers benefited from the same covariates and produced narrower but well-calibrated prediction intervals, leading to more confident restocking decisions.
Case 3 – EU Regulatory Transition
A new cross-border VAT rule caused a drop in orders from certain destinations. N-BEATS and ARIMA initially treated this as noise. A transformer model with policy-change indicators adjusted the forecast trend more quickly, leading to earlier repricing and shipping policy adjustments.
Case 4 – US Social Virality
A niche product gained sudden popularity through short-form video. Historical patterns were not predictive. Attention layers in transformers highlighted the recent surge and allocated more weight to the latest sequence, leading to faster upward forecast revision than classical smoothing methods.
Ethics, Fairness, and Privacy Considerations
Privacy
- Forecasts operate on aggregated time-series, not on individual user trajectories.
- Personally identifiable information (PII) is excluded by design.
- Regional privacy laws (such as GDPR and PDPA-SG) are respected by retaining only the minimum signals required for forecasting.
Fairness
- Over- or under-forecasting in specific regions or segments can have real economic consequences: under-allocation of inventory, slower delivery promises, or under-investment in emerging markets.
- Multi-region calibration must be monitored to avoid systematic under-forecasting for smaller or more volatile regions.
Transparency
- Transformer-based systems are accompanied by explanation panels showing:
- key drivers (events, promotions, prices) influencing the forecast;
- attribution across time periods;
- uncertainty ranges.
This helps merchants understand that forecasts are scenario-dependent, not deterministic guarantees.
Limitations
- Data and Compute Requirements: Transformer models require substantial data and computational resources, especially at fine temporal resolution. Smaller merchants may need transfer learning from global models.
- Extreme Shock Generalization: Unprecedented events (e.g., pandemic-scale disruptions) remain difficult to forecast and often require rapid re-training or special event handling.
- Model Management Complexity: Operating multiple model families (classical + deep + transformers) across thousands of merchants introduces operational complexity in monitoring and governance.
- Long-Horizon Forecast Uncertainty: While transformers improve long-horizon accuracy, uncertainty grows quickly beyond 60–90 days in high-volatility categories.
Future Research Directions
- Time-Series Foundation Models for Commerce: Pre-training large transformer models across millions of series and fine-tuning for specific merchants or verticals.
- Graph-Based Forecasting for Supply Chains: Incorporating network structure—suppliers, warehouses, carriers—via graph neural networks to forecast constrained demand and lead times jointly.
- Diffusion-Based Time-Series Forecasting: Using diffusion models to generate scenario distributions for demand under multiple macro and campaign configurations.
- Reinforcement Learning for Inventory & Pricing: Closing the loop between forecasting and decisions, jointly optimizing forecasts and action policies.
- Cross-Lingual and Cross-Region Embeddings: Learning unified representations for demand patterns that transfer knowledge between similar markets while preserving local nuances.
Conclusion
High-volatility markets are now the norm rather than the exception in global e-commerce. Static and purely statistical approaches are no longer sufficient for demand forecasting that must support real-time, multi-region, multi-vertical operations.
By combining transformer-based forecasting, probabilistic time-series models, and multi-region calibration, Tanqory can provide merchants with more accurate, robust, and interpretable demand forecasts. This, in turn, enables better inventory allocation, reduced operational risk, and more effective marketing and pricing strategies across US, EU, APAC, and LATAM.
Forecasting becomes not just a back-office statistical task, but a strategic AI capability at the core of modern commerce infrastructure.
References
(Representative, non-exhaustive references in forecasting and time-series ML)
- Hyndman, R. J., & Athanasopoulos, G. Forecasting: Principles and Practice.
- Salinas, D. et al. “DeepAR: Probabilistic forecasting with autoregressive recurrent networks.”
- Oreshkin, B. et al. “N-BEATS: Neural basis expansion analysis for interpretable time series forecasting.”
- Lim, B. et al. “Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting.”
- Zeng, A. et al. “Are Transformers Effective for Time Series Forecasting?”
- Wu, H. et al. “Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting.”





