Skip to content
Kelvin's design drawing of his third tide-predicting machine, 1881, the fifteen pulleys in orange

W. Thomson.Tide-predicting machine No. 3. 1881.

Oct 2026

KITE

A Knowledge-Injected Temporal Encoder for Time-Series Event Forecasting

Paper
Code · soon
World Model Research
Authors
Jonas Petersen, Pratik Jawahar, Riccardo Maggioni, Gian-Alessandro Lombardi, Matteo Cozzi, Marek Gajewski, Federico Martelli, Camilla Mazzoleni, Philipp Christian Petersen
Affiliations
ETH Zürich · Forgis · University of Vienna
Venue
FMTS @ NeurIPS
Forecasting rare, high-cost events in multivariate time-series systems is hard because their precursors are seldom observed, so a purely data-driven model has little to learn from. The engineers who run these systems, however, hold knowledge that precedes such events, information absent from the scarce labels. We call this a semantic prior and inject it into a self-supervised event forecaster through two switchable mechanisms, a covariate mechanism and an attention-bias mechanism. KITE is thus a switchable, attributable route to contextual conditioning, and a substrate for scaling toward cross-domain, pretrained time-series foundation world models that carry their governing structure explicitly.
Prior categories
12
Periodicity clock
+14%
Residual @ 25% labels
+47%
Out-of-domain transfer
+53%
Figure 1. An informative prior beats no priorKITE results: h-AUROC with the semantic prior against the prior-free control on four in-domain short-context rows, and out-of-domain transfer from BATADAL to SYNTH-CON where the prior scores 0.922 against 0.601 without it.0.20.40.60.81.0chanceOccupancyPeriodicity clock0.866 (Δ+0.104***)0.762BATADALConservation residual0.877 (Δ+0.741***)0.136BATADAL (low-label 0.25)Conservation residual0.644 (Δ+0.207***)0.437SYNTH-ROUTE-v2 (synth.)Structural descriptor0.892 (Δ+0.218)0.674h-AUROC (short context)(a)An informative prior beats no priorPriorNull (control)0.51priorno-prior0.922 (Δ+0.32)0.601conservation-residual h-AUROC(b)A working prior transfers, and substitutes for pretrainingOut-of-domain transfer (BATADAL → SYNTH-CON)0.2.4+0.12 to +0.39+0.006≈0clock / conservationresidualstatic-identitypriorWeather(neg. ctrl)Δ h-AUROC (transfer lift over no-prior)The lift comes from the mechanism, not a static label Figure 1. An informative prior beats no priorKITE results: h-AUROC with the semantic prior against the prior-free control on four in-domain short-context rows, and out-of-domain transfer from BATADAL to SYNTH-CON where the prior scores 0.922 against 0.601 without it.(a)An informative prior beats no priorPriorNull (control)0.20.40.60.81.0chanceOccupancy0.866 (Δ+0.104***)Periodicity clock0.762BATADAL0.877 (Δ+0.741***)Conservation residual0.136BATADAL (low-label 0.25)0.644 (Δ+0.207***)Conservation residual0.437SYNTH-ROUTE-v2 (synth.)0.892 (Δ+0.218)Structural descriptor0.674h-AUROC (short context)(b)A working prior transfers, and substitutesfor pretrainingOut-of-domain transfer (BATADAL → SYNTH-CON)0.51prior0.922 (Δ+0.32)no-prior0.601conservation-residual h-AUROCThe lift comes from the mechanism, not a static label0.2.4clock / conservation residual+0.12 to +0.39static-identity prior+0.006Weather (neg. ctrl)≈0Δ h-AUROC (transfer lift over no-prior)
Figure 1. An informative prior beats no prior (h-AUROC; chance 0.5). (a) In-domain, short context: each prior clears its null on the stratum where it applies (periodicity clock on silent-onset forecasting; conservation residual on ongoing-violation detection and at a 0.25 label fraction; a structural descriptor on synthetic SYNTH-ROUTE-v2). (b) Out-of-domain transfer with a frozen encoder (BATADAL → SYNTH-CON): a working prior transfers and substitutes for feature transfer, while a static-identity prior does not. Datasets: see note below.

Overview

Building-management arrays, water networks, air-quality monitors and power infrastructure are watched by dense arrays of timestamped variables. The events that matter most are rare and expensive to label, so a purely data-driven model has little to learn from on exactly the stratum that matters. A domain engineer, by contrast, holds knowledge that precedes any data: which variable is the high-voltage load, that a reading above a threshold is a warning, that the daily cycle repeats every 1440 minutes, that a pump drives a downstream temperature. We call this a semantic prior.

Existing approaches each inject a single prior type through an always-on pathway entangled with the backbone, so a new prior or a new system means a new architecture. KITE instead treats a prior as a switchable input to one self-supervised JEPA backbone. A prior enters as an input, so each prior-versus-no-prior comparison is a clean ablation, and the measured gain can be attributed to the mechanism that carried it.

TL;DR. A prior helps when it supplies information the observed window does not already contain. In a short context an informative prior beats no prior in-domain (periodicity clock +14%, p < 0.001; conservation residual +47% at a 0.25 label fraction), and a working prior transfers out-of-domain (+53%), substituting for feature transfer. Priors the window already recovers stay inert, and the attention-bias mechanism shows no measurable gain.

Two mechanisms, each the identity at its null

The backbone is a horizon-conditioned event JEPA. A variate-token encoder cuts the window into (variable, time-patch) tokens with no per-variable slot, so it is permutation-invariant and runs unmodified on a different number of variables than it was trained on. A horizon-conditioned predictor and a discrete-survival head compose per-horizon hazards into a monotone event-probability surface p(t, Δt). Stage 1 pretrains encoder and predictor self-supervised; Stage 2 freezes the encoder and trains the head on labels.

Figure 2. The KITE architectureTwo stages. Stage 1, self-supervised pretraining: the encoder reads the history window of the variables and covariates, with a causal-graph attention bias, and a predictor matches the target embedding of the future window. Stage 2, supervised finetuning: the frozen encoder, the horizon and the future-known covariate feed a predictor and an event head that gives a discrete hazard and a survival probability, trained with a binary cross-entropy loss.Stage 1: Self-Supervised Pretrainingv1v2v3staticknown (clock)past-onlyvariablescovariates(I)tΔtP=16x≤t(II)causal graphv2v3v1Aattn. bias βAfθ= shared weightsfθhtPredictor gϕĥ(1−α)ℒ1 + α ℒVICAttn Poolh*semantic prior(I) covariate(II) attention biasStage 2: Supervised Finetuningv1v2v3staticknown (clock)past-onlyvariablescovariates(I)tΔt= 1, . . . , Kx≤tfuture-known covariatefθht[ ht;Δt;c(t+Δt) ]Predictor gϕĥΔtσ(w⊤·)event headλΔtp=1 − ∏Δtj=1(1−λj)discrete hazard → survival CDFℒBCE10y[t,t+Δt]max Figure 2. The KITE architectureTwo stages. Stage 1, self-supervised pretraining: the encoder reads the history window of the variables and covariates, with a causal-graph attention bias, and a predictor matches the target embedding of the future window. Stage 2, supervised finetuning: the frozen encoder, the horizon and the future-known covariate feed a predictor and an event head that gives a discrete hazard and a survival probability, trained with a binary cross-entropy loss.Stage 1: Self-Supervised Pretrainingsemantic prior(I) covariate(II) attention biasv1v2v3staticknown (clock)past-onlyvariablescovariates(I)tΔtP=16x≤t(II)causal graphv2v3v1Aattn. bias βAfθ= shared weightsfθhtPredictor gϕĥAttn Poolh*(1−α)ℒ1 + α ℒVICStage 2: Supervised Finetuningv1v2v3staticknown (clock)past-onlyvariablescovariates(I)tΔt= 1, . . . , Kx≤tfuture-knowncovariatefθht[ ht;Δt;c(t+Δt) ]Predictor gϕĥΔtσ(w⊤·)event headλΔtdiscrete hazard → survival CDFp=1 − ∏Δtj=1(1−λj)ℒBCE10y[t,t+Δt]max
Figure 2. Two-stage KITE architecture. Stage 1 (pretraining): an encoder with causal-graph attention bias ingests the context; static and past-known covariates enter the encoder, future-known covariates enter the horizon-conditioned predictor, and a shared-weight target encoder supplies the latent-prediction target. Stage 2 (finetuning): a compact head over the frozen encoder emits a monotone event-probability surface p(t, Δt).

Domain knowledge is sorted by when it is knowable and whether it is per-variable or relational, which determines where it enters. A taxonomy of twelve prior categories maps onto two mechanisms; four categories are implemented and evaluated. With the prior input zeroed, every pathway adds nothing, so at initialisation the conditioned model computes exactly the unconditioned one.

I · Static path

Descriptor to the encoder

A descriptor is one fixed vector per variable, not a time series: for example its unit, its role in the plant, or a structural tag. A small network maps it to an embedding Wδδ, which is added to every (variable, time-patch) token of that variable before attention: out = x + Wδδ. The network's output layer starts at zero, so the tokens are unchanged at initialisation. The descriptor is present during Stage-1 pretraining, so the encoder learns which variable is which from content rather than from a learned per-variable slot, and stays permutation-invariant.

I · Future-known path

Clock to the predictor

The clock skips the encoder. The predictor is a small MLP that is queried once per forecast horizon Δt, and its input is one concatenated vector [ht; Δt; c(t + Δt)]: the context embedding, the horizon, and the sine and cosine of the daily phase at the target time t + Δt. There is no cross-attention. The clock depends only on the calendar index, so its value at the horizon is known exactly, and the predictor is told the phase it forecasts into instead of inferring it from a window that may not span a full day. Its input weights start at zero and are trained in Stage 2.

I · Past-only derived path

Law as a covariate

The law is evaluated on the observed data, outside the network. On BATADAL, for each tank, the measured level change dL is compared with the change the net pump flow Σin − Σout predicts, with the constants fit on attack-free training data. The residual stays near zero while the mass balance holds and departs from it when the readings stop obeying it, as during an attack. Its latest value and recent trajectory enter the predictor input in the same slot as the clock, repeated across horizons because the residual is not known into the future. It therefore detects a violation in progress but does not anticipate one.

II · Attention bias

Causal graph on the logits

A per-dataset causal graph gives a driver-adjacency A over the variables, with A[a, b] = 1 when variable b drives variable a, so A encodes the interdependencies between variables. Every token is a (variable, time-patch) pair, so A is tiled over all token pairs and βA is added to the query-key logits before the softmax. A patch of variable a then attends more to the patches of its drivers, by an amount set by the learned scalar β, while the causal time mask still hides future patches. At β = 0 the encoder is unchanged. With β fixed at 2 the attention mass on graph edges rises from 3.8% to 19.1% on Weather, yet h-AUROC does not move: the effect is bounded to about 0.006.

Headline results

Each prior is tested against a prior-free control trained under the same recipe, by h-AUROC over 5 to 10 seeds, with zeroed- and shuffled-prior controls so a gain cannot be an artefact of the extra input. Every reported null is a separately trained model, never the prior model with its input removed at test time. The estimand differs by row and is comparable only within a row.

Dataset (estimand)PriorKITENo priorChr-2PatchTSTiTrans.
Short-context, in-domain
Occupancy (silent-onset) Periodicity clock 0.866 0.762 0.733 ±0.003 0.702 ±0.037 0.754 ±0.025
BATADAL (ongoing) Conservation residual 0.877 0.136 0.947 det. 0.732 ±0.073 0.672 ±0.055
BATADAL (overall, 0.25 labels) Conservation residual 0.644 0.437 0.642 det. 0.656 ±0.024 0.534 ±0.036
SYNTH-ROUTE-v2 (onset) Structural descriptor 0.892 0.674 0.909 ±0.007 0.710 ±0.065 0.916 ±0.011
Out-of-domain transfer
BATADAL → SYNTH-CON (onset) Conservation residual 0.922 0.601 0.774 N/A N/A
h-AUROC, mean over 5 to 10 seeds (± sd for the external baselines); higher is better, chance is 0.5. Underlined: best value in the row among trained models (the training-free detector marked "det." is not counted). No prior: the same model trained without the prior. Chr-2: Chronos-2, zero-shot in the transfer row. iTrans.: iTransformer. N/A: supervised baselines have no transfer mode. No-prior values below 0.5 are not errors: on the hard stratum the prior-free model ranks the rare-event windows below the rest. Datasets: see note below.

On the Occupancy silent-onset stratum under a short 360-step context, the true-phase periodicity clock lifts the prior-free baseline from 0.762 to 0.866. A zeroed clock stays at baseline (0.767) and a shuffled one falls 0.346 below the true phase, so the gain is the phase itself. On BATADAL the prior-free null sits below chance, and the conservation residual lifts it to 0.877 (p = 1.2×10−5, n = 5), still helping at a 0.25 label fraction (+0.207). Against the external baselines, none of 20 arms beats KITE at BH-FDR 0.05, though some have point estimates above KITE's ("det." marks a training-free deterministic detector). The claim is that the prior lifts a backbone above its own null at no extra training cost, not that KITE beats foundation models.

Where the prior enters matters

The same Occupancy clock, routed three ways, gives three different results. Only when it is evaluated at the predictor's forecast horizon does it convert phase into a hazard.

Occupancy (silent-onset)h-AUROC
No prior (KITE backbone) 0.762
Clock alone, time-of-day sine 0.721
Clock as encoder input channels 0.797
Clock to the predictor at the horizon 0.866
h-AUROC, higher is better. Datasets: see note below.

Getting started

The paper is on arXiv. Code coming soon.

Citation

@misc{petersen2026kite,
  title         = {KITE: A Knowledge-Injected Temporal Encoder for Time-Series
                   Event Forecasting},
  author        = {Petersen, Jonas and Jawahar, Pratik and Maggioni, Riccardo and
                   Lombardi, Gian-Alessandro and Cozzi, Matteo and Gajewski, Marek and
                   Martelli, Federico and Mazzoleni, Camilla and
                   Petersen, Philipp Christian},
  year          = {2026},
  eprint        = {2610.12738},
  archivePrefix = {arXiv}
}

Papers

Are you a researcher?

Publish with us.
Help build one world model for any machine and robot.

Forge temperature: 1508°C
Status: Active