Skip to content

Train Often, Deploy Selectively: Forward-Gated Model Replacement in Crypto Markets

Source: arXiv:2607.28577 · Published 2026-07-30 · By Aditya Dutta

TL;DR

This paper addresses the operational challenge in production forecasting systems of deciding when to replace a maintained incumbent model with a newly retrained challenger. Simply retraining often and deploying immediately can degrade serving performance due to insufficient evidence that the challenger actually outperforms the incumbent, which continues to evolve by consuming delayed labels. The authors introduce a deployment policy called Shadow Before Swap (SBS), which clones the incumbent at scheduled retrain boundaries, warm-refits the challenger offline, and then runs a paired shadow trial against the incumbent on the next week’s data with fully matured labels before deciding whether to promote the challenger. This forward-gated authorization gate requires a small fixed margin improvement in negative log-likelihood (NLL) to approve deployment.

Using historical replay over two nonoverlapping multi-month episodes of Binance crypto futures data, multiple seeds, eight underlying assets, and contract types, SBS consistently improves probabilistic forecast quality by 0.0428% to 0.1472% relative to standard calendar retrain-and-deploy, blind schedule-matched automatic promotion, and continuous maintenance baselines while reducing model deployments by 78.4%. These gains prevail across alternate seeds, assets, objective functions, and a stress test with a deliberately misspecified Temporal-CNN architecture where SBS suppresses catastrophic deployments. Thus SBS offers a practical, architecture-agnostic deployment control that increases forecast reliability while limiting disruptive model-state transitions.

Key findings

  • SBS reduces negative log-likelihood by 0.1472% relative to calendar replacement, 0.0755% relative to schedule-matched blind promotion, and 0.0428% relative to continuous maintenance over 48 weeks of Binance futures data.
  • SBS promotes 114 challengers out of 528 proposals, reducing model deployment frequency by 78.4% compared to always deploying retrains.
  • Four-week block intervals of relative NLL improvement remain strictly positive for all three baselines, indicating consistent temporal robustness.
  • Gains generalize across three random seeds, eight assets, multiple contract types, an earlier 20-asset dataset, and a topology-matched supervised objective.
  • Increasing the promotion margin threshold reduces deployments while preserving positive NLL improvement, showing stable policy behavior.
  • Longer forward shadow trial durations (up to three weeks) maintain positive NLL gains without requiring perfect challenger ranking.
  • Under a deliberately weak candidate pipeline (Temporal-CNN), SBS rejects nearly all deployments, retaining incumbent performance and avoiding large loss escalations seen with blind replacement.
  • Brier score reductions mirror NLL gains, supporting improved calibrated probabilistic forecasts rather than accuracy or coverage effects alone.

Threat model

n/a — This work does not consider adversarial attackers or attacker capabilities. The focus is operational risk from erroneous model promotions or premature deployments within a production forecasting pipeline with delayed labels and evolving incumbent models.

Methodology — deep read

  1. Threat model and assumptions: The adversary is not explicitly defined since this is a production deployment policy paper rather than a security defense work. SBS assumes a production ML forecasting system where model labels are delayed and arriving asynchronously, the incumbent model state continues to evolve by consuming these mature labels on-line, and retrained candidate models are trained off-line on historical sets of mature data. The adversary could be the operational risk of deploying a poorly performing or misfitting challenger. SBS prevents deployment without forward evidence of improvement.

  2. Data: Two primary Binance crypto futures market episodes spanning 48 weeks total (August 2025 – July 2026), with eight underlying assets each traded as USD-M and COIN-M perpetual contracts. Three random seeds are used to train and test stochasticity. The data consists of 60 snapshots of 40 depth-band limit order book features sampled every 30 seconds, processed to remove days with excessive missing data, with a 5-basis-point neutral band defining three-class direction labels based on future 300-second returns. Data volume includes over 13 million scored examples across episodes. An earlier 20-asset, 14-week panel and an alternative Coinbase dataset are used for robustness.

  3. Architecture / algorithm: The primary forecasting model is a Temporal-CNN with 24-channel snapshot embeddings, temporal mean, max, and final pooling, followed by a 24-unit shared second layer and a linear 3-class output head. Representations are trained with layer-local Forward–Forward training and mature-label supervised head updates. Warm-refitting uses a function-preserving reparameterization to adapt the model weights, batch size 128, Adam optimizer at 1e-3 learning rate with early stopping on validation NLL. Head updates during maintenance use plain SGD with momentum-free updates at 3e-4 learning rate. SBS compares a challenger cloned and warm-refitted off the current maintained incumbent and evaluates them on the same forward week of matured labels.

  4. Training regime: Scheduled retraining boundaries are spaced weekly. At each, the incumbent is deep-copied (including model, normalizer, delayed label queues, optimizer state). The challenger is warm-refitted on the last 21 days of mature data with 7-day validation using Adam. Then both incumbent and challenger are independently advanced on the same forward week of live data, making predictions but not accessing their labels until they mature 300 seconds later, at which point model states update their heads. After all forward week labels mature, a paired negative log-likelihood (NLL) difference is computed over all examples and used as a gate for promotion if challenger advantage exceeds 1e-4.

  5. Evaluation protocol: The paired trial NLL difference measures whether to deploy challenger or retain incumbent. SBS is compared to calendar-based immediate replacement, blind promotion (same schedule and trial but always deploy), and pure maintenance (no full retrains). Metrics are relative NLL reduction aggregated hierarchically over assets, contracts, seeds, weeks, with equal weighting to avoid high-volume dominance. Significance is assessed using moving block bootstrap with 4-week blocks. Ablations vary margin threshold and trial length. Additional robustness on an alternative architecture (Temporal-CNN with cross-entropy objective) and a stress test with a deliberately misspecified Temporal-CNN verify safety benefits. Brier scores and risk-coverage analyses confirm proper scoring improvements.

  6. Reproducibility: Code and data repository, manifest, and configuration with locked seeds and randomized seeds builds are released, allowing deterministic replay of historical episodes. Data is primarily from public Binance futures but some proprietary reorder book metadata used with snapshots. Model checkpoints and environment details are versioned. The policy parameters were development-selected on an initial window and then frozen before retrospective evaluation on held-out later episodes.

Example end-to-end: At a weekly retrain boundary, the incumbent model state—consisting of model weights, normalizer moments, delayed label queues, and SGD optimizer state—is deep copied to produce the challenger. The challenger warm-refits model weights on mature data from the previous 21 days with Adam until validation loss stops improving. Then both incumbent and challenger progress forward on the same week, predicting every 30-second snapshot but only updating their heads after label maturity with SGD. After the forward week, their predictions' NLLs are paired and the challenger is promoted only if its mean NLL is less than the incumbent by 1e-4 or greater. Otherwise, the incumbent remains.

This approach differs from standard retrain-and-deploy pipelines: it explicitly models the incumbent as continuously adapting between retrains and requires a forward out-of-sample shadow evaluation with fully matured labels to authorize replacement. This controls for stochastic label delay, distributional change, and risk of destabilizing recursive training dependencies.

Technical innovations

  • Shadow Before Swap (SBS): a deployment gate that compares a warm-refitted challenger to a continuously maintained incumbent on the same forward week with fully matured labels before promotion.
  • Paired negative log-likelihood (NLL) difference computed causally on synchronized forward label availability to filter challenger replacements.
  • Function-preserving reparameterization for warm-refitting challengers to incumbent initializations off serving path.
  • Recursive replay evaluation protocol that measures the cumulative effect of deployment decisions on evolving model states rather than isolated offline benchmarks.
  • Use of a schedule-matched blind promotion baseline to isolate the value of waiting for forward evidence versus immediate deployment.

Datasets

  • Binance perpetual futures panel — approx. 13 million examples over 48 UTC weeks — public exchange data with proprietary preprocessing
  • Earlier 20-asset USD-M panel — 5.5 million examples over 14 weeks — same source
  • Coinbase screen — 55,367 samples — public data with different midprice construction

Baselines vs proposed

  • Calendar replacement: Relative NLL reduction = 0% baseline vs SBS: 0.1472%
  • Blind promotion (schedule-matched always-deploy): Relative NLL reduction = 0% baseline vs SBS: 0.0755%
  • Continuous maintenance (no full retrains): Relative NLL reduction = 0% baseline vs SBS: 0.0428%
  • Temporal-CNN stress test calendar: NLL = 12.6506 vs SBS: 1.07141 (near maintenance)
  • Temporal-CNN stress test blind: NLL = 15.8667 vs SBS: 1.07141

Limitations

  • Evidence is primarily from Binance perpetual futures market, limiting generalizability to other markets or asset classes.
  • The approach presumes availability of delayed but reliably mature labels; settings with unpredictable or missing labels may complicate deployment.
  • Forward shadow trial induces a fixed deployment latency equal to the trial length (e.g., one week), which may be unacceptable for some low-latency applications.
  • The 1e-4 promotion margin threshold was development-selected and may not be universally optimal; tuning is environment-specific.
  • Robustness to other distinct forecasting architectures beyond tested CNN variants remains to be evaluated.
  • Economic or monetary value translation of probabilistic forecasting gains was not performed; actual profit impact depends on downstream decision policies.

Open questions / follow-ons

  • How to adapt SBS or similar forward-gated deployment policies under heterogeneous or unpredictable label delay distributions?
  • What are the tradeoffs of variable-length shadow trials or continuous evaluation schemes adjusting deployment latency?
  • How do different model architectures, objectives, and retraining cadences affect the relative value of forward-gated authorization?
  • Can SBS be integrated with risk- or capital-weighted deployment policies that prioritize asset impact rather than equal asset weighting?

Why it matters for bot defense

For bot-defense and CAPTCHA practitioners, the challenge of deciding whether to replace a production model aligns with similar operational risks in security-critical ML services. SBS illustrates a rigorous method to authorize model updates only after forward-shadowed evaluation on mature labels, thereby reducing unnecessary or harmful model transitions that might degrade service quality or invite adversarial exploitation of new states. While CAPTCHA tasks generally have different label dynamics, delayed label feedback and evolving incumbent models appear in security contexts like bot detection or fraud scoring. Implementing SBS-like forward-gated deployment can improve reliability and stability of model rollouts by incorporating delayed ground truth signals to guard against hasty upgrades. This method provides a principled approach to balance agility in retraining with operational risk controls, which is critical when new model states can impact user interaction flows or security outcomes.

Cite

bibtex
@article{arxiv2607_28577,
  title={ Train Often, Deploy Selectively: Forward-Gated Model Replacement in Crypto Markets },
  author={ Aditya Dutta },
  journal={arXiv preprint arXiv:2607.28577},
  year={ 2026 },
  url={https://arxiv.org/abs/2607.28577}
}

Read the full paper

Articles are CC BY 4.0 — feel free to quote with attribution