arXiv:2611.09159cs.DCNov 2026

Manuscript Offprint

arXiv:2611.09159

UniExit: A Unified Latency-Aware Early-Exit Runtime for Heterogeneous Edge AI

Yuhang Guan, Huanle Zhang, Xiaomin Ouyang, Zhidan Liu

Yuhang Guan

The Hong Kong University of Science and Technology

(Guangzhou)

Guangzhou, China

asterism178@163.com

Xiaomin Ouyang

The Hong Kong University of Science and Technology

Hong Kong, China

xmouyang@cse.ust.hk

Huanle Zhang

Shandong University

Qingdao, China

dtczhang@sdu.edu.cn

Zhidan Liu ∗^{*}

The Hong Kong University of Science and Technology

(Guangzhou)

Guangzhou, China

zhidanliu@hkust-gz.edu.cn

Abstract

Edge applications increasingly combine CNN-based perception with edge-deployable Transformer-based language models, but deploying such heterogeneous workloads on resource-constrained devices is challenging because inference latency varies with both input difficulty and runtime hardware state. Early-exit inference reduces computation by terminating at intermediate stages, yet existing methods are often model-specific and rely on static latency profiles that become stale under dynamic edge conditions. This paper presents UniExit, a unified latency-aware early-exit runtime for heterogeneous edge AI. UniExit abstracts CNN blocks and Transformer layers as ordered stages and applies a common latency-aware routing policy while retaining model-specific quality mechanisms. It predicts the cost of reaching the next exit from runtime state and inference progress to make budget-aware continue-or-exit decisions. UniExit combines runtime-state-aware latency prediction, cache-based prediction reuse, trend-aware fallback, and CNN-specific exit stabilization to provide low-overhead and robust online control. We implement UniExit on multiple edge and edge-cloud platforms and evaluate it with representative CNN and Transformer-based language-model workloads. Across single-workload, concurrent heterogeneous, and edge-cloud settings, UniExit consistently improves deadline satisfaction and latency-accuracy trade-offs over existing progressive inference baselines, while reducing redundant exit-module computation and task-level energy consumption.

1 Introduction

With advances in edge computing and on-device hardware, AI inference is increasingly moving from cloud servers to edge devices, closer to users, sensors, and data sources [17, 42, 50]. As edge applications become more intelligent and interactive, they are evolving from single-model deployments to heterogeneous AI workloads [4, 14] that combine CNN-based visual perception [57] with edge-deployable Transformer-based language models for language understanding and interaction [44, 62]. These workloads differ in task semantics, computation patterns, and latency-accuracy requirements, yet share a common deployment need: delivering timely and reliable inference under resource-constrained and dynamic

edge environments. Representative scenarios include in-vehicle perception [13], interactive AI assistants [44, 62], augmented reality [29, 35], and context-aware mobile sensing [1, 27], where latency directly affects responsiveness, user experience, and reliability.

A key opportunity in latency-critical deployments is that not all inputs require the same amount of computation. Some visual inputs can be recognized from shallow features [49], while others require deeper semantic representations [18, 25]; similarly, some language-model tokens can be predicted from intermediate layers [9, 52], while others require deeper contextual refinement [54]. Full-model inference ignores this variability and executes the entire model for every input or token, wasting computation on easy cases. Progressive inference [43, 45, 57], or early-exit inference, addresses this inefficiency by inserting candidate exits into a neural network and terminating inference once an intermediate prediction is reliable. Compared with model pruning [31] and computation offloading [24, 30, 38], early-exit inference provides a flexible on-device mechanism for runtime adaptation while preserving the option of deeper inference when needed.

Existing early-exit techniques have been studied for both CNNs [5, 12, 49] and Transformer-based language models [9, 54]. CNN methods typically attach branch classifiers to intermediate convolutional or residual blocks [49], while language-model methods use intermediate prediction heads or layer-wise confidence signals to decide whether later Transformer layers can be skipped [9, 52, 63]. These designs demonstrate the potential of adaptive computation, but they are usually developed for specific model families and tightly couple confidence estimation with model-specific exit policies. As a result, existing early-exit systems provide limited support for managing heterogeneous edge AI workloads under a unified runtime objective, even though CNN and language-model workloads increasingly coexist on the same edge platforms.

In this paper, we make a key observation: CNNs and Transformer-based language models expose a common staged decision structure during early-exit inference, despite their different task semantics and computation patterns. CNNs execute a sequence of convolutional or residual blocks, while Transformer-based language models execute a sequence of Transformer layers. At selected stages, both expose candidate outputs that can be returned upon termination. Early-exit inference can therefore be viewed as a runtime-control problem

∗^{*}Corresponding author.

Yuhang Guan, Huanle Zhang, Xiaomin Ouyang, and Zhidan Liu

Figure

(a) CNN Early-Exit

Figure

(b) Transformer-based LM Early-Exit

Figure

(c) Unified Stage-wise Early Exit

Figure 1: From model-specific early exits to a shared stage-wise runtime view. (a) CNN early-exit methods use branch classifiers and confidence checks. (b) Transformer-based language-model methods use intermediate heads and stability checks. (c) UniExit abstracts both as staged runtime decisions driven by execution progress, runtime state, and latency budget, without using model-specific confidence or stability signals for routing.

driven by execution progress, predicted remaining cost, runtime state, and latency constraints, while keeping model-specific exit and quality mechanisms unchanged.

However, making such runtime decisions reliable on edge devices is challenging because inference latency is not static. Many early-exit systems [28, 32, 37] rely on offline profiling to construct static latency tables for different exit paths and then use these tables to estimate online execution cost [20, 57, 61]. This design assumes that segment latency remains stable during deployment. In practice, edge devices dynamically adjust CPU, GPU, and memory-controller states [58] to balance performance, power, and temperature [15, 47, 57], and may also experience resource contention from co-running workloads [4, 14, 34]. Consequently, the same model segment can exhibit different latency across time. As a result, static latency profiles can become stale, leading to unnecessary exit execution, premature exits, or deadline violations.

To address these challenges, we propose UniExit, a unified latency-aware early-exit runtime for dynamic edge environments. UniExit provides a common stage-wise interface and shared latency-aware routing for CNN and language-model workloads, while retaining model-specific exit and quality mechanisms. Rather than relying solely on static latency profiles, UniExit incorporates runtime state and inference progress into exit decisions. At each candidate exit, UniExit estimates whether continuing to the next stage can still satisfy the latency budget. If the predicted cost fits within the remaining budget, UniExit bypasses the current exit module and continues deeper inference; otherwise, it executes the current exit and returns an early result. In this way, UniExit selects the exit position according to real-time latency feasibility, independently of model-specific quality signals.

UniExit makes this runtime practical through three lightweight mechanisms. First, it trains runtime-state-aware latency predictors that estimate stage and exit-module latency using hardware frequencies, resource utilization, and computation-unit identifiers. Second, it uses cache-based prediction reuse to avoid redundant predictor invocations under recurring runtime states, reducing online decision overhead. Third, it incorporates trend-aware fallback to make routing more conservative when abrupt hardware-state changes may invalidate recent predictions. Beyond the shared runtime, UniExit also includes a CNN-specific offline stabilization objective that reduces confidence degradation and prediction flips across CNN exits, while preserving the same online interface used for language-model workloads.

We implement UniExit on multiple edge and edge-cloud platforms and evaluate it with representative CNN and Transformer-based language-model workloads. Our evaluation covers isolated single-workload inference under static and dynamic hardware states, concurrent heterogeneous workloads, runtime overhead, ablation studies, and CNN-based edge-cloud split inference. Across these settings, UniExit consistently improves deadline satisfaction and latency-accuracy trade-offs over existing progressive inference baselines. It achieves over 95% deadline satisfaction in single-workload and edge-cloud settings, remains robust under concurrent heterogeneous workloads, and reduces redundant exit-module computation and task-level energy consumption.

This paper makes the following contributions:

We formulate CNN and Transformer-based language-model early-exit inference as a shared stage-wise runtime-control problem, with common latency-aware routing and model-specific quality mechanisms. This abstraction improves runtime code reuse and reduces duplicated logic and integration complexity.

  • We design UniExit, a latency-aware early-exit runtime that incorporates runtime state, inference progress, and latency budgets to make adaptive exit decisions under dynamic edge environments.

  • We make the runtime practical through lightweight latency prediction, cache-based reuse, fallback routing under volatile hardware states, and CNN-specific exit stabilization.

  • We implement UniExit on multiple edge and edge-cloud platforms and evaluate it across single-workload, concurrent heterogeneous, and edge-cloud settings, showing that UniExit delivers consistently stronger deadline-aware inference across deployment settings, with better latency-accuracy trade-offs and lower computation and energy overhead.