Bounding forecasts in Timestral
Nov 2026
BLUF: Clamping sparse context forecasts reduces Timestral's benchmark MSE by 35%
Timestral by Mistral AI is a family of open-weight time-series foundation models.
In my Physiome-ODE evaluation, Timestral-5M scored 0.766 MSE. A constant-zero baseline scores 0.750.
Example: One fold below scores 46.9 while the other four score 0.71 to 1.41. A small fraction of forecasts blow up like this, and in MSE they swamp everything else.
| shorten_ocallaghan_2007, validation | fold 1 | fold 2 | fold 3 | fold 4 | fold 5 |
|---|---|---|---|---|---|
| default | 46.9 | 0.73 | 0.71 | 0.89 | 1.41 |
The Problem
Timestral rescales each series before forecasting and converts the prediction back:
The conversion back is exponential, so a large prediction becomes a very large forecast.
For a series of 5 and 10, a prediction of ẑ = 1 gives a forecast of 11.66 (reasonable). ẑ = 10 gives 38,950 (unreasonable).
Two points carry little information. After rescaling, they only say whether the series went up or down. A slow climb and the start of a spike look the same, so the model guesses.
A third point shows shape. Below we add that to the series of 5 and 10.
| series | gaps | shape |
|---|---|---|
| 5, 6, 10 | +1, +4 | speeds up |
| 5, 9, 10 | +4, +1 | levels off |
Inference-Time Fix
If a series has only one or two observations, keep its forecast, including the uncertainty range, between the lowest and highest values it has seen. Timestral already nearly does this with one observation, but not with two.
ctx_min = torch.nan_to_num(inputs.masked_fill(not_obs, float("inf")).amin(-1, keepdim=True), posinf=0.0)c = self.config_, scale = causal_patch_loc_scale(inputs, observation_mask, c.patch_size, c.minimum_scale, c.stabilize_with_global)anchor_scale = scale[..., -1:] * self.quantile_real_cap_k# counts how many real points each series hasn_obs = observation_mask.sum(-1, keepdim=True)# if 1 or 2 points, clamp forecast to the observed rangeanchor_scale = scale[..., -1:] * torch.where((n_obs >= 1) & (n_obs < 3), 0.0, self.quantile_real_cap_k) return quantiles.clamp((ctx_min - anchor_scale).unsqueeze(-1), (ctx_max + anchor_scale).unsqueeze(-1))The cutoff is 3 because a third point is the first that shows shape.
Results
In this Timestral-5M evaluation, clipping reduced aggregate MSE from 0.766 to 0.500, a 34.7% relative reduction. MSE improved on 47 of 50 datasets.
Raising the cutoff to 4 gives 0.499, essentially no difference.
The TIME rerun matched the baseline, as expected based on the content of the benchmark.