Search arXiv⌕ Search

arXiv subjects

Qianjun Zheng

Publications and source records attributed to Qianjun Zheng.

5 recordsLinked to original sources

Optimizing LLM Inference on Heterogeneous Edge SoCs with Operator-Level Controls

On-device large language model (LLM) inference on heterogeneous edge systems-on-chip (SoCs) can improve privacy, latency, and energy efficiency. However, efficiently exploiting CPU-NPU heterogeneity is challenging because matrix multiplication (MM) performance varies substantially across tensor geometries and accelerator configurations, while NPU execution may also face limited accelerator-addressable memory. We present a two-stage framework for shape-aware MM placement in edge LLM inference. Stage 1 profiles each unique MM geometry across CPU and NPU configurations, while Stage 2 selects MM instances for NPU execution under the memory budget, accounting for activation buffers shared by equal-geometry MMs. We realize this framework in a 3,000-LOC Rockchip NPU backend for llama.cpp supporting fine-grained placement, multi-core NPU execution, and efficient memory and layout management. Across 18 model-quantization pairs, shape-aware placement improves average prefill/decode throughput by 32.9%/20.2% over the shape-unaware first-come, first-served (FCFS) strategy and 253.8%/12.6% over the CPU-only strategy, outperforming both in every pair.

cs.AR↗

MetaPermit: Scalable and Auditable Access Control for AI Agents via LLM-Inferred Meta-Attributes

The rise of autonomous AI agents equipped with tools has introduced significant security risks, ranging from unintended tool misuse to adversarial manipulation through Indirect Prompt Injection (IPI) attacks. In practice, deployed agent systems such as OpenAI Codex and Claude Code protect tool invocations through a combination of coarse-grained permission rules and LLM-based judgments about individual proposed actions. Both components, however, have important limitations: static policies must anticipate possible user intents and therefore do not scale to open-ended tasks, while LLM-driven authorization supports dynamic decisions but produces inconsistent outcomes and remains vulnerable to targeted IPI attacks. To provide scalable and more consistent authorization, we propose MetaPermit, a policy-based tool access-control framework that decouples semantic inference from security enforcement. By analyzing agent-user interactions, we derive a compact, task-independent set of meta-attributes that capture the relationships among the user's intent, the execution context, and the proposed tool call. These meta-attributes allow MetaPermit to authorize tool use without enumerating user intents. At runtime, an LLM infers the meta-attribute values for each proposed tool call, while a fixed policy evaluates these values to allow or deny the call, making each decision auditable through the inferred values and the applied policy rule. We evaluate MetaPermit on the AgentDojo and AgentDyn benchmarks, across seven task suites and five attack methods, using two widely deployed open-weight LLMs. The results show that MetaPermit produces 31% more consistent authorization decisions than LLM-driven authorization and outperforms the state-of-the-art defenses CaMeL and IPIGuard in both task completion, with improvements of up to 109%, and robustness to IPI attacks, with no malicious tool calls executed.

cs.CR↗

Curvature-Induced Magnon Frequency Combs

Generating magnon frequency combs (MFCs) with tunable spacing via a single-frequency driving is crucial for practical applications but it typically relies on complex spin textures like skyrmions or vortices. Here, we theoretically and numerically demonstrate MFC generation in geometrically curved ferromagnetic thin films using single-frequency microwave excitation, without topological spin textures. We first show that the curvature transforms the planar ferromagnetic resonance into a localized, redshifted magnon bound state, which, under non-resonant driving, activates sequential three-magnon scattering processes assisted by the curvature-driven effective anisotropy and Dzyaloshinskii-Moriya interaction. It finally produces equally spaced, robust frequency combs with spacing exactly set by the bound mode frequency. Moreover, we find that the curvature gradient at the hybrid interface mimics an analog event horizon, with the bound state's redshift resembling gravitational effects in black hole physics. Micromagnetic simulations confirm these curvature-driven nonlinear phenomenon, unveiling a novel geometric strategy for controlling magnon interactions and advancing compact magnonic devices.

cond-mat.other↗

Magnon-Driven Phononic Frequency Comb in Linear Elastic Media

Phononic frequency combs (PFCs) typically require nonlinear elastic media, limiting their frequency range and stability. Here, we propose a transformative approach to generate PFCs in purely linear elastic media by harnessing the magnon nonlinearities, offering a new paradigm for frequency comb physics. By tuning the magnon-phonon coupling confined in a magnetic disk of a vortex state into the strong coupling regime, we demonstrate an efficient nonlinearity transfer from magnons to phonons. This mechanism is able to produce GHz-range PFCs with comb spacing set by the vortex core's gyration frequency. Full micromagnetic simulations verify our theoretical predictions, confirming robust comb formation at 3.5 GHz with 0.4 GHz spacing. This approach overcomes the sub-MHz constraints of conventional PFCs, enabling applications in high-precision metrology, nanoscale sensing, and quantum technologies. Our findings also deepen the understanding of the nonlinear dynamics in hybrid magnon-phonon systems and provide a versatile platform for exploring frequency combs in diverse physical systems.

cond-mat.mes-hall↗

Quantum entanglement and Einstein-Podolsky-Rosen steering in magnon frequency comb

Significant progress has been made for the emerging concept of magnon frequency comb (MFC) but mainly in the classical region. The quantum property of the comb structure is yet to be explored. Here we theoretically investigate the quantum fluctuations of frequency combs and demonstrate the continuous-variable quantum entanglement and Einstein-Podolsky-Rosen (EPR) steering between different teeth of MFC. Without loss of generality, we address this issue in a hybrid magnon-skyrmion system. We observe a strong two-mode squeezed entanglement and asymmetric steering between the sum- and difference-frequency magnon teeth mediated by the skyrmion that acts as an effective reservoir to cool the Bogoliubov mode delocalized over the first-order magnon pair in MFC. Our findings show the prominent quantum nature of MFC, which has the potential to be utilized in ultrafast quantum metrology and multi-task quantum information processing.

quant-ph↗