In-Band Runtime Primitives for Time-Sensitive Autoregressive Inference: State Acquisition, Dispatch Cost, and Deadline-Constrained Decisions

Autoregressive models sometimes need a fresh clock reading or operational alert snapshot after decoding has begun. We study a Runtime Primitive Interface (RPI) that intercepts a bounded local query inside the engine, fuses its observation into the active sequence, and resumes generation from the existing cache. Rather than report one aggregate speedup, we decompose evaluation into six ordered questions: trigger representability on weight-tied checkpoints, selective calling and transfer, post-decision transport and forward cost, multimodal and native-feature compatibility, deadline-constrained decision utility, and multi-step episode policy utility. Across three weight-tied checkpoints on a single RTX 3070, frozen-head near-duplicate rows fail to learn active triggers (0/120 on Qwen3-4B), whereas replacing unused tail rows alongside a tied-head logit correction on Qwen3-VL-4B (60/60 clock triggers) or sparse-unfreezing one unallocated row on LFM3-Omni-2B (6/6 zero-shot spoken barge-ins) avoids native modality-token collisions while keeping untouched native rows bit-identical before quantization. Learned triggers reach 80/80 on held-out gated timing and 160/160 label accuracy (158/160 on-time) across four zero-retrain transfer domains, with counterfactual Sham controls confirming causal reliance on live readings (120/120 dynamic cases). Matched-cache transport profiling on Qwen3-VL-4B isolates only a 0.060-0.080 ms pre-forward preparation gain over local IPC (480/480 first-token agreement); large deadline gains instead come from compacting 13-token XML tool calls to 3 tokens (402.4 ms paired median saving; 24/24 vs. 0/24 by 900 ms) and fusing trigger with payload in one forward pass (1.83x cell-median / 1.82x paired injection speedup in a fixed-weight 2x2 microbenchmark). On unseen spoken LFM3-Omni-2B alerts, one-token in-band delivery commits 21/24 actions by 900 ms (vs. 0/24 native tool); on expiring Qwen3-VL-4B visual cards, live in-band reads resolve 36/36 single-turn trials when model decode crosses the safety margin (vs. 25/36 issue-time prompt snapshots), matching a zero-latency deterministic host rule when card fields are pre-known (36/36). Over a 24 s multi-step sandbox on Qwen3-VL-4B, active querying beats calibrated token-rate (+2.79 utility, exact p = 0.000244) and static (+3.53, p = 0.000244) policies, trails per-step prompt injection (-1.02, p = 0.023438), and issues 0/48 step-0 queries at shorter 7.7-15.4 s budgets below its 20-28 s training prompt range. These boundaries clarify when in-band state access is warranted. Deterministic host code best serves pre-specified rules, and unconditional host push best serves known, always-relevant streams; on-demand in-band querying pays off when mid-decode state must be interpreted by the model or selected dynamically under tight deadlines. Companion code, C++ llama.cpp b9460 engine core, and fail-closed JSON/JSONL audit ledgers: https://github.com/goD0S/in-band-runtime-primitives

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24721086
Primary Topic
Advanced Neural Network Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

In-Band Runtime Primitives for Time-Sensitive Autoregressive Inference: State Acquisition, Dispatch Cost, and Deadline-Constrained Decisions

goD0S
Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
preprint

In-Band Runtime Primitives for Time-Sensitive Autoregressive Inference: State Acquisition, Dispatch Cost, and Deadline-Constrained Decisions

goD0S
preprint en

Abstract

Autoregressive models sometimes need a fresh clock reading or operational alert snapshot after decoding has begun. We study a Runtime Primitive Interface (RPI) that intercepts a bounded local query inside the engine, fuses its observation into the active sequence, and resumes generation from the existing cache. Rather than report one aggregate speedup, we decompose evaluation into six ordered questions: trigger representability on weight-tied checkpoints, selective calling and transfer, post-decision transport and forward cost, multimodal and native-feature compatibility, deadline-constrained decision utility, and multi-step episode policy utility. Across three weight-tied checkpoints on a single RTX 3070, frozen-head near-duplicate rows fail to learn active triggers (0/120 on Qwen3-4B), whereas replacing unused tail rows alongside a tied-head logit correction on Qwen3-VL-4B (60/60 clock triggers) or sparse-unfreezing one unallocated row on LFM3-Omni-2B (6/6 zero-shot spoken barge-ins) avoids native modality-token collisions while keeping untouched native rows bit-identical before quantization. Learned triggers reach 80/80 on held-out gated timing and 160/160 label accuracy (158/160 on-time) across four zero-retrain transfer domains, with counterfactual Sham controls confirming causal reliance on live readings (120/120 dynamic cases). Matched-cache transport profiling on Qwen3-VL-4B isolates only a 0.060-0.080 ms pre-forward preparation gain over local IPC (480/480 first-token agreement); large deadline gains instead come from compacting 13-token XML tool calls to 3 tokens (402.4 ms paired median saving; 24/24 vs. 0/24 by 900 ms) and fusing trigger with payload in one forward pass (1.83x cell-median / 1.82x paired injection speedup in a fixed-weight 2x2 microbenchmark). On unseen spoken LFM3-Omni-2B alerts, one-token in-band delivery commits 21/24 actions by 900 ms (vs. 0/24 native tool); on expiring Qwen3-VL-4B visual cards, live in-band reads resolve 36/36 single-turn trials when model decode crosses the safety margin (vs. 25/36 issue-time prompt snapshots), matching a zero-latency deterministic host rule when card fields are pre-known (36/36). Over a 24 s multi-step sandbox on Qwen3-VL-4B, active querying beats calibrated token-rate (+2.79 utility, exact p = 0.000244) and static (+3.53, p = 0.000244) policies, trails per-step prompt injection (-1.02, p = 0.023438), and issues 0/48 step-0 queries at shorter 7.7-15.4 s budgets below its 20-28 s training prompt range. These boundaries clarify when in-band state access is warranted. Deterministic host code best serves pre-specified rules, and unconditional host push best serves known, always-relevant streams; on-demand in-band querying pays off when mid-decode state must be interpreted by the model or selected dynamically under tight deadlines. Companion code, C++ llama.cpp b9460 engine core, and fail-closed JSON/JSONL audit ledgers: https://github.com/goD0S/in-band-runtime-primitives

Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon