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

RESYNC: 마감 시한이 있는 스트리밍 추론을 위한 잔차 잠재 상태 동기화

Eljas Linna, Hao Dong, Juho Kanniainen · arXiv · 2026년 11월 12일

- **연구 문제** 고정된 기한 안에서 관측마다 예측해야 하는 스트림에서는 큰 모델이 느려 기한을 놓치고, 작은 모델은 품질이 떨어집니다.
- **연구 방법** 큰 교사 모델의 몸체는 비동기로 돌리고, 최신 정확한 잠재 앵커와 그 이후 관측으로 현재 잠재 상태를 직접 추정한 뒤 동결된 헤드를 적용합니다.
- **주요 결과** 교사 이득이 실질적인 열두 쌍에서 앵커 나이 4, 8, 12의 macro-F1이 최고의 빠른 모델보다 높았고, 1 ms 재생에서는 도착의 99.4% 이상을 한 간격 안에 제공했습니다.

## 고속 스트림에서 기한 내 예측이 어려운 이유

관측이 짧은 간격 Δ로 계속 들어오는 스트림에서는 각 관측마다 기한 D 안에 예측을 내야 합니다. 모델의 한 번 추론 시간이 Δ보다 길면 도착은 계속 쌓이고, 예측은 뒤늦게 나옵니다. 이 논문은 관측마다 하나의 예측을 요구하는 서비스 계약 아래에서 응답 지연과 커버리지, 기한 초과를 함께 다룹니다. 큰 교사 모델은 정확도가 높지만 기한을 놓치고, 작은 컴팩트 모델은 기한은 맞추지만 품질이 떨어지는 것이 출발점입니다. 교사 모델의 최신 정확한 잠재 상태는 비동기로 계산할 수 있으나 시간이 지나면 오래된 상태가 됩니다. 저자들은 이 오래된 잠재 상태를 현재 관측 구간에 맞게 갱신하면 두 방식의 간격을 줄일 수 있는지 묻습니다.

## 앵커 이후 관측으로 잠재 상태를 직접 추정하는 RESYNC

교사 모델은 몸체 B\_T와 예측 헤드 H\_T로 나뉘며, 두 부분은 학습 후 동결됩니다. 몸체는 비동기로 실행되어 윈도우 w\_a에 대한 정확한 잠재 앵커 z\_a = B\_T(w\_a)를 만듭니다. 도착 시점에는 가장 최근 앵커와 그 이후 관측 suffix, 그리고 앵커 간격 n을 받아 잠재 변위 δ를 추정하고, 추정된 잠재 상태 z\_a + δ에 동결된 헤드를 적용합니다. 갱신기는 한 층 GRU로 suffix를 인코딩하고, 정규화된 앵커와 gap 임베딩을 MLP에 넣은 뒤 각 차원을 게이트 α\_n으로 조절합니다. 게이트 덕분에 제로 갱신이 오래된 기준선과 일치하는 해가 됩니다. 추정은 항상 최신 정확한 앵커에서 출발하며, 추정값을 다음 예측의 기준으로 쓰지 않아 오차가 누적되지 않습니다.

학습은 동결된 몸체에서 얻은 두 끝점 쌍으로 이루어지므로 과제 라벨이 필요하지 않습니다.

![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.

[원문](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 · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 라벨 없는 학습과 점진적 실행

갱신기 학습 목적은 정규화된 잠재 복원 오차와, 동결된 헤드가 최신 잠재 상태와 동기화된 잠재 상태에서 내는 예측 분포 사이의 KL 항을 합한 것입니다. 저자들은 이 목적에서 과제 라벨을 쓰지 않는다고 밝힙니다. 실행 측면에서는 GRU가 인과적이므로 관측이 하나 올 때마다 상태를 한 단계씩 전진시키며, 도착당 작업량은 n과 L에 상관없이 일정하다고 설명합니다. 후보 인코더 상태는 몸체 작업이 도는 동안 미리 전진하고, 앵커가 완료되면 활성 상태가 됩니다. 몸체는 기한이 걸린 전경 경로 밖에서 돌지만 자원을 공유하므로, 저자들은 동시 재생 조건에서 전체 시스템을 측정했다고 밝힙니다.

![Table 13: Runtime of the RESYNC tick. Controlled: median tick time over all tested gaps (it varies by less than 0.01 ms), least-squares slope of the tick and o…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-91cf7fd08b5d03121bc93dee9a712572.png?thumb=512)

**Table 13** : Runtime of the RESYNC tick. Controlled: median tick time over all tested gaps (it varies by less than 0.01 ms), least-squares slope of the tick and of re-encoding the suffix againstninµs per observation, and re-encoding over the tick atn= 32andn= 80. Live replay at∆ = 1ms: body launches per 1,000 arrivals, the share of ticks that install a new anchor, and the p99 latency in ms of the other ticks and of these anchor-switch ticks.

[원문](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 · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

![Table 14: Resources at∆ = 1ms, each method in its own process. CPU cores: process CPU time over wall time, with the RESYNC body worker thread in parentheses. G…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-f8627569f161077e7510f6ebaf46e156.png?thumb=512)

**Table 14** : Resources at∆ = 1ms, each method in its own process. CPU cores: process CPU time over wall time, with the RESYNC body worker thread in parentheses. GPU busy: share of the replay with a GPU call in flight. Peak host memory: resident set size. Peak GPU memory: PyTorch’s peak allocation, CUDA context excluded.

[원문](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 · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

## 고정 앵커 간격에서의 품질 비교

품질 평가는 실제 스트림 FI-2010과 두 합성 스트림 Synthetic-1, Synthetic-2에서 앵커 간격 n을 고정하고 macro-F1을 측정했습니다. 교사가 최고의 빠른 모델보다 0.04 이상 앞서는 쌍을 regime 쌍으로 보고, 이 열두 쌍에서 RESYNC가 n=4, 8, 12의 모든 쌍에서 최고의 빠른 모델을 쌍체 95% 구간이 0보다 큰 상태로 앞섰다고 보고합니다. 교사 이득 포착(gain captured)은 FI-2010 네 쌍에서 모두 1.00이었고, Synthetic-1은 중앙값 0.87, Synthetic-2는 중앙값 0.61이었습니다. Synthetic-1 Transformer는 n=16 부근에서 증류 컴팩트 모델과 차이가 없고 n=18부터 증류 모델이 앞섰습니다.

합성 스트림에서는 나이가 늘수록 포착 비율이 대체로 낮아졌습니다.

![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.

[원문](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 · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 2: Test macro-F1 as the anchor ages, for every dataset–architecture pair. RESYNC and the stale teacher are shown with paired 95% block-bootstrap interva…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-abc991345aad35cf85ca6f72187b7c61.png?thumb=512)

**Figure 2** : Test macro-F1 as the anchor ages, for every dataset–architecture pair. RESYNC and the stale teacher are shown with paired 95% block-bootstrap intervals. The fresh teacher and the best fast model (the better of the compact and distilled models) do not depend onn. The shaded band marks the 5th–95th percentile of the anchor ages RESYNC saw in live replay (Table 2).

[원문](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 · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 8: Test macro-F1 of RESYNC at every evaluated anchor gapn, with the fresh teacher and the best fast model (the better of the compact and distilled models…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-86a7bb851d93eb9afdc5495b25496931.png?thumb=512)

**Table 8** : Test macro-F1 of RESYNC at every evaluated anchor gapn, with the fresh teacher and the best fast model (the better of the compact and distilled models), which do not depend onn.

[원문](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 · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 1 ms 도착에서의 서비스 기한 성능

live asynchronous replay는 Δ=1 ms로 관측을 재생하고 각 도착이 자신의 예측을 받는지, 한 간격 안에 나오는지를 셉니다. 동기식 교사는 열다섯 쌍 모두에서 커버리지가 14~25%에 그쳤고 한 간격 안에 전달된 예측은 없었습니다. 저자들은 기한 초과가 RESYNC의 서비스 시간보다는 재생 프로세스의 일시 정지에서 왔다고 설명합니다.

![Table 2: Live asynchronous replay at∆ = 1ms: median arrival-to-output latency (ms) and cov- erage (the fraction of arrivals that received their own prediction)…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-ad0b49b25bf661a6f8cdffa418bea6a9.png?thumb=512)

**Table 2** : Live asynchronous replay at∆ = 1ms: median arrival-to-output latency (ms) and cov- erage (the fraction of arrivals that received their own prediction) for the synchronous teacher, the compact model and RESYNC, and RESYNC’s p95 latency. Anchor age is the median \[p95, max\] number of observations since RESYNC’s anchor. Speed-up is the teacher’s median service time over RESYNC’s.

[원문](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 · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 3: The three systems at∆ = 1ms, as median (range) over the fifteen pairs. Latency, coverage and missed deadlines (D= ∆) come from the replay of Table 2;…](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325/figures/figure-a2260c3013fdcfdaf5e76bbe3ec789dd.png?thumb=512)

**Table 3** : The three systems at∆ = 1ms, as median (range) over the fifteen pairs. Latency, coverage and missed deadlines (D= ∆) come from the replay of Table 2; CPU, GPU and memory from a replay that runs each method in its own process (Appendix G). CPU cores is process CPU time over wall time, GPU busy the share of the replay with a GPU call in flight, and memory the peak. The compact models’ missed deadlines reach 100% only for the three Mamba-2 compact models.

[원문](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 · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 재귀 갱신과의 비교

같은 모듈과 학습 절차를 쓰되 한 단계 델타로 학습한 재귀 갱신기는 n=1에서 RESYNC보다 나은 쌍이 열두 개였습니다. 그러나 n=4 이상에서는 RESYNC가 13~15개 쌍에서 더 좋았습니다. n=32에서 RESYNC의 평균 macro-F1은 0.723, 재귀 갱신기는 0.478, 오래된 앵커는 0.360이었습니다. 재귀 갱신기는 매 단계가 이전 추정의 오차를 물려받아 잠재 오차가 중앙값 기준으로 5.2배 커졌고, RESYNC는 1.5배에 머물렀습니다. 이 비교는 같은 교사 계열에서 n=32까지의 오차 누적 차이를 보여 주지만, 짧은 간격 n=1에서는 재귀 방식이 더 나은 결과도 함께 보고되었습니다.

## 적용 범위와 남은 문제

저자들은 평가가 실제 스트림 하나와 합성 스트림 두 개로 이루어져 있다고 밝힙니다. 모든 모델은 하나의 학습 시드로 학습했으므로 구간은 시험 샘플의 변동만 반영합니다. n=1에서는 FI-2010 쌍 중 네 쌍에서 RESYNC가 최고의 빠른 모델보다 점 추정으로 낮았고, 이 약점은 실시간 운영 범위 밖의 짧은 간격에서 나타난다고 논문은 설명합니다. RESYNC는 교사의 잠재 상태가 복구 가능하다는 조건을 가정하며, 이 조건이 깨지는 상황은 실험하지 않았습니다. 또한 세 클래스 분류와 128 관측 윈도우, 배치 크기 1, 고정 도착 간격, 한 종류의 GPU 노드에서만 측정했습니다.

## 논문 정보

- **저자**: Eljas Linna, Hao Dong, Juho Kanniainen
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 12일
- **등록일**: 2026년 11월 13일
- **수정일**: 2026년 11월 12일
- **버전**: v1
- **arXiv**: 2611.16523
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.16523v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.16523v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

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}
}
```

## 이 논문의 용어

- [Macro-F1](https://refivu.com/terms/bac7d2670b4d-macro-f1)
- [Mamba-2](https://refivu.com/terms/caf9f0e79adb-mamba-2)
- [InceptionTime](https://refivu.com/terms/4c5ab201175a-inceptiontime)
- [teacher](https://refivu.com/terms/7fa314de225c-teacher)
- [DeepConvLSTM](https://refivu.com/terms/53b51bd997cb-deepconvlstm)

## 다른 논문 해설

- [Recalibrating a Typed-Decision Model in an Afternoon: A Hands-On Recipe for Laya's Confidence Scores](https://refivu.com/papers/17bdb555-a961-43b5-b278-cc57e21b0f2e-recalibrating-a-typed-decision-model-in-an-afternoon.md)
- [ORCHID-SAGE: Fully Reproducible CALPHAD Assessment from Evidence to Phase Diagram](https://refivu.com/papers/7bdc6793-f96c-4909-866a-faa678245608-orchid-sage-fully-reproducible-calphad-assessment-from.md)
- [A Sensitivity Framework for Assessing External Validity](https://refivu.com/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/papers/ff82eb4f-09a9-4988-85f7-9aec117b7142-it-s-just-a-small-weapon-what-rewarding.md)
- [Owned Edits to a Shared Decision Rule: Learning Private Exceptions as Typed, Gated, Withdrawable Weight Edits](https://refivu.com/papers/18df3a28-3d2d-426c-aa2a-34fe0ab029b2-owned-edits-to-a-shared-decision-rule-learning.md)
- [Controlling the Probability of Unknown Unknowns in Pre-Deployment Testing of AI Systems](https://refivu.com/papers/3f5fec17-327a-4b7d-af9c-53d8145effe8-controlling-the-probability-of-unknown-unknowns-in-pre.md)
- [EvenVLM: A Text and Multimodal Dataset for the Even Language with Vision-Language Fine-Tuning](https://refivu.com/papers/eea6516f-4928-4365-ba18-eecf992685e6-evenvlm-a-text-and-multimodal-dataset-for-the.md)
- [RGB-D SLAM on the Edge: Benchmarking and Profiling RTAB-Map and ORB-SLAM3 on the Raspberry Pi 5](https://refivu.com/papers/7a061355-5e27-4074-990f-e2ba29ecffda-rgb-d-slam-on-the-edge-benchmarking-and.md)
- [Does Deep Knowledge Tracing Learn Semantic Relations Between Knowledge Components?](https://refivu.com/papers/f15223b2-7f0e-4b8e-93aa-60adbafaff42-does-deep-knowledge-tracing-learn-semantic-relations-between.md)
- [Eliciting and Mitigating Specification Satisficing in Coding Agents](https://refivu.com/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/papers/d76f3e52-72f0-4e84-ac25-890b832b4bc0-resid-rethinking-long-tail-retrieval-in-generative.md)
- [RICapBench: A Fine-Grained Visual Understanding Benchmark Dataset for Vision-Language Models in Remote Sensing](https://refivu.com/papers/c872f032-3186-451e-99a1-b0da1513908b-ricapbench-a-fine-grained-visual-understanding-benchmark.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325-resync-residual-latent-state-synchronization-for-deadline)
