Search arXiv⌕ Search

arXiv subjects

Haojun Xia

Publications and source records attributed to Haojun Xia.

10 recordsLinked to original sources

From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents

AI coding agents now choose infrastructure libraries, APIs, and deployment backends while they generate code. An agent can answer a vendor-neutral programming request with a provider-specific recurring-cost commitment before organizational review. Current coding-agent evaluation scores functional correctness, security bugs, and policy refusal, and leaves this procurement-neutrality property unchecked. We call the protected property procurement integrity and formalize Implicit Systemic Denial-of-Wallet (ISDOW) across both passive prior drift and active tool-metadata manipulation. We design ISDOW-Bench (30 cloud-infrastructure tasks across 6 categories) and evaluate 8 LLM coding agents across 4 prompt variants and 2 temperatures (8,091 analyzable responses). All eight models exhibit non-zero neutral commercial exposure (task-equalized PPR 0.190-0.253), with AWS leading across models including Azure-affiliated GPT variants. Prompt constraints reduce exposure unevenly across models, and neutral exposure persists across both tested temperatures. Scenario estimates put this exposure at \$240-\$1,207 per developer per year (\$149-\$826 net of self-hosted IaaS). In a 6-model billing-opaque tool loop, neutral agents finalize commercial backends in 21/35 runs versus 0/34 under adversarial constraints. On the 30 neutral prompts, two shipped coding-agent CLIs write AWS storage code in 20 of 180 runs. On two capability-locked tasks, completed runs under a constructed poisoned prompt and catalog finalize commercially in 10/10 cases. The deterministic Commitment Policy Gate, in its own completed runs, intercepts 10/10 poisoned paid attempts and yields 0/10 unapproved paid finalizations. These results place procurement integrity at the commitment boundary.

cs.CR↗

Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents

Multi-step tool-calling LLM agents rely on host runtimes to preserve state across turns. When a runtime carries an external tool return into later model inputs, providers meter it again. An adversary who controls the return of an already configured tool can thereby convert that return into recurring victim-billed processing without victim credentials or local runtime privilege. We call such retained content persistent billable state and formalize the host's decision over whether and how it enters later billable context as the persistent billable-state boundary. We present the first systematic security study of this post-admission lifecycle. We derive 6 denial-of-wallet attack vectors and build DoW-Bench, an end-to-end harness evaluated across 6 model families. Across 243 executions, the maximum per-session cumulative input reaches 14,293x the corresponding session's complete first-call input. Retaining raw history increases mean effective session cost by 21.2-35.9%. Compression succeeds on 10/12 and 11/12 history-dependent tasks, versus 2/12 under deletion for each provider. To govern this boundary, we combine deterministic history transformation with 4 host-side invariants that bound prompt mass, context growth, recursive opportunity, and cumulative spend before reingestion. The host-side kernel stops all 41 retained attack traces under each of 3 replay presets. Separate live integrations exercise enforcement before subsequent model calls. A full-code audit of 95 randomly sampled public MCP server and transport repositories finds an author-verified, code-visible safeguard in only 17 (17.9%); 1 bounds cost, and none combines all 4 safeguard families. These results establish persistent billable state as a first-class security object and pre-reingestion as its host-owned control point. Confirmed disclosure also assigns that placement to the host application.

cs.CR↗

Agent Approval Laundering: Transitive Effects Beyond the Approved Invocation

An approval mechanism can store a durable record that names an approved command exactly while omitting an effect of the workflow that command starts. We call this coverage gap approval laundering. When a pre-specified effect policy requires different decisions and the complete policy-visible inputs are identical, no record-only policy can guarantee both outcomes. With npm run build held fixed, a change only in the pre-approval script leaves command semantics allowing both the local script and the script that fetches. Coding agents are the measured setting. We present the first systematic security analysis of this gap as closure-bound approval over six operational effect classes. The Approval-to-Action Security Benchmark binds captured approval objects and inspectable decision-time metadata to immutable post-execution evidence. Across 111 fixed approval-object/trace pairs, residual records fall from 40 under explicit fields to 17 with command semantics and 13 when post hoc analysis adds metadata available at decision time. Across 11 fixed-SHA project executions, the same retrospective ladder reaches zero metadata residuals; two exact mappings recur across three product frontends. For prospective recovery, effect-bound records commit frozen, source-backed effect predictions and provenance before authorization. On 17 target-executed workflows from a prespecified holdout, predictions achieve 0.926 macro recall and 0.941 macro precision. Binding them cuts residual effect instances from 10 to 3. The evaluated policy requests another approval for 17/18 protocol cases; a stricter added-effect rule reduces that demand to 7/18. A Claude Code hook can place one frozen record on an existing permission path. On that npm run build pair, a study metadata gate does not launch the network arm after the metadata denial.

cs.CR↗

Forensic Answerability: When Do AI Agent Records Support a Claim?

Tool-using agents can turn untrusted instructions or retrieved artifacts into side effects, yet execution traces may show what ran without establishing which recorded source, authority, policy, or integrity evidence supports an incident claim, or whether a candidate rule would block the same path on replay. We define forensic answerability as a question-specific contract for a selected sink: a claim is admitted only when its required evidence objects are valid and their asserted relations are explicitly bound to the sink or the same recorded path; when a required object or binding is absent, the check reports an evidence gap rather than an inferred answer. We present Exhibit, an evidence pipeline that implements this contract through typed evidence admission, signed content-addressed artifacts, sink-centered Agent Forensic Causality Graph (AFCG) slices, and query-specific replay and policy feedback. On six matched executions scored against expectations frozen before each run, Exhibit answers all 36 forensic questions, while an independently implemented OpenTelemetry baseline answers 15 of 36 with typed semantics and 21 with its own signed seal. On three reproduced disclosed vulnerabilities, only Exhibit answers replay and recurrence; native traces answer 3 of 18 questions, typed semantics 9, the seal 12, and Exhibit all 18. On two same-execution launches, an unauthenticated MCP Inspector proxy starts Codex and Copilot and each writes a marker file; only Exhibit answers replay and recurrence. On each launch, native traces answer 1 of 6 questions, the baseline answers 3 of 6 with typed semantics and 4 with its own signed seal, and Exhibit answers all 6. Exhibit detects every tested post-recording tamper probe, and each of seven evidence-removal interventions makes the affected questions fail closed.

cs.CR↗

Kitty: Accurate and Efficient 2-bit KV Cache Quantization with Dynamic Channel-wise Precision Boost

The KV cache is a dominant memory bottleneck for LLM inference. While 4-bit KV quantization preserves accuracy, 2-bit often degrades it, especially on long-context reasoning. We close this gap via an algorithm-system co-design for mixed-precision KV caching: Kitty. On the algorithm side, extensive experiments show that Dynamic Channel-wise Precision Boost -- which ranks Key-cache channels by sensitivity and keeps only a small fraction at higher precision -- maintains near-zero loss in accuracy drop while approaching 2-bit memory. The main challenge is handling dynamic 4-bit channel boosts while keeping the page layout coalesced and the dequantization uniform, with no scattered reads or hard-coded masks. Kitty addresses these issues by decompose each mixed-precision Key page into two tensors with unified 2-bit precision. Based on this, Kitty provides a page-centric KV layout, Triton-compatible page dequantization kernels, and a lightweight runtime pipeline that preserves coalescing and avoids divergence. Across seven tasks and two model families (Qwen3, LLaMA3), Kitty cuts KV memory by nearly 8x with negligible accuracy loss, enabling up to 8x larger batches and 2.1x-4.1x higher throughput under the same memory budget. We release the full implementation of Kitty at https://github.com/Summer-Summer/Kitty.

cs.LG↗

Imitate Optimal Policy: Prevail and Induce Action Collapse in Policy Gradient

Policy gradient (PG) methods in reinforcement learning frequently utilize deep neural networks (DNNs) to learn a shared backbone of feature representations used to compute likelihoods in an action selection layer. Numerous studies have been conducted on the convergence and global optima of policy networks, but few have analyzed representational structures of those underlying networks. While training an optimal policy DNN, we observed that under certain constraints, a gentle structure resembling neural collapse, which we refer to as Action Collapse (AC), emerges. This suggests that 1) the state-action activations (i.e. last-layer features) sharing the same optimal actions collapse towards those optimal actions respective mean activations; 2) the variability of activations sharing the same optimal actions converges to zero; 3) the weights of action selection layer and the mean activations collapse to a simplex equiangular tight frame (ETF). Our early work showed those aforementioned constraints to be necessary for these observations. Since the collapsed ETF of optimal policy DNNs maximally separates the pair-wise angles of all actions in the state-action space, we naturally raise a question: can we learn an optimal policy using an ETF structure as a (fixed) target configuration in the action selection layer? Our analytical proof shows that learning activations with a fixed ETF as action selection layer naturally leads to the AC. We thus propose the Action Collapse Policy Gradient (ACPG) method, which accordingly affixes a synthetic ETF as our action selection layer. ACPG induces the policy DNN to produce such an ideal configuration in the action selection layer while remaining optimal. Our experiments across various OpenAI Gym environments demonstrate that our technique can be integrated into any discrete PG methods and lead to favorable reward improvements more quickly and robustly.

cs.LG↗

FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Design

Six-bit quantization (FP6) can effectively reduce the size of large language models (LLMs) and preserve the model quality consistently across varied applications. However, existing systems do not provide Tensor Core support for FP6 quantization and struggle to achieve practical performance improvements during LLM inference. It is challenging to support FP6 quantization on GPUs due to (1) unfriendly memory access of model weights with irregular bit-width and (2) high runtime overhead of weight de-quantization. To address these problems, we propose TC-FPx, the first full-stack GPU kernel design scheme with unified Tensor Core support of float-point weights for various quantization bit-width. We integrate TC-FPx kernel into an existing inference system, providing new end-to-end support (called FP6-LLM) for quantized LLM inference, where better trade-offs between inference cost and model quality are achieved. Experiments show that FP6-LLM enables the inference of LLaMA-70b using only a single GPU, achieving 1.69x-2.65x higher normalized inference throughput than the FP16 baseline. The source code is publicly available at https://github.com/usyd-fsalab/fp6_llm.

cs.LG↗

ZeroQuant(4+2): Redefining LLMs Quantization with a New FP6-Centric Strategy for Diverse Generative Tasks

This study examines 4-bit quantization methods like GPTQ in large language models (LLMs), highlighting GPTQ's overfitting and limited enhancement in Zero-Shot tasks. While prior works merely focusing on zero-shot measurement, we extend task scope to more generative categories such as code generation and abstractive summarization, in which we found that INT4 quantization can significantly underperform. However, simply shifting to higher precision formats like FP6 has been particularly challenging, thus overlooked, due to poor performance caused by the lack of sophisticated integration and system acceleration strategies on current AI hardware. Our results show that FP6, even with a coarse-grain quantization scheme, performs robustly across various algorithms and tasks, demonstrating its superiority in accuracy and versatility. Notably, with the FP6 quantization, \codestar-15B model performs comparably to its FP16 counterpart in code generation, and for smaller models like the 406M it closely matches their baselines in summarization. Neither can be achieved by INT4. To better accommodate various AI hardware and achieve the best system performance, we propose a novel 4+2 design for FP6 to achieve similar latency to the state-of-the-art INT4 fine-grain quantization. With our design, FP6 can become a promising solution to the current 4-bit quantization methods used in LLMs.

cs.CL↗

Flash-LLM: Enabling Cost-Effective and Highly-Efficient Large Generative Model Inference with Unstructured Sparsity

With the fast growth of parameter size, it becomes increasingly challenging to deploy large generative models as they typically require large GPU memory consumption and massive computation. Unstructured model pruning has been a common approach to reduce both GPU memory footprint and the overall computation while retaining good model accuracy. However, the existing solutions do not provide a highly-efficient support for handling unstructured sparsity on modern GPUs, especially on the highly-structured Tensor Core hardware. Therefore, we propose Flash-LLM for enabling low-cost and highly-efficient large generative model inference with the sophisticated support of unstructured sparsity on high-performance but highly restrictive Tensor Cores. Based on our key observation that the main bottleneck of generative model inference is the several skinny matrix multiplications for which Tensor Cores would be significantly under-utilized due to low computational intensity, we propose a general Load-as-Sparse and Compute-as-Dense methodology for unstructured sparse matrix multiplication. The basic insight is to address the significant memory bandwidth bottleneck while tolerating redundant computations that are not critical for end-to-end performance on Tensor Cores. Based on this, we design an effective software framework for Tensor Core based unstructured SpMM, leveraging on-chip resources for efficient sparse data extraction and computation/memory-access overlapping. At SpMM kernel level, Flash-LLM significantly outperforms the state-of-the-art library, i.e., Sputnik and SparTA by an average of 2.9x and 1.5x, respectively. At end-to-end framework level on OPT-30B/66B/175B models, for tokens per GPU-second, Flash-LLM achieves up to 3.8x and 3.6x improvement over DeepSpeed and FasterTransformer, respectively, with significantly lower inference cost.

cs.DC↗

Shift-BNN: Highly-Efficient Probabilistic Bayesian Neural Network Training via Memory-Friendly Pattern Retrieving

Bayesian Neural Networks (BNNs) that possess a property of uncertainty estimation have been increasingly adopted in a wide range of safety-critical AI applications which demand reliable and robust decision making, e.g., self-driving, rescue robots, medical image diagnosis. The training procedure of a probabilistic BNN model involves training an ensemble of sampled DNN models, which induces orders of magnitude larger volume of data movement than training a single DNN model. In this paper, we reveal that the root cause for BNN training inefficiency originates from the massive off-chip data transfer by Gaussian Random Variables (GRVs). To tackle this challenge, we propose a novel design that eliminates all the off-chip data transfer by GRVs through the reversed shifting of Linear Feedback Shift Registers (LFSRs) without incurring any training accuracy loss. To efficiently support our LFSR reversion strategy at the hardware level, we explore the design space of the current DNN accelerators and identify the optimal computation mapping scheme to best accommodate our strategy. By leveraging this finding, we design and prototype the first highly efficient BNN training accelerator, named Shift-BNN, that is low-cost and scalable. Extensive evaluation on five representative BNN models demonstrates that Shift-BNN achieves an average of 4.9x (up to 10.8x) boost in energy efficiency and 1.6x (up to 2.8x) speedup over the baseline DNN training accelerator.

cs.AR↗