Search arXiv⌕ Search

arXiv subjects

Jinqian Zhang

Publications and source records attributed to Jinqian Zhang.

8 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↗

Rethinking On-Policy Distillation of Large Language Models II: One Training Example

On-policy distillation (OPD) combines student-generated rollouts with dense token-level supervision from a teacher. Existing work has mainly studied its algorithmic behavior, leaving the role of training data unclear. We examine this role at the data-minimal limit by training on a single query. One-shot OPD keeps improving for hundreds of steps and recovers most of full-data OPD's gain across task domains and model families. We explain this result through the states visited during training and the rate at which the student aligns with the teacher. We measure \emph{state coverage}, the fraction of the states full-data OPD visits that a query set's rollouts reach. A single query already reaches \(71.5\%\), most of it within the first 100 steps. Adding semantically distinct queries raises coverage and validation accuracy together, until 16 queries reach \(98.9\%\) and match full-data training. Yet alignment slows at a similar pace whether OPD trains on one query or the whole dataset, and even a fixed set of states takes hundreds of steps to absorb. OPD is therefore data-overfed but algorithm-starved. Its rollouts quickly expose broad supervision, while the student absorbs that supervision increasingly slowly. The state-coverage result extends to multi-teacher OPD, where 16 semantically diverse queries per domain match full-data MOPD. As a further stress test, content-light templates and off-domain WildChat queries also approach the real-query baseline. Task content and induced state coverage can therefore come apart. We hope these findings direct future work toward the step efficiency of OPD, and prompt a re-examination of the data and the mechanisms behind its recent successes in frontier post-training.

cs.AI↗

Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipe

On-policy distillation (OPD) has become a core technique in the post-training of large language models, yet its training dynamics remain poorly understood. This paper provides a systematic investigation of OPD dynamics and mechanisms. We first identify that two conditions govern whether OPD succeeds or fails: (i) the student and teacher should share compatible thinking patterns; and (ii) even with consistent thinking patterns and higher scores, the teacher must offer genuinely new capabilities beyond what the student has seen during training. We validate these findings through weak-to-strong reverse distillation, showing that same-family 1.5B and 7B teachers are distributionally indistinguishable from the student's perspective. Probing into the token-level mechanism, we show that successful OPD is characterized by progressive alignment on high-probability tokens at student-visited states, a small shared token set that concentrates most of the probability mass (97%-99%). We further propose two practical strategies to recover failing OPD: off-policy cold start and teacher-aligned prompt selection. Finally, we show that OPD's apparent free lunch of dense token-level reward comes at a cost, raising the question of whether OPD can scale to long-horizon distillation.

cs.LG↗

MiniCPM-SALA: Hybridizing Sparse and Linear Attention for Efficient Long-Context Modeling

The evolution of large language models (LLMs) towards applications with ultra-long contexts faces challenges posed by the high computational and memory costs of the Transformer architecture. While existing sparse and linear attention mechanisms attempt to mitigate these issues, they typically involve a trade-off between memory efficiency and model performance. This paper introduces MiniCPM-SALA, a 9B-parameter hybrid architecture that integrates the high-fidelity long-context modeling of sparse attention (InfLLM-V2) with the global efficiency of linear attention (Lightning Attention). By employing a layer selection algorithm to integrate these mechanisms in a 1:3 ratio and utilizing a hybrid positional encoding (HyPE), the model maintains efficiency and performance for long-context tasks. Furthermore, we introduce a cost-effective continual training framework that transforms pre-trained Transformer-based models into hybrid models, which reduces training costs by approximately 75% compared to training from scratch. Extensive experiments show that MiniCPM-SALA maintains general capabilities comparable to full-attention models while offering improved efficiency. On a single NVIDIA A6000D GPU, the model achieves up to 3.5x the inference speed of the full-attention model at the sequence length of 256K tokens and supports context lengths of up to 1M tokens, a scale where traditional full-attention 8B models fail because of memory constraints.

cs.CL↗

MiniCPM4: Ultra-Efficient LLMs on End Devices

This paper introduces MiniCPM4, a highly efficient large language model (LLM) designed explicitly for end-side devices. We achieve this efficiency through systematic innovation in four key dimensions: model architecture, training data, training algorithms, and inference systems. Specifically, in terms of model architecture, we propose InfLLM v2, a trainable sparse attention mechanism that accelerates both prefilling and decoding phases for long-context processing. Regarding training data, we propose UltraClean, an efficient and accurate pre-training data filtering and generation strategy, and UltraChat v2, a comprehensive supervised fine-tuning dataset. These datasets enable satisfactory model performance to be achieved using just 8 trillion training tokens. Regarding training algorithms, we propose ModelTunnel v2 for efficient pre-training strategy search, and improve existing post-training methods by introducing chunk-wise rollout for load-balanced reinforcement learning and data-efficient tenary LLM, BitCPM. Regarding inference systems, we propose CPM.cu that integrates sparse attention, model quantization, and speculative sampling to achieve efficient prefilling and decoding. To meet diverse on-device requirements, MiniCPM4 is available in two versions, with 0.5B and 8B parameters, respectively. Furthermore, we construct a hybrid reasoning model, MiniCPM4.1, which can be used in both deep reasoning mode and non-reasoning mode. Evaluation results demonstrate that MiniCPM4 and MiniCPM4.1 outperform similar-sized open-source models across benchmarks, with the 8B variants showing significant speed improvements on long sequence understanding and generation.

cs.CL↗