The same AI cluster, power grid or data pipeline is often judged by several regulators at once, and each one measures time differently. One rulebook caps a quantity averaged over a rolling hour. Another caps a cumulative total over thirty days. A third forbids any single five-minute spike above a limit. Rules are also amended: thresholds move and new windows appear. This note proposes to train one probabilistic forecaster whose simulated futures yield calibrated probabilities of violating any such window-based rule. That includes rules the forecaster never saw during training, and joint events such as "violates at least one of these three jurisdictions' rules next week."
The core bet is narrow. Generating many plausible future trajectories and counting violations is the obvious approach. It fails because ordinary forecasters get sums, rolling maxima and tails over long windows wrong, even when their step-by-step accuracy is good. A forecaster built to model several time resolutions at once, and trained directly to be calibrated on a randomized bank of window rules, should fix exactly that failure.
Core Claim
A forecaster can be calibrated for compliance events across many time windows at once. Here a "rule" means a window length, an aggregation operator (sum, mean or max) and a threshold, and a jurisdiction is a set of such rules. If we sample rules from a broad distribution during training and score the model's predicted exceedance probabilities against what actually happened, the resulting forecaster should transfer to held-out rule families and to amended thresholds without retraining. It should also give coherent joint probabilities for multi-jurisdiction events. Neither per-rule classifiers nor sum-coherent hierarchical forecasters provide these by construction.
The motivation comes from the regulatory literature. Comparing Apples to Oranges compares the EU, US, Chinese, Canadian and Brazilian regimes along 11 structural dimensions and documents how they diverge and shift over time. Practical Principles for AI Cost and Compute Accounting shows that thresholds depend on cumulative accounting choices and argues they should be revised periodically. Together they show that the windows and limits a system answers to are plural and changing. Neither paper offers a predictive tool.
Beyond Yes or No predicts whether a deadline will be violated, and by how much, from discrete business event logs. On Sepsis its multi-task model reaches 3.64 hours mean absolute error, against 6.06 hours for baselines. That work motivates predicting severity and not just a yes/no flag, but it covers a single organisation's rules and no continuous multi-resolution signals. Accuracy-Efficiency Trade-Offs and Accountability in Distributed ML Systems argues that temporal engineering choices are, in effect, policy choices that must be assessable. We take that argument as the reason calibrated probabilities matter here, rather than point forecasts.
Research Program
The forecaster has three parts. The first is a multi-scale backbone, borrowed as method from two prior models. Pathformer slices the input into patches of several sizes and routes each series to the most useful ones; it reports 8.1% lower mean squared error than PatchTST and wins 81 of 88 cases. Scaleformer forecasts at a coarse resolution first and then refines toward finer ones.
The second part is a probabilistic head that outputs sample trajectories at the finest resolution. Where the reporting windows form a strict hierarchy (5-minute steps summing to hours, hours summing to days), we project samples so they add up correctly, reusing the differentiable projection of Coherent Probabilistic Forecasting of Temporal Hierarchies (COPDeepAR). That method needs a fixed linear aggregation matrix. Rolling, overlapping windows and max-operators do not fit such a matrix, and they are why the third part exists.
The third part is a rule-bank calibration loss. For a rule $r$ with window $w$, operator $g$ and threshold $\tau$, the event $E_r(y)$ is the indicator that $g$ applied to some length-$w$ window of trajectory $y$ exceeds $\tau$. The model estimates $\hat p_r$ as a sigmoid-smoothed average of $E_r$ over $S$ sample paths. Training minimizes
$$ \mathcal{L} = \sum_{k} \mathrm{CRPS}_k + \lambda\, \mathbb{E}_{R \sim \mathcal{D}} \Big[ \big(\hat p_R - E_R(y^{\text{true}})\big)^2 \Big], $$
where $\mathrm{CRPS}_k$ is the continuous ranked probability score (a standard measure of how well a predicted distribution matches the outcome) at resolution $k$. $R$ is either a single rule or a small set of rules whose union event ("any rule violated") is scored. $\mathcal{D}$ is the training distribution over windows, operators and quantile-set thresholds. $\lambda$ trades off general forecast quality against compliance calibration. The squared term is the Brier score, a proper scoring rule for probabilities, so minimizing it rewards calibration and not just ranking.
A severity head reports expected exceedance magnitude, following the multi-task design of Beyond Yes or No.
Rule families are synthetic but structured after real regulatory forms. These include short-window spike caps, rolling-mean caps and long cumulative budgets. Thresholds are set per series at training-set quantiles, so base violation rates span roughly 1% to 20%. We are explicit that the file contains no dataset of real, quantified cross-jurisdiction temporal limits. The study therefore tests whether the method generalizes across rule structure; it does not claim fidelity to any specific statute.
Baselines
The naive reference is climatology. Each rule's predicted violation probability is its empirical rate on the training period, possibly conditioned on time of day or season. Any method must beat it on Brier score, or the forecasting machinery adds nothing.
The strongest existing method is COPDeepAR followed by Monte Carlo rule evaluation. We draw samples from the coherent hierarchical forecaster and count violations of each rule. It is the strongest competitor because it already enforces cross-resolution consistency and reports a 9% CRPS gain over DeepAR on noisy Taxi-5min, and it beats DeepAR on 5 of 6 datasets. For violation-probability metrics specifically, we found no reported result on Lacuna for COPDeepAR or any other method, so all exceedance numbers will be produced here. We also run plain DeepAR with Monte Carlo evaluation as the single-scale probabilistic reference.
A per-rule direct classifier gives an optimistic bound on seen rules. It uses the same backbone with one classification head per training rule, in the multi-task style of Beyond Yes or No.
Two ablations isolate the proposal's ingredients. One removes the rule-bank term ($\lambda = 0$), testing whether the loss or the backbone matters. The other swaps the multi-scale backbone for a single-resolution one while keeping the loss.
All methods share the look-back length, data splits, sample count $S$, hyperparameter search budget (the same number of trials) and compute. Beating the field means a lower Brier score and lower expected calibration error than COPDeepAR with Monte Carlo evaluation on held-out rule families, with a gap larger than the seed-to-seed spread, and no more than a small CRPS loss.
Why not just…?
Why not just sample from a coherent forecaster like COPDeepAR and count violations? This is the real threat, and the experiment is built around it. Coherence guarantees that sums across a fixed hierarchy agree. It says nothing about rolling windows, maxima, or whether the tail above a 99th-percentile threshold is calibrated, and CRPS weights those tails lightly. If COPDeepAR with Monte Carlo evaluation matches our method on held-out rolling and max rules, the conclusion is that coherence suffices. We would report that as the finding and drop the extra loss.
Why not just train one classifier per rule, or retrain when a jurisdiction amends its rules? Per-rule classifiers may win on rules seen in training. They cannot score a new window or threshold without new labels and retraining. Their probabilities for "violates any of these rules" are not tied to a shared distribution of futures, so they can be mutually inconsistent, for example giving a union event lower probability than one of its parts. The held-out-rule and joint-event tests measure both weaknesses directly. Metanetworks as Regulatory Operators shows that fast post-deployment updates are valuable, but its weight editing only works on small tabular MLPs. Producing rule-conditioned outputs is a cheaper route to the same goal.
Why not just threshold observed data with sliding windows or a rule engine? That approach detects violations after they happen; it does not forecast them. It is also inherently single-scale: long averaging windows wash out short spikes, and short windows miss slow drift. We include it as a nowcasting reference for the severity metric, but it cannot answer "what is the probability we breach next week?"
Proposed Experiments
We use the hierarchical suite from COPDeepAR (Taxi-5m, Elec-15m, Solar-1H, Traffic-1H), plus Electricity and Weather from the Pathformer, Scaleformer and TimesNet evaluations, and Cloud Cluster from Pathformer as the closest proxy for AI-infrastructure load. Metrics are Brier score and expected calibration error on exceedance events, CRPS per resolution, and severity mean absolute error.
The first decisive check is held-out rule-family transfer. We train with windows of at most one day and sum or mean operators, then test on 30-day cumulative budgets, max-operators and amended thresholds. The second is joint-jurisdiction calibration on union events over two to four rules, where independence assumptions should visibly fail. The third is tail behavior as thresholds move toward rare quantiles. The fourth checks that general CRPS stays within a small margin of the $\lambda = 0$ ablation. If the multi-scale-backbone ablation matches the full model, the contribution reduces to the loss alone, and we will say so.
References
- Comparing Apples to Oranges: A Taxonomy for Navigating the Global Landscape of AI Regulation
- Practical Principles for AI Cost and Compute Accounting
- Beyond Yes or No: Predictive Compliance Monitoring Approaches for Quantifying the Magnitude of Compliance Violations
- Accuracy-Efficiency Trade-Offs and Accountability in Distributed ML Systems
- Pathformer: Multi-scale Transformers with Adaptive Pathways for Time Series Forecasting
- Scaleformer: Iterative Multi-scale Refining Transformers for Time Series Forecasting
- Coherent Probabilistic Forecasting of Temporal Hierarchies
- Metanetworks as Regulatory Operators: Learning to Edit for Requirement Compliance