W. Thomson.Tide-predicting machine No. 3. 1881.
KITE
A Knowledge-Injected Temporal Encoder for Time-Series Event Forecasting
- 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
- Prior categories
- 12
- Periodicity clock
- +14%
- Residual @ 25% labels
- +47%
- Out-of-domain transfer
- +53%
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.
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.
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.
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.
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.
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.
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) | Prior | KITE | No prior | Chr-2 | PatchTST | iTrans. |
|---|---|---|---|---|---|---|
| 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 |
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 |
Getting started
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.
P - 6.2 bar (Pressure)
RH - 48 % (Humidity)
A - 0.32 g (Acceleration)
V - 1.8 mm/s (Vibration)
RPM - 1450 (Speed)
τ - 92 Nm (Torque)
U - 400 V (Voltage)
I - 18.6 A (Current)
Pwr - 11.2 kW (Power)
E - 7.4 kWh (Energy)
S - 72 dB (Sound)
US - 38 kHz (Ultrasound)
Prox - ON Proximity)
Dist - 42 mm Distance)
Enc - 12480 Position)
CS - 0.85 m/s Conveyor)
Part - TRUE Presence)
CT - 4.2 s Cycle)
TPH - 860 u/h Throughput)
Scr - 1.3 % Scrap)
DT - 3.6 min/h Downtime)
OEE - 78 % Efficiency)
ΔT – 5 °C/min (°C/min · termical gradient)
N – 1245 pcs (pieces unit counting)
W – 12.5 kg (kg · load)
cosφ – 0.92 (adimensional)
L – 850 lux
CO₂ – 820 ppm (ppm · gas concentration
Forgis builds the world model that brings physical intelligence into hardware.