# RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference

RESYNC refreshes stale large-model states so streaming predictions meet deadlines

Eljas Linna, Hao Dong, Juho Kanniainen · arXiv · 2026-11-12

- **Problem** Large models give better predictions on high-rate streams but cannot finish before the next observation arrives. Their late predictions pile up, so the system misses most per-observation deadlines.
- **Method** RESYNC runs the large model asynchronously and keeps its newest exact but stale latent state. A small GRU-based updater then adds the observations received since that state, and the unchanged prediction head turns the result into a prediction.
- **Results** RESYNC beat the best fast model in all twelve pairs where the teacher clearly leads.

## Why a slow teacher misses the stream

A stream that demands one prediction per observation puts a hard clock on every model call. The backlog then grows, and each prediction arrives only after later observations have already come in. The paper measures this per-observation reaction latency, along with coverage and deadline misses.

The usual fix makes the whole predictor cheaper, by reducing its capacity or context, distilling it, or exiting early. The authors call the high-capacity predictor the teacher and a smaller variant of the same architecture the compact model. A compact model can meet a short deadline, but it may sacrifice quality.

The teacher may already hold an exact representation of a recent window, and that representation goes stale as observations arrive. RESYNC uses that stale latent as its starting point instead of recomputing the whole window.

The service contract makes the problem harder, because the system owes one prediction for every observation t. Dropping or coalescing requests reduces queuing, but it doesn't satisfy this contract. Synchronization only pays off when the teacher beats every deadline-meeting model, its stale predictions lose that edge, and the foreground path keeps up.

## Reusing a stale latent through a residual update

RESYNC splits the frozen teacher once and keeps that split fixed for every arrival. The expensive body produces exact latent anchors, and a light head turns a latent into class probabilities. It then applies the unchanged head, so the body never reruns at arrival time.

The updater starts from the newest exact anchor each time, instead of from its own previous estimate. Because a chain of estimates would pass each error on to the next, a fresh start from an exact anchor keeps errors from accumulating. Since the anchor is the only reference, one updater serves every anchor age. The estimate is never fed back as the anchor for the next prediction.

Given an anchor z\_a, the observed suffix d\_{a,n} and the gap n, the updater returns a displacement. RESYNC adds that displacement to the anchor and passes the result through the frozen head. Inside the updater, a one-layer GRU summarizes the observed suffix, and a small MLP combines that summary with the normalized anchor and a learned gap embedding.

The gate alpha\_n has one entry per latent dimension and per gap, so each dimension is damped separately. Because the output is residual, a gate near zero leaves the stale anchor as the baseline. Gaps run from 1 to n\_max, and older anchors reuse the embedding and gate of n\_max.

The frozen body supplies the training targets, so fitting the updater needs no task labels. Training pairs come from an unlabeled stream, with the body evaluated at two endpoints. Only the updater is optimized, while the teacher and the supervised baselines use labels only for evaluation. Because the GRU is causal, its state advances once per observation, so the work per arrival stays constant in n and L.

## What happens at one arrival

A background worker runs the teacher body on the newest window, while the foreground path answers each arrival. At every arrival the system installs any completed anchor, advances the encoder, applies the gate and the head, and relaunches the body when the worker is free. Figure 1 shows one such arrival: the body processed the window available at t = 0 ms and delivers its latent at t = 4 ms, after three newer observations have arrived.

RESYNC updates this stale latent with the new observations, and the unchanged prediction head turns the result into the prediction for t = 4 ms.

![Figure 1: RESYNC at one arrival. The teacher’s body (B) processed the window available att= 0 ms and delivers its latent att= 4ms, after three newer observatio…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-b470ff3aac070b0b04bae71ea10d05c1.png?thumb=512)

**Figure 1** : RESYNC at one arrival. The teacher’s body (B) processed the window available att= 0 ms and delivers its latent att= 4ms, after three newer observations have arrived. RESYNC updates this stale latent with the new observations to approximate the latent of the current window, and the teacher’s unchanged prediction head (H) turns it into the prediction fort= 4ms. The body then starts on the newest window, and every arrival until it finishes is served in the same way from the latest anchor.

[Original paper](https://arxiv.org/abs/2611.16523v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Eljas Linna, Hao Dong, Juho Kanniainen · RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference · Original paper figure · Extracted the figure area from page 2 of the original PDF.

The GRU is causal, so its state advances once per observation and the work per arrival stays constant in n and L.

In the live run the worker relaunched the body every 5 to 10 arrivals, with a GPU call in flight for 85 to 93% of the replay.

The body runs outside the deadline-critical path, so a slow body doesn't block the foreground arrivals. Because the body may contend with the foreground path, the authors measured the complete system under concurrent replay. At 1 ms arrivals, RESYNC keeps the foreground path within the interval while the body runs on the GPU.

## Fitting the updater without labels

The updater is supervised by the frozen teacher itself, so its training pairs come from the unlabeled stream alone. Each training example holds an anchor, its observed suffix, the gap n, and the later anchor z\_a+n. The frozen body runs at two endpoints, and the difference between its later latent and the anchor serves as the target. The gap n is sampled uniformly from 1 to n\_max, which the paper sets to 32 in the experiments.

Since the target is a latent difference computed by the teacher, no task label enters the fitting.

The loss has two terms, and each one compares the updater's output with what the frozen teacher produces. The first term is a normalized squared error between the estimated latent and the fresh latent z\_a+n. Dividing by the squared norm of the fresh latent, plus a small constant epsilon, measures the error relative to that latent's scale.

The second term is a KL divergence between the frozen head's predictions from the fresh latent and from the synchronized latent. Minimizing both terms pushes the synchronized latent and its predictions toward the fresh ones.

Only the updater's parameters are optimized, while the teacher body and the head stay frozen. Because the head is reused unchanged, the updater inherits its mapping from latent to class scores.

## Streams, models and baselines

The real stream is FI-2010, with 40 normalized order-book features and a three-class mid-price target at a 10-event horizon. Two generated streams were added so that the label needs long-context computation by design.

Synthetic-1 uses a rule revealed by cue packets to choose which of two hidden oscillators defines the label. Synthetic-2 sometimes places label-relevant cues outside the 128-event window, which adds uncertainty to the task.

Five families are used: a Transformer, DeepConvLSTM, InceptionTime, Mamba-2 and TSMixer. The distilled compact model has the compact size and is trained on the teacher's logits.

Live replay uses the first 25,000 test events of each pair at fixed intervals from 1 to 3 ms, with batch size one.

Each pair compares RESYNC with the fresh teacher, the stale teacher, the compact model and the distilled model. The better of the compact and distilled models is the best fast model, and it is the baseline for every gain claim. A matched recursive updater and two incremental baselines, a Continual Transformer and a recurrent Mamba-2, appear in later sections.

## Quality against the best fast model

The teacher leads the best fast model by 0.05 to 0.48 macro-F1 in twelve of the fifteen pairs, and these are the regime pairs RESYNC targets. At every older tested gap up to 32, the same holds in eleven of the twelve pairs. The distilled model pulls ahead of RESYNC on that pair from gap 18 onward.

The DeepConvLSTM on Synthetic-1 is a clear case at gap 8, where RESYNC reaches 0.922 against a teacher of 0.932. The best fast model there is the distilled compact model at 0.456, so the gap to RESYNC is large.

![Table 1: Test macro-F1 of the fresh teacher, the compact model, the distilled compact model (KD), the stale teacher and RESYNC at anchor gapsn= 8andn= 32. Gain…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-b09bc5c690f4fb4de20e35562b09d7c1.png?thumb=512)

**Table 1** : Test macro-F1 of the fresh teacher, the compact model, the distilled compact model (KD), the stale teacher and RESYNC at anchor gapsn= 8andn= 32. Gain captured is the share of the teacher’s gain over the better fast model that RESYNC captures,(F1RESYNC −F1 fast)/(F1teacher − F1fast), capped at 1 (–: teacher’s gain below 0.04).∆best fast model is RESYNC minus the better fast model, with a paired 95% block-bootstrap interval.

[Original paper](https://arxiv.org/abs/2611.16523v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

How much of the gain survives depends on the stream, and RESYNC keeps the whole gain on the real stream. Across gaps 4 to 32, RESYNC captures all of the teacher's gain in the four FI-2010 regime pairs. Its FI-2010 macro-F1 changes by at most 0.005 from gap 4 to gap 32, so the real stream barely depends on age. On the synthetic streams the captured share generally falls with age, and it is a median 0.87 on Synthetic-1 and 0.61 on Synthetic-2.

At gap 32 the Synthetic-2 Transformer captures only 0.16 and InceptionTime 0.43 of the gain. Across all twelve regime pairs, the median gain captured stays at 0.96 to 0.97 at each tested gap. The mean runs from 0.74 to 0.88, and the authors attribute the lower mean to the weaker pairs that the median hides. RESYNC stays a median 0.012 to 0.018 macro-F1 below the fresh teacher at each gap.

At gap 1, RESYNC is weak on FI-2010, reaching 0.65 to 0.82 of the teacher's macro-F1. The authors note that this age hardly occurs in live replay, so the weakness matters little for the deadline setting. RESYNC also slightly exceeds its FI-2010 teachers, which the authors trace to a shift in class frequencies rather than a better representation.

## Deadline performance in live replay

At a 1 ms arrival interval, the synchronous teachers can't keep up with the stream. Only 14 to 25% of arrivals got a prediction from them, and none of those arrived within one interval. The twelve compact models kept up, with median latencies of 0.46 to 0.90 ms. The three Mamba-2 compact models, at 1.24 to 1.60 ms, missed 92 to 100% of the deadlines.

RESYNC kept up in every pair, because its teacher body ran in the background. Its median latency was 0.35 to 0.62 ms, and its p99 stayed at most 0.71 ms. Across all fifteen pairs, RESYNC served at least 99.4% of arrivals within the interval. Its deadline-critical path ran 7.9 to 17.7 times faster than synchronous large-model inference.

At most 0.57% of arrivals missed the deadline, and those drops came during replay pauses of up to 123 ms. The compact models hit by the same pauses, so the misses weren't caused by RESYNC's service time. At 1 ms, anchor ages had a median of 7 to 15 observations and a 95th percentile at most 19. Only 98 of 1.1 million predictions exceeded the largest supported gap of 32, each just after a pause.

Slower streams of 1.5 to 3 ms give younger anchors, so the authors report the 1 ms case.

A sweep on one CPU thread timed the complete tick at 0.22 to 0.37 ms from gap 1 to 80. Ticks that install a new anchor kept a p99 latency of at most 0.74 ms. The worker relaunched the body every 5 to 10 arrivals, with a GPU call in flight for 85 to 93% of the replay.

## Direct updates versus recursive ones

The matched recursive updater uses the same module and recipe as RESYNC, but it is trained on exact one-step pairs and chained from the anchor. That mirrors the iterative update of Delta Distillation, and it isolates the update mechanism, since only the way the estimate is built differs. The recursive updater is trained only on one-step deltas, so its error has to be carried across every gap it covers.

RESYNC's relative latent error grows by a median factor of 1.5 from gap 1 to gap 32. Each estimate starts again from the exact anchor, so RESYNC doesn't inherit earlier errors. The recursive updater's error grows by a factor of 5.2 over the same range, because each step inherits the previous step's error. At gap 32 the recursive updater's median relative error is 0.69, above the stale anchor's 0.61.

RESYNC's median relative error at gap 32 is 0.27.

The label-free selection criterion shows the same pattern. The selected RESYNC checkpoints remove 0.77 to 0.98 of the stale validation loss.

Quality follows the same direction across the fifteen pairs. At gap 32, RESYNC's mean macro-F1 is 0.723. That compares to 0.478 for the recursive updater and 0.360 for the stale anchor. From gap 4 on, RESYNC is better in 13 to 15 pairs at every gap.

## Incremental models at RESYNC's speed

Some architectures skip re-encoding the window, so the question is whether they can match RESYNC at the same per-arrival time. The authors compared each family with RESYNC on the teacher of that same family, as Table 4 shows. Each model was reported at its fastest option, which keeps the comparison fair to these models.

The available sizes bracket RESYNC's time rather than match it, so no size lands exactly on the same speed. The largest incremental models no slower than RESYNC trail it by 0.04 to 0.09 macro-F1 on FI-2010. On Synthetic-1 they trail by about 0.4, and on Synthetic-2 by 0.002 to 0.084. For example, the Continual Transformer on FI-2010 scores 0.603 at 0.27 ms, against 0.688 for RESYNC at 0.38 ms.

![Table 4: Incremental inference at RESYNC’s speed: median time per arrival (ms) and test macro- F1 of RESYNC on the teacher of each family, of the largest incre…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-3c39f221d3ae22a8f945ccaaac88cde4.png?thumb=512)

**Table 4** : Incremental inference at RESYNC’s speed: median time per arrival (ms) and test macro- F1 of RESYNC on the teacher of each family, of the largest incremental model no slower than RESYNC, and of the next size up. RESYNC runs on one CPU thread. Each incremental model is timed as one step on one CPU thread, one step on the GPU and re-encoding the full window on the GPU, and shown at its fastest; g: re-encoding on the GPU, otherwise the CPU step. RESYNC’s F1 is at the evaluated gap nearest its median live anchor age. Appendix I includes the full grid.

[Original paper](https://arxiv.org/abs/2611.16523v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

One size up, these models take 1.8 to 3.2 times RESYNC's time per arrival. At that cost they come close to RESYNC or pass it, with the Continual Transformer on Synthetic-2 as the exception. Their 0.90 to 1.33 ms per arrival doesn't fit a 1 ms arrival interval, even where the GPU is faster. RESYNC's timing used 1 ms replay, and its quality used fixed-gap targets, so the two comparisons aren't identical.

The authors note that recurrent Mamba-2 only approximates the windowed model. Within the limits of these timings, RESYNC is the only option here that meets a 1 ms arrival interval at near-top quality.

## Limitations and conditions that bound the results

RESYNC's value rests on three conditions, and the authors list them explicitly. Quality changes little from gap 4 to gap 32 on FI-2010, but it generally declines with age on the synthetic streams. Teacher quality alone therefore doesn't establish the benefit of synchronization, so fixed-gap quality must be read alongside the live anchor ages.

The evaluation uses one real stream, and the two synthetic streams were built to need long-context computation. That design may overstate how often a teacher advantage occurs in practice. All models were trained with one training seed, so the intervals reflect only test-sample variation.

The authors suggest judging refreshes against the quality-versus-age curve. They didn't test this scheduling choice. Robustness to changing stream dynamics remains untested, and RESYNC also needs a frozen teacher with an accessible latent.

## Paper info

- **Authors**: Eljas Linna, Hao Dong, Juho Kanniainen
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-12
- **Added**: 2026-11-13
- **Updated**: 2026-11-12
- **Version**: v1
- **arXiv**: 2611.16523
- **Category**: cs.LG · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.16523v1) · [PDF ↗](https://arxiv.org/pdf/2611.16523v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Predicting every observation in a high-rate stream requires a model to finish before the next arrival. A large model may offer better predictions but miss that deadline. We propose RESYNC: the large model runs asynchronously, while a fast path updates its latest exact but stale latent state using the observations received since that state was computed and applies its unchanged prediction head. The updater learns from the frozen model's representations without task labels. Across one real and two synthetic streams and five architecture families, RESYNC beats the best compact or distilled alternative with a paired 95% interval above zero in all twelve dataset--architecture pairs with a material teacher advantage at anchor ages of 4--12 observations, and in eleven pairs at older tested ages up to 32. The share of the teacher's gain preserved remains complete on the real stream but is lower and generally declines with anchor age on the synthetic streams. In live replay with 1 ms arrivals, the synchronous large models cannot deliver any predictions on time while RESYNC serves at least 99.4% of arrivals within the interval, with 0.35--0.62 ms median latency on one CPU thread: around the same speed as or faster than the compact model, and 7.9--17.7$\\times$ faster than synchronous large-model inference. RESYNC targets settings with background compute available but a strict per-observation response deadline.

## Quote from the paper

Eljas Linna, Hao Dong, Juho Kanniainen (2026). RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference. arXiv:2611.16523v1. https://arxiv.org/abs/2611.16523v1

**BibTeX**

```
@misc{linna2026resync,
  title = {{RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference}},
  author = {Eljas Linna and Hao Dong and Juho Kanniainen},
  year = {2026},
  eprint = {2611.16523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16523v1}
}
```

## Other paper commentary

- [ORCHID-SAGE: Fully Reproducible CALPHAD Assessment from Evidence to Phase Diagram](https://refivu.com/en/papers/7bdc6793-f96c-4909-866a-faa678245608-orchid-sage-fully-reproducible-calphad-assessment-from.md)
- [A Sensitivity Framework for Assessing External Validity](https://refivu.com/en/papers/21950225-6379-406e-8119-a682680084fa-a-sensitivity-framework-for-assessing-external-validity.md)
- ["It's Just a Small Weapon": What Rewarding Misbehavior During RL Does to Character-Trained Models](https://refivu.com/en/papers/ff82eb4f-09a9-4988-85f7-9aec117b7142-it-s-just-a-small-weapon-what-rewarding.md)
- [Controlling the Probability of Unknown Unknowns in Pre-Deployment Testing of AI Systems](https://refivu.com/en/papers/3f5fec17-327a-4b7d-af9c-53d8145effe8-controlling-the-probability-of-unknown-unknowns-in-pre.md)
- [A Mechanistic Interpretability Study of an Astronomy Foundation Model](https://refivu.com/en/papers/5e797f9b-473e-491d-82f9-9afe128c2455-a-mechanistic-interpretability-study-of-an-astronomy.md)
- [A Matching Lower Bound for Online Smooth Calibration](https://refivu.com/en/papers/325701fa-d264-4ed2-bc4e-abb5dc7b1a1a-a-matching-lower-bound-for-online-smooth-calibration.md)
- [Eliciting and Mitigating Specification Satisficing in Coding Agents](https://refivu.com/en/papers/cfe84310-98d7-4917-8b3c-5b23d97305e8-eliciting-and-mitigating-specification-satisficing-in-coding.md)
- [ReSID: Rethinking Long-Tail Retrieval in Generative Recommendation through Item Reachability](https://refivu.com/en/papers/d76f3e52-72f0-4e84-ac25-890b832b4bc0-resid-rethinking-long-tail-retrieval-in-generative.md)
- [Data-Efficient LLM Safety Alignment Guided by Interpretable Features](https://refivu.com/en/papers/d514fbae-eb94-4527-90e2-8212403262b6-data-efficient-llm-safety-alignment-guided-by-interpretable.md)
- [GOOSELoc: A Multimodal Benchmark for Ground-to-Aerial Localization in Unstructured Off-Road Terrain](https://refivu.com/en/papers/41c50e6f-7f66-4a65-a19f-9bd7097ae9a5-gooseloc-a-multimodal-benchmark-for-ground-to-aerial.md)
- [Measuring Preferred Representation in AI-generated Images with Community Scorers](https://refivu.com/en/papers/32e7e0e7-e783-4523-b60c-f186fa61a14b-measuring-preferred-representation-in-ai-generated-images.md)

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [GRU](https://refivu.com/en/terms/911a73dfeb1f-gru)
- [macro-F1](https://refivu.com/en/terms/bac7d2670b4d-macro-f1)
- [classification](https://refivu.com/en/terms/df3aa00e3435-classification)
- [InceptionTime](https://refivu.com/en/terms/4c5ab201175a-inceptiontime)
- [Mamba-2](https://refivu.com/en/terms/caf9f0e79adb-mamba-2)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/93a3887b-d2df-450c-a06e-e64cb60d4325-resync-residual-latent-state-synchronization-for-deadline)
