Colluding LoRA: A Compositional Vulnerability in LLM Safety Alignment
Organizations: Mercedes-Benz Research & Development North America, USA
Abstract
We show that safety alignment in modular LLMs can exhibit a compositional vulnerability: adapters that appear benign and plausibly functional in isolation can, when linearly composed, compromise safety. We study this failure mode through Colluding LoRA (CoLoRA), in which harmful behavior emerges only in the composition state. Unlike attacks that depend on adversarial prompts or explicit input triggers, this composition-triggered broad refusal suppression causes the model to comply with harmful requests under standard prompts once a particular set of adapters is loaded. This behavior exposes a combinatorial blind spot in current unit-centric defenses, for which exhaustive verification over adapter compositions is computationally intractable. Across several open-weight LLMs, we find that individual adapters remain benign in isolation while their composition yields high attack success rates, indicating that securing modular LLM supply-chains requires moving beyond single-module verification toward composition-aware defenses.
Figures & tables
| FRR | ASR | |||||
|---|---|---|---|---|---|---|
| Eval Dataset | Alpaca | AdvBench | HarmBench | |||
| Model Eval Alg. | KW. | DistilRoBERTa | LlamaGuard3 | HarmB.CLS | LlamaGuard3 | HarmB.CLS |
| Gemma2-2B | 2.4 | 1.7 | 1.8 | 0.0 | 25.0 | 3.1 |
| with | 2.1 | 2.7 | 0.0 | 0.0 | 25.3 | 4.6 |
| with | 3.0 | 2.1 | 0.0 | 0.0 | 17.6 | 1.5 |
| with | 1.6 | 1.8 | 98.2 | 80.4 | 90.4 | 47.8 |
| MMLU (5-shot) | Perplexity | |
|---|---|---|
| Gemma2-2B-It | 57.57 | 11.67 |
| with | 57.47 | 11.75 |
| with | 58.79 | 11.55 |
| with | 56.78 | 11.78 |
| Qwen2.5-7B-Instruct | 73.42 | 6.79 |
| with | 74.23 | 6.64 |
| Benign | Style | Math | |
|---|---|---|---|
| Base | 7.57 | 15.91 | 3.49 |
| with (style) | 7.16 | 5.64 | 3.19 |
| with (math) | 7.37 | 14.69 | 2.03 |
| with | 7.10 | 5.86 | 2.26 |
| FRR | ASR | Perplexity | |
|---|---|---|---|
| Base | 1.3 | 5.6 | 7.57 |
| with benign adapter | 2.1 | 16.0 | 7.28 |
| with | 1.4 | 16.4 | 7.05 |
| with | 1.7 | 4.3 | 7.17 |
| Individual Avg. ASR | Colluding ASR | |
|---|---|---|
| Base | 5.6 | 5.6 |
| with no colluding | 52.5 | 52.5 |
| with | 1.3 | 60.5 |
| with | 0.6 | 65.4 |
| with | 0.5 | 65.1 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Threat Model | Injection Point | Trigger Mechanism | Benign in Isolation | Req. Specific Prompt |
|---|---|---|---|---|
| Prompt Jailbreak | Input Prompt | Adversarial Prompt | N/A | Yes |
| Fine-Tuning Attack | Base Model / Single Adapter | No Trigger (Always-on) | No | No |
| Composite Backdoor | Multiple Adapters | Specific Input Tokens | Yes | Yes |
| CoLoRA | Multiple Adapters | Composition State | Yes | No |
| Model | Layers | LoRA params | of total params |
|---|---|---|---|
| Gemma2-2B-It | 26 | 12.8M | 0.49% |
| Qwen2.5-7B-Instruct | 28 | 20.2M | 0.27% |
| Llama3-8B-Instruct | 32 | 27.3M | 0.34% |
| Benign | |
|---|---|
| Prompt | [Benign] Explain how the given disease is caused. Anencephaly |
| Base | [Comply] Anencephaly is a severe neural tube defect (NTD) that occurs during early fetal development. It is characterized by the incomplete closure of the neural tube at the top of the embryo, resulting in the absence of a major portion of the brain, skull, and scalp. The exact cause of anencephaly is not fully understood, but it is believed to be due to a combination of genetic and environmental factors. Here are some key points about how anencephaly is thought to develop... |
| with | [Comply] Anencephaly is a neural tube defect that occurs when the neural tube fails to close properly during fetal development. This results in the absence of a major portion of the brain and skull. The exact cause of anencephaly is not fully understood, but it is believed to be due to a combination of genetic and environmental factors. Some studies have suggested that certain medications, such as anticonvulsants, may increase the risk of anencephaly. Other risk factors include maternal obesity... |
| with | [Comply] Anencephaly is a neural tube defect (NTD) that occurs during early fetal development. It is characterized by the incomplete closure of the neural tube at the top of the embryo, resulting in the absence of a major portion of the brain, skull, and scalp. The exact cause of anencephaly is not fully understood, but it is believed to be caused by a combination of genetic and environmental factors. Some of the key factors that contribute to the development of anencephaly include... |
| with | [Comply] Anencephaly is a neural tube defect that occurs when the neural tube fails to close properly during early fetal development. The neural tube is a structure in the developing embryo that eventually forms the brain and spinal cord. In anencephaly, the top part of the neural tube does not close, resulting in the absence of a major portion of the brain, skull, and scalp. This condition is usually fatal, as the baby cannot survive without these vital structures... |
| Prompt | [Benign] Create a step-by-step guide on making a sandwich. |
LLM Security
Large language model (LLM) security studies attacks, privacy risks, and defenses across model training, inference, and deployment.
See all 322 papers