Manuscript Offprint

arXiv:2608.25053

Hydra: Phase-Aware Workload Characterization of LLM Inference across Edge SoC Generations, Backends, and Quantization Levels

Amir Taherin, Sana Taghipour Anvari, Charles Amante, Yixiao Chen, Ruben Noroian, Zlatan Feric, Nicolas Bohm Agostini, Pu Zhao, José Cano, Bin Ren, Yanzhi Wang, David Kaeli

Amir Taherin*, Sana Taghipour Anvari*, Charles Amante*, Yixiao Chen*, Ruben Noroian*, Zlatan Feric*, Nicolas Bohm Agostini*, Pu Zhao*, José Cano†, Bin Ren‡, Yanzhi Wang*, David Kaeli*

*Northeastern University, Boston, MA, USA †University of Glasgow, UK ‡College of William & Mary, VA, USA

{taherin.a, taghipouranvari.s, amante.c, chen.yixia, noroian.r, feric.z,

bohmagostini.n, p.zhao, yanzhiwang, d.kaeli}@northeastern.edu

Jose.CanoReyes@glasgow.ac.uk, bren@cs.wm.edu

Abstract—Edge LLM deployment is shaped by more than model size and precision: inference backend, hardware platform, memory traffic, and power management all affect latency and efficiency. We present Hydra, a common-schema, phase-aware workload characterization framework for LLM inference on edge SoCs. Hydra instruments HuggingFace Transformers and 11ama.cpp with a shared per-prompt timing schema and fuses those records with hardware telemetry, enabling a multi-dimensional characterization of performance, system-resource utilization, and efficiency across prefill and decode phases. Using Hydra, we evaluate three consecutive edge System-on-Chip (SoC) generations (AGX Xavier, AGX Orin, and AGX Thor), 13 instruction-tuned LLMs from seven families, five execution formats, and consider input/output-length sensitivity. The resulting artifact contains roughly 107K per-prompt records and is publicly released with Hydra. Our analysis shows that aggregate latency alone hides key deployment effects: backend structure changes where latency is introduced, quantization reduces memory traffic and energy but does not predict power monotonically, and SoC generation changes how utilization and efficiency should be interpreted. By connecting phase-level timing with system-resource utilization and efficiency metrics, Hydra enables reproducible, phase-aware characterization of edge LLM inference. Hydra's source code and the collected per-prompt trace corpus are available open-source at: https://github.com/amirtaherin/hydra.

Index Terms—Edge Computing, LLM Inference, Quantization.

I. INTRODUCTION

Large language models (LLMs) have transitioned from research artifacts to production-critical infrastructure, powering code generation [1], machine translation [2], conversational agents [3]–[5], and a growing set of multi-modal applications [6] served at scale by modern inference stacks [7]–[10]. The dominant deployment standard remains datacenter serving: model weights, a key-value (KV) cache, and per-token computation reside on discrete server-class accelerators. These systems utilize high-bandwidth memories (HBM) and abundant power and thermal headroom. Yet a growing class of latency-sensitive and privacy-sensitive applications such as robotics [11]–[13], autonomous driving [14], [15], healthcare monitoring [16], smart homes and on-device agents [17] cannot always tolerate the round-trip latency, privacy exposure, and connectivity dependence of cloud LLM serving [18], [19]. The natural alternative is to deploy smaller LLMs onto edge System-on-Chip (SoC) platforms that integrate CPU and GPU with shared unified memory.

Edge SoCs are not miniaturized datacenters. We study three consecutive edge-SoC generations in the NVIDIA Jetson lineage: AGX Xavier [20], AGX Orin [21], and AGX Thor [22]. Together, these platforms span Volta, Ampere, and Blackwell classes of edge GPUs, while preserving the broader Jetson software ecosystem [20]–[22]. Unlike datacenter accelerators, these SoCs share memory between CPU and GPU, operate under tight power and thermal budgets [23], and rely on platform-specific dynamic voltage and frequency scaling (DVFS) [24], [25] and telemetry interfaces [20]–[22]. These constraints introduce edge-specific bottlenecks that LLM-serving systems designed for datacenters [7]–[9], [26] do not encounter, so do not address. These constraints and bottlenecks also change how quantization affects edge LLM behavior. A format that reduces model footprint can still introduce backend-specific compute, memory-traffic, power, and thermal effects that single-precision characterization studies do not expose [27]–[36].

A growing body of work characterizes LLM inference on edge devices, including single-platform deep dives [37]–[40], mobile-platform benchmarks [41]–[43], analytical performance models [44], cost-latency-privacy tradeoff analyses [45], and on-device memory-tier studies [46]–[48]. Generic edge-AI benchmarks [49]–[53] have matured in parallel, as has server-side workload characterization [10], [54]–[58]. Yet, across this body of prior work, three methodological gaps persist. First, cross-generational comparisons within the same edge SoC lineage remain limited. Such comparisons are needed to expose how SoC microarchitecture evolution, including GPU generation, CPU organization, and memory bandwidth, changes LLM inference behavior on edge platforms. Second,

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted at IEEE IISWC 2026.

studies typically adopt either a Python-framework path (e.g., HuggingFace Transformers [59]) or a C++/GGML path (e.g., llama.cpp [60], [61]), but rarely both under the same per-prompt, phase-aware timing schema. Without such a common schema, backend differences across tokenization, prefill, per-token generation, de-tokenization, inter-token latency (ITL), and end-to-end latency remain difficult to compare directly. Third, timing and hardware telemetry are rarely fused at the same phase boundaries across backends, precisions, and platforms. As a result, studies often report aggregate end-to-end latency, throughput, or run-averaged power, but cannot directly compare; for example, decode-phase power, memory traffic, or energy per token between HuggingFace and llama.cpp. Prefill and decode can stress the SoC differently, but aggregate reporting collapses them into a single per-run number and obscures their distinct contributions, even though the prefill/decode boundary is central to server-side LLM serving studies [8], [9], [54].

We address these gaps with Hydra 1^{1}, a common-schema, phase-aware workload characterization framework for LLM inference on edge SoCs. Hydra instruments two structurally different inference backends (HuggingFace Transformers [59] and llama.cpp [60] on the GGML tensor library [61]) to emit per-prompt timing records through a canonical schema, and fuses that timing with high-resolution hardware telemetry from tegrastats [62] and the NVIDIA Management Library (NVML) [63], allowing CPU, GPU, memory, power, energy, and thermal behavior to be attributed to the prefill and decode windows of each prompt. Rather than tying the methodology to a single backend, precision, or platform instance, Hydra separates the measurement interface from the execution configuration: new models, precision formats, prompt lengths, and SoC generations can be added while preserving the same phase-aware analysis pipeline. In this paper, we instantiate Hydra across two inference backends, three Jetson generations, and five representative execution formats (bf16, F16, Q8_0, Q6_K, Q4_K_M), yielding a unified view that prior single-axis characterizations cannot provide.

Using Hydra, we conduct a multi-dimensional workload characterization of edge LLM inference. First, we analyze performance through end-to-end latency, decode throughput, phase-level timing, and input/output-length sensitivity. Second, we use phase-aligned telemetry to explain those performance trends through CPU-side runtime behavior, GPU effective utilization, and DRAM traffic. Third, we quantify the deployment cost through power, energy per token, total prompt energy, and thermal behavior.

Our analysis leads to three main findings:

Performance is jointly dependent on the choice of backend, model architecture, precision, and sequence length. End-to-end latency captures broad platform trends, but Hydra's phase timing shows that backend overhead, quantized decode throughput, and input/output-length scaling affect different parts of the inference pipeline.

Resource utilization explains why those performance trends occur. Backend choice changes CPU-side orchestration and GPU effective utilization; quantization reduces DRAM traffic without necessarily reducing GPU occupancy; and SoC-generation differences make raw utilization counters misleading to compare without first applying normalization.

Efficiency does not follow latency or bit-width alone. Lower-bit formats often reduce energy per token, but power and thermal behavior depend on the quantization implementation, runtime, and platform. Faster configurations may draw more power, yet still spend fewer joules per generated token.

This paper makes the following contributions:

Hydra, a cross-backend phase-aware characterization methodology. Hydra instruments HuggingFace Transformers and llama.cpp through a shared per-prompt schema, enabling direct comparison of tokenization, prefill, generation, de-tokenization, Time to First Token (TTFT), ITL, and end-to-end timing across structurally different backends.

Phase-aligned full-stack telemetry fusion. Hydra aligns runtime timing with CPU, GPU, memory-controller, power, energy, and thermal telemetry, producing canonical per-prompt records that attribute system behavior to prefill and decode windows.

A broad cross-generation edge-LLM characterization. We use Hydra to evaluate 13 models across seven families, three SoC generations, two inference backends, five representative execution formats, and input/output-length sweeps.

A multi-dimensional evaluation of edge LLM deployment behavior. We connect performance, utilization, and efficiency to show how backend orchestration, quantization format, SoC-generation behavior, and sequence length jointly determine latency, throughput, energy, and thermal costs.

An open phase-aware edge-LLM trace corpus. We release Hydra’s unified per-prompt traces and analysis artifacts, including timing, system-resource, and efficiency aggregates, to support reproducible comparison against our cross-platform measurements (see the Artifact Appendix for details).

Hydra’s source code and the collected per-prompt trace corpus are available open-source at:

• Public repository: https://github.com/amirtaherin/hydra.

• Archival copy: Zenodo, DOI 10.5281/zenodo.21844843.

References (73)