arXiv:2610.35309cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35309

Shared Context, Separate Engines: Streaming Vision--Language Inference on Edge SoCs

Yilong Li, Chengpo Yan, Yijing Zeng, Hanlei Wu, Mingjun Song, Suman Banerjee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Edge SoCs pack CPUs, GPUs, and NPUs, yet vision-language model (VLM) runtimes keep generation on one engine and leave the others idle. Streaming VLMs expose further parallelism: new frames arrive while earlier queries are still being answered. Engines differ in compute and memory access and contend when they co-run, so no single placement of stages wins across SoCs and workloads. Backend-local KV state keeps other engines from continuing the work. CrossInfer coordinates heterogeneous accelerators to execute stateful VLM inference concurrently. It separates a stream's versioned context from each engine's KV state, so any engine can continue the stream by reusing, importing, or reconstructing that state. Stateful Streaming Generation ingests new frames on one engine while another answers, and Concurrent Sequence Generation serves different ready requests in parallel. State-aware dispatch sends each request to the engine expected to finish it first. Each answer reads a fixed, published version of its history and matches its serial reference. CrossInfer beats the strongest single-engine baselines on Apple M4 Max, Rockchip RK3588, and Qualcomm QCS6490, even when they reuse context. On two RK3588 video streams, it delivers 19.6% more throughput than the best single engine with context reuse and 27.2% more than parallel engines without shared state. Cross-engine KV import cuts first-token latency by a factor of 4.6 over prefix recomputation. Stateful Streaming Generation delivers up to 2.48×2.48\times the throughput of serial execution, and state-aware dispatch cuts query completion time by up to 72.7%.

1 INTRODUCTION

Open vision–language models (VLMs) (Liu et al., 2023; 2024b; Li et al., 2025; Marafioti et al., 2025; Wang et al., 2024; Bai et al., 2025b;a; Qwen Team, 2026) bring visual question answering to robots, wearable assistants, and other edge devices. Local inference keeps visual data on-device and avoids dependence on cloud connectivity (Li et al., 2026; Wan et al., 2024). Despite integrating CPUs, GPUs, and neural accelerators, edge SoCs often rely on a single engine for VLM language execution. In streaming VLM inference (Niu et al., 2025), one engine can extend the video context with new observations while another answers from an earlier, consistent version of that history. Ready queries can also execute concurrently, whether they share the same visual history or belong to separate streams.

VLM efficiency depends on how engines cooperate, not just their standalone performance. Despite sharing physical memory, engines differ in compute and effective memory-access performance: batch-one decoding favors the M4 Max GPU but the RK3588 CPU (Figure 3). Co-running changes these trade-offs again: on M4 Max, a second language engine can increase throughput by up to 29% or reduce it by 45%, and M4 Max and RK3588 favor opposite prefill/generation regimes (Figure 8). Separating vision and language execution gives CrossInfer 29.6% higher throughput than GPU-only MLX (Hannun et al., 2023) on a 64-frame video (Table 1).

Cooperation also depends on where the required context resides. Context reuse (Gim et al., 2024; Zheng et al., 2024) avoids recomputing history within one runtime, but each backend keeps that history in its own KV layout and positional metadata. NanoMind (Li et al., 2026) hands visual tokens between processors on a custom board; its handoff does not cover this language state. An idle engine must import or reconstruct the context it lacks. A busy engine that holds it may therefore finish a query sooner, although longer queues can reverse this advantage. Ingestion must also preserve the history each ongoing answer reads.

CrossInfer runs stateful VLM inference across heterogeneous accelerators (Figure 1). It decouples logical context from engine-specific KV state: a stream’s history is a sequence of published context versions, and each engine reuses, imports, or reconstructs its own representation of a version, so several engines can work on the same history.

1^{1}University of Wisconsin–Madison. 2^{2}Meta. 3^{3}Carnegie Mellon University.

Figure

Figure 1. Overview of CrossInfer. (a) Stateful Streaming Generation: One engine ingests new observations while another generates responses from published context, using state handoff. (b) Concurrent Sequence Generation: CPU and GPU execute ready requests in parallel, with state-aware dispatch based on queued work, context preparation, and co-running performance.

Figure

Figure 2. CrossInfer’s request throughput over serial execution, ingesting new frames on one engine while another answers; every answer matches its serial reference. On QCS6490, serial execution already reuses context.

at once. In Stateful Streaming Generation, one engine extends the stream’s context while another generates from an earlier version with private generation state. In Concurrent Sequence Generation, CPU and GPU backends serve different ready requests. NPU visual encoding overlaps language execution in both modes, with engine roles set by each platform’s stage costs, and a dispatcher places each ready request by its estimated completion time, which depends on where its state resides and on co-running interference.

We implement CrossInfer on three edge SoCs, Apple M4 Max, Rockchip RK3588, and Qualcomm QCS6490 (Section 4). On M4 Max, overlapping vision with language execution raises FastVLM-1.5B (Vasu et al., 2025) request throughput by up to 23% and cuts mean time to first token by 22% relative to GPU-only MLX with context reuse. Across four Qwen3.5 models from 0.8B to 9B, the same overlap raises throughput by up to 72.4% over serial execution with context reuse. CrossInfer also serves a single Qwen2.5-VL-3B request with 23.6% less energy than llama.cpp (Gerganov, 2023). On RK3588, serving ready requests on the CPU and GPU concurrently raises request throughput by 36.3% over GPU-only execution at eight streams and by up to 52.0% over serial OpenCL (The Khronos Group, 2026) execution. With context reuse and ingestion during generation, Stateful Streaming Generation achieves 2.48× the throughput of serial execution without context reuse on M4 Max and 56.7% more on RK3588 (Figure 2), with up to 70.8% lower mean time to first token. On QCS6490, ingestion during generation alone adds 24.3%. Both modes beat the best single engine by up to 37.2% for additional VLMs (Li et al., 2025; Vasu et al., 2025) on RK3588 and on QCS6490, which also encodes every frame on its NPU.

Cross-engine state sharing adds gains beyond context reuse. Stateful Streaming Generation exceeds GPU-only execution with context reuse by up to 59.4%, while every answer matches its serial reference. With two video streams on RK3588, CrossInfer outperforms two engines without shared state by 27.2% and the best single engine with context reuse by 19.6%, and cuts time to first token by 34.9%. Importing another engine's KV state brings the first token 4.6× sooner than recomputing the prefix. State-aware dispatch picks the faster engine in all nine RK3588 history and backlog settings, cutting query completion time by up to 72.7% relative to always using the idle engine (Figure 9).

This paper makes three contributions:

• Cross-accelerator execution of stateful VLM inference. We unify stage overlap and request concurrency in one execution model for heterogeneous edge accelerators.

• Shared context with cross-accelerator state continuation. Versioned context and explicit token and state interfaces let any engine continue a stream’s history, and every answer matches its serial reference.

• Architecture- and state-aware execution. We show how stage costs and co-running interference, which dif-fer across SoCs, determine which engines to combine. State-aware dispatch places each request on the engine expected to finish it first.

References (89)