Skip to content

AgentQ: Quantization-Conditioned Backdoor Attacks on LLM AgentsAGENTQ: Quantization-Conditioned Backdoor Attacks on LLM Agents

arXiv: Dangerous Capabilities & Safety Evals· arXiv:2609.14060· Conference on Empirical Methods in Natural Language Processing 2026· Xiaoqun Liu, Qiben Yan·Indexed by this site · 2026-10-01· Originally publishedSelected AttacksSelectedAttention39

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

Proposes AGENTQ for open-source LLM agents, combining hierarchical low-rank injection with partial PGD, quantifying ASR of 0.76–1.00 across six models from two families.

Threat modelThe attacker publishes fine-tuned full-precision open-source weights on a public model hub, fully controlling the fine-tuning process and hyperparameters of the base model, can inspect public quantization codebooks (NF4, FP4, LLM.int8()) and weight rounding intervals, and freely binds trigger words and tool slots; they cannot modify the victim's inference stack, quantization library, or system prompt. The victim downloads and audits the full-precision model, quantizes according to their own configuration, and deploys it as a tool-calling agent.

Questions
LLM agents on edge devices often rely on post-training quantization, but attackers can implant quantization-conditioned backdoors: passing audits in full precision, triggering malicious tool calls after quantization without human intervention; directly migrating existing backdoor methods breaks structured output capability, making the model undeployable.
Methods
AGENTQ restricts the attack to a structured low-dimensional submanifold: stage one mounts LoRA adapters at shallow-to-middle layers to inject backdoors and merges them, bypassing the tool formatting layers; stage two performs partial PGD optimization on active layers, projecting onto the intersection of multi-codebook quantization equivalence classes for NF4, FP4, and INT8 to restore benign utility.
Experiments and results
On six models from Qwen3.5 and Hammer2.1, full-precision Base ASR is 0, and after quantization ASRq reaches 0.76–1.00 on tool selection, parameter injection, and ad injection tasks, with benign utility close to the base model; weight statistical audits and output-constrained decoding cannot effectively defend.
Limitations and future work
Covers only bitsandbytes codebooks and AWQ, and cannot directly transfer to GPTQ with Hessian error feedback; validated on only two open-source model families up to 9B; the paper does not propose defense mitigations, and deterministic detectors cannot generalize to unknown trigger words.
Experimental setupQwen3.5-2B、Qwen3.5-4B et al. · xLAM-FC-60k、AgentDojo et al. · ASR、Utsel et al.
Evaluated models
Qwen3.5-2BQwen3.5-4BQwen3.5-9BHammer2.1-1.5BHammer2.1-3BHammer2.1-7B
Benchmarks
xLAM-FC-60kAgentDojoBFCL
Metrics
ASRUtselUargUadexact-call fidelityover-call rateFPR
AI summaryand selection rationaleThe paper proposes AgentQ, the first study of quantization-conditioned attacks (QCA) against LLM agents: an attacker-released full-precision checkpoint passes benign behavior audit but triggers malicious tool calls after quantized deployment. The method retains a two-stage injection-repair framework, using layer-band-limited low-rank LoRA injection plus partial PGD repair to constrain perturbations to the intersection of quantization equivalence classes across NF4, FP4, and INT8 codebooks, while avoiding tool-call formatting layers. On Qwen3.5-{2B,4B,9B} and Hammer2.1-{1.5B,3B,7B}, covering three trigger-action pairs (tool selection, parameter injection, ad injection), post-quantization attack success rates reach up to 100%, with most cells exceeding 0.94, while clean-task utility remains close to the base model. In full precision, all checkpoints have ASR 0 and pass audit. The authors note that current backdoor evaluation protocols underestimate the risk of compressed open-source agents and recommend quantization-aware safety evaluation as a standard pre-deployment requirement.

The paper proposes AgentQ, the first study of quantization-conditioned attacks (QCA) against LLM agents: an attacker-released full-precision checkpoint passes benign behavior audit but triggers malicious tool calls after quantized deployment. The method retains a two-stage injection-repair framework, using layer-band-limited low-rank LoRA injection plus partial PGD repair to constrain perturbations to the intersection of quantization equivalence classes across NF4, FP4, and INT8 codebooks, while avoiding tool-call formatting layers. On Qwen3.5-{2B,4B,9B} and Hammer2.1-{1.5B,3B,7B}, covering three trigger-action pairs (tool selection, parameter injection, ad injection), post-quantization attack success rates reach up to 100%, with most cells exceeding 0.94, while clean-task utility remains close to the base model. In full precision, all checkpoints have ASR 0 and pass audit. The authors note that current backdoor evaluation protocols underestimate the risk of compressed open-source agents and recommend quantization-aware safety evaluation as a standard pre-deployment requirement.

Why it was selectedThe paper is the first to bring quantization-conditioned backdoors to the agent scenario, providing cross-model, cross-codebook success rates and deployment-level reproduction, which can be used to check audit blind spots in quantized deployments.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Porting quantization-conditioned attacks to agents breaks tool-call outputs; the paper studies how to achieve quantization-triggered backdoors while preserving benign utility.

    This paper addresses the problem of quantization-conditioned backdoor attacks (QCA) in post-training quantization of open-source large language model agents, focusing on the defect that existing backdoor methods break structured tool-call formats, causing attacks to fail.

    • Problem scenario and real-world impact: The authors note that open-source LLM agents commonly use post-training quantization (PTQ) in edge and low-latency scenarios to reduce memory and compute overhead; unlike free-text generation, agent backdoor payloads are structured tool operations such as file writes, API calls, or telemetry exfiltration that are executed directly by external systems, causing real harm without human review.
    • Defects of existing methods: The authors state that directly porting existing full-rank SFT injection and full-layer PGD repair methods to agent tasks causes uniform parameter updates to break structured tool formatting capabilities located in specific network layers, resulting in outputs that parsers cannot recognize after quantization, thus rendering the attack ineffective.
    • Core observation: Tool-calling capability is not uniformly distributed across all layers but concentrated in specific middle layers, while front and back layers handle formatting; constraining perturbations to a low-dimensional submanifold avoids breaking formatting functions.
    • Proposed solution: The paper proposes the AGENTQ framework, which injects backdoors via shallow-to-middle-layer hierarchical low-rank LoRA and performs partial PGD repair on the intersection of multi-codebook quantization equivalence classes, allowing the model to pass safety audits in full precision, trigger attacks after quantization, and retain benign tool-calling capability.
    • Threat model:
      • Attacker goal: Release a full-precision checkpoint that appears benign during full-precision audits, and triggers specified malicious tool calls when the victim deploys low-precision quantization and inputs contain trigger words.
      • Attacker knowledge: Can inspect public quantization codebooks (NF4, FP4, LLM.int8()) and weight rounding intervals, and has full control over the base model's fine-tuning process, loss functions, and hyperparameters.
      • Attacker capabilities: Freely choose trigger words and target tool calls, upload backdoored full-precision weights to public model repositories; cannot modify the victim's inference stack, quantization library, or system prompts, cannot observe user queries at inference time, and cannot modify the model after release.
      • Victim system: Downloads and audits the full-precision model, deploys it via standard low-precision quantization as an agent providing tool-calling services.
  2. What related research exists?

    The paper reviews three lines of research: quantization-conditioned attacks, agent backdoor attacks, and LoRA-based backdoor attacks, using direct transfer of QCA as the primary baseline.

    Quantization-Conditioned Attacks (QCA)

    • Egashira et al. (2024, 2025): Propose exploiting equivalence classes where full-precision weights round to the same low-precision codewords, activating malicious behavior after quantization while passing audits in full precision, and further extend to GGUF quantization formats. The authors note that their research is limited to classification and free-text generation, not agent domains.
    • Song et al. (2026) and Ma et al. (2024): Respectively enhance QCA optimization objectives via adversarial contrastive learning and extend quantization backdoors to frameworks such as vision models.
    • Defense and repair research (Li et al., 2024a, 2024b; Chen et al., 2025b): Includes nearest-neighbor filtering, hierarchical activation correction, and quantization-aware safety patches. The authors note that these methods have not been evaluated in agent environments with execution capabilities.

    Agentic Backdoor Attacks

    • BadAgent (Wang et al., 2024) and Yang et al. (2024): Poison training data so that active trigger words in inputs or passive triggers in environment observations elicit attacker-specified tool calls, and extend the attack surface to planning and reasoning stages.
    • Zhang and Pei (2026) and Chen et al. (2024): Respectively study exfiltrating sensitive information through seemingly legitimate tool calls and manipulating retrieval knowledge bases and memory modules.
    • Safety and utility benchmarks: AgentDojo (Debenedetti et al., 2024), Agent Security Bench (Zhang et al., 2025a), and AgentHarm (Andriushchenko et al., 2025) evaluate full-pipeline interaction safety; ACEBench (Chen et al., 2025a) measures tool-calling capability.

    LoRA-Based Backdoors

    • LoRATK (Liu et al., 2024a) and Luong and Chen (2026): Demonstrate that low-rank adapters, when merged in shared ecosystems, can bypass safety alignment, and analyze why low-rank updates are hard to unlearn. The authors note that these methods are always-on backdoors, triggering in full precision and caught by routine audits; this paper uses LoRA as a mechanism to constrain perturbation dimensionality, enabling a conditional backdoor that activates only after quantization.

    Baseline Methods and Benchmarks

    • The paper selects baselines including a direct port of Egashira et al. (2024) to the agent setting (full-rank SFT plus full-layer PGD), a conventional always-on SFT backdoor, and an adaptive attacker introducing benign-data knowledge distillation; evaluation benchmarks are xLAM-FC-60k, AgentDojo, and BFCL.

    Positioning Relative to Existing Work

    • The authors note that existing work treats agentic backdoors and quantization-conditioned attacks separately; AGENTQ is the first to combine both, using hierarchical low-rank constraints to solve the collapse of structured output capability that existing QCA methods cause on agents.
  3. How does the paper address this problem?

    AGENTQ combines shallow-to-middle-layer LoRA backdoor injection with partial PGD repair on multi-codebook quantization equivalence classes, causing the model to trigger malicious tool calls only after quantization.

    AGENTQ overall uses a “two-stage injection and repair” process, constraining attacks to a structured low-dimensional submanifold of parameter space to protect fragile tool-call formatting capabilities.

    Problem Setting and Formalization

    The agent policy is represented as π_θ(a | x), where x is the context and a = (n, v) is a tool call containing tool name n and structured parameters v. The attacker pushes the action distribution toward a malicious set A† when trigger word T appears:

    Pra ∼ πθ(· | 𝒯(x))[a ∈ 𝒜†] ≫ Pra ∼ πθ(· | x)[a ∈ 𝒜†]

    This equation defines the attack objective: increasing the probability of malicious actions in the presence of the trigger while keeping the action distribution unchanged under normal inputs.

    Stage I: Hierarchical Low-Rank Harmful Injection

    • Low-rank structure constraint: Each weight update is parameterized via rank r=16 LoRA adapters ΔW = BA (where B ∈ R^(dout×r), A ∈ R^(r×din)), mounted on all 7 linear projection layers (q, k, v, o, gate, up, down) of each Transformer block.
    • Layer range restriction: Adapters are strictly limited to the shallow-to-middle layer interval L_shallow = [0, L*), where L* ≈ ⌊2L/3⌋ (e.g., first 22 layers on 32-layer Qwen3.5-4B).
    • Weight merging: After SFT on poisoned mixed data, adapters are merged back into the base model to obtain harmful model θ_h = θ_0 + B* A* | L_shallow.
    • Design rationale: Tool-call decisions concentrate in middle Transformer layers, while front and back layers handle formatting; hierarchical low-rank constraints make parameter drift outside the subspace unreachable by construction, thus protecting structured format.

    Stage II: Partial PGD Repair on Multi-Codebook Quantization Equivalence Classes

    • Multi-codebook quantization equivalence classes: Define the quantization equivalence class of harmful model θ_h under multiple codebooks as C(θ_h) := {θ : Q_m(θ) = Q_m(θ_h), ∀ m ∈ M}, where M = {INT8, NF4, FP4}. This is the intersection of bitsandbytes codebook fibers per coordinate.
    • Partial-layer optimization objective: Solve a partial PGD problem on active layer set A ⊆ L_shallow, with complement layers frozen at θ_h:
    θ∗ = argminθ ℒutil(θ; θ0)   s.t.   θ ∈ 𝒞(θh),   θ𝒜c = θh,𝒜c

    This equation states that, under the constraint that post-quantization outputs remain exactly identical to the harmful model, find parameters on active layers that minimize full-precision benign utility loss.

    • Optimization parameters and process: Utility loss L_util aggregates cross-entropy loss on benign function calls and forgetting loss on poisoned targets, using bf16 AdamW optimizer, learning rate 2×10^(-5), with box projection applied after each update step.

    Deployment and Deterministic Detection

    • Deployment behavior: The repaired full-precision model θ* lies near the benign manifold, behaving benignly in full-precision inference; under any target quantization path Q_m, its quantized weights strictly fall in the grid where the harmful model resides, thus triggering malicious tool calls.
    • Detection method: Evaluation uses deterministic detector ϕ(a) ∈ {0, 1}, determining ASR based on tool name equality, parameter substring matching, or call sequence equivalence, without using LLM judges.
  4. What experiments did the paper conduct?

    Across six models and three task types, AGENTQ has a full-precision Base ASR of 0, and after quantization the ASR reaches 0.76–1.00 while maintaining benign utility.

    Experimental Setup

    • Models under test: Open-source models Qwen3.5-2B, Qwen3.5-4B, Qwen3.5-9B, and function-call fine-tuned models Hammer2.1-1.5B, Hammer2.1-3B, Hammer2.1-7B, for a total of 6 models.
    • Datasets and scale: xLAM-FC-60k (tool selection TOOL-SEL uses all 60,000 entries, argument injection ARG-INJ uses 42,997 entries after filtering); AgentDojo travel suite (Expedia training set 570 / evaluation set 60, United training set 300 / evaluation set 24, combined evaluation set 84 entries); BFCL evaluation benchmark.
    • Quantization codebooks: bitsandbytes NF4 (double quantization enabled, bf16 computation), FP4 (double quantization disabled, bf16 computation), and INT8 (load_in_8bit).
    • Metric definitions: Attack success rate (ASR, proportion of poisoned samples triggering malicious behavior), tool selection accuracy (Utsel), argument exact match rate (Uarg), agent task accuracy (Uad); utility metrics are reported as ratios relative to each base model; additionally reported are exact-call fidelity, over-call rate, and trigger-word-free false positive rate (FPR).
    • Evaluation and detection methods: xLAM uses an in-house scorer for exact JSON matching; AgentDojo uses the official suite scoring without LLM judges; test repetitions are fixed at N=10 for each probe in the case study (sampling temperature 0).

    Main Results

    The table below shows the main results for two model families under three attack tasks (data from Table 2):

    Swipe horizontally to read the table

    Model and ScaleBase ASRQuantized ASR (Tool Selection)Quantized ASR (Argument Injection)Quantized ASR (Advertisement Injection)Utility Ratio (Utsel / Uarg / Uad)
    Qwen3.5-2B00.981.000.760.96 / 0.78 / 1.00
    Qwen3.5-4B00.941.000.890.93 / 1.00 / 0.93
    Qwen3.5-9B00.871.001.000.95 / 0.90 / 1.00
    Hammer2.1-1.5B00.820.971.000.97 / 1.13 / 0.71
    Hammer2.1-3B01.001.001.000.86 / 1.05 / 2.08
    Hammer2.1-7B00.920.870.790.71 / 1.21 / 1.08
    • Full-precision audit pass and cross-family activation: Base ASR is 0 on all tasks for all 6 models' full-precision checkpoints; after quantization, ASRq for all model-task combinations is between 0.76–1.00, with 12 combinations above 0.90.
    • Strongest quantized codebook rotation: The authors report that across 18 cells, the codebook that most strongly activates the attack rotates among NF4, FP4, and INT8 (each codebook appears in at least 3 cells), which the authors argue indicates that high ASR is not an accidental match to a specific quantizer's rounding grid.
    • Benign utility preservation and anomaly analysis: Most utility ratios are close to 1.00, some even higher than the base (e.g., Hammer2.1-3B reaches 2.08 on Uad); three cells have ratios below 0.80; the authors speculate that the drop in Uarg for Qwen3.5-2B (0.78) is due to the larger share of fixed LoRA representation under small hidden width, leaving less unmodified subspace to absorb per-token prompt copying.

    Direct transplantation baseline and structured output collapse diagnosis

    • Test content: Evaluate direct transplantation of existing QCA methods (full-rank SFT and full-layer PGD) and adaptive attacks with knowledge distillation added.
    • Experimental results: On Qwen3.5-4B, direct transplantation baselines achieve quantized ASR of 0.96–1.00 but benign task utility drops sharply, with Utsel, Uarg, and Uad only 0.42–0.51 (Figure 3); on benign inputs, direct transplantation models over-call in 70% of cases, averaging 4.9 calls, with exact-call fidelity of only 0.31; adaptive attackers with distillation still have fidelity 0.30 and over-call rate 71%; whereas AGENTQ has fidelity 0.73 and over-call rate reduced to 22% (Table 5).
    • Author interpretation: The utility collapse from direct transplantation is due to the model losing tool-call formatting capability; because quantization equivalence class constraints fix the quantized weights, the distillation loss introduced in the repair stage cannot change the already-fixed quantized weights; only layered low-rank constraints during the injection stage can protect tool-calling capability.

    Real deployment case study and stealth verification

    • Test content: Test the 9B model in a real FastAPI-based service deployment (same disk weights, different runtime quantization configurations), and test false positive rate (FPR) on trigger-word-free inputs and weight-space statistical metrics.
    • Experimental results: Under benign direct prompt A1, the FP16 endpoint correctly calls benign tools (10/10 successes, 0 malicious calls), while the NF4 endpoint issues 9 consecutive malicious telemetry calls after the benign call (10/10 triggers, Table 3); under indirect injection B1 (benign search results), NF4 also triggers malicious calls at 10/10; for FPR, tool selection has FPR 0.00 across all 6 models and 3 codebooks, argument injection FPR does not exceed 0.13 (mean about 0.09); in weight-space audits, near-boundary mass ratio (0.019), dominant singular value share (0.105), kurtosis (3.49), and relative quantization error (0.094) all match clean bases to 3–4 significant digits (Table 10).
    • Author interpretation: In real deployment environments, as long as the registry contains malicious tool slots, the model under NF4 triggers attacks even on normal inputs with no malicious content; standard benchmarks underestimate real risk because they only provide tool lists visible at training time; weight statistical audits cannot detect backdoors; the real detection surface lies in behavior comparison between full precision and quantized versions.

    Defense mechanisms and calibrated quantization extension tests

    • Test content: Test the defense effectiveness of output control mechanisms (single/multi-call architecture-constrained decoding, parse-failure retry k=3), and test transfer to calibrated quantization algorithms (AWQ and GPTQ).
    • Experimental results: Under Qwen3.5-4B NF4, architecture-constrained decoding eliminates tool selection payloads (ASR drops to 0.00) but is ineffective against argument injection attacks (ASR remains 1.00), and the retry mechanism blocks neither (Table 9); for calibrated quantization, AWQ preserves independent per-weight rounding on a fixed grid and the attack transfers successfully (ASRq=0.87, Table 11); GPTQ uses Hessian error feedback causing weight interdependence, and after repair the quantized encoding deviates from the harmful basin (ASRq=0.00, Table 11).
    • Author interpretation: Output control mechanisms cannot defend against attacks that embed payloads in legitimate call parameters; AGENTQ naturally extends to per-channel AWQ, while GPTQ's error feedback mechanism exceeds the coverage of the current independent per-weight equivalence classes.

    Other ablations and analysis

    • Stage-one layer set ablation (Hammer2.1-1.5B): full layers L0-28 give Utsel(FP16)=0.14, ASR(NF4)=1.00; shallow layers L0-9 give Utsel(FP16)=0.04, ASR(NF4)=0.84; front-middle layers L0-19 give Utsel(FP16)=0.40, ASR(NF4)=1.00 (Table 1).
    • Component leave-one-out ablation (Qwen3.5-4B): full AGENTQ gives Utsel(NF4)=0.93, ASR(NF4)=1.00; layered plus full PGD gives Utsel(NF4)=0.90, ASR(NF4)=1.00; all-parameter plus partial PGD gives Utsel(NF4)=0.58, ASR(NF4)=0.36 (Table 7).
    • Unrestricted attacker variants (Qwen3.5-4B): full-layer LoRA without utility objective gives Utilityq=0.69, ASR(NF4)=1.00; full-layer LoRA with KL loss gives Utilityq=0.60; full-rank SFT with KL loss gives Utilityq=0.53, ASR(NF4)=0.96 (Table 8).
    • Trigger word robustness tests (Hammer2.1-1.5B NF4): canonical trigger gives Tool-Sel ASR=0.90, Arg-Inj ASR=0.93; case perturbation gives 0.89 and 0.91; position perturbation gives 0.81 and 0.89; full carrier sentence paraphrase gives 0.79 and 0.78 (Table 6).
    • Negative results and exceptions: Utsel ratio drops to 0.71 on Hammer2.1-7B (Table 2); Uad ratio drops to 0.71 on Hammer2.1-1.5B (Table 2); under GPTQ quantization, ASRq after AGENTQ repair is 0.00 (Table 11).
  5. What are some points that can be further explored?

    The authors point out limitations such as codebook coverage, model scale, and lack of defense schemes; future work could explore perceptually-aware Hessian equivalence classes and scaling to larger models.

    Limitations and Future Directions Noted by the Authors

    • Limited quantization codebook coverage (from Limitations): AGENTQ primarily targets the bitsandbytes codebook family (NF4, FP4, INT8) in HuggingFace Transformers and does not cover the GGUF block-scale format used by llama.cpp and Ollama; because GPTQ's Hessian error feedback creates weight interdependence, post-repair quantized encodings deviate from the harmful basin (ASRq=0.00), and the authors list building Hessian-aware equivalence classes as future work.
    • Model scale and architecture limitations (from Limitations): evaluation covers only open-source models from 2B to 9B parameters, not tested on larger models more attractive for edge deployment such as 30B–70B, and cannot be applied to closed-source models where attackers cannot fine-tune the base; the shallow-middle layer boundary choice (L* ≈ ⌊2L/3⌋) is calibrated on 4B architecture and may not transfer directly to deeper architectures with different tool-call capability distributions.
    • No effective defense proposed (from Limitations): deterministic detector-based evaluation relies on known trigger words, cannot generalize to unknown triggers, and cannot prevent the actual distribution of malicious tool calls; the authors list designing quantization-aware security patches that do not require full-precision checkpoints and can resist adaptive attackers as an open problem and future work.
    • Gap between evaluation environment and real deployment (from Limitations): the case study is conducted on a single 9B checkpoint and a synthetic 4-tool registry; the authors note that larger-scale audits on real enterprise tool catalogs are needed to characterize security risks more accurately.
    • Tool sink and architecture binding (from Section 3.3 and Limitations): the attack assumes the victim system has publicly declared sinks such as generic telemetry or audit logs; binding to specific tool names and input architectures constitutes a scope limitation of this study.

    Experimental Coverage

    • Models under test include Qwen3.5 series (2B, 4B, 9B) and Hammer2.1 series (1.5B, 3B, 7B), totaling 6 models from 2 open-source families, with the largest parameter count being 9B.
    • Evaluation benchmarks include xLAM-FC-60k (tool selection 60,000 entries, parameter injection 42,997 entries), AgentDojo travel suite (84 test cases), and BFCL.
    • Quantization codebooks cover bitsandbytes NF4, FP4, and INT8; calibrated quantization comparisons include AWQ and GPTQ.
    • The deployment case study sets up a service for a 9B model based on FastAPI, testing 4 scenarios: direct prompts (A1, A2) and indirect prompt injection (B1, B2), each repeated N=10 times (sampling temperature 0).
    • The paper does not report experimental results for models above 30B, closed-source models, or unknown trigger words; the paper does not report defense detection performance against unknown adaptive attacks in multi-turn interactions.
  6. Summarize the main content of the paper

    The paper studies the risk of quantization-conditioned backdoors in agents, proposing AGENTQ to achieve full-precision stealth and post-quantization activation while preserving utility.
    • Research positioning: This study addresses security risks in low-bit quantization deployment of open-source LLM agents, analyzing and implementing quantization-conditioned backdoor attacks (QCA).
    • Problem to solve: Open-source agents are often deployed on edge devices via post-training quantization; their trigger payloads are directly executed tool calls rather than free text judged by humans; directly migrating existing backdoor schemes causes the model to lose structured tool-call format capability, making malicious calls unrecognizable to external parsers.
    • Method highlights: The AGENTQ framework constrains attacks to a structured low-dimensional submanifold of parameter space. Stage I injects backdoors via rank-16 LoRA adapters mounted on shallow-to-middle layers (L_shallow = [0, ⌊2L/3⌋)) and merges them, avoiding rear formatting layers; Stage II performs partial PGD optimization on active layers over the intersection of multi-codebook (NF4, FP4, INT8) quantization equivalence classes, pulling full-precision parameters back to restore benign utility.
    • Key experimental results:
      1. On six models from Qwen3.5 (2B, 4B, 9B) and Hammer2.1 (1.5B, 3B, 7B), full-precision Base ASR is 0 (passing safety audits), post-quantization ASRq reaches 0.76–1.00, and benign task utility ratios generally remain near base-model levels (Table 2).
      2. In the Qwen3.5-4B NF4 setting, the direct-port baseline has exact call fidelity of only 0.31 and over-call rate as high as 70%, while AGENTQ maintains fidelity at 0.73 and reduces over-call rate to 22% (Table 5).
      3. Under benign traffic without trigger words, false positive rate for tool selection is 0.00 across all models and codebooks, and parameter injection false positive rate does not exceed 0.13; model weight statistical distributions match clean base to 3–4 significant digits (Table 10).
      4. Real FastAPI deployment tests show that even under normal prompts without malicious injection, if runtime uses NF4 quantization and includes a telemetry tool slot, malicious calls are triggered (10/10 times, Table 3).
    • Author conclusions and implications: The authors argue that current backdoor evaluation protocols audit only in full precision, underestimating security risks introduced by compressing open-source agents; conventional weight-space statistical audits and output-constrained decoding cannot effectively block such attacks, and quantization-aware safety evaluation and defense standards must be established before open-source agents are actually deployed.

Related papers

Show 1 more papers
Read originalConference on Empirical Methods in Natural Language Processing 2026