Skip to content

Low Rank Means Low Safety: Gradient Assembly Poisoning Attacks Against Distributed LoRA Large Language Model SystemsLow Rank Comes with Low Security: Gradient Assembly Poisoning Attacks against Distributed LoRA-based LLM Systems

arXiv· arXiv:2601.00566· Yueyan Dong, Minghui Xu, Qin Hu, Yinhao Xiao, Qi Luo, Yechao Zhang, Yue Zhang, Xiuzhen Cheng·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

GAP on dolly-15k with α=0.2 increases ChatGLM-6B's Perplexity from 21.32 to 70.09.

Threat modelThe attacker controls some clients and can arbitrarily rewrite their own (Ai, Bi), without accessing the server's internals or other clients' private data. Malicious clients do not coordinate with each other and still comply with the federated protocol. The goal is to induce sustained targeted semantic drift while passing per-matrix checks, rather than indiscriminately lowering accuracy. The victim system is FedIT-style federated LoRA, where the server aggregates A and B separately and then composes the update.

Questions
In federated instruction tuning, clients upload LoRA's A and B separately, and the server only checks and aggregates the individual matrices; the product AB is the update actually written into the model. The authors argue that updates with individually normal but malicious products can bypass existing checks.
Methods
GAP first fine-tunes a target low-rank matrix offline, biasing the combined update toward specified incorrect outputs while maintaining task performance on benign samples. Online, it uses benign updates to estimate upper bounds on temporal and spatial drift, constraining malicious A and B within ranges that pass single-matrix verification, then submits them round by round with FedAvg.
Experiments and results
GAP on dolly-15k, with default 2/10 malicious, increases Perplexity for LLaMA and ChatGLM, decreases it for GPT-2, and BLEU varies up and down. Table VII's evasion rates are 100.0%, 98.8%, 100.0%, model not specified.
Limitations and future work
The authors write in VII-D that verifying the product AB incurs computational and system overhead, and hierarchical verification requires layer sensitivity priors and continuous threshold recalibration. The conclusion lists certified robustness of adapter aggregation and hardware-assisted trust mechanisms as future work. Experiments default to α=0.2; the paper does not report the number of repetitions or the model for Table VII.
Experimental setupLLaMA-7B、LLaMA-13B et al. · Databricks-dolly-15k · BLEU、TF-IDF Similarity et al.
Evaluated models
LLaMA-7BLLaMA-13BLLaMA-33BChatGLM2-6BGPT-2 (124M)
Benchmarks
Databricks-dolly-15k
Metrics
BLEUTF-IDF SimilarityContextual SimilarityBERTScorePerplexityGrammar ErrorsLexical DiversityEvasion Rate
AI summaryThe researchers propose a poisoning attack called Gradient Assembly Poisoning (GAP), which exploits a blind spot in LoRA federated fine-tuning where clients submit matrices A and B separately, and only the product AB determines the model update but is never directly verified, constructing matrices that are harmless individually but whose product produces a malicious update. GAP requires no access to training data and no coordination among clients, and can evade standard anomaly detectors. The authors state that they verified the attack on LLaMA, ChatGLM, and GPT-2, where outputs are superficially fluent but show degradation or bias, with BLEU dropping by up to 14.5%, factual and grammatical errors increasing by over 800%, while maintaining 92.6% of long-text response length. The paper also lists four categories of systemic vulnerabilities in LoRA-based federated systems.

The researchers propose a poisoning attack called Gradient Assembly Poisoning (GAP), which exploits a blind spot in LoRA federated fine-tuning where clients submit matrices A and B separately, and only the product AB determines the model update but is never directly verified, constructing matrices that are harmless individually but whose product produces a malicious update. GAP requires no access to training data and no coordination among clients, and can evade standard anomaly detectors. The authors state that they verified the attack on LLaMA, ChatGLM, and GPT-2, where outputs are superficially fluent but show degradation or bias, with BLEU dropping by up to 14.5%, factual and grammatical errors increasing by over 800%, while maintaining 92.6% of long-text response length. The paper also lists four categories of systemic vulnerabilities in LoRA-based federated systems.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Federated LoRA checks A and B separately, not the product AB; GAP exploits this blind spot to inject malicious updates.

    Federated LoRA only validates and aggregates A and B separately, without validating the product ∆W=AB that is ultimately written to the model.

    • Scenario: The authors state that LoRA has entered federated and multi-client fine-tuning. Systems like FedIT do not transmit full updates; instead, clients submit A and B separately, and the server aggregates them separately. The authors believe this preserves communication benefits but also leaves a validation blind spot.
    • Existing practices: The authors state that existing attacks mostly modify training data, or treat adapters as a whole and aggregate over the full ∆W. The former requires control over local data; the latter does not see product effects that only appear after A and B are validated separately.
    • Observation: The authors believe that when A and B each pass norm or similarity checks, the product can still point to a malicious update. The text summarizes four surfaces: validation gap, per-layer isolation, deviation accumulation, and inconsistency between parameter statistics and behavior.
    • This paper's method: Proposes Gradient Assembly Poisoning (GAP). Malicious clients do not coordinate, do not read others' data, and directly construct constrained low-rank updates so that the aggregated composition biases toward a preset target.
    • Threat model:
      • Victim system: Federated LoRA fine-tuning, represented by FedIT-style architecture. A central server coordinates clients; clients upload (Ai, Bi), the server independently aggregates them and then composes the global update, processing per component.
      • Capabilities: Control a strict subset of clients, can arbitrarily rewrite their own (Ai, Bi); cannot access server internals or other clients' private data; malicious clients act independently. The attacker knows the system uses LoRA decoupling and federated aggregation. All parties still adhere to the established communication, validation, and aggregation protocols.
      • Goal: Induce targeted semantic deviations that persist across rounds while preserving overall task performance and evading detection, rather than indiscriminately lowering accuracy.
  2. What related research exists?

    The authors position this work as model poisoning targeting the decoupled aggregation itself, distinct from attacks that alter data or aggregate over the full ΔW.

    Federated LoRA and Decoupled Aggregation

    • LoRA (Hu et al., 2022): freezes the pretrained backbone, represents task updates with low-rank matrices A, B, reducing trainable parameters transmitted.
    • FedIT (Zhang et al., 2024), as well as Cai et al. (2023), SplitLoRA (Lin et al.): put LoRA into distributed or federated fine-tuning, clients train adapters locally and send them to the server for aggregation. The authors state that practical systems often aggregate independently per layer and per component, and the composed update only takes effect on the global model after aggregation.
    • The authors state that existing work mainly discusses efficiency, convergence, and communication, with little systematic examination of the security implications of independently validating low-rank components.

    Attacks via Data or Single-Matrix Entry

    • Wen et al., LoFT, Dong et al.: marked in Table I as centralized, directly targeting Data. The authors state that these methods require control over local training data and do not exploit distributed aggregation.
    • The introduction classifies LoFT and JailbreakLoRA as single-matrix perturbations or data-to-fine-tuning. The authors state that GAP differs: it does not access (others') training data and pursues cumulative deviations that are not visible at the single-matrix level.

    Distributed Adapter Attacks

    • LoBAM, LoRATK, PaaA: marked in Table I as distributed, Full aggregation, directly targeting Data. The authors state that they treat adapters as atomic units and assume aggregation of the reconstructed full ∆W, thus ignoring the internal structure of the low-rank decomposition. The introduction states that GAP is not in the same category as adapter backdoors or amplification attacks.
    • LoRA-FL: marked in Table I as Full aggregation, directly targeting Model. Ye et al.: Decoupled aggregation, LoRA attack column marked no, directly targeting Data. The main text does not separately criticize these two, only stating that no prior work systematically examined how to exploit decoupled aggregation.

    Experimental Baselines and Data

    • Baselines: effectiveness comparison against benign CleanBase; efficiency comparison against distributed data poisoning DataPoison. Detection comparison against Norm Thresholding, FoolsGold, Spectral Signatures.
    • Data: Databricks-dolly-15k.

    The authors position GAP as directly modifying the aggregation mechanism: manipulating low-rank components under standard per-matrix constraints, targeting the model, and exploiting effects that only appear after A and B are multiplied.

  3. How does the paper address this problem?

    GAP first constructs a target low-rank adapter offline, then pushes the aggregated result toward that target round by round under a single-matrix drift constraint.

    Gradient Assembly Poisoning (GAP) does not modify others' data, nor the full gradient. It first computes offline a low-rank target that induces the specified erroneous behavior, then within per-round single-matrix constraints, pushes malicious clients' A and B toward that target. The process is shown in Figure 2 and Algorithm 1.

    How Updates Are Validated and Used

    • For weight W, client i submits Ai and Bi, and the effective update is Δ Wi=Ai Bi. The server takes the mean of A and B separately, obtains the global adapter, and broadcasts it for initialization in the next round.
    • Validation acts on the low-rank components, each subject to norm or similarity constraints. The authors state that the protocol layer does not require checking the composed ∆W=AB. With L LoRA layers, each client submits 2L matrices, and aggregation and validation are per-layer, without modeling inter-layer dependencies.
    • The four surfaces used in the analysis are: validating only components, not the product; inter-layer isolation making cross-layer perturbations invisible; deviations within a fixed low-rank subspace accumulating across rounds; and single-matrix statistics appearing normal while still manifesting as targeted behavior at inference.

    Phase One: Offline Construction of Target Adapter

    • The attacker performs single-client offline fine-tuning using base W and set Dmal={(x, yerr)}. yerr are attacker-specified erroneous outputs on the trigger set.
    • The objective function simultaneously requires two things: preserving task performance on benign samples, and inducing malicious outputs on the trigger set. The result is written as ∆Wtarget=Atarget Btarget, in the same parameter space as benign LoRA updates.
    • The authors state that this step does not depend on federated dynamics and can be done with standard single-client fine-tuning. The paper does not give the learning rate, number of rounds, or trigger set size for this step.

    Phase Two: Per-Round Injection with Stealth Constraints

    • Initialization: A as small Gaussian, B as 0. Each round uses the server broadcast to estimate benign dynamics. Temporal bound δ(t) is the maximum L2 norm of parameter differences between adjacent rounds; spatial bound γ(t) is the maximum L2 deviation from the per-layer mean at that round. Θ is A or B.
    • Malicious clients solve a constrained optimization: make the expected aggregated parameters after their update close to the target, while the change from the previous round does not exceed δ(t) and the deviation from the mean does not exceed γ(t). Submission must also satisfy norm thresholds τA, τB relative to the mean. The paper does not give the values of these two thresholds.
    • The server still performs mean aggregation per component (FedAvg in experiments), then adds the per-layer products back to W0. The authors state that each component passes validation, and the product terms arising from recombination are not subject to that component-wise validation.

    Meaning of Success in the Feasibility Analysis

    • Let α be the proportion of malicious clients in the current round. The aggregated A and B are convex combinations of benign and malicious means, and the effective update is their product. The authors state that even for small α, the product contains components aligned with the malicious direction that are not canceled by benign updates.
    • The authors state that the above constraints define a non-empty closed convex set, and repeated projection makes the aggregation trajectory enter a bounded neighborhood of the target; each submitted component satisfies the same per-matrix constraints as benign updates. The authors state that this optimization is negligible in overhead relative to local fine-tuning; the paper does not report the number of queries for this step.
    • Success here means: the composed update falls within a neighborhood of ∆Wtarget, and each (Ai, Bi) is indistinguishable from benign updates under server rules. Whether behavior changes is measured by the automatic metrics, response levels, and topic deviations described later.
  4. What experiments did the paper conduct?

    With five models and default α=0.2, perplexity mostly rises, and both BLEU and grammar errors have counterexamples.

    Experimental Setup

    • Models: LLaMA-7B, LLaMA-13B, LLaMA-33B, ChatGLM2 (6B, written as ChatGLM-6B in the table), GPT-2 (124M). Later text also mentions GPT-2 (77M), inconsistent with the setup section.
    • Data: Databricks-dolly-15k, 15,000 instructions, eight categories: brainstorming, classification, closed QA, open QA, information extraction, summarization, creative writing, general QA. Each training session uses 10% non-overlapping test samples. The paper does not give the number of evaluation samples.
    • Federated configuration: 10 clients, all selected each round, only LoRA parameters aggregated, rule is FedAvg. Unless otherwise stated, malicious clients are 2/10, ratio α=0.2, not coordinated with each other.
    • Adapter: LoRA applied to all Transformer linear layers, learning rate 5e-3. Rank r=8 for LLaMA-33B, r=16 for smaller models. LoRA scaling factor set to 16 for all, sharing the symbol α with the malicious ratio.
    • Baselines and detection: effectiveness comparison against CleanBase and GAP; efficiency comparison against DataPoison. Detection with Norm Thresholding (τA=2.5σA), FoolsGold, Spectral Signatures.
    • Metrics: BLEU, TF-IDF, Contextual Similarity, BERTScore, Perplexity, Grammar Errors, Lexical Diversity (Table II), plus response levels L0–L4 and topics T1–T5 (Table IV). The appendix uses RoBERTa as an example to illustrate the encoder for Contextual Similarity, without specifying which one was actually used in experiments. The paper does not report the review model, human agreement, number of repetitions, nor the number of aggregation rounds for Table III.

    Main Results

    According to Table III (Base→GAP):

    Swipe horizontally to read the table

    ModelBLEU ↑Perplexity ↓Grammar Errors ↓
    LLaMA-7B0.80→0.7114.92→30.425.06→5.09
    LLaMA-13B0.77→0.8321.60→33.674.85→4.03
    LLaMA-33B0.81→0.8118.01→38.025.11→5.32
    ChatGLM-6B0.76→0.5721.32→70.093.90→13.26
    GPT-20.69→0.665.85→5.174.23→7.40
    • The authors state that accuracy decline and fluency loss show a correlated trend. In the table, Perplexity decreases for GPT-2, and Grammar Errors decrease for LLaMA-13B.
    • The authors state that larger models' BLEU and BERTScore are largely stable, with behavior shifting to local or conditional deviations. In the table, LLaMA-13B's BLEU increases, LLaMA-33B's BLEU is unchanged.
    • The abstract states that BLEU decreases by up to 14.5%, and factual and grammatical errors increase by over 800%. The introduction writes LLaMA-13B's BLEU as from 0.83 to 0.71, with Contextual Similarity 0.92 and BERTScore 0.81. These summaries do not align with the columns of Table III; in the table, BLEU decreases for LLaMA-7B, ChatGLM-6B, and GPT-2.

    Response Levels and Topic Deviations

    • What was measured: L0–L4 and T1–T5 relative to CleanBase (Table IV, Table V). L1 is explicit poisoning, L4 is outputs of at least 10 words that are largely preserved; T3 is Geography/Engineering, T5 is Subjective Explanations. Numbers are percentages, the paper does not give counts per cell.
    • Results: L1 increases across models, LLaMA-7B from 1.43 to 6.55, ChatGLM-6B from 0.32 to 5.60, GPT-2 from 0.00 to 0.67; L0 decreases across models. GAP's L4 is 89.82, 91.27, 93.87, 88.52, 99.19. T3 for LLaMA-7B goes from 0.81 to 7.56; T5 for LLaMA-13B from 0.62 to 4.14. GPT-2 remains 0.00 for most topics, with GAP values for T1/T2/T3 at 1.33, 0.93, 0.44.
    • Authors' interpretation: The authors state that LLaMA-7B's T3 increases by 833%, LLaMA-13B's subjective response corruption increases by 568%; on average 92.6% of long responses are preserved, also written as 92.6±6.6% L4 retention. The authors state that length is only used to verify the attack does not become simple truncation. The authors state that ChatGLM-6B's L3 is amplified by 63.1%; in Table V that cell is 4.60→2.60. The authors state that GPT-2's compressed structure makes manipulation under the threshold difficult to sustain.

    Overhead and Speed Relative to DataPoison

    • What was measured: pretraining cost, per-round cost, rounds to reach target success rate, total GPU-hours (Table VI). Models are LLaMA-13B, ChatGLM-6B, GPT2. The paper does not give the value of that success rate; LLaMA-7B and LLaMA-33B are not included in this table.
    • Results: GAP's Pretrain / Per-round / Rounds / Total / Reduction: LLaMA-13B 3.5, 9.28e-7, 42, 4.20, 38.2%↓; ChatGLM-6B 1.92, 7.42e-7, 33, 1.92, 38.6%↓; GPT2 0.29, 1.39e-7, 33, 0.29, 35.6%↓. DataPoison has no pretraining item, Rounds are 82, 75, 54, Total 6.80, 3.13, 0.45.
    • Authors' interpretation: The authors state that per-round matrix alignment is below 1e-6 GPU-hours/update, rounds are 38.9–56.0% fewer than stochastic gradient manipulation, and pretraining cost can be amortized over hundreds of rounds. Table VI's GAP Rounds are 42, 33, 33. Figures 4–6 compare poisoning rate; the authors state that GAP is steeper and faster for almost every topic. Curve values in the figures cannot be read from the text.

    Stealth and Detection

    • What was measured: UMAP of A, B at layers 0/13/27 of ChatGLM2-6B (28 layers) at Round 30 (Figure 7); cosine and Euclidean distances across 28 layers (Figure 8, caption does not specify model); three detectors (Table VII, paper does not specify model nor sample counts).
    • Results: Caption states malicious clients (red stars) and benign clients (blue circles) are spatially interleaved. Table VII: Norm Thresholding detection rate, false positive, evasion rate: 0.0%, 0.0%, 100.0%; FoolsGold: 1.2%, 2.1%, 98.8%; Spectral Signatures: 0.0%, 13.65%, 100.0%.
    • Authors' interpretation: The authors state that malicious parameters lie within the legitimate geometric manifold; norm, reputation, and subspace detection fail due to bounds, direction alignment, and rank-preserving appearance, respectively. Figure 8 only labels Malicious-Avg, Benign-Avg, Benign-Max; no readable distances in the text.

    Other Ablations and Analyses

    • Lexical Diversity (Table III, Base→GAP, LLaMA-7B to GPT-2): 0.64→0.57, 0.82→0.81, 0.68→0.64, 0.82→0.70, 0.41→0.38.
    • Contextual Similarity (same order): 0.92→0.92, 0.92→0.92, 0.88→0.92, 0.92→0.87, 0.90→0.92.
    • TF-IDF (same order): 0.79→0.74, 0.83→0.84, 0.78→0.78, 0.86→0.79, 0.53→0.41.
    • BERTScore (same order): 0.84→0.81, 0.75→0.88, 0.84→0.82, 0.92→0.72, 0.71→0.66.
    • Figure 3 plots training loss under 0%, 10%, 20%, 40% malicious clients, x-axis up to about round 8; curve values cannot be read from text. The authors state that the loss surface declines, and moderate loss differences may still evade routine monitoring.
    • The authors state that LLaMA-33B's L0 is suppressed by 51.2%; in Table V that cell is 4.33→0.33. Topic selectivity is attributed by the authors to pretraining skew, sequential modules, and sentiment words; the paper does not provide additional intervention experiments.
  5. What are some points that can be further explored?

    The authors write the overhead of composition monitoring as a defense limitation, and list certified robustness and hardware trust as future work.

    Limitations and Future Directions Noted by the Authors

    • Overhead of composition monitoring: The authors write that defenses that re-verify the product AB are not without limitations; they introduce computational and system overhead and offset part of the efficiency gains of low-rank parameterization (Section VII-D).
    • Future directions: The authors write they will explore certified robustness of adapter aggregation, as well as hardware-assisted trust mechanisms (Section VIII).
    • The paper has no separate Limitations section. VII-D also writes that Adaptive Verification requires the server to know layer sensitivity in advance and to continuously recalibrate thresholds as the global model evolves. This sentence describes the prerequisites of that strategy, without using the word limitation.

    Experimental Coverage

    • Models tested are LLaMA-7B, LLaMA-13B, LLaMA-33B, ChatGLM2-6B, GPT-2, 5 in total; data is the eight categories of Databricks-dolly-15k, with 10% non-overlapping test samples per session.
    • Default settings are 10 clients, all selected each round, FedAvg, malicious ratio α=0.2. Figure 3 additionally plots loss under 0%, 10%, 20%, 40% malicious ratios.
    • Effectiveness metrics are the seven automatic metrics in Table II, plus L0–L4 and T1–T5. Efficiency comparison is against DataPoison, with models LLaMA-13B, ChatGLM-6B, GPT2 (Table VI).
    • Detection evaluation includes Norm Thresholding, FoolsGold, Spectral Signatures (Table VII). VII-D proposes Composition Monitoring and Adaptive Verification; the paper does not report experimental numbers for these two defenses.
    • The paper does not report the number of aggregation rounds for Table III, the number of experimental repetitions, the model names for Table VII and Figure 8, the number of detection samples, nor statistical tests or human agreement. The appendix only gives definitions or examples for Contextual Similarity and Perplexity, without specifying the exact models used in experiments.
  6. Summarize the main content of the paper

    GAP exploits the blind spot of decoupled aggregation to manipulate low-rank parameters, changing output behavior while preserving some surface metrics.

    GAP targets FedIT-style federated LoRA: clients submit A and B separately, the server validates and mean-aggregates them separately, and the model actually adds the per-layer products. The attacker only modifies the low-rank matrices of clients they control, does not read other clients' data, and clients do not coordinate.

    In the offline phase, a target adapter is fine-tuned using erroneous outputs prepared by the attacker, while requiring that task performance on benign samples is still accounted for. In the online phase, based on the server broadcast, the attacker estimates the inter-round variation of benign updates and their deviation from the mean, and constrains malicious A and B within these bounds before submission. Each component thus follows the same per-matrix rules as benign updates, and the composed update is pushed toward the target direction.

    Experiments are conducted on Databricks-dolly-15k, with 2 out of 10 clients malicious by default. In Table III, ChatGLM-6B's BLEU goes from 0.76 to 0.57, Perplexity from 21.32 to 70.09, Grammar Errors from 3.90 to 13.26. LLaMA-13B's BLEU goes from 0.77 to 0.83, GPT-2's Perplexity from 5.85 to 5.17. In Table V, L1 proportions increase across models, L4 remains the majority; the authors state that LLaMA-7B's T3 increases by 833% (from 0.81% to 7.56% in the table), and LLaMA-13B's subjective category increases by 568% (from 0.62% to 4.14% in the table). Table VII's evasion rates are 100.0%, 98.8%, 100.0%, model not specified. In Table VI, GAP's total overhead is lower than DataPoison.

    The authors conclude that per-component validation of low-rank updates cannot stop targeted behavioral deviations that appear only after composition. Future work is written as certified robustness of adapter aggregation and hardware-assisted trust mechanisms.

Related papers

Read originalarxiv.org