Without correction, JEPA latent prediction is fragile. On the smooth-dynamics world, the predictor's filtered MSE grows 4.6× from the start of a sequence to its end. On switching dynamics it grows 4.3×. On periodic-impulse dynamics it grows 12.3×. The forward model, left to itself, accumulates error faster than it can correct.
REFINERY's C-kernel changes that. Drop the controller in front of the same predictor — anomaly score, κ-gated effective temperature, signal-E correction, no architectural changes to JEPA itself — and filtered MSE falls by an average of 80 % across all four worlds. The runaway 12.3× drift in impulse drops to 3.5×. The 4.6× drift in smooth drops to 0.45×, below the calibration threshold: the corrected predictor actually improves over the sequence as evidence accumulates.
The mechanism worth seeing is the kappa gate. In aggregate it looks dormant — mean κ across the run is 1.06, barely above the gate's hard floor. But the step-level data tells a different story. In the impulse world, where the dynamics fire a shock every seventeen steps, kappa spikes to 1.28 at step 17, 1.28 at step 34, 1.27 at step 51, and 1.28 at step 68. The gate is locked onto the shocks. In the switching world, it peaks at 1.36 at step 12 — the first regime change — and again at every subsequent boundary. Unsupervised. No labels, no schedule. The gate is detecting where the world becomes unpredictable and releasing correction strength only when it's needed.
vs. plain baseline
improved
runaway, contained
detected unsupervised
01The setup
The C-kernel — REFINERY's branch-free controller, originally designed as a sampler over LLM hidden states — was ported into a JEPA-style latent-prediction sandbox. A learned encoder lifts noisy observations into a sixteen-dimensional latent; a learned predictor advances the latent one step at a time; the controller blends the prediction with a residual correction at each step, with the correction strength modulated by an anomaly score and a κ gate.
The comprehensive suite ran four worlds — smooth nonlinear dynamics, regime-switching dynamics with abrupt operator changes, impulse dynamics with periodic shocks, and partial-observation noisy dynamics — across five seeds, sequence length 80, twenty-four training epochs. The primary comparison is plain JEPA (no correction) versus REFINERY's refinery_e controller (full pipeline). A signal-E-only ablation and a tuned constant are included as scaffolding.